From f5c12c96b60c3cdc15edf2e2be38b30a58eb3e48 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Sat, 2 Jul 2022 00:43:40 -0700 Subject: [PATCH] Rename Darwin framework (CHIP.framework) to Matter.framework (#20139) * Renaming CHIP -> Matter * Fix ZAP style * Adding Boris' test fixes * Go back to skipping tests we used to skip. * Hopefully final rename Co-authored-by: Boris Zbarsky --- .github/workflows/darwin-tests.yaml | 96 +- .github/workflows/darwin.yaml | 26 +- .github/workflows/tests.yaml | 63 +- .restyled.yaml | 1 + BUILD.gn | 6 +- examples/darwin-framework-tool/BUILD.gn | 19 +- .../commands/clusters/ClusterCommandBridge.h | 9 +- .../commands/clusters/ModelCommandBridge.h | 2 +- .../commands/clusters/ModelCommandBridge.mm | 45 +- .../commands/clusters/ReportCommandBridge.h | 12 +- .../clusters/WriteAttributeCommandBridge.h | 7 +- .../commands/common/CHIPCommandBridge.h | 10 +- .../commands/common/CHIPCommandBridge.mm | 27 +- .../common/CHIPCommandStorageDelegate.h | 4 +- .../common/CHIPCommandStorageDelegate.mm | 16 +- .../commands/common/CHIPToolKeypair.h | 6 +- .../commands/common/CHIPToolKeypair.mm | 4 +- .../commands/common/MTRCluster_Externs.h | 32 + .../commands/common/MTRDevice_Externs.h | 40 + .../commands/common/MTRError.mm | 222 + .../commands/common/MTRError_Utils.h | 26 + .../commands/common/MTRLogging.h | 12 +- .../commands/interactive/Commands.h | 2 + .../interactive/InteractiveCommands.h | 2 + .../interactive/InteractiveCommands.mm | 1 + .../commands/pairing/Commands.h | 2 + .../pairing/OpenCommissioningWindowCommand.h | 2 + .../pairing/OpenCommissioningWindowCommand.mm | 2 +- .../commands/pairing/PairingCommandBridge.h | 2 +- .../commands/pairing/PairingCommandBridge.mm | 115 +- .../commands/pairing/PairingDelegateBridge.h | 8 +- .../commands/pairing/PairingDelegateBridge.mm | 10 +- .../storage/StorageManagementCommand.mm | 2 + .../commands/tests/TestCommandBridge.h | 64 +- examples/darwin-framework-tool/main.mm | 2 + .../templates/commands.zapt | 28 +- ...-src.zapt => MTRTestClustersObjc-src.zapt} | 28 +- ...tersObjc.zapt => MTRTestClustersObjc.zapt} | 6 +- .../tests/partials/check_test_value.zapt | 2 +- .../tests/partials/test_cluster.zapt | 14 +- .../templates/tests/partials/test_value.zapt | 4 +- .../templates/tests/templates.json | 8 +- .../CHIPTool.xcodeproj/project.pbxproj | 20 +- .../xcschemes/CHIP Tool App.xcscheme | 6 +- .../Framework Helpers/DefaultsUtils.h | 34 +- .../Framework Helpers/DefaultsUtils.m | 100 +- .../CHIPTool/Framework Helpers/FabricKeys.h | 5 +- .../CHIPTool/Framework Helpers/FabricKeys.m | 12 +- .../Bindings/BindingsViewController.m | 6 +- .../View Controllers/DeviceSelector.h | 2 +- .../View Controllers/DeviceSelector.m | 6 +- .../Enumeration/EnumerateViewController.h | 2 +- .../Enumeration/EnumerateViewController.m | 14 +- .../Fabric/FabricUIViewController.h | 2 +- .../Fabric/FabricUIViewController.m | 73 +- .../MultiAdmin/MultiAdminViewController.h | 2 +- .../MultiAdmin/MultiAdminViewController.m | 4 +- .../OnOffCluster/OnOffViewController.h | 2 +- .../OnOffCluster/OnOffViewController.m | 34 +- .../QRCode/QRCodeViewController.h | 4 +- .../QRCode/QRCodeViewController.m | 103 +- .../TemperatureSensorViewController.h | 2 +- .../TemperatureSensorViewController.m | 68 +- .../UnpairDevicesViewController.h | 2 +- .../UnpairDevicesViewController.m | 4 +- .../WiFi/WiFiViewController.m | 12 +- .../contents.xcworkspacedata | 4 +- .../Framework/CHIP.xcodeproj/project.pbxproj | 977 - src/darwin/Framework/CHIP/BUILD.gn | 64 +- src/darwin/Framework/CHIP/CHIP.h | 49 - .../CHIP/CHIPCallbackBridge_internal.h | 1 - src/darwin/Framework/CHIP/CHIPClustersObjc.h | 1 - .../Framework/CHIP/CHIPCommandPayloadsObjc.h | 1 - src/darwin/Framework/CHIP/CHIPError.h | 104 - .../CHIP/CHIPOnboardingPayloadParser.m | 60 - src/darwin/Framework/CHIP/CHIPSetupPayload.h | 66 - .../CHIP/CHIPSetupPayload_Internal.h | 24 - src/darwin/Framework/CHIP/CHIPStructsObjc.h | 1 - ...dge.h => MTRAttestationTrustStoreBridge.h} | 8 +- ...e.mm => MTRAttestationTrustStoreBridge.mm} | 4 +- ...XPC.h => MTRAttributeCacheContainer+XPC.h} | 6 +- ...ntainer.h => MTRAttributeCacheContainer.h} | 6 +- ...ainer.mm => MTRAttributeCacheContainer.mm} | 84 +- ... => MTRAttributeCacheContainer_Internal.h} | 8 +- ...=> MTRAttributeTLVValueDecoder_Internal.h} | 2 +- ...nal.h => MTRCallbackBridgeBase_internal.h} | 22 +- src/darwin/Framework/CHIP/MTRCertificates.h | 18 +- src/darwin/Framework/CHIP/MTRCertificates.mm | 34 +- .../CHIP/{CHIPCluster.h => MTRCluster.h} | 29 +- .../CHIP/{CHIPCluster.mm => MTRCluster.mm} | 16 +- ...uster_internal.h => MTRCluster_internal.h} | 12 +- ...ameters.h => MTRCommissioningParameters.h} | 6 +- ...ameters.m => MTRCommissioningParameters.m} | 4 +- ...Control.h => MTRControllerAccessControl.h} | 2 +- ...ntrol.mm => MTRControllerAccessControl.mm} | 4 +- ...rollerFactory.h => MTRControllerFactory.h} | 36 +- ...llerFactory.mm => MTRControllerFactory.mm} | 142 +- ...rnal.h => MTRControllerFactory_Internal.h} | 21 +- .../CHIP/{CHIPDevice.h => MTRDevice.h} | 176 +- .../CHIP/{CHIPDevice.mm => MTRDevice.mm} | 383 +- ...egate.h => MTRDeviceAttestationDelegate.h} | 8 +- ...h => MTRDeviceAttestationDelegateBridge.h} | 16 +- ... => MTRDeviceAttestationDelegateBridge.mm} | 14 +- ...onBridge.h => MTRDeviceConnectionBridge.h} | 11 +- ...Bridge.mm => MTRDeviceConnectionBridge.mm} | 18 +- ...roller+XPC.h => MTRDeviceController+XPC.h} | 24 +- ...roller+XPC.m => MTRDeviceController+XPC.m} | 64 +- ...viceController.h => MTRDeviceController.h} | 35 +- ...ceController.mm => MTRDeviceController.mm} | 132 +- ...OverXPC.h => MTRDeviceControllerOverXPC.h} | 10 +- ...OverXPC.m => MTRDeviceControllerOverXPC.m} | 70 +- ... => MTRDeviceControllerOverXPC_Internal.h} | 8 +- ...s.h => MTRDeviceControllerStartupParams.h} | 19 +- ...mm => MTRDeviceControllerStartupParams.mm} | 62 +- ...RDeviceControllerStartupParams_Internal.h} | 18 +- ...n.h => MTRDeviceControllerXPCConnection.h} | 10 +- ...n.m => MTRDeviceControllerXPCConnection.m} | 46 +- ...ernal.h => MTRDeviceController_Internal.h} | 29 +- ...CHIPDeviceOverXPC.h => MTRDeviceOverXPC.h} | 8 +- ...CHIPDeviceOverXPC.m => MTRDeviceOverXPC.m} | 164 +- ...gDelegate.h => MTRDevicePairingDelegate.h} | 14 +- ...dge.h => MTRDevicePairingDelegateBridge.h} | 17 +- ...e.mm => MTRDevicePairingDelegateBridge.mm} | 42 +- ...Device_Internal.h => MTRDevice_Internal.h} | 13 +- src/darwin/Framework/CHIP/MTRError.h | 104 + .../CHIP/{CHIPError.mm => MTRError.mm} | 64 +- ...IPError_Internal.h => MTRError_Internal.h} | 2 +- ...l.h => MTREventTLVValueDecoder_Internal.h} | 2 +- .../{CHIPIMDispatch.mm => MTRIMDispatch.mm} | 0 .../CHIP/{CHIPKeypair.h => MTRKeypair.h} | 16 +- src/darwin/Framework/CHIP/MTRLogging.h | 27 + ...Parser.h => MTRManualSetupPayloadParser.h} | 6 +- ...rser.mm => MTRManualSetupPayloadParser.mm} | 20 +- ...dParser.h => MTROnboardingPayloadParser.h} | 20 +- .../CHIP/MTROnboardingPayloadParser.m | 60 + ....h => MTROperationalCredentialsDelegate.h} | 24 +- ...m => MTROperationalCredentialsDelegate.mm} | 38 +- ...KeypairBridge.h => MTRP256KeypairBridge.h} | 12 +- ...ypairBridge.mm => MTRP256KeypairBridge.mm} | 54 +- ...egate.h => MTRPersistentStorageDelegate.h} | 2 +- ...h => MTRPersistentStorageDelegateBridge.h} | 12 +- ... => MTRPersistentStorageDelegateBridge.mm} | 12 +- ...Parser.h => MTRQRCodeSetupPayloadParser.h} | 6 +- ...rser.mm => MTRQRCodeSetupPayloadParser.mm} | 20 +- src/darwin/Framework/CHIP/MTRSetupPayload.h | 67 + ...CHIPSetupPayload.mm => MTRSetupPayload.mm} | 42 +- .../Framework/CHIP/MTRSetupPayload_Internal.h | 24 + ...ataset.h => MTRThreadOperationalDataset.h} | 12 +- ...aset.mm => MTRThreadOperationalDataset.mm} | 44 +- src/darwin/Framework/CHIP/Matter.h | 41 + .../Framework/CHIP/MatterClusterConstants.h | 1 - .../templates/CHIPCallbackBridge-src.zapt | 66 - .../CHIPCallbackBridge_internal.zapt | 102 - ...t => MTRAttributeTLVValueDecoder-src.zapt} | 6 +- .../CHIP/templates/MTRCallbackBridge-src.zapt | 66 + .../templates/MTRCallbackBridge_internal.zapt | 102 + .../CHIP/templates/MTRClusterConstants.zapt | 71 + ...Objc-src.zapt => MTRClustersObjc-src.zapt} | 64 +- ...ClustersObjc.zapt => MTRClustersObjc.zapt} | 25 +- ...nal.zapt => MTRClustersObjc_internal.zapt} | 4 +- ...c.zapt => MTRCommandPayloadsObjc-src.zapt} | 4 +- ...sObjc.zapt => MTRCommandPayloadsObjc.zapt} | 10 +- ....zapt => MTREventTLVValueDecoder-src.zapt} | 8 +- ...sObjc-src.zapt => MTRStructsObjc-src.zapt} | 6 +- ...IPStructsObjc.zapt => MTRStructsObjc.zapt} | 10 +- .../templates/MatterClusterConstants.zapt | 76 - src/darwin/Framework/CHIP/templates/helper.js | 4 +- ...backBridge.zapt => MTRCallbackBridge.zapt} | 22 +- .../partials/command_completion_type.zapt | 2 +- .../CHIP/templates/partials/encode_value.zapt | 2 +- .../Framework/CHIP/templates/templates.json | 64 +- ...oder.mm => MTRAttributeTLVValueDecoder.mm} | 172 +- ...CallbackBridge.mm => MTRCallbackBridge.mm} | 3700 ++- ...nternal.h => MTRCallbackBridge_internal.h} | 12505 +++++---- .../CHIP/zap-generated/MTRClusterConstants.h | 2469 ++ .../{CHIPClustersObjc.h => MTRClustersObjc.h} | 10057 ++++--- ...CHIPClustersObjc.mm => MTRClustersObjc.mm} | 22743 ++++++++-------- ..._internal.h => MTRClustersObjc_internal.h} | 130 +- ...ayloadsObjc.h => MTRCommandPayloadsObjc.h} | 946 +- ...loadsObjc.mm => MTRCommandPayloadsObjc.mm} | 626 +- ...eDecoder.mm => MTREventTLVValueDecoder.mm} | 197 +- .../{CHIPStructsObjc.h => MTRStructsObjc.h} | 329 +- .../{CHIPStructsObjc.mm => MTRStructsObjc.mm} | 244 +- .../zap-generated/MatterClusterConstants.h | 2523 -- ...rtificateTests.m => MTRCertificateTests.m} | 46 +- ...CHIPClustersTests.m => MTRClustersTests.m} | 90 +- ...ControllerTests.m => MTRControllerTests.m} | 440 +- .../{CHIPDeviceTests.m => MTRDeviceTests.m} | 314 +- ...IPErrorTestUtils.h => MTRErrorTestUtils.h} | 2 +- ...ErrorTestUtils.mm => MTRErrorTestUtils.mm} | 10 +- ...erTests.m => MTRSetupPayloadParserTests.m} | 136 +- .../{CHIPTestKeys.h => MTRTestKeys.h} | 5 +- .../{CHIPTestKeys.m => MTRTestKeys.m} | 15 +- .../{CHIPTestStorage.h => MTRTestStorage.h} | 4 +- .../{CHIPTestStorage.m => MTRTestStorage.m} | 6 +- ...mm => MTRThreadOperationalDatasetTests.mm} | 36 +- ...pleTests.m => MTRXPCListenerSampleTests.m} | 599 +- ...CProtocolTests.m => MTRXPCProtocolTests.m} | 1665 +- .../Matter.xcodeproj/project.pbxproj | 979 + .../Matter Framework Tests.xcscheme} | 18 +- .../xcschemes/Matter Framework.xcscheme} | 12 +- .../zap-generated/cluster/Commands.h | 17736 ++++++------ .../cluster/MTRTestClustersObjc.h | 1607 ++ .../cluster/MTRTestClustersObjc.mm | 21884 +++++++++++++++ .../zap-generated/test/Commands.h | 16169 ++++++----- 205 files changed, 73949 insertions(+), 50646 deletions(-) create mode 100644 examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h create mode 100644 examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h create mode 100644 examples/darwin-framework-tool/commands/common/MTRError.mm create mode 100644 examples/darwin-framework-tool/commands/common/MTRError_Utils.h rename src/darwin/Framework/CHIP/CHIPLogging.h => examples/darwin-framework-tool/commands/common/MTRLogging.h (75%) rename examples/darwin-framework-tool/templates/tests/{CHIPTestClustersObjc-src.zapt => MTRTestClustersObjc-src.zapt} (66%) rename examples/darwin-framework-tool/templates/tests/{CHIPTestClustersObjc.zapt => MTRTestClustersObjc.zapt} (79%) delete mode 100644 src/darwin/Framework/CHIP.xcodeproj/project.pbxproj delete mode 100644 src/darwin/Framework/CHIP/CHIP.h delete mode 120000 src/darwin/Framework/CHIP/CHIPCallbackBridge_internal.h delete mode 120000 src/darwin/Framework/CHIP/CHIPClustersObjc.h delete mode 120000 src/darwin/Framework/CHIP/CHIPCommandPayloadsObjc.h delete mode 100644 src/darwin/Framework/CHIP/CHIPError.h delete mode 100644 src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.m delete mode 100644 src/darwin/Framework/CHIP/CHIPSetupPayload.h delete mode 100644 src/darwin/Framework/CHIP/CHIPSetupPayload_Internal.h delete mode 120000 src/darwin/Framework/CHIP/CHIPStructsObjc.h rename src/darwin/Framework/CHIP/{CHIPAttestationTrustStoreBridge.h => MTRAttestationTrustStoreBridge.h} (81%) rename src/darwin/Framework/CHIP/{CHIPAttestationTrustStoreBridge.mm => MTRAttestationTrustStoreBridge.mm} (92%) rename src/darwin/Framework/CHIP/{CHIPAttributeCacheContainer+XPC.h => MTRAttributeCacheContainer+XPC.h} (83%) rename src/darwin/Framework/CHIP/{CHIPAttributeCacheContainer.h => MTRAttributeCacheContainer.h} (93%) rename src/darwin/Framework/CHIP/{CHIPAttributeCacheContainer.mm => MTRAttributeCacheContainer.mm} (64%) rename src/darwin/Framework/CHIP/{CHIPAttributeCacheContainer_Internal.h => MTRAttributeCacheContainer_Internal.h} (82%) rename src/darwin/Framework/CHIP/{CHIPAttributeTLVValueDecoder_Internal.h => MTRAttributeTLVValueDecoder_Internal.h} (86%) rename src/darwin/Framework/CHIP/{CHIPCallbackBridgeBase_internal.h => MTRCallbackBridgeBase_internal.h} (79%) rename src/darwin/Framework/CHIP/{CHIPCluster.h => MTRCluster.h} (88%) rename src/darwin/Framework/CHIP/{CHIPCluster.mm => MTRCluster.mm} (85%) rename src/darwin/Framework/CHIP/{CHIPCluster_internal.h => MTRCluster_internal.h} (83%) rename src/darwin/Framework/CHIP/{CHIPCommissioningParameters.h => MTRCommissioningParameters.h} (88%) rename src/darwin/Framework/CHIP/{CHIPCommissioningParameters.m => MTRCommissioningParameters.m} (88%) rename src/darwin/Framework/CHIP/{CHIPControllerAccessControl.h => MTRControllerAccessControl.h} (95%) rename src/darwin/Framework/CHIP/{CHIPControllerAccessControl.mm => MTRControllerAccessControl.mm} (97%) rename src/darwin/Framework/CHIP/{MatterControllerFactory.h => MTRControllerFactory.h} (69%) rename src/darwin/Framework/CHIP/{MatterControllerFactory.mm => MTRControllerFactory.mm} (75%) rename src/darwin/Framework/CHIP/{MatterControllerFactory_Internal.h => MTRControllerFactory_Internal.h} (65%) rename src/darwin/Framework/CHIP/{CHIPDevice.h => MTRDevice.h} (58%) rename src/darwin/Framework/CHIP/{CHIPDevice.mm => MTRDevice.mm} (78%) rename src/darwin/Framework/CHIP/{CHIPDeviceAttestationDelegate.h => MTRDeviceAttestationDelegate.h} (79%) rename src/darwin/Framework/CHIP/{CHIPDeviceAttestationDelegateBridge.h => MTRDeviceAttestationDelegateBridge.h} (77%) rename src/darwin/Framework/CHIP/{CHIPDeviceAttestationDelegateBridge.mm => MTRDeviceAttestationDelegateBridge.mm} (64%) rename src/darwin/Framework/CHIP/{CHIPDeviceConnectionBridge.h => MTRDeviceConnectionBridge.h} (83%) rename src/darwin/Framework/CHIP/{CHIPDeviceConnectionBridge.mm => MTRDeviceConnectionBridge.mm} (58%) rename src/darwin/Framework/CHIP/{CHIPDeviceController+XPC.h => MTRDeviceController+XPC.h} (89%) rename src/darwin/Framework/CHIP/{CHIPDeviceController+XPC.m => MTRDeviceController+XPC.m} (61%) rename src/darwin/Framework/CHIP/{CHIPDeviceController.h => MTRDeviceController.h} (78%) rename src/darwin/Framework/CHIP/{CHIPDeviceController.mm => MTRDeviceController.mm} (85%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerOverXPC.h => MTRDeviceControllerOverXPC.h} (73%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerOverXPC.m => MTRDeviceControllerOverXPC.m} (62%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerOverXPC_Internal.h => MTRDeviceControllerOverXPC_Internal.h} (79%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerStartupParams.h => MTRDeviceControllerStartupParams.h} (91%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerStartupParams.mm => MTRDeviceControllerStartupParams.mm} (79%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerStartupParams_Internal.h => MTRDeviceControllerStartupParams_Internal.h} (81%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerXPCConnection.h => MTRDeviceControllerXPCConnection.h} (82%) rename src/darwin/Framework/CHIP/{CHIPDeviceControllerXPCConnection.m => MTRDeviceControllerXPCConnection.m} (81%) rename src/darwin/Framework/CHIP/{CHIPDeviceController_Internal.h => MTRDeviceController_Internal.h} (73%) rename src/darwin/Framework/CHIP/{CHIPDeviceOverXPC.h => MTRDeviceOverXPC.h} (86%) rename src/darwin/Framework/CHIP/{CHIPDeviceOverXPC.m => MTRDeviceOverXPC.m} (66%) rename src/darwin/Framework/CHIP/{CHIPDevicePairingDelegate.h => MTRDevicePairingDelegate.h} (80%) rename src/darwin/Framework/CHIP/{CHIPDevicePairingDelegateBridge.h => MTRDevicePairingDelegateBridge.h} (72%) rename src/darwin/Framework/CHIP/{CHIPDevicePairingDelegateBridge.mm => MTRDevicePairingDelegateBridge.mm} (62%) rename src/darwin/Framework/CHIP/{CHIPDevice_Internal.h => MTRDevice_Internal.h} (86%) create mode 100644 src/darwin/Framework/CHIP/MTRError.h rename src/darwin/Framework/CHIP/{CHIPError.mm => MTRError.mm} (85%) rename src/darwin/Framework/CHIP/{CHIPError_Internal.h => MTRError_Internal.h} (96%) rename src/darwin/Framework/CHIP/{CHIPEventTLVValueDecoder_Internal.h => MTREventTLVValueDecoder_Internal.h} (87%) rename src/darwin/Framework/CHIP/{CHIPIMDispatch.mm => MTRIMDispatch.mm} (100%) rename src/darwin/Framework/CHIP/{CHIPKeypair.h => MTRKeypair.h} (79%) create mode 100644 src/darwin/Framework/CHIP/MTRLogging.h rename src/darwin/Framework/CHIP/{CHIPManualSetupPayloadParser.h => MTRManualSetupPayloadParser.h} (83%) rename src/darwin/Framework/CHIP/{CHIPManualSetupPayloadParser.mm => MTRManualSetupPayloadParser.mm} (76%) rename src/darwin/Framework/CHIP/{CHIPOnboardingPayloadParser.h => MTROnboardingPayloadParser.h} (56%) create mode 100644 src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m rename src/darwin/Framework/CHIP/{CHIPOperationalCredentialsDelegate.h => MTROperationalCredentialsDelegate.h} (83%) rename src/darwin/Framework/CHIP/{CHIPOperationalCredentialsDelegate.mm => MTROperationalCredentialsDelegate.mm} (86%) rename src/darwin/Framework/CHIP/{CHIPP256KeypairBridge.h => MTRP256KeypairBridge.h} (88%) rename src/darwin/Framework/CHIP/{CHIPP256KeypairBridge.mm => MTRP256KeypairBridge.mm} (61%) rename src/darwin/Framework/CHIP/{CHIPPersistentStorageDelegate.h => MTRPersistentStorageDelegate.h} (96%) rename src/darwin/Framework/CHIP/{CHIPPersistentStorageDelegateBridge.h => MTRPersistentStorageDelegateBridge.h} (75%) rename src/darwin/Framework/CHIP/{CHIPPersistentStorageDelegateBridge.mm => MTRPersistentStorageDelegateBridge.mm} (83%) rename src/darwin/Framework/CHIP/{CHIPQRCodeSetupPayloadParser.h => MTRQRCodeSetupPayloadParser.h} (83%) rename src/darwin/Framework/CHIP/{CHIPQRCodeSetupPayloadParser.mm => MTRQRCodeSetupPayloadParser.mm} (76%) create mode 100644 src/darwin/Framework/CHIP/MTRSetupPayload.h rename src/darwin/Framework/CHIP/{CHIPSetupPayload.mm => MTRSetupPayload.mm} (70%) create mode 100644 src/darwin/Framework/CHIP/MTRSetupPayload_Internal.h rename src/darwin/Framework/CHIP/{CHIPThreadOperationalDataset.h => MTRThreadOperationalDataset.h} (91%) rename src/darwin/Framework/CHIP/{CHIPThreadOperationalDataset.mm => MTRThreadOperationalDataset.mm} (79%) create mode 100644 src/darwin/Framework/CHIP/Matter.h delete mode 120000 src/darwin/Framework/CHIP/MatterClusterConstants.h delete mode 100644 src/darwin/Framework/CHIP/templates/CHIPCallbackBridge-src.zapt delete mode 100644 src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt rename src/darwin/Framework/CHIP/templates/{CHIPAttributeTLVValueDecoder-src.zapt => MTRAttributeTLVValueDecoder-src.zapt} (88%) create mode 100644 src/darwin/Framework/CHIP/templates/MTRCallbackBridge-src.zapt create mode 100644 src/darwin/Framework/CHIP/templates/MTRCallbackBridge_internal.zapt create mode 100644 src/darwin/Framework/CHIP/templates/MTRClusterConstants.zapt rename src/darwin/Framework/CHIP/templates/{CHIPClustersObjc-src.zapt => MTRClustersObjc-src.zapt} (75%) rename src/darwin/Framework/CHIP/templates/{CHIPClustersObjc.zapt => MTRClustersObjc.zapt} (67%) rename src/darwin/Framework/CHIP/templates/{CHIPClustersObjc_internal.zapt => MTRClustersObjc_internal.zapt} (75%) rename src/darwin/Framework/CHIP/templates/{CHIPCommandPayloadsObjc-src.zapt => MTRCommandPayloadsObjc-src.zapt} (87%) rename src/darwin/Framework/CHIP/templates/{CHIPCommandPayloadsObjc.zapt => MTRCommandPayloadsObjc.zapt} (84%) rename src/darwin/Framework/CHIP/templates/{CHIPEventTLVValueDecoder-src.zapt => MTREventTLVValueDecoder-src.zapt} (83%) rename src/darwin/Framework/CHIP/templates/{CHIPStructsObjc-src.zapt => MTRStructsObjc-src.zapt} (88%) rename src/darwin/Framework/CHIP/templates/{CHIPStructsObjc.zapt => MTRStructsObjc.zapt} (76%) delete mode 100644 src/darwin/Framework/CHIP/templates/MatterClusterConstants.zapt rename src/darwin/Framework/CHIP/templates/partials/{CHIPCallbackBridge.zapt => MTRCallbackBridge.zapt} (74%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPAttributeTLVValueDecoder.mm => MTRAttributeTLVValueDecoder.mm} (99%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPCallbackBridge.mm => MTRCallbackBridge.mm} (81%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPCallbackBridge_internal.h => MTRCallbackBridge_internal.h} (54%) create mode 100644 src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h rename src/darwin/Framework/CHIP/zap-generated/{CHIPClustersObjc.h => MTRClustersObjc.h} (81%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPClustersObjc.mm => MTRClustersObjc.mm} (82%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPClustersObjc_internal.h => MTRClustersObjc_internal.h} (72%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPCommandPayloadsObjc.h => MTRCommandPayloadsObjc.h} (92%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPCommandPayloadsObjc.mm => MTRCommandPayloadsObjc.mm} (87%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPEventTLVValueDecoder.mm => MTREventTLVValueDecoder.mm} (89%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPStructsObjc.h => MTRStructsObjc.h} (71%) rename src/darwin/Framework/CHIP/zap-generated/{CHIPStructsObjc.mm => MTRStructsObjc.mm} (87%) delete mode 100644 src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h rename src/darwin/Framework/CHIPTests/{MatterCertificateTests.m => MTRCertificateTests.m} (88%) rename src/darwin/Framework/CHIPTests/{CHIPClustersTests.m => MTRClustersTests.m} (61%) rename src/darwin/Framework/CHIPTests/{CHIPControllerTests.m => MTRControllerTests.m} (67%) rename src/darwin/Framework/CHIPTests/{CHIPDeviceTests.m => MTRDeviceTests.m} (83%) rename src/darwin/Framework/CHIPTests/{CHIPErrorTestUtils.h => MTRErrorTestUtils.h} (95%) rename src/darwin/Framework/CHIPTests/{CHIPErrorTestUtils.mm => MTRErrorTestUtils.mm} (82%) rename src/darwin/Framework/CHIPTests/{CHIPSetupPayloadParserTests.m => MTRSetupPayloadParserTests.m} (56%) rename src/darwin/Framework/CHIPTests/{CHIPTestKeys.h => MTRTestKeys.h} (91%) rename src/darwin/Framework/CHIPTests/{CHIPTestKeys.m => MTRTestKeys.m} (92%) rename src/darwin/Framework/CHIPTests/{CHIPTestStorage.h => MTRTestStorage.h} (90%) rename src/darwin/Framework/CHIPTests/{CHIPTestStorage.m => MTRTestStorage.m} (93%) rename src/darwin/Framework/CHIPTests/{CHIPThreadOperationalDatasetTests.mm => MTRThreadOperationalDatasetTests.mm} (63%) rename src/darwin/Framework/CHIPTests/{CHIPXPCListenerSampleTests.m => MTRXPCListenerSampleTests.m} (78%) rename src/darwin/Framework/CHIPTests/{CHIPXPCProtocolTests.m => MTRXPCProtocolTests.m} (59%) create mode 100644 src/darwin/Framework/Matter.xcodeproj/project.pbxproj rename src/darwin/Framework/{CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework Tests.xcscheme => Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework Tests.xcscheme} (82%) rename src/darwin/Framework/{CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework.xcscheme => Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework.xcscheme} (87%) create mode 100644 zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h create mode 100644 zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index b4c8efdd639e60..26b2811401267e 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -20,8 +20,7 @@ on: workflow_dispatch: concurrency: - group: - ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == + group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} cancel-in-progress: true @@ -76,47 +75,68 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ always() }} && ${{ !env.ACT }} with: - name: - bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: | .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - - name: Build Apps - timeout-minutes: 60 + - name: Delete Defaults + run: defaults delete com.apple.dt.xctest.tool + continue-on-error: true + - name: Run macOS Build + timeout-minutes: 40 + # Enable -Werror by hand here, because the Xcode config can't + # enable it for various reasons. Keep whatever Xcode settings + # for OTHER_CFLAGS exist by using ${inherited}. + # + # Disable -Wmacro-redefined because CHIP_DEVICE_CONFIG_ENABLE_MDNS + # seems to be unconditionally defined in CHIPDeviceBuildConfig.h, + # which is apparently being included after CHIPDeviceConfig.h. + run: xcodebuild -target "Matter" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-macro-redefined' + working-directory: src/darwin/Framework + - name: Copying Framework to Temporary Path + continue-on-error: true run: | - ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py \ - --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT} \ - --target darwin-x64-all-clusters-${BUILD_VARIANT} \ - --target darwin-x64-lock-${BUILD_VARIANT} \ - --target darwin-x64-ota-provider-${BUILD_VARIANT} \ - --target darwin-x64-ota-requestor-${BUILD_VARIANT} \ - --target darwin-x64-tv-app-${BUILD_VARIANT} \ - build \ - --copy-artifacts-to objdir-clone \ - " - - name: Run Tests - timeout-minutes: 60 - run: | - ./scripts/run_in_build_env.sh \ - "./scripts/tests/run_test_suite.py \ - --chip-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT}/darwin-framework-tool \ - --target-skip-glob '{TestGroupMessaging}' \ - run \ - --iterations 1 \ - --test-timeout-seconds 120 \ - --all-clusters-app ./out/darwin-x64-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \ - --lock-app ./out/darwin-x64-lock-${BUILD_VARIANT}/chip-lock-app \ - --ota-provider-app ./out/darwin-x64-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \ - --ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \ - --tv-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \ - " + mkdir -p /tmp/macos_framework_output + ls -la /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/ + mv /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/Matter.framework /tmp/macos_framework_output + ls -la /tmp/macos_framework_output + # Disabling for now + # + # - name: Build Apps + # timeout-minutes: 60 + # run: | + # ./scripts/run_in_build_env.sh \ + # "./scripts/build/build_examples.py \ + # --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT} \ + # --target darwin-x64-all-clusters-${BUILD_VARIANT} \ + # --target darwin-x64-lock-${BUILD_VARIANT} \ + # --target darwin-x64-ota-provider-${BUILD_VARIANT} \ + # --target darwin-x64-ota-requestor-${BUILD_VARIANT} \ + # --target darwin-x64-tv-app-${BUILD_VARIANT} \ + # build \ + # --copy-artifacts-to objdir-clone \ + # " + # - name: Run Tests + # timeout-minutes: 60 + # run: | + # ./scripts/run_in_build_env.sh \ + # "./scripts/tests/run_test_suite.py \ + # --chip-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT}/darwin-framework-tool \ + # --target-skip-glob '{TestGroupMessaging}' \ + # run \ + # --iterations 1 \ + # --test-timeout-seconds 120 \ + # --all-clusters-app ./out/darwin-x64-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \ + # --lock-app ./out/darwin-x64-lock-${BUILD_VARIANT}/chip-lock-app \ + # --ota-provider-app ./out/darwin-x64-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \ + # --ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \ + # --tv-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \ + # " - name: Uploading core files uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: /cores/ # Cores are big; don't hold on to them too long. retention-days: 5 @@ -124,15 +144,13 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: ~/Library/Logs/DiagnosticReports/ - name: Uploading objdir for debugging uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: objdir-clone/ # objdirs are big; don't hold on to them too long. retention-days: 5 diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index 258d2d66336833..a94894e5fbdabb 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -66,11 +66,11 @@ jobs: - name: Run iOS Build Debug timeout-minutes: 30 working-directory: src/darwin/Framework - run: xcodebuild -target "CHIP" -sdk iphoneos + run: xcodebuild -target "Matter" -sdk iphoneos - name: Run iOS Build Release timeout-minutes: 30 working-directory: src/darwin/Framework - run: xcodebuild -target "CHIP" -sdk iphoneos -configuration Release + run: xcodebuild -target "Matter" -sdk iphoneos -configuration Release - name: Clean Build run: xcodebuild clean working-directory: src/darwin/Framework @@ -78,7 +78,7 @@ jobs: run: defaults delete com.apple.dt.xctest.tool continue-on-error: true - name: Run macOS Build - timeout-minutes: 30 + timeout-minutes: 40 # Enable -Werror by hand here, because the Xcode config can't # enable it for various reasons. Keep whatever Xcode settings # for OTHER_CFLAGS exist by using ${inherited}. @@ -86,15 +86,23 @@ jobs: # Disable -Wmacro-redefined because CHIP_DEVICE_CONFIG_ENABLE_MDNS # seems to be unconditionally defined in CHIPDeviceBuildConfig.h, # which is apparently being included after CHIPDeviceConfig.h. - run: xcodebuild -target "CHIP" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-macro-redefined' + run: xcodebuild -target "Matter" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-macro-redefined' working-directory: src/darwin/Framework + - name: Copying Framework to Temporary Path + continue-on-error: true + run: | + mkdir -p /tmp/macos_framework_output + ls -la /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/ + mv /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/Matter.framework /tmp/macos_framework_output + ls -la /tmp/macos_framework_output - name: Clean Build run: xcodebuild clean working-directory: src/darwin/Framework - - name: Build example darwin-framework-tool - timeout-minutes: 15 - run: | - scripts/examples/gn_build_example.sh examples/darwin-framework-tool out/debug chip_config_network_layer_ble=false is_asan=true + # Disabling for now + # - name: Build example darwin-framework-tool + # timeout-minutes: 15 + # run: | + # scripts/examples/gn_build_example.sh examples/darwin-framework-tool out/debug chip_config_network_layer_ble=false is_asan=true - name: Build example All Clusters Server timeout-minutes: 15 run: | @@ -115,7 +123,7 @@ jobs: run: | mkdir -p /tmp/darwin/framework-tests ../../../out/debug/chip-all-clusters-app --interface-id -1 > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) & - xcodebuild test -target "CHIP" -scheme "CHIP Framework Tests" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-incomplete-umbrella' > >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2) + xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-incomplete-umbrella' > >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2) working-directory: src/darwin/Framework - name: Uploading log files uses: actions/upload-artifact@v2 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 72fc925d80c3dc..645c75d4bbf007 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -177,7 +177,7 @@ jobs: .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - name: Build Apps - timeout-minutes: 40 + timeout-minutes: 60 run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ @@ -240,8 +240,7 @@ jobs: container: image: connectedhomeip/chip-build:0.5.79 - options: - --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0 + options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0 net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1" steps: @@ -249,8 +248,7 @@ jobs: uses: actions/checkout@v2 - name: Checkout submodules run: scripts/checkout_submodules.py --shallow --platform linux - - name: - Try to ensure the directories for core dumping exist and we + - name: Try to ensure the directories for core dumping exist and we can write them. run: | mkdir /tmp/cores || true @@ -263,32 +261,30 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ always() }} && ${{ !env.ACT }} with: - name: - bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: | .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - name: Build Python REPL and example apps timeout-minutes: 50 run: | - scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env' - ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py \ - --target linux-x64-all-clusters-no-ble-no-wifi-tsan-clang-test \ - --target linux-x64-python-bindings \ - build \ - --copy-artifacts-to objdir-clone \ - " + scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env' + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py \ + --target linux-x64-all-clusters-no-ble-no-wifi-tsan-clang-test \ + --target linux-x64-python-bindings \ + build \ + --copy-artifacts-to objdir-clone \ + " - name: Run Tests timeout-minutes: 40 run: | - scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --script-args "--log-level INFO -t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout"' + scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --script-args "--log-level INFO -t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout"' - name: Uploading core files uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-core-linux-python-repl + name: crash-core-linux-python-repl path: /tmp/cores/ # Cores are big; don't hold on to them too long. retention-days: 5 @@ -296,8 +292,7 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-objdir-linux-python-repl + name: crash-objdir-linux-python-repl path: objdir-clone/ # objdirs are big; don't hold on to them too long. retention-days: 5 @@ -346,31 +341,29 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ always() }} && ${{ !env.ACT }} with: - name: - bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} path: | .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - name: Build Python REPL and example apps timeout-minutes: 50 run: | - scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env' - ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py \ - --target darwin-x64-all-clusters-${BUILD_VARIANT}-test \ - build \ - --copy-artifacts-to objdir-clone \ - " + scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env' + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py \ + --target darwin-x64-all-clusters-${BUILD_VARIANT}-test \ + build \ + --copy-artifacts-to objdir-clone \ + " - name: Run Tests timeout-minutes: 30 run: | - scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/darwin-x64-all-clusters-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 3840 --interface-id -1" --script-args "-t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout"' + scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/darwin-x64-all-clusters-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 3840 --interface-id -1" --script-args "-t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout"' - name: Uploading core files uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-core-darwin-python-repl + name: crash-core-darwin-python-repl path: /cores/ # Cores are big; don't hold on to them too long. retention-days: 5 @@ -378,15 +371,13 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-log-darwin-python-repl + name: crash-log-darwin-python-repl path: ~/Library/Logs/DiagnosticReports/ - name: Uploading objdir for debugging uses: actions/upload-artifact@v2 if: ${{ failure() }} && ${{ !env.ACT }} with: - name: - crash-objdir-darwin-python-repl + name: crash-objdir-darwin-python-repl path: objdir-clone/ # objdirs are big; don't hold on to them too long. retention-days: 5 diff --git a/.restyled.yaml b/.restyled.yaml index 937a8b4afa2a53..95780a56920d35 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -72,6 +72,7 @@ exclude: - "scripts/idl/tests/outputs/**/*" # Matches generated output 1:1 - "examples/chef/sample_app_util/test_files/*.yaml" - "examples/chef/zzz_generated/**/*" + - "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm" # https://github.com/project-chip/connectedhomeip/issues/20236 changed_paths: diff --git a/BUILD.gn b/BUILD.gn index 7e3cc729bb96ea..f02d6fb3e6888f 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -226,9 +226,9 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") { enable_standalone_chip_tool_build = enable_default_builds && host_os != "win" - # Build the darwin-framework-tool example. - enable_standalone_chip_tool_darwin_build = - enable_default_builds && host_os == "mac" + # Build the darwin-framework-tool example. By default this is off, because + # it requires a preceding XCode build of the framework. + enable_standalone_chip_tool_darwin_build = false # Build the shell example. enable_standalone_shell_build = enable_default_builds && host_os != "win" diff --git a/examples/darwin-framework-tool/BUILD.gn b/examples/darwin-framework-tool/BUILD.gn index 58d4dd3dd18196..6bfdef420fefa0 100644 --- a/examples/darwin-framework-tool/BUILD.gn +++ b/examples/darwin-framework-tool/BUILD.gn @@ -23,11 +23,17 @@ assert(chip_build_tools) config("config") { include_dirs = [ ".", + "${chip_root}/src/darwin/Framework/CHIP/zap-generated", + "${chip_root}/src/darwin/Framework/CHIP", + "${chip_root}/examples/darwin-framework-tool/commands/common", "${chip_root}/zzz_generated/darwin-framework-tool", "${chip_root}/zzz_generated/controller-clusters", "${chip_root}/examples/chip-tool/commands/clusters/ComplexArgument.h", + "/tmp/macos_framework_output", ] + framework_dirs = [ "/tmp/macos_framework_output" ] + defines = [ "CONFIG_ENABLE_YAML_TESTS=${config_enable_yaml_tests}", "CONFIG_USE_INTERACTIVE_MODE=${config_use_interactive_mode}", @@ -51,6 +57,7 @@ executable("darwin-framework-tool") { # privilege-storage.cpp. "${chip_root}/src/app/util/privilege-storage.cpp", "${chip_root}/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp", + "${chip_root}/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h", "commands/clusters/ClusterCommandBridge.h", "commands/clusters/ModelCommandBridge.mm", "commands/clusters/ReportCommandBridge.h", @@ -58,6 +65,9 @@ executable("darwin-framework-tool") { "commands/common/CHIPCommandBridge.mm", "commands/common/CHIPCommandStorageDelegate.mm", "commands/common/CHIPToolKeypair.mm", + "commands/common/MTRError.mm", + "commands/common/MTRError_Utils.h", + "commands/common/MTRLogging.h", "commands/pairing/Commands.h", "commands/pairing/OpenCommissioningWindowCommand.h", "commands/pairing/OpenCommissioningWindowCommand.mm", @@ -73,19 +83,24 @@ executable("darwin-framework-tool") { } if (config_enable_yaml_tests) { - sources += [ "${chip_root}/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm" ] + sources += [ "${chip_root}/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm" ] } deps = [ "${chip_root}/examples/chip-tool:chip-tool-utils", "${chip_root}/src/app/server", - "${chip_root}/src/darwin/Framework/CHIP", + "${chip_root}/src/darwin/Framework/CHIP:static-matter", "${chip_root}/src/lib", "${chip_root}/src/platform", "${chip_root}/third_party/inipp", "${chip_root}/third_party/jsoncpp", ] + frameworks = [ + "Matter.framework", + "Security.framework", + ] + public_configs = [ ":config" ] output_dir = root_out_dir diff --git a/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h index 4eac3990aba8c4..c7c71a324e2a0d 100644 --- a/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h @@ -18,8 +18,9 @@ #pragma once -#import -#import // For NSObjectFromCHIPTLV +#import "MTRError_Utils.h" +#import + #include #include "ModelCommandBridge.h" @@ -46,7 +47,7 @@ class ClusterCommand : public ModelCommand { ~ClusterCommand() {} - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override { chip::TLV::TLVWriter writer; chip::TLV::TLVReader reader; @@ -67,7 +68,7 @@ class ClusterCommand : public ModelCommand { return ClusterCommand::SendCommand(device, endpointId, mClusterId, mCommandId, commandFields); } - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, chip::CommandId commandId, id _Nonnull commandFields) { uint16_t repeatCount = mRepeatCount.ValueOr(1); diff --git a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h index adb1d21dece650..ad86fa79aa690e 100644 --- a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h @@ -42,7 +42,7 @@ class ModelCommand : public CHIPCommandBridge CHIP_ERROR RunCommand() override; chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(10); } - virtual CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endPointId) = 0; + virtual CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endPointId) = 0; private: chip::NodeId mNodeId; diff --git a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm index 8a27391324cdc5..e039391b8e6289 100644 --- a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm @@ -19,34 +19,37 @@ #include "ModelCommandBridge.h" #include +#import + using namespace ::chip; CHIP_ERROR ModelCommand::RunCommand() { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip-tool.command", DISPATCH_QUEUE_SERIAL); + MTRDeviceController * commissioner = CurrentCommissioner(); ChipLogProgress(chipTool, "Sending command to node 0x" ChipLogFormatX64, ChipLogValueX64(mNodeId)); - [CurrentCommissioner() getConnectedDevice:mNodeId - queue:callbackQueue - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error != nil) { - SetCommandExitStatus(error, "Error getting connected device"); - return; - } - - CHIP_ERROR err; - if (device == nil) { - err = CHIP_ERROR_INTERNAL; - } else { - err = SendCommand(device, mEndPointId); - } - - if (err != CHIP_NO_ERROR) { - ChipLogError(chipTool, "Error: %s", chip::ErrorStr(err)); - SetCommandExitStatus(err); - return; - } - }]; + [commissioner getDevice:mNodeId + queue:callbackQueue + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error != nil) { + SetCommandExitStatus(error, "Error getting connected device"); + return; + } + + CHIP_ERROR err; + if (device == nil) { + err = CHIP_ERROR_INTERNAL; + } else { + err = SendCommand(device, mEndPointId); + } + + if (err != CHIP_NO_ERROR) { + ChipLogError(chipTool, "Error: %s", chip::ErrorStr(err)); + SetCommandExitStatus(err); + return; + } + }]; return CHIP_NO_ERROR; } diff --git a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h index 17baa322ddc581..3357b12a8eada6 100644 --- a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h @@ -50,10 +50,10 @@ class ReadAttribute : public ModelCommand { ~ReadAttribute() {} - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [device readAttributeWithEndpointId:[NSNumber numberWithUnsignedShort:endpointId] @@ -125,10 +125,10 @@ class SubscribeAttribute : public ModelCommand { ~SubscribeAttribute() {} - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; [device subscribeAttributeWithEndpointId:[NSNumber numberWithUnsignedShort:endpointId] @@ -195,11 +195,11 @@ class SubscribeEvent : public ModelCommand { ~SubscribeEvent() {} - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; [device subscribeWithQueue:callbackQueue diff --git a/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h index 69c52aa21797ac..37df173a8c417b 100644 --- a/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h @@ -22,6 +22,9 @@ #include "ModelCommandBridge.h" +#import "MTRError_Utils.h" +#import + class WriteAttribute : public ModelCommand { public: WriteAttribute() @@ -44,7 +47,7 @@ class WriteAttribute : public ModelCommand { ~WriteAttribute() {} - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override { chip::TLV::TLVWriter writer; chip::TLV::TLVReader reader; @@ -66,7 +69,7 @@ class WriteAttribute : public ModelCommand { return WriteAttribute::SendCommand(device, endpointId, mClusterId, mAttributeId, value); } - CHIP_ERROR SendCommand(CHIPDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, + CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, chip::AttributeId attributeId, id _Nonnull value) { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.h b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.h index 2891a8f7e05e50..5892d21ec8f079 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.h +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.h @@ -17,7 +17,7 @@ */ #pragma once -#import +#import #include #include #include @@ -67,9 +67,9 @@ class CHIPCommandBridge : public Command void SetIdentity(const char * identity); // This method returns the commissioner instance to be used for running the command. - CHIPDeviceController * CurrentCommissioner(); + MTRDeviceController * CurrentCommissioner(); - CHIPDeviceController * GetCommissioner(const char * identity); + MTRDeviceController * GetCommissioner(const char * identity); // Will log the given string and given error (as progress if success, error // if failure). @@ -106,10 +106,10 @@ class CHIPCommandBridge : public Command void MaybeTearDownStack(); // Our three controllers: alpha, beta, gamma. - static std::map mControllers; + static std::map mControllers; // The current controller; the one the current command should be using. - CHIPDeviceController * mCurrentController; + MTRDeviceController * mCurrentController; std::condition_variable cvWaitingForResponse; std::mutex cvWaitingForResponseMutex; diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm index 995c9f7d686fe1..caebb41c20de2a 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm @@ -19,16 +19,17 @@ #include "CHIPCommandBridge.h" #import "CHIPToolKeypair.h" -#import -#import +#import #include #include +#include "MTRError_Utils.h" + const uint16_t kListenPort = 5541; static CHIPToolPersistentStorageDelegate * storage = nil; std::set CHIPCommandBridge::sDeferredCleanups; -std::map CHIPCommandBridge::mControllers; +std::map CHIPCommandBridge::mControllers; CHIP_ERROR CHIPCommandBridge::Run() { @@ -61,13 +62,13 @@ CHIPToolKeypair * nocSigner = [[CHIPToolKeypair alloc] init]; storage = [[CHIPToolPersistentStorageDelegate alloc] init]; - auto factory = [MatterControllerFactory sharedInstance]; + auto factory = [MTRControllerFactory sharedInstance]; if (factory == nil) { ChipLogError(chipTool, "Controller factory is nil"); return CHIP_ERROR_INTERNAL; } - auto params = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + auto params = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; params.port = @(kListenPort); params.startServer = YES; @@ -82,9 +83,9 @@ constexpr const char * identities[] = { kIdentityAlpha, kIdentityBeta, kIdentityGamma }; for (size_t i = 0; i < ArraySize(identities); ++i) { - auto controllerParams = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:nocSigner - fabricId:(i + 1) - ipk:ipk]; + auto controllerParams = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:nocSigner + fabricId:(i + 1) + ipk:ipk]; // We're not sure whether we're creating a new fabric or using an // existing one, so just try both. @@ -124,9 +125,9 @@ mCurrentController = mControllers[name]; } -CHIPDeviceController * CHIPCommandBridge::CurrentCommissioner() { return mCurrentController; } +MTRDeviceController * CHIPCommandBridge::CurrentCommissioner() { return mCurrentController; } -CHIPDeviceController * CHIPCommandBridge::GetCommissioner(const char * identity) { return mControllers[identity]; } +MTRDeviceController * CHIPCommandBridge::GetCommissioner(const char * identity) { return mControllers[identity]; } void CHIPCommandBridge::ShutdownCommissioner() { @@ -137,7 +138,7 @@ mControllers.clear(); mCurrentController = nil; - [[MatterControllerFactory sharedInstance] shutdown]; + [[MTRControllerFactory sharedInstance] shutdown]; } CHIP_ERROR CHIPCommandBridge::StartWaiting(chip::System::Clock::Timeout duration) @@ -167,13 +168,13 @@ if (logString != nullptr) { LogNSError(logString, error); } - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(error); SetCommandExitStatus(err); } void CHIPCommandBridge::LogNSError(const char * logString, NSError * error) { - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(error); if (err == CHIP_NO_ERROR) { ChipLogProgress(chipTool, "%s: %s", logString, chip::ErrorStr(err)); } else { diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.h b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.h index e4e5e14a2011bd..c2f7ba220e9e50 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.h +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.h @@ -1,9 +1,9 @@ -#import #import +#import NS_ASSUME_NONNULL_BEGIN -@interface CHIPToolPersistentStorageDelegate : NSObject +@interface CHIPToolPersistentStorageDelegate : NSObject - (nullable NSData *)storageDataForKey:(NSString *)key; - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key; - (BOOL)removeStorageDataForKey:(NSString *)key; diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm index 5d217ed56b4245..7712eab13cd29f 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm @@ -1,8 +1,10 @@ #include "CHIPCommandStorageDelegate.h" +#import + NSString * const kCHIPToolDefaultsDomain = @"com.apple.chiptool"; -id CHIPGetDomainValueForKey(NSString * domain, NSString * key) +id MTRGetDomainValueForKey(NSString * domain, NSString * key) { id value = (id) CFBridgingRelease(CFPreferencesCopyAppValue((CFStringRef) key, (CFStringRef) domain)); if (value) { @@ -11,13 +13,13 @@ id CHIPGetDomainValueForKey(NSString * domain, NSString * key) return nil; } -BOOL CHIPSetDomainValueForKey(NSString * domain, NSString * key, id value) +BOOL MTRSetDomainValueForKey(NSString * domain, NSString * key, id value) { CFPreferencesSetAppValue((CFStringRef) key, (__bridge CFPropertyListRef _Nullable)(value), (CFStringRef) domain); return CFPreferencesAppSynchronize((CFStringRef) domain) == true; } -BOOL CHIPRemoveDomainValueForKey(NSString * domain, NSString * key) +BOOL MTRRemoveDomainValueForKey(NSString * domain, NSString * key) { CFPreferencesSetAppValue((CFStringRef) key, nullptr, (CFStringRef) domain); return CFPreferencesAppSynchronize((CFStringRef) domain) == true; @@ -40,7 +42,7 @@ BOOL CHIPClearAllDomain(NSString * domain) NSLog(@"Removing keys: %@ %@", allKeys, domain); for (id key in allKeys) { NSLog(@"Removing key: %@", key); - if (!CHIPRemoveDomainValueForKey(domain, (NSString *) key)) { + if (!MTRRemoveDomainValueForKey(domain, (NSString *) key)) { return NO; } } @@ -58,7 +60,7 @@ - (BOOL)deleteAllStorage - (nullable NSData *)storageDataForKey:(NSString *)key { - NSData * value = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, key); + NSData * value = MTRGetDomainValueForKey(kCHIPToolDefaultsDomain, key); NSLog(@"CHIPPersistentStorageDelegate Get Value for Key: %@, value %@", key, value); return value; } @@ -70,10 +72,10 @@ - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key - (BOOL)removeStorageDataForKey:(NSString *)key { - if (CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, key) == nil) { + if (MTRGetDomainValueForKey(kCHIPToolDefaultsDomain, key) == nil) { return NO; } - return CHIPRemoveDomainValueForKey(kCHIPToolDefaultsDomain, key); + return MTRRemoveDomainValueForKey(kCHIPToolDefaultsDomain, key); } @end diff --git a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h index b1721a612dedfb..bd92c406c789c3 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h +++ b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h @@ -1,11 +1,11 @@ #include "CHIPCommandStorageDelegate.h" -#import +#import #include -@interface CHIPToolKeypair : NSObject +@interface CHIPToolKeypair : NSObject - (BOOL)initialize; - (NSData *)ECDSA_sign_message_raw:(NSData *)message; -- (SecKeyRef)pubkey; +- (SecKeyRef)publicKey; - (CHIP_ERROR)Serialize:(chip::Crypto::P256SerializedKeypair &)output; - (CHIP_ERROR)Deserialize:(chip::Crypto::P256SerializedKeypair &)input; - (CHIP_ERROR)createOrLoadKeys:(CHIPToolPersistentStorageDelegate *)storage; diff --git a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm index 6525a9d319dc2b..56be3fa36b15a3 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm @@ -1,5 +1,5 @@ #import "CHIPToolKeypair.h" -#include +#import #include #include #include @@ -44,7 +44,7 @@ - (NSData *)ECDSA_sign_message_raw:(NSData *)message return out_signature; } -- (SecKeyRef)pubkey +- (SecKeyRef)publicKey { chip::Crypto::P256PublicKey publicKey = _mKeyPair.Pubkey(); NSData * publicKeyNSData = [NSData dataWithBytes:publicKey.Bytes() length:publicKey.Length()]; diff --git a/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h b/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h new file mode 100644 index 00000000000000..a71c5301deba2c --- /dev/null +++ b/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h @@ -0,0 +1,32 @@ +/* + * + * Copyright (c) 2021 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MTR_CLUSTER_EXTERNS_H +#define MTR_CLUSTER_EXTERNS_H + +#import + +#import + +@interface MTRCluster (PrivateExtensions) +@property (readonly, nonatomic) dispatch_queue_t callbackQueue; + +- (chip::ByteSpan)asByteSpan:(NSData *)value; +- (chip::CharSpan)asCharSpan:(NSString *)value; +@end + +#endif diff --git a/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h b/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h new file mode 100644 index 00000000000000..33e8b613e29065 --- /dev/null +++ b/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h @@ -0,0 +1,40 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MTR_DEVICE_EXTERNS_H +#define MTR_DEVICE_EXTERNS_H + +#import +#import + +#include +#include +#include + +NS_ASSUME_NONNULL_BEGIN + +@interface MTRDevice (InternalIntrospection) + +// TODO: remove me +// Used to access the internal chip::DeviceProxy from TestCommandBridge +- (chip::DeviceProxy *)internalDevice; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* MTR_DEVICE_EXTERNS_H */ diff --git a/examples/darwin-framework-tool/commands/common/MTRError.mm b/examples/darwin-framework-tool/commands/common/MTRError.mm new file mode 100644 index 00000000000000..5d0abd4b0137e8 --- /dev/null +++ b/examples/darwin-framework-tool/commands/common/MTRError.mm @@ -0,0 +1,222 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import "MTRError_Utils.h" +#import "MTRLogging.h" +#import + +#import +#import +#import +#import +#import + +// Stolen for now from the framework, need to export this properly. +@interface MTRErrorHolder : NSObject +@property (nonatomic, readonly) CHIP_ERROR error; +@end + +CHIP_ERROR MTRErrorToCHIPErrorCode(NSError * error) +{ + if (error == nil) { + return CHIP_NO_ERROR; + } + + if (error.domain == MTRInteractionErrorDomain) { + chip::app::StatusIB status(static_cast(error.code)); + if (error.userInfo != nil && error.userInfo[@"clusterStatus"] != nil) { + status.mClusterStatus.Emplace([error.userInfo[@"clusterStatus"] unsignedCharValue]); + } + return status.ToChipError(); + } + + if (error.domain != MTRErrorDomain) { + return CHIP_ERROR_INTERNAL; + } + + if (error.userInfo != nil) { + id underlyingError = error.userInfo[@"underlyingError"]; + if (underlyingError != nil && [underlyingError isKindOfClass:[MTRErrorHolder class]]) { + return ((MTRErrorHolder *) underlyingError).error; + } + } + + chip::ChipError::StorageType code; + switch (error.code) { + case MTRErrorCodeInvalidStringLength: + code = CHIP_ERROR_INVALID_STRING_LENGTH.AsInteger(); + break; + case MTRErrorCodeInvalidIntegerValue: + code = CHIP_ERROR_INVALID_INTEGER_VALUE.AsInteger(); + break; + case MTRErrorCodeInvalidArgument: + code = CHIP_ERROR_INVALID_ARGUMENT.AsInteger(); + break; + case MTRErrorCodeInvalidMessageLength: + code = CHIP_ERROR_INVALID_MESSAGE_LENGTH.AsInteger(); + break; + case MTRErrorCodeInvalidState: + code = CHIP_ERROR_INCORRECT_STATE.AsInteger(); + break; + case MTRErrorCodeIntegrityCheckFailed: + code = CHIP_ERROR_INTEGRITY_CHECK_FAILED.AsInteger(); + break; + case MTRErrorCodeTimeout: + code = CHIP_ERROR_TIMEOUT.AsInteger(); + break; + case MTRErrorCodeGeneralError: { + if (error.userInfo != nil && error.userInfo[@"errorCode"] != nil) { + code = static_cast([error.userInfo[@"errorCode"] unsignedLongValue]); + break; + } + // Weird error we did not create. Fall through. + default: + code = CHIP_ERROR_INTERNAL.AsInteger(); + break; + } + } + + return chip::ChipError(code); +} + +// Convert TLV data into NSObject +id NSObjectFromCHIPTLV(chip::TLV::TLVReader * data) +{ + chip::TLV::TLVType dataTLVType = data->GetType(); + switch (dataTLVType) { + case chip::TLV::kTLVType_SignedInteger: { + int64_t val; + CHIP_ERROR err = data->Get(val); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV signed integer decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary dictionaryWithObjectsAndKeys:MTRSignedIntegerValueType, MTRTypeKey, [NSNumber numberWithLongLong:val], + MTRValueKey, nil]; + } + case chip::TLV::kTLVType_UnsignedInteger: { + uint64_t val; + CHIP_ERROR err = data->Get(val); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV unsigned integer decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary dictionaryWithObjectsAndKeys:MTRUnsignedIntegerValueType, MTRTypeKey, + [NSNumber numberWithUnsignedLongLong:val], MTRValueKey, nil]; + } + case chip::TLV::kTLVType_Boolean: { + bool val; + CHIP_ERROR err = data->Get(val); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV boolean decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary + dictionaryWithObjectsAndKeys:MTRBooleanValueType, MTRTypeKey, [NSNumber numberWithBool:val], MTRValueKey, nil]; + } + case chip::TLV::kTLVType_FloatingPointNumber: { + // Try float first + float floatValue; + CHIP_ERROR err = data->Get(floatValue); + if (err == CHIP_NO_ERROR) { + return @ { MTRTypeKey : MTRFloatValueType, MTRValueKey : [NSNumber numberWithFloat:floatValue] }; + } + double val; + err = data->Get(val); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV floating point decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary + dictionaryWithObjectsAndKeys:MTRDoubleValueType, MTRTypeKey, [NSNumber numberWithDouble:val], MTRValueKey, nil]; + } + case chip::TLV::kTLVType_UTF8String: { + uint32_t len = data->GetLength(); + const uint8_t * ptr; + CHIP_ERROR err = data->GetDataPtr(ptr); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV UTF8String decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary dictionaryWithObjectsAndKeys:MTRUTF8StringValueType, MTRTypeKey, + [[NSString alloc] initWithBytes:ptr length:len encoding:NSUTF8StringEncoding], MTRValueKey, nil]; + } + case chip::TLV::kTLVType_ByteString: { + uint32_t len = data->GetLength(); + const uint8_t * ptr; + CHIP_ERROR err = data->GetDataPtr(ptr); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV ByteString decoding failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary dictionaryWithObjectsAndKeys:MTROctetStringValueType, MTRTypeKey, + [NSData dataWithBytes:ptr length:len], MTRValueKey, nil]; + } + case chip::TLV::kTLVType_Null: { + return [NSDictionary dictionaryWithObjectsAndKeys:MTRNullValueType, MTRTypeKey, nil]; + } + case chip::TLV::kTLVType_Structure: + case chip::TLV::kTLVType_Array: { + NSString * typeName; + switch (dataTLVType) { + case chip::TLV::kTLVType_Structure: + typeName = MTRStructureValueType; + break; + case chip::TLV::kTLVType_Array: + typeName = MTRArrayValueType; + break; + default: + typeName = @"Unsupported"; + break; + } + chip::TLV::TLVType tlvType; + CHIP_ERROR err = data->EnterContainer(tlvType); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV container entering failed", chip::ErrorStr(err)); + return nil; + } + NSMutableArray * array = [[NSMutableArray alloc] init]; + while ((err = data->Next()) == CHIP_NO_ERROR) { + chip::TLV::Tag tag = data->GetTag(); + id value = NSObjectFromCHIPTLV(data); + if (value == nullptr) { + MTR_LOG_ERROR("Error when decoding TLV container"); + return nil; + } + NSMutableDictionary * arrayElement = [NSMutableDictionary dictionary]; + [arrayElement setObject:value forKey:MTRDataKey]; + if (dataTLVType == chip::TLV::kTLVType_Structure) { + [arrayElement setObject:[NSNumber numberWithUnsignedLong:TagNumFromTag(tag)] forKey:MTRContextTagKey]; + } + [array addObject:arrayElement]; + } + if (err != CHIP_END_OF_TLV) { + MTR_LOG_ERROR("Error(%s): TLV container decoding failed", chip::ErrorStr(err)); + return nil; + } + err = data->ExitContainer(tlvType); + if (err != CHIP_NO_ERROR) { + MTR_LOG_ERROR("Error(%s): TLV container exiting failed", chip::ErrorStr(err)); + return nil; + } + return [NSDictionary dictionaryWithObjectsAndKeys:typeName, MTRTypeKey, array, MTRValueKey, nil]; + } + default: + MTR_LOG_ERROR("Error: Unsupported TLV type for conversion: %u", (unsigned) data->GetType()); + return nil; + } +} diff --git a/examples/darwin-framework-tool/commands/common/MTRError_Utils.h b/examples/darwin-framework-tool/commands/common/MTRError_Utils.h new file mode 100644 index 00000000000000..470a4ad9e88c4b --- /dev/null +++ b/examples/darwin-framework-tool/commands/common/MTRError_Utils.h @@ -0,0 +1,26 @@ +/** + * + * Copyright (c) 2021 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +#include +#include + +#include + +CHIP_ERROR MTRErrorToCHIPErrorCode(NSError * error); +id NSObjectFromCHIPTLV(chip::TLV::TLVReader * data); diff --git a/src/darwin/Framework/CHIP/CHIPLogging.h b/examples/darwin-framework-tool/commands/common/MTRLogging.h similarity index 75% rename from src/darwin/Framework/CHIP/CHIPLogging.h rename to examples/darwin-framework-tool/commands/common/MTRLogging.h index 2d76a657e85745..4835e4f159d447 100644 --- a/src/darwin/Framework/CHIP/CHIPLogging.h +++ b/examples/darwin-framework-tool/commands/common/MTRLogging.h @@ -22,15 +22,15 @@ #import #if DEBUG -#define CHIP_LOG_DEBUG(format, ...) os_log(OS_LOG_DEFAULT, format, ##__VA_ARGS__) -#define CHIP_LOG_ERROR(format, ...) os_log(OS_LOG_DEFAULT, format, ##__VA_ARGS__) -#define CHIP_LOG_METHOD_ENTRY() \ +#define MTR_LOG_DEBUG(format, ...) os_log(OS_LOG_DEFAULT, format, ##__VA_ARGS__) +#define MTR_LOG_ERROR(format, ...) os_log(OS_LOG_DEFAULT, format, ##__VA_ARGS__) +#define MTR_LOG_METHOD_ENTRY() \ ({ os_log(OS_LOG_DEFAULT, "[<%@: %p> %@]", NSStringFromClass([self class]), self, NSStringFromSelector(_cmd)); }) #else -#define CHIP_LOG_DEBUG(...) -#define CHIP_LOG_ERROR(...) -#define CHIP_LOG_METHOD_ENTRY() ({}) +#define MTR_LOG_DEBUG(...) +#define MTR_LOG_ERROR(...) +#define MTR_LOG_METHOD_ENTRY() ({}) #endif diff --git a/examples/darwin-framework-tool/commands/interactive/Commands.h b/examples/darwin-framework-tool/commands/interactive/Commands.h index 59a06b6a60fe5b..722feb8ae2069a 100644 --- a/examples/darwin-framework-tool/commands/interactive/Commands.h +++ b/examples/darwin-framework-tool/commands/interactive/Commands.h @@ -18,6 +18,8 @@ #pragma once +#import + #include "../common/CHIPCommandBridge.h" #include diff --git a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.h b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.h index 98347747f64fc6..c6e8c5d85e45f1 100644 --- a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.h +++ b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.h @@ -18,6 +18,8 @@ #pragma once +#import + #include "../common/CHIPCommandBridge.h" #include "commands/common/Commands.h" diff --git a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm index 3ffe41c7744f94..24121ff7660f02 100644 --- a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm +++ b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm @@ -17,6 +17,7 @@ */ #include "InteractiveCommands.h" +#import #include #include diff --git a/examples/darwin-framework-tool/commands/pairing/Commands.h b/examples/darwin-framework-tool/commands/pairing/Commands.h index 1fed642addae64..164c952ffc2f4f 100644 --- a/examples/darwin-framework-tool/commands/pairing/Commands.h +++ b/examples/darwin-framework-tool/commands/pairing/Commands.h @@ -18,6 +18,8 @@ #pragma once +#import + #include "OpenCommissioningWindowCommand.h" #include "PairingCommandBridge.h" diff --git a/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.h b/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.h index c5af318e841f35..e9fc4ce373b352 100644 --- a/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.h +++ b/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.h @@ -17,6 +17,8 @@ #pragma once +#import + #include "../common/CHIPCommandBridge.h" class OpenCommissioningWindowCommand : public CHIPCommandBridge diff --git a/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.mm b/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.mm index e7f97bca379b0d..63078d94fed4e0 100644 --- a/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.mm +++ b/examples/darwin-framework-tool/commands/pairing/OpenCommissioningWindowCommand.mm @@ -15,7 +15,7 @@ * limitations under the License. */ -#import +#import #include "OpenCommissioningWindowCommand.h" diff --git a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.h b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.h index 92043c7b888088..cf736e0e193387 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.h +++ b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.h @@ -18,7 +18,7 @@ #pragma once #include "../common/CHIPCommandBridge.h" -#import +#import enum class PairingMode { diff --git a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm index 9e24db3d844ffb..8a6935e9c6df34 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm @@ -16,14 +16,15 @@ * */ -#import -#import +#import #include "../common/CHIPCommandBridge.h" #include "PairingCommandBridge.h" #include "PairingDelegateBridge.h" #include +#import "MTRError_Utils.h" + using namespace ::chip; using namespace ::chip::Controller; @@ -31,7 +32,8 @@ { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.pairing", DISPATCH_QUEUE_SERIAL); CHIPToolPairingDelegate * pairing = [[CHIPToolPairingDelegate alloc] init]; - CHIPCommissioningParameters * params = [[CHIPCommissioningParameters alloc] init]; + MTRCommissioningParameters * params = [[MTRCommissioningParameters alloc] init]; + MTRDeviceController * commissioner = CurrentCommissioner(); [pairing setDeviceID:mNodeId]; switch (mNetworkType) { @@ -49,9 +51,9 @@ [pairing setCommandBridge:this]; [pairing setParams:params]; - [pairing setCommissioner:CurrentCommissioner()]; + [pairing setCommissioner:commissioner]; - [CurrentCommissioner() setPairingDelegate:pairing queue:callbackQueue]; + [commissioner setPairingDelegate:pairing queue:callbackQueue]; } CHIP_ERROR PairingCommandBridge::RunCommand() @@ -81,7 +83,8 @@ void PairingCommandBridge::PairWithCode(NSError * __autoreleasing * error) { SetUpPairingDelegate(); - [CurrentCommissioner() pairDevice:mNodeId discriminator:mDiscriminator setupPINCode:mSetupPINCode error:error]; + MTRDeviceController * commissioner = CurrentCommissioner(); + [commissioner pairDevice:mNodeId discriminator:mDiscriminator setupPINCode:mSetupPINCode error:error]; } void PairingCommandBridge::PairWithPayload(NSError * __autoreleasing * error) @@ -89,63 +92,65 @@ NSString * payload = [NSString stringWithUTF8String:mOnboardingPayload]; SetUpPairingDelegate(); - [CurrentCommissioner() pairDevice:mNodeId onboardingPayload:payload error:error]; + MTRDeviceController * commissioner = CurrentCommissioner(); + [commissioner pairDevice:mNodeId onboardingPayload:payload error:error]; } void PairingCommandBridge::PairWithIPAddress(NSError * __autoreleasing * error) { SetUpPairingDelegate(); - [CurrentCommissioner() pairDevice:mNodeId - address:[NSString stringWithUTF8String:ipAddress] - port:mRemotePort - setupPINCode:mSetupPINCode - error:error]; + MTRDeviceController * commissioner = CurrentCommissioner(); + [commissioner pairDevice:mNodeId + address:[NSString stringWithUTF8String:ipAddress] + port:mRemotePort + setupPINCode:mSetupPINCode + error:error]; } void PairingCommandBridge::Unpair() { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip-tool.command", DISPATCH_QUEUE_SERIAL); - [CurrentCommissioner() - getConnectedDevice:mNodeId - queue:callbackQueue - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - CHIP_ERROR err = CHIP_NO_ERROR; - if (error) { - err = [CHIPError errorToCHIPErrorCode:error]; - LogNSError("Error: ", error); - SetCommandExitStatus(err); - } else if (device == nil) { - ChipLogError(chipTool, "Error: %s", chip::ErrorStr(CHIP_ERROR_INTERNAL)); - SetCommandExitStatus(CHIP_ERROR_INTERNAL); - } else { - ChipLogProgress(chipTool, "Attempting to unpair device %llu", mNodeId); - CHIPOperationalCredentials * opCredsCluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:callbackQueue]; - [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^( - NSNumber * _Nullable value, NSError * _Nullable readError) { - if (readError) { - CHIP_ERROR readErr = [CHIPError errorToCHIPErrorCode:readError]; - LogNSError("Failed to get current fabric: ", readError); - SetCommandExitStatus(readErr); - return; - } - CHIPOperationalCredentialsClusterRemoveFabricParams * params = - [[CHIPOperationalCredentialsClusterRemoveFabricParams alloc] init]; - params.fabricIndex = value; - [opCredsCluster removeFabricWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, - NSError * _Nullable removeError) { - CHIP_ERROR removeErr = CHIP_NO_ERROR; - if (removeError) { - removeErr = [CHIPError errorToCHIPErrorCode:removeError]; - LogNSError("Failed to remove current fabric: ", removeError); - } else { - ChipLogProgress(chipTool, "Successfully unpaired deviceId %llu", mNodeId); - } - SetCommandExitStatus(removeErr); - }]; - }]; - } - }]; + MTRDeviceController * commissioner = CurrentCommissioner(); + [commissioner getDevice:mNodeId + queue:callbackQueue + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + CHIP_ERROR err = CHIP_NO_ERROR; + if (error) { + err = MTRErrorToCHIPErrorCode(error); + LogNSError("Error: ", error); + SetCommandExitStatus(err); + } else if (device == nil) { + ChipLogError(chipTool, "Error: %s", chip::ErrorStr(CHIP_ERROR_INTERNAL)); + SetCommandExitStatus(CHIP_ERROR_INTERNAL); + } else { + ChipLogProgress(chipTool, "Attempting to unpair device %llu", mNodeId); + MTROperationalCredentials * opCredsCluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:callbackQueue]; + [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable readError) { + if (readError) { + CHIP_ERROR readErr = MTRErrorToCHIPErrorCode(readError); + LogNSError("Failed to get current fabric: ", readError); + SetCommandExitStatus(readErr); + return; + } + MTROperationalCredentialsClusterRemoveFabricParams * params = + [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; + params.fabricIndex = value; + [opCredsCluster removeFabricWithParams:params + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, + NSError * _Nullable removeError) { + CHIP_ERROR removeErr = CHIP_NO_ERROR; + if (removeError) { + removeErr = MTRErrorToCHIPErrorCode(removeError); + LogNSError("Failed to remove current fabric: ", removeError); + } else { + ChipLogProgress(chipTool, "Successfully unpaired deviceId %llu", mNodeId); + } + SetCommandExitStatus(removeErr); + }]; + }]; + } + }]; } diff --git a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.h b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.h index 641ac77e79501a..e295e084725701 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.h +++ b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.h @@ -18,11 +18,13 @@ #pragma once #include "PairingCommandBridge.h" -@interface CHIPToolPairingDelegate : NSObject +#import + +@interface CHIPToolPairingDelegate : NSObject @property PairingCommandBridge * commandBridge; @property chip::NodeId deviceID; -@property CHIPDeviceController * commissioner; -@property CHIPCommissioningParameters * params; +@property MTRDeviceController * commissioner; +@property MTRCommissioningParameters * params; - (void)onPairingComplete:(NSError *)error; - (void)onPairingDeleted:(NSError *)error; diff --git a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm index 64467e476d8f47..0bd24146b76aba 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm +++ b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm @@ -17,24 +17,24 @@ */ #include "PairingDelegateBridge.h" -#import +#import @interface CHIPToolPairingDelegate () @end @implementation CHIPToolPairingDelegate -- (void)onStatusUpdate:(CHIPPairingStatus)status +- (void)onStatusUpdate:(MTRPairingStatus)status { NSLog(@"Pairing Status Update: %lu", status); switch (status) { - case kSecurePairingSuccess: + case MTRPairingStatusSuccess: ChipLogProgress(chipTool, "Secure Pairing Success"); ChipLogProgress(chipTool, "CASE establishment successful"); break; - case kSecurePairingFailed: + case MTRPairingStatusFailed: ChipLogError(chipTool, "Secure Pairing Failed"); break; - case kUnknownStatus: + case MTRPairingStatusUnknown: ChipLogError(chipTool, "Uknown Pairing Status"); break; } diff --git a/examples/darwin-framework-tool/commands/storage/StorageManagementCommand.mm b/examples/darwin-framework-tool/commands/storage/StorageManagementCommand.mm index c9cc0b87dca854..e0c1b18ec890dc 100644 --- a/examples/darwin-framework-tool/commands/storage/StorageManagementCommand.mm +++ b/examples/darwin-framework-tool/commands/storage/StorageManagementCommand.mm @@ -20,6 +20,8 @@ #include "StorageManagementCommand.h" +#import + static CHIPToolPersistentStorageDelegate * storage = nil; CHIP_ERROR StorageClearAll::Run() diff --git a/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h b/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h index 06479a115a922f..985f1918eef178 100644 --- a/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h +++ b/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h @@ -28,21 +28,23 @@ #include #include #include -#include +#include -#import -#import +#import + +#import "MTRDevice_Externs.h" +#import "MTRError_Utils.h" class TestCommandBridge; NS_ASSUME_NONNULL_BEGIN -@interface TestPairingDelegate : NSObject +@interface TestPairingDelegate : NSObject @property TestCommandBridge * commandBridge; @property chip::NodeId deviceId; @property BOOL active; // Whether to pass on notifications to the commandBridge -- (void)onStatusUpdate:(CHIPPairingStatus)status; +- (void)onStatusUpdate:(MTRPairingStatus)status; - (void)onPairingComplete:(NSError * _Nullable)error; - (void)onPairingDeleted:(NSError * _Nullable)error; - (void)onCommissioningComplete:(NSError * _Nullable)error; @@ -112,7 +114,7 @@ class TestCommandBridge : public CHIPCommandBridge, CHIP_ERROR WaitForCommissionee(const char * _Nullable identity, const chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type & value) override { - CHIPDeviceController * controller = GetCommissioner(identity); + MTRDeviceController * controller = GetCommissioner(identity); VerifyOrReturnError(controller != nil, CHIP_ERROR_INCORRECT_STATE); SetIdentity(identity); @@ -125,17 +127,17 @@ class TestCommandBridge : public CHIPCommandBridge, mConnectedDevices[identity] = nil; } - [controller getConnectedDevice:value.nodeId - queue:mCallbackQueue - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error != nil) { - SetCommandExitStatus(error); - return; - } - - mConnectedDevices[identity] = device; - NextTest(); - }]; + [controller getDevice:value.nodeId + queue:mCallbackQueue + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error != nil) { + SetCommandExitStatus(error); + return; + } + + mConnectedDevices[identity] = device; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -143,7 +145,7 @@ class TestCommandBridge : public CHIPCommandBridge, CHIP_ERROR PairWithCode( const char * _Nullable identity, const chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type & value) { - CHIPDeviceController * controller = GetCommissioner(identity); + MTRDeviceController * controller = GetCommissioner(identity); VerifyOrReturnError(controller != nil, CHIP_ERROR_INCORRECT_STATE); SetIdentity(identity); @@ -161,7 +163,7 @@ class TestCommandBridge : public CHIPCommandBridge, return CHIP_NO_ERROR; } - return [CHIPError errorToCHIPErrorCode:err]; + return MTRErrorToCHIPErrorCode(err); } /////////// SystemCommands Interface ///////// @@ -177,7 +179,7 @@ class TestCommandBridge : public CHIPCommandBridge, return CHIP_NO_ERROR; } - CHIPDevice * _Nullable GetDevice(const char * _Nullable identity) { return mConnectedDevices[identity]; } + MTRDevice * _Nullable GetDevice(const char * _Nullable identity) { return mConnectedDevices[identity]; } // PairingDeleted and PairingComplete need to be public so our pairing // delegate can call them. @@ -189,12 +191,12 @@ class TestCommandBridge : public CHIPCommandBridge, void PairingComplete(chip::NodeId nodeId) { - CHIPDeviceController * controller = CurrentCommissioner(); - VerifyOrReturn(controller != nil, Exit("No current commissioner")); + MTRDeviceController * commissioner = CurrentCommissioner(); + VerifyOrReturn(commissioner != nil, Exit("No current commissioner")); NSError * commissionError = nil; - [controller commissionDevice:nodeId commissioningParams:[[CHIPCommissioningParameters alloc] init] error:&commissionError]; - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:commissionError]; + [commissioner commissionDevice:nodeId commissioningParams:[[MTRCommissioningParameters alloc] init] error:&commissionError]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(commissionError); if (err != CHIP_NO_ERROR) { Exit("Failed to kick off commissioning", err); return; @@ -327,7 +329,7 @@ class TestCommandBridge : public CHIPCommandBridge, template bool CheckConstraintNotValue(const char * _Nonnull itemName, NSError * _Nullable current, T expected) { - NSNumber * currentValue = @([CHIPError errorToCHIPErrorCode:current].AsInteger()); + NSNumber * currentValue = @(MTRErrorToCHIPErrorCode(current).AsInteger()); return CheckConstraintNotValue(itemName, currentValue, @(expected)); } @@ -459,18 +461,18 @@ class TestCommandBridge : public CHIPCommandBridge, TestPairingDelegate * _Nonnull mPairingDelegate; // Set of our connected devices, keyed by identity. - std::map mConnectedDevices; + std::map mConnectedDevices; }; NS_ASSUME_NONNULL_BEGIN @implementation TestPairingDelegate -- (void)onStatusUpdate:(CHIPPairingStatus)status +- (void)onStatusUpdate:(MTRPairingStatus)status { if (_active) { - if (status == kSecurePairingSuccess) { + if (status == MTRPairingStatusSuccess) { NSLog(@"Secure pairing success"); - } else if (status == kSecurePairingFailed) { + } else if (status == MTRPairingStatusFailed) { _active = NO; NSLog(@"Secure pairing failed"); _commandBridge->OnStatusUpdate(chip::app::StatusIB(chip::Protocols::InteractionModel::Status::Failure)); @@ -484,7 +486,7 @@ NS_ASSUME_NONNULL_BEGIN if (error != nil) { _active = NO; NSLog(@"Pairing complete with error"); - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(error); _commandBridge->OnStatusUpdate([self convertToStatusIB:err]); } else { _commandBridge->PairingComplete(_deviceId); @@ -503,7 +505,7 @@ NS_ASSUME_NONNULL_BEGIN { if (_active) { _active = NO; - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(error); _commandBridge->OnStatusUpdate([self convertToStatusIB:err]); } } diff --git a/examples/darwin-framework-tool/main.mm b/examples/darwin-framework-tool/main.mm index 53d12e4b8d9032..064afd9d057f15 100644 --- a/examples/darwin-framework-tool/main.mm +++ b/examples/darwin-framework-tool/main.mm @@ -16,6 +16,8 @@ * */ +#import + #include "commands/common/Commands.h" #include "commands/interactive/Commands.h" #include "commands/pairing/Commands.h" diff --git a/examples/darwin-framework-tool/templates/commands.zapt b/examples/darwin-framework-tool/templates/commands.zapt index 55eaf9e419546f..21a06554127044 100644 --- a/examples/darwin-framework-tool/templates/commands.zapt +++ b/examples/darwin-framework-tool/templates/commands.zapt @@ -2,7 +2,7 @@ #pragma once -#import +#import #include #include @@ -41,13 +41,13 @@ public: ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) command ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIP{{asUpperCamelCase clusterName}} * cluster = [[CHIP{{asUpperCamelCase clusterName}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIP{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase name}}Params alloc] init]; + MTR{{asUpperCamelCase clusterName}} * cluster = [[MTR{{asUpperCamelCase clusterName}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTR{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase name}}Params alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; {{#chip_cluster_command_arguments}} {{>decodable_value target=(concat "params." (asStructPropertyName label)) source=(concat "mRequest." (asLowerCamelCase label)) cluster=parent.clusterName type=type depth=0}} @@ -58,7 +58,7 @@ public: { [cluster {{asLowerCamelCase name}}WithParams:params completionHandler: {{#if hasSpecificResponse}} - ^(CHIP{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase responseName}}Params * _Nullable values, NSError * _Nullable error) { + ^(MTR{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase responseName}}Params * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); {{else}} ^(NSError * _Nullable error) { @@ -106,14 +106,14 @@ public: { } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) ReadAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; {{#if_is_fabric_scoped_struct type}} - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; {{/if_is_fabric_scoped_struct}} [cluster readAttribute{{asUpperCamelCase name}}With @@ -157,12 +157,12 @@ public: { } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) WriteAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; {{#if_chip_complex}} @@ -211,12 +211,12 @@ public: { } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) ReportAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster subscribe{{>attribute}}WithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] diff --git a/examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc-src.zapt b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt similarity index 66% rename from examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc-src.zapt rename to examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt index 64c83ce7f9b7d0..48b11d1840ce20 100644 --- a/examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc-src.zapt +++ b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt @@ -1,13 +1,21 @@ {{> header}} #import -#import "CHIP/CHIP.h" +#import -#import "CHIPCallbackBridge_internal.h" // For CHIPDefaultSuccessCallbackBridge, etc -#import "CHIPCluster_internal.h" // For self.callbackQueue - -#import "zap-generated/cluster/CHIPTestClustersObjc.h" +#import "zap-generated/cluster/MTRTestClustersObjc.h" +#import "MTRCallbackBridge_internal.h" +#import "MTRDevice_Externs.h" +#import "MTRCluster_Externs.h" +#import "zap-generated/CHIPClusters.h" +#include +#include +#include +#include +#include +#include +#include #include #include @@ -17,11 +25,11 @@ using namespace chip::app::Clusters; {{#chip_client_clusters includeAll=true}} -@interface CHIPTest{{asUpperCamelCase name}} () +@interface MTRTest{{asUpperCamelCase name}} () @property (readonly) chip::Controller::{{asUpperCamelCase name}}Cluster cppCluster; @end -@implementation CHIPTest{{asUpperCamelCase name}} +@implementation MTRTest{{asUpperCamelCase name}} - (chip::Controller::ClusterBase *)getCluster { @@ -34,7 +42,7 @@ using namespace chip::app::Clusters; {{#*inline "callbackName"}}DefaultSuccess{{/inline}} - (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value completionHandler:(StatusCompletion)completionHandler { - new CHIP{{>callbackName}}CallbackBridge(self.callbackQueue, + new MTR{{>callbackName}}CallbackBridge(self.callbackQueue, {{! For now, don't change the bridge API; instead just use an adapter to invoke our completion handler. This is not great from a type-safety perspective, of course. }} @@ -46,8 +54,8 @@ using namespace chip::app::Clusters; using TypeInfo = {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo; TypeInfo::Type cppValue; {{>encode_value target="cppValue" source="value" cluster=parent.name errorCode="return CHIP_ERROR_INVALID_ARGUMENT;" depth=0}} - auto successFn = CallbackcallbackName}}CallbackType>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback<{{>callbackName}}CallbackType>::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); }); } diff --git a/examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc.zapt b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt similarity index 79% rename from examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc.zapt rename to examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt index 4ca71fe8ebc43d..caedee02099c57 100644 --- a/examples/darwin-framework-tool/templates/tests/CHIPTestClustersObjc.zapt +++ b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt @@ -1,8 +1,8 @@ {{> header}} -#import +#import -@class CHIPDevice; +@class MTRDevice; NS_ASSUME_NONNULL_BEGIN @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN * Cluster {{name}} * {{description}} */ -@interface CHIPTest{{asUpperCamelCase name}} : CHIP{{asUpperCamelCase name}} +@interface MTRTest{{asUpperCamelCase name}} : MTR{{asUpperCamelCase name}} {{#chip_server_cluster_attributes}} {{#unless isWritableAttribute}} diff --git a/examples/darwin-framework-tool/templates/tests/partials/check_test_value.zapt b/examples/darwin-framework-tool/templates/tests/partials/check_test_value.zapt index 16847487714118..8f484719c16aa6 100644 --- a/examples/darwin-framework-tool/templates/tests/partials/check_test_value.zapt +++ b/examples/darwin-framework-tool/templates/tests/partials/check_test_value.zapt @@ -30,7 +30,7 @@ call. }} {{#zcl_struct_items_by_struct_name type}} {{#if (hasProperty ../expected label)}} - {{>check_test_value actual=(concat "((CHIP" (asUpperCamelCase ../cluster) "Cluster" (asUpperCamelCase ../type) " *)" ../actual ")." (asStructPropertyName label)) expected=(lookup ../expected label) cluster=../cluster}} + {{>check_test_value actual=(concat "((MTR" (asUpperCamelCase ../cluster) "Cluster" (asUpperCamelCase ../type) " *)" ../actual ")." (asStructPropertyName label)) expected=(lookup ../expected label) cluster=../cluster}} {{/if}} {{/zcl_struct_items_by_struct_name}} {{! Maybe we should add a check for properties in the expected object (other diff --git a/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt b/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt index 77abd2f0a024b2..73669801d59441 100644 --- a/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt +++ b/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt @@ -133,20 +133,20 @@ class {{filename}}: public TestCommandBridge {{/chip_tests_item_parameters}} return {{command}}("{{identity}}", value); {{else}} - CHIPDevice * device = GetDevice("{{identity}}"); - CHIPTest{{asUpperCamelCase cluster}} * cluster = [[CHIPTest{{asUpperCamelCase cluster}} alloc] initWithDevice:device endpoint:{{endpoint}} queue:mCallbackQueue]; + MTRDevice * device = GetDevice("{{identity}}"); + MTRTest{{asUpperCamelCase cluster}} * cluster = [[MTRTest{{asUpperCamelCase cluster}} alloc] initWithDevice:device endpoint:{{endpoint}} queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); {{#if isCommand}} {{#if commandObject.arguments.length}} - __auto_type * params = [[CHIP{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase command}}Params alloc] init]; + __auto_type * params = [[MTR{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase command}}Params alloc] init]; {{/if}} {{#chip_tests_item_parameters}} {{>test_value target=(concat "params." (asStructPropertyName label)) definedValue=definedValue cluster=parent.cluster depth=0}} {{/chip_tests_item_parameters}} [cluster {{asLowerCamelCase command}}With{{#if commandObject.arguments.length}}Params:params completionHandler{{else}}CompletionHandler{{/if}}: {{#if commandObject.hasSpecificResponse}} - ^(CHIP{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase commandObject.responseName}}Params * _Nullable values, NSError * _Nullable err) { + ^(MTR{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase commandObject.responseName}}Params * _Nullable values, NSError * _Nullable err) { {{else}} ^(NSError * _Nullable err) { {{/if}} @@ -154,7 +154,7 @@ class {{filename}}: public TestCommandBridge {{#chip_tests_item_parameters}} {{asObjectiveCBasicType type}} {{asLowerCamelCase name}}Argument = {{asTypedLiteral definedValue type}}; {{/chip_tests_item_parameters}} - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttribute{{asUpperCamelCase attribute}}WithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -167,7 +167,7 @@ class {{filename}}: public TestCommandBridge {{> subscribeDataCallback }} = ^({{asObjectiveCClass attributeObject.type cluster forceList=attributeObject.isArray}} * _Nullable value, NSError * _Nullable err) { {{else if isReadAttribute}} {{#if_is_fabric_scoped_struct attributeObject.type}} - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:{{fabricFiltered}}]; {{/if_is_fabric_scoped_struct}} [cluster readAttribute{{asUpperCamelCase attribute}}With @@ -187,7 +187,7 @@ class {{filename}}: public TestCommandBridge NSLog(@"{{label}} Error: %@", err); {{#if optional}} - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } diff --git a/examples/darwin-framework-tool/templates/tests/partials/test_value.zapt b/examples/darwin-framework-tool/templates/tests/partials/test_value.zapt index 716e557f399221..f140fb4df15647 100644 --- a/examples/darwin-framework-tool/templates/tests/partials/test_value.zapt +++ b/examples/darwin-framework-tool/templates/tests/partials/test_value.zapt @@ -18,13 +18,13 @@ } {{else}} {{#if_is_struct type}} - {{target}} = [[CHIP{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase type}} alloc] init]; + {{target}} = [[MTR{{asUpperCamelCase cluster}}Cluster{{asUpperCamelCase type}} alloc] init]; {{#zcl_struct_items_by_struct_name type}} {{#if_include_struct_item_value ../definedValue name}} {{! target may be some place where we lost type information (e.g. an id), so add explicit cast when trying to assign to our properties. }} - {{>test_value target=(concat "((CHIP" (asUpperCamelCase ../cluster) "Cluster" (asUpperCamelCase ../type) " *)" ../target ")." (asStructPropertyName label)) definedValue=(lookup ../definedValue name) cluster=../cluster depth=(incrementDepth ../depth)}} + {{>test_value target=(concat "((MTR" (asUpperCamelCase ../cluster) "Cluster" (asUpperCamelCase ../type) " *)" ../target ")." (asStructPropertyName label)) definedValue=(lookup ../definedValue name) cluster=../cluster depth=(incrementDepth ../depth)}} {{/if_include_struct_item_value}} {{/zcl_struct_items_by_struct_name}} diff --git a/examples/darwin-framework-tool/templates/tests/templates.json b/examples/darwin-framework-tool/templates/tests/templates.json index 9311d32dd66062..0f8ea363c7e80e 100644 --- a/examples/darwin-framework-tool/templates/tests/templates.json +++ b/examples/darwin-framework-tool/templates/tests/templates.json @@ -51,14 +51,14 @@ "output": "test/Commands.h" }, { - "path": "CHIPTestClustersObjc.zapt", + "path": "MTRTestClustersObjc.zapt", "name": "Test Objc API Header", - "output": "cluster/CHIPTestClustersObjc.h" + "output": "cluster/MTRTestClustersObjc.h" }, { - "path": "CHIPTestClustersObjc-src.zapt", + "path": "MTRTestClustersObjc-src.zapt", "name": "Test Objc API", - "output": "cluster/CHIPTestClustersObjc.mm" + "output": "cluster/MTRTestClustersObjc.mm" } ] } diff --git a/src/darwin/CHIPTool/CHIPTool.xcodeproj/project.pbxproj b/src/darwin/CHIPTool/CHIPTool.xcodeproj/project.pbxproj index 6c115bb8e5cd7f..659474185dd30e 100644 --- a/src/darwin/CHIPTool/CHIPTool.xcodeproj/project.pbxproj +++ b/src/darwin/CHIPTool/CHIPTool.xcodeproj/project.pbxproj @@ -13,8 +13,6 @@ 2C460C3225D97CB3000512D6 /* UnpairDevicesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C460C3025D97CB3000512D6 /* UnpairDevicesViewController.m */; }; 51C8E3FB28261DCF00D47D00 /* FabricKeys.m in Sources */ = {isa = PBXBuildFile; fileRef = 51C8E3FA28261DCF00D47D00 /* FabricKeys.m */; }; 991DC091247747F500C13860 /* EnumerateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 991DC090247747F500C13860 /* EnumerateViewController.m */; }; - 997A639C253F93F7005C64E6 /* CHIP.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997A639B253F93F7005C64E6 /* CHIP.framework */; }; - 997A639D253F93F7005C64E6 /* CHIP.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 997A639B253F93F7005C64E6 /* CHIP.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; B204A621244E1D0600C7C0E1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B204A620244E1D0600C7C0E1 /* AppDelegate.m */; }; B204A624244E1D0600C7C0E1 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B204A623244E1D0600C7C0E1 /* SceneDelegate.m */; }; B204A627244E1D0600C7C0E1 /* QRCodeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B204A626244E1D0600C7C0E1 /* QRCodeViewController.m */; }; @@ -28,6 +26,8 @@ B2C2267526289324009DAB8B /* FabricUIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B2C2267426289324009DAB8B /* FabricUIViewController.m */; }; B2F51E99252DCDC000911FA5 /* TemperatureSensorViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F51E98252DCDC000911FA5 /* TemperatureSensorViewController.m */; }; B2F53AEB245B0D140010745E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B2F53AE9245B0D140010745E /* LaunchScreen.storyboard */; }; + D437613C285BC0060051FEA2 /* Matter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D437613B285BC0060051FEA2 /* Matter.framework */; }; + D437613D285BC0060051FEA2 /* Matter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D437613B285BC0060051FEA2 /* Matter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -41,13 +41,13 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - 997A639A253F93E5005C64E6 /* Embed Frameworks */ = { + D437613A285BBE3B0051FEA2 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( - 997A639D253F93F7005C64E6 /* CHIP.framework in Embed Frameworks */, + D437613D285BC0060051FEA2 /* Matter.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -67,7 +67,6 @@ 51C8E3FA28261DCF00D47D00 /* FabricKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FabricKeys.m; sourceTree = ""; }; 991DC08F247747F500C13860 /* EnumerateViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EnumerateViewController.h; sourceTree = ""; }; 991DC090247747F500C13860 /* EnumerateViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EnumerateViewController.m; sourceTree = ""; }; - 997A639B253F93F7005C64E6 /* CHIP.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = CHIP.framework; sourceTree = BUILT_PRODUCTS_DIR; }; B204A61C244E1D0600C7C0E1 /* CHIPTool.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CHIPTool.app; sourceTree = BUILT_PRODUCTS_DIR; }; B204A61F244E1D0600C7C0E1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; B204A620244E1D0600C7C0E1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; @@ -96,6 +95,7 @@ B2F51E97252DCDC000911FA5 /* TemperatureSensorViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TemperatureSensorViewController.h; sourceTree = ""; }; B2F51E98252DCDC000911FA5 /* TemperatureSensorViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TemperatureSensorViewController.m; sourceTree = ""; }; B2F53AEA245B0D140010745E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = UI/Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + D437613B285BC0060051FEA2 /* Matter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Matter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -103,7 +103,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 997A639C253F93F7005C64E6 /* CHIP.framework in Frameworks */, + D437613C285BC0060051FEA2 /* Matter.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -165,7 +165,7 @@ B20252DE2459EC7600F97062 /* Frameworks */ = { isa = PBXGroup; children = ( - 997A639B253F93F7005C64E6 /* CHIP.framework */, + D437613B285BC0060051FEA2 /* Matter.framework */, ); name = Frameworks; sourceTree = ""; @@ -302,7 +302,7 @@ B204A618244E1D0600C7C0E1 /* Sources */, B204A619244E1D0600C7C0E1 /* Frameworks */, B204A61A244E1D0600C7C0E1 /* Resources */, - 997A639A253F93E5005C64E6 /* Embed Frameworks */, + D437613A285BBE3B0051FEA2 /* Embed Frameworks */, ); buildRules = ( ); @@ -575,7 +575,7 @@ "@executable_path/Frameworks", ); ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTool; + PRODUCT_BUNDLE_IDENTIFIER = com.matter.CHIPTool; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; @@ -598,7 +598,7 @@ "@executable_path/Frameworks", ); ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTool; + PRODUCT_BUNDLE_IDENTIFIER = com.matter.CHIPTool; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; diff --git a/src/darwin/CHIPTool/CHIPTool.xcodeproj/xcshareddata/xcschemes/CHIP Tool App.xcscheme b/src/darwin/CHIPTool/CHIPTool.xcodeproj/xcshareddata/xcschemes/CHIP Tool App.xcscheme index 5761649f019ff0..63ac92fdd30767 100644 --- a/src/darwin/CHIPTool/CHIPTool.xcodeproj/xcshareddata/xcschemes/CHIP Tool App.xcscheme +++ b/src/darwin/CHIPTool/CHIPTool.xcodeproj/xcshareddata/xcschemes/CHIP Tool App.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "Matter.framework" + BlueprintName = "Matter" + ReferencedContainer = "container:../Framework/Matter.xcodeproj"> #import +#import NS_ASSUME_NONNULL_BEGIN -extern NSString * const kCHIPToolDefaultsDomain; +extern NSString * const MTRToolDefaultsDomain; extern NSString * const kNetworkSSIDDefaultsKey; extern NSString * const kNetworkPasswordDefaultsKey; extern NSString * const kFabricIdKey; -CHIPDeviceController * _Nullable InitializeCHIP(void); -CHIPDeviceController * _Nullable CHIPRestartController(CHIPDeviceController * controller); -id _Nullable CHIPGetDomainValueForKey(NSString * domain, NSString * key); -BOOL CHIPSetDomainValueForKey(NSString * domain, NSString * key, id _Nullable value); -void CHIPRemoveDomainValueForKey(NSString * domain, NSString * key); -uint64_t CHIPGetNextAvailableDeviceID(void); +MTRDeviceController * _Nullable InitializeMTR(void); +MTRDeviceController * _Nullable MTRRestartController(MTRDeviceController * controller); +id _Nullable MTRGetDomainValueForKey(NSString * domain, NSString * key); +BOOL MTRSetDomainValueForKey(NSString * domain, NSString * key, id _Nullable value); +void MTRRemoveDomainValueForKey(NSString * domain, NSString * key); +uint64_t MTRGetNextAvailableDeviceID(void); NSString * KeyForPairedDevice(uint64_t id); -uint64_t CHIPGetLastPairedDeviceId(void); -void CHIPSetNextAvailableDeviceID(uint64_t id); -void CHIPSetDevicePaired(uint64_t id, BOOL paired); -BOOL CHIPIsDevicePaired(uint64_t id); -BOOL CHIPGetConnectedDevice(CHIPDeviceConnectionCallback completionHandler); -BOOL CHIPGetConnectedDeviceWithID(uint64_t deviceId, CHIPDeviceConnectionCallback completionHandler); -void CHIPUnpairDeviceWithID(uint64_t deviceId); -CHIPDevice * _Nullable CHIPGetDeviceBeingCommissioned(void); +uint64_t MTRGetLastPairedDeviceId(void); +void MTRSetNextAvailableDeviceID(uint64_t id); +void MTRSetDevicePaired(uint64_t id, BOOL paired); +BOOL MTRIsDevicePaired(uint64_t id); +BOOL MTRGetConnectedDevice(MTRDeviceConnectionCallback completionHandler); +BOOL MTRGetConnectedDeviceWithID(uint64_t deviceId, MTRDeviceConnectionCallback completionHandler); +void MTRUnpairDeviceWithID(uint64_t deviceId); +MTRDevice * _Nullable MTRGetDeviceBeingCommissioned(void); -@interface CHIPToolPersistentStorageDelegate : NSObject +@interface CHIPToolPersistentStorageDelegate : NSObject - (nullable NSData *)storageDataForKey:(NSString *)key; - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key; - (BOOL)removeStorageDataForKey:(NSString *)key; diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m index c9b4df8a017960..8ea446ca62180b 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m @@ -18,14 +18,14 @@ #import "DefaultsUtils.h" #import "FabricKeys.h" -NSString * const kCHIPToolDefaultsDomain = @"com.apple.chiptool"; +NSString * const MTRToolDefaultsDomain = @"com.matter.CHIPTool"; NSString * const kNetworkSSIDDefaultsKey = @"networkSSID"; NSString * const kNetworkPasswordDefaultsKey = @"networkPassword"; -NSString * const kCHIPNextAvailableDeviceIDKey = @"nextDeviceID"; +NSString * const MTRNextAvailableDeviceIDKey = @"nextDeviceID"; NSString * const kFabricIdKey = @"fabricId"; NSString * const kDevicePairedKey = @"Paired"; -id CHIPGetDomainValueForKey(NSString * domain, NSString * key) +id MTRGetDomainValueForKey(NSString * domain, NSString * key) { id value = (id) CFBridgingRelease(CFPreferencesCopyAppValue((CFStringRef) key, (CFStringRef) domain)); if (value) { @@ -34,24 +34,24 @@ id CHIPGetDomainValueForKey(NSString * domain, NSString * key) return nil; } -BOOL CHIPSetDomainValueForKey(NSString * domain, NSString * key, id value) +BOOL MTRSetDomainValueForKey(NSString * domain, NSString * key, id value) { CFPreferencesSetAppValue((CFStringRef) key, (__bridge CFPropertyListRef _Nullable)(value), (CFStringRef) domain); return CFPreferencesAppSynchronize((CFStringRef) domain) == true; } -void CHIPRemoveDomainValueForKey(NSString * domain, NSString * key) +void MTRRemoveDomainValueForKey(NSString * domain, NSString * key) { CFPreferencesSetAppValue((CFStringRef) key, NULL, (CFStringRef) domain); CFPreferencesAppSynchronize((CFStringRef) domain); } -uint64_t CHIPGetNextAvailableDeviceID(void) +uint64_t MTRGetNextAvailableDeviceID(void) { uint64_t nextAvailableDeviceIdentifier = 1; - NSNumber * value = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNextAvailableDeviceIDKey); + NSNumber * value = MTRGetDomainValueForKey(MTRToolDefaultsDomain, MTRNextAvailableDeviceIDKey); if (!value) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNextAvailableDeviceIDKey, + MTRSetDomainValueForKey(MTRToolDefaultsDomain, MTRNextAvailableDeviceIDKey, [NSNumber numberWithUnsignedLongLong:nextAvailableDeviceIdentifier]); } else { nextAvailableDeviceIdentifier = [value unsignedLongLongValue]; @@ -60,24 +60,24 @@ uint64_t CHIPGetNextAvailableDeviceID(void) return nextAvailableDeviceIdentifier; } -void CHIPSetNextAvailableDeviceID(uint64_t id) +void MTRSetNextAvailableDeviceID(uint64_t id) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNextAvailableDeviceIDKey, [NSNumber numberWithUnsignedLongLong:id]); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, MTRNextAvailableDeviceIDKey, [NSNumber numberWithUnsignedLongLong:id]); } static CHIPToolPersistentStorageDelegate * storage = nil; static uint16_t kTestVendorId = 0xFFF1u; -static CHIPDeviceController * sController = nil; +static MTRDeviceController * sController = nil; -CHIPDeviceController * InitializeCHIP(void) +MTRDeviceController * InitializeMTR(void) { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ CHIPToolPersistentStorageDelegate * storage = [[CHIPToolPersistentStorageDelegate alloc] init]; - __auto_type * factory = [MatterControllerFactory sharedInstance]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; if (![factory startup:factoryParams]) { return; } @@ -87,7 +87,7 @@ void CHIPSetNextAvailableDeviceID(uint64_t id) return; } - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:keys fabricId:1 ipk:keys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:keys fabricId:1 ipk:keys.ipk]; params.vendorId = @(kTestVendorId); // We're not sure whether we have a fabric configured already; try as if @@ -101,7 +101,7 @@ void CHIPSetNextAvailableDeviceID(uint64_t id) return sController; } -CHIPDeviceController * CHIPRestartController(CHIPDeviceController * controller) +MTRDeviceController * CHIPRestartController(MTRDeviceController * controller) { __auto_type * keys = [[FabricKeys alloc] init]; if (keys == nil) { @@ -113,86 +113,86 @@ void CHIPSetNextAvailableDeviceID(uint64_t id) [controller shutdown]; NSLog(@"Starting up the stack"); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:keys fabricId:1 ipk:keys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:keys fabricId:1 ipk:keys.ipk]; - sController = [[MatterControllerFactory sharedInstance] startControllerOnExistingFabric:params]; + sController = [[MTRControllerFactory sharedInstance] startControllerOnExistingFabric:params]; return sController; } -uint64_t CHIPGetLastPairedDeviceId(void) +uint64_t MTRGetLastPairedDeviceId(void) { - uint64_t deviceId = CHIPGetNextAvailableDeviceID(); + uint64_t deviceId = MTRGetNextAvailableDeviceID(); if (deviceId > 1) { deviceId--; } return deviceId; } -BOOL CHIPGetConnectedDevice(CHIPDeviceConnectionCallback completionHandler) +BOOL MTRGetConnectedDevice(MTRDeviceConnectionCallback completionHandler) { - CHIPDeviceController * controller = InitializeCHIP(); + MTRDeviceController * controller = InitializeMTR(); // Let's use the last device that was paired - uint64_t deviceId = CHIPGetLastPairedDeviceId(); - return [controller getConnectedDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; + uint64_t deviceId = MTRGetLastPairedDeviceId(); + return [controller getDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; } -CHIPDevice * CHIPGetDeviceBeingCommissioned(void) +MTRDevice * MTRGetDeviceBeingCommissioned(void) { NSError * error; - CHIPDeviceController * controller = InitializeCHIP(); - CHIPDevice * device = [controller getDeviceBeingCommissioned:CHIPGetLastPairedDeviceId() error:&error]; + MTRDeviceController * controller = InitializeMTR(); + MTRDevice * device = [controller getDeviceBeingCommissioned:MTRGetLastPairedDeviceId() error:&error]; if (error) { - NSLog(@"Error retrieving device being commissioned for deviceId %llu", CHIPGetLastPairedDeviceId()); + NSLog(@"Error retrieving device being commissioned for deviceId %llu", MTRGetLastPairedDeviceId()); return nil; } return device; } -BOOL CHIPGetConnectedDeviceWithID(uint64_t deviceId, CHIPDeviceConnectionCallback completionHandler) +BOOL MTRGetConnectedDeviceWithID(uint64_t deviceId, MTRDeviceConnectionCallback completionHandler) { - CHIPDeviceController * controller = InitializeCHIP(); + MTRDeviceController * controller = InitializeMTR(); - return [controller getConnectedDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; + return [controller getDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; } -BOOL CHIPIsDevicePaired(uint64_t deviceId) +BOOL MTRIsDevicePaired(uint64_t deviceId) { - NSString * PairedString = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, KeyForPairedDevice(deviceId)); + NSString * PairedString = MTRGetDomainValueForKey(MTRToolDefaultsDomain, KeyForPairedDevice(deviceId)); return [PairedString boolValue]; } -void CHIPSetDevicePaired(uint64_t deviceId, BOOL paired) +void MTRSetDevicePaired(uint64_t deviceId, BOOL paired) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, KeyForPairedDevice(deviceId), paired ? @"YES" : @"NO"); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, KeyForPairedDevice(deviceId), paired ? @"YES" : @"NO"); } NSString * KeyForPairedDevice(uint64_t deviceId) { return [NSString stringWithFormat:@"%@%llu", kDevicePairedKey, deviceId]; } -void CHIPUnpairDeviceWithID(uint64_t deviceId) +void MTRUnpairDeviceWithID(uint64_t deviceId) { - CHIPSetDevicePaired(deviceId, NO); - CHIPGetConnectedDeviceWithID(deviceId, ^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + MTRSetDevicePaired(deviceId, NO); + MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable device, NSError * _Nullable error) { if (error) { NSLog(@"Failed to unpair device %llu still removing from CHIPTool. %@", deviceId, error); return; } NSLog(@"Attempting to unpair device %llu", deviceId); - CHIPOperationalCredentials * opCredsCluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:dispatch_get_main_queue()]; + MTROperationalCredentials * opCredsCluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:dispatch_get_main_queue()]; [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { if (error) { NSLog(@"Failed to get current fabric index for device %llu still removing from CHIPTool. %@", deviceId, error); return; } - CHIPOperationalCredentialsClusterRemoveFabricParams * params = - [[CHIPOperationalCredentialsClusterRemoveFabricParams alloc] init]; + MTROperationalCredentialsClusterRemoveFabricParams * params = + [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; params.fabricIndex = value; [opCredsCluster removeFabricWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error) { if (error) { NSLog(@"Failed to remove current fabric index %@ for device %llu. %@", @@ -207,26 +207,26 @@ void CHIPUnpairDeviceWithID(uint64_t deviceId) @implementation CHIPToolPersistentStorageDelegate -// MARK: CHIPPersistentStorageDelegate +// MARK: MTRPersistentStorageDelegate - (nullable NSData *)storageDataForKey:(NSString *)key { - NSData * value = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, key); - NSLog(@"CHIPPersistentStorageDelegate Get Value for Key: %@, value %@", key, value); + NSData * value = MTRGetDomainValueForKey(MTRToolDefaultsDomain, key); + NSLog(@"MTRPersistentStorageDelegate Get Value for Key: %@, value %@", key, value); return value; } - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key { - return CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, key, value); + return MTRSetDomainValueForKey(MTRToolDefaultsDomain, key, value); } - (BOOL)removeStorageDataForKey:(NSString *)key { - if (CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, key) == nil) { + if (MTRGetDomainValueForKey(MTRToolDefaultsDomain, key) == nil) { return NO; } - CHIPRemoveDomainValueForKey(kCHIPToolDefaultsDomain, key); + MTRRemoveDomainValueForKey(MTRToolDefaultsDomain, key); return YES; } diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.h b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.h index 2d60189ad76241..01a215717e172c 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.h +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.h @@ -16,8 +16,8 @@ #pragma once -#import #import +#import /** * Management of the CA key and IPK for our fabric. @@ -25,11 +25,12 @@ NS_ASSUME_NONNULL_BEGIN -@interface FabricKeys : NSObject +@interface FabricKeys : NSObject @property (readonly, nonatomic, strong) NSData * ipk; - (instancetype)init; + @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m index a2a9992d3180d7..912ac2e8594b72 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m @@ -23,8 +23,8 @@ @interface FabricKeys () @property (readonly) SecKeyRef publicKey; @end -static const NSString * kCHIPIPKKeyChainLabel = @"matter-tool.nodeopcerts.IPK:0"; -static const NSString * kCHIPCAKeyChainLabel = @"matter-tool.nodeopcerts.CA:0"; +static const NSString * MTRIPKKeyChainLabel = @"matter-tool.nodeopcerts.IPK:0"; +static const NSString * MTRCAKeyChainLabel = @"matter-tool.nodeopcerts.CA:0"; @implementation FabricKeys @@ -32,7 +32,7 @@ + (NSDictionary *)ipkParams { return @{ (__bridge NSString *) kSecClass : (__bridge NSString *) kSecClassKey, - (__bridge NSString *) kSecAttrApplicationLabel : kCHIPIPKKeyChainLabel, + (__bridge NSString *) kSecAttrApplicationLabel : MTRIPKKeyChainLabel, (__bridge NSString *) kSecAttrKeyClass : (__bridge NSString *) kSecAttrKeyClassSymmetric, }; } @@ -95,7 +95,7 @@ + (NSDictionary *)privateKeyParams { return @{ (__bridge NSString *) kSecClass : (__bridge NSString *) kSecClassKey, - (__bridge NSString *) kSecAttrApplicationLabel : kCHIPCAKeyChainLabel, + (__bridge NSString *) kSecAttrApplicationLabel : MTRCAKeyChainLabel, // We're storing a base-64 encoding of some opaque thing that represents // our keypair. It's not really a public or private key; claim it's a // symmetric key. @@ -207,7 +207,7 @@ - (instancetype)init return self; } -- (NSData *)ECDSA_sign_message_DER:(NSData *)message +- (NSData *)signMessageECDSA_DER:(NSData *)message { CFErrorRef error = NULL; CFDataRef outData @@ -219,7 +219,7 @@ - (NSData *)ECDSA_sign_message_DER:(NSData *)message return (__bridge_transfer NSData *) outData; } -- (SecKeyRef)pubkey +- (SecKeyRef)publicKey { return self.publicKey; } diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m index 3601693f8699e0..4e31fc87ca32e5 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m @@ -118,7 +118,7 @@ - (void)setupUI - (void)_clearTextFields { - CHIPDeviceController * chipController = InitializeCHIP(); + MTRDeviceController * chipController = InitializeMTR(); _nodeIDTextField.text = [NSString stringWithFormat:@"%@", chipController.controllerNodeId]; _endpointIDTextField.text = @"1"; _groupIDTextField.text = @"0"; @@ -134,7 +134,7 @@ - (IBAction)bind:(id)sender [scanner scanUnsignedLongLong:&nodeId]; // TODO Binding Support was removed from ObjC Clusters.h - if (CHIPGetConnectedDevice(^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { NSString * resultString = [NSString stringWithFormat:@"Not Supported"]; NSLog(resultString, nil); @@ -150,7 +150,7 @@ - (IBAction)bind:(id)sender - (IBAction)unbind:(id)sender { - if (CHIPGetConnectedDevice(^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { NSString * resultString = [NSString stringWithFormat:@"Not Supported"]; NSLog(resultString, nil); diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.h index e10c847550a6c5..08ca7ca8b19d58 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.m index d970bda777fdb8..426fdb95eb50d6 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/DeviceSelector.m @@ -41,10 +41,10 @@ - (id)init - (void)refreshDeviceList { - uint64_t nextDeviceID = CHIPGetNextAvailableDeviceID(); + uint64_t nextDeviceID = MTRGetNextAvailableDeviceID(); _deviceList = [NSMutableArray new]; for (uint64_t i = 0; i < nextDeviceID; i++) { - if (CHIPIsDevicePaired(i)) { + if (MTRIsDevicePaired(i)) { [_deviceList addObject:[@(i) stringValue]]; } } @@ -146,7 +146,7 @@ - (IBAction)deviceSelectClicked:(id)sender [self resignFirstResponder]; } -// MARK: CHIPDeviceControllerDelegate +// MARK: MTRDeviceControllerDelegate - (void)deviceControllerOnConnected { NSLog(@"Status: Device connected"); diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.h index 3f4f487a2130ce..0697667e22b62b 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m index 92cd4e822bafda..e8f9d37e6cb4dc 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m @@ -108,16 +108,16 @@ - (IBAction)sendMessage:(id)sender // 4. Success? - (void)enumerate { - CHIPGetConnectedDevice(^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + MTRGetConnectedDevice(^(MTRDevice * _Nullable device, NSError * _Nullable error) { if (error) { NSString * resultLog = [[NSString alloc] initWithFormat:@"Unable to get connected device: Error: %@", error]; [self updateResult:resultLog]; return; } - CHIPDescriptor * descriptorCluster = [[CHIPDescriptor alloc] initWithDevice:device - endpoint:0 - queue:dispatch_get_main_queue()]; + MTRDescriptor * descriptorCluster = [[MTRDescriptor alloc] initWithDevice:device + endpoint:0 + queue:dispatch_get_main_queue()]; NSLog(@"Reading parts list to get list of endpoints in use..."); [descriptorCluster readAttributePartsListWithCompletionHandler:^( NSArray * _Nullable endpointsInUse, NSError * _Nullable error) { @@ -131,9 +131,9 @@ - (void)enumerate [self updateResult:resultLog]; for (NSNumber * endpoint in endpointsInUse) { - CHIPDescriptor * descriptorCluster = [[CHIPDescriptor alloc] initWithDevice:device - endpoint:[endpoint unsignedShortValue] - queue:dispatch_get_main_queue()]; + MTRDescriptor * descriptorCluster = [[MTRDescriptor alloc] initWithDevice:device + endpoint:[endpoint unsignedShortValue] + queue:dispatch_get_main_queue()]; [descriptorCluster readAttributeDeviceListWithCompletionHandler:^( NSArray * _Nullable value, NSError * _Nullable error) { if (error) { diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.h index 8039424bbf0ed4..22e7e36d8597a0 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.h @@ -6,8 +6,8 @@ // Copyright © 2021 CHIP. All rights reserved. // -#import #import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m index 0388186bdcf6dc..6d281c0312d80f 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m @@ -22,7 +22,7 @@ @interface FabricUIViewController () @property (nonatomic, strong) UILabel * commissionedFabricsLabel; @property (nonatomic, strong) UIStackView * stackView; -@property (nonatomic, strong) NSArray * fabricsList; +@property (nonatomic, strong) NSArray * fabricsList; @property (nonatomic, strong) NSNumber * currentFabricIndex; @end @@ -183,12 +183,12 @@ - (void)updateResult:(NSString *)result isError:(BOOL)isError _resultLabel.text = result; } -- (void)updateFabricsListUIWithFabrics:(NSArray *)fabricsList +- (void)updateFabricsListUIWithFabrics:(NSArray *)fabricsList error:(NSError *)error { NSMutableString * fabricsText = [NSMutableString new]; if (fabricsList) { - for (CHIPOperationalCredentialsClusterFabricDescriptor * fabricDescriptor in fabricsList) { + for (MTROperationalCredentialsClusterFabricDescriptor * fabricDescriptor in fabricsList) { NSNumber * fabricIndex = fabricDescriptor.fabricIndex; NSNumber * fabricId = fabricDescriptor.fabricId; NSNumber * nodeID = fabricDescriptor.nodeId; @@ -217,10 +217,11 @@ - (void)updateFabricsListUIWithFabrics:(NSArray +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/MultiAdmin/MultiAdminViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/MultiAdmin/MultiAdminViewController.m index acac3092056ab2..4cea3ca7770208 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/MultiAdmin/MultiAdminViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/MultiAdmin/MultiAdminViewController.m @@ -201,7 +201,7 @@ - (IBAction)openPairingWindow:(id)sender { uint32_t setupPIN = arc4random(); [_deviceSelector forSelectedDevices:^(uint64_t deviceId) { - if (CHIPGetConnectedDeviceWithID(deviceId, ^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { NSString * timeoutStr = [self.timeoutField text]; if (timeoutStr.length == 0) { @@ -211,7 +211,7 @@ - (IBAction)openPairingWindow:(id)sender NSString * output; NSError * error; - CHIPDeviceController * controller = InitializeCHIP(); + MTRDeviceController * controller = InitializeMTR(); if ([self.useOnboardingTokenSwitch isOn]) { NSString * discriminatorStr = [self.discriminatorField text]; if (discriminatorStr.length == 0) { diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.h index d03d4680e6948b..25d86fc3dacc73 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.m index 3801e6366a377e..c3f19f26056750 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/OnOffCluster/OnOffViewController.m @@ -19,9 +19,9 @@ #import "CHIPUIViewUtils.h" #import "DefaultsUtils.h" #import "DeviceSelector.h" -#import +#import -NSString * const kCHIPNumLightOnOffCluster = @"OnOffViewController_NumLights"; +NSString * const MTRNumLightOnOffCluster = @"OnOffViewController_NumLights"; @interface OnOffViewController () @property (nonatomic, strong) UITextField * numLightsTextField; @@ -102,7 +102,7 @@ - (void)setupStackView _numLightsTextField = [UITextField new]; _numLightsOptions = @[ @"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", @"10" ]; _numLightsTextField.text - = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNumLightOnOffCluster) ?: [_numLightsOptions objectAtIndex:0]; + = MTRGetDomainValueForKey(MTRToolDefaultsDomain, MTRNumLightOnOffCluster) ?: [_numLightsOptions objectAtIndex:0]; UIPickerView * numLightsPicker = [[UIPickerView alloc] initWithFrame:CGRectMake(0, 100, 0, 0)]; _numLightsTextField.inputView = numLightsPicker; [numLightsPicker setDataSource:self]; @@ -210,7 +210,7 @@ - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)co - (IBAction)pickerDoneClicked:(id)sender { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNumLightOnOffCluster, _numLightsTextField.text); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, MTRNumLightOnOffCluster, _numLightsTextField.text); [_numLightsTextField resignFirstResponder]; [self setupStackView]; } @@ -219,7 +219,7 @@ - (IBAction)pickerDoneClicked:(id)sender - (int)numLightClustersToShow { - NSString * numClusters = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kCHIPNumLightOnOffCluster); + NSString * numClusters = MTRGetDomainValueForKey(MTRToolDefaultsDomain, MTRNumLightOnOffCluster); int numberOfLights = 1; if (numClusters) { @@ -237,11 +237,11 @@ - (IBAction)onButtonTapped:(id)sender [self updateResult:[NSString stringWithFormat:@"On command sent on endpoint %@", @(endpoint)]]; [_deviceSelector forSelectedDevices:^(uint64_t deviceId) { - if (CHIPGetConnectedDeviceWithID(deviceId, ^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { - CHIPOnOff * onOff = [[CHIPOnOff alloc] initWithDevice:chipDevice - endpoint:endpoint - queue:dispatch_get_main_queue()]; + MTROnOff * onOff = [[MTROnOff alloc] initWithDevice:chipDevice + endpoint:endpoint + queue:dispatch_get_main_queue()]; [onOff onWithCompletionHandler:^(NSError * error) { NSString * resultString = (error != nil) ? [NSString stringWithFormat:@"An error occurred: 0x%02lx", error.code] @@ -266,11 +266,11 @@ - (IBAction)offButtonTapped:(id)sender [self updateResult:[NSString stringWithFormat:@"Off command sent on endpoint %@", @(endpoint)]]; [_deviceSelector forSelectedDevices:^(uint64_t deviceId) { - if (CHIPGetConnectedDeviceWithID(deviceId, ^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { - CHIPOnOff * onOff = [[CHIPOnOff alloc] initWithDevice:chipDevice - endpoint:endpoint - queue:dispatch_get_main_queue()]; + MTROnOff * onOff = [[MTROnOff alloc] initWithDevice:chipDevice + endpoint:endpoint + queue:dispatch_get_main_queue()]; [onOff offWithCompletionHandler:^(NSError * error) { NSString * resultString = (error != nil) ? [NSString stringWithFormat:@"An error occurred: 0x%02lx", error.code] @@ -295,11 +295,11 @@ - (IBAction)toggleButtonTapped:(id)sender [self updateResult:[NSString stringWithFormat:@"Toggle command sent on endpoint %@", @(endpoint)]]; [_deviceSelector forSelectedDevices:^(uint64_t deviceId) { - if (CHIPGetConnectedDeviceWithID(deviceId, ^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { - CHIPOnOff * onOff = [[CHIPOnOff alloc] initWithDevice:chipDevice - endpoint:endpoint - queue:dispatch_get_main_queue()]; + MTROnOff * onOff = [[MTROnOff alloc] initWithDevice:chipDevice + endpoint:endpoint + queue:dispatch_get_main_queue()]; [onOff toggleWithCompletionHandler:^(NSError * error) { NSString * resultString = (error != nil) ? [NSString stringWithFormat:@"An error occurred: 0x%02lx", error.code] diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.h index 74115a6bc8b45e..77d143c2c5a2bb 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.h @@ -16,11 +16,11 @@ */ #import -#import #import +#import #import @interface QRCodeViewController - : UIViewController + : UIViewController @end diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m index b179abee460aa0..e8fef557ab823f 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m @@ -21,9 +21,9 @@ #import "CHIPUIViewUtils.h" #import "DefaultsUtils.h" #import "DeviceSelector.h" -#import -#import -#import +#import +#import +#import // system imports #import @@ -43,6 +43,17 @@ #define NOT_APPLICABLE_STRING @"N/A" +@interface MTRDeviceController (ToDoRemove) + +/** + * TODO: Temporary until PairingDelegate is fixed to clearly communicate this + * information to consumers. + * This should be migrated over to the proper pairing delegate path + */ +- (BOOL)deviceBeingCommissionedOverBLE:(uint64_t)deviceId; + +@end + @interface QRCodeViewController () @property (nonatomic, strong) AVCaptureSession * captureSession; @@ -77,15 +88,15 @@ @interface QRCodeViewController () @property (strong, nonatomic) UIActivityIndicatorView * activityIndicator; @property (strong, nonatomic) UILabel * errorLabel; -@property (readwrite) CHIPDeviceController * chipController; -@property (nonatomic, strong) CHIPNetworkCommissioning * cluster; +@property (readwrite) MTRDeviceController * chipController; +@property (nonatomic, strong) MTRNetworkCommissioning * cluster; @property (strong, nonatomic) NFCNDEFReaderSession * session; -@property (strong, nonatomic) CHIPSetupPayload * setupPayload; +@property (strong, nonatomic) MTRSetupPayload * setupPayload; @property (strong, nonatomic) DeviceSelector * deviceList; @end -@interface CHIPToolDeviceAttestationDelegate : NSObject +@interface CHIPToolDeviceAttestationDelegate : NSObject @property (weak, nonatomic) QRCodeViewController * viewController; @@ -407,7 +418,7 @@ - (void)viewDidLoad [self setupUI]; dispatch_queue_t callbackQueue = dispatch_queue_create("com.csa.matter.qrcodevc.callback", DISPATCH_QUEUE_SERIAL); - self.chipController = InitializeCHIP(); + self.chipController = InitializeMTR(); [self.chipController setPairingDelegate:self queue:callbackQueue]; UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)]; @@ -467,7 +478,7 @@ - (void)readerSession:(nonnull NFCNDEFReaderSession *)session didInvalidateWithE - (void)setVendorIDOnAccessory { NSLog(@"Call to setVendorIDOnAccessory"); - if (CHIPGetConnectedDevice(^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRDevice * _Nullable device, NSError * _Nullable error) { if (!device) { NSLog(@"Status: Failed to establish a connection with the device"); } @@ -478,21 +489,22 @@ - (void)setVendorIDOnAccessory } } -// MARK: CHIPDevicePairingDelegate +// MARK: MTRDevicePairingDelegate - (void)onPairingComplete:(NSError * _Nullable)error { if (error != nil) { NSLog(@"Got pairing error back %@", error); } else { - CHIPDeviceController * controller = InitializeCHIP(); - uint64_t deviceId = CHIPGetLastPairedDeviceId(); - if ([controller deviceBeingCommissionedOverBLE:deviceId]) { + MTRDeviceController * controller = InitializeMTR(); + uint64_t deviceId = MTRGetLastPairedDeviceId(); + if ([controller respondsToSelector:@selector(deviceBeingCommissionedOverBLE:) + && [controller deviceBeingCommissionedOverBLE:deviceId]) { dispatch_async(dispatch_get_main_queue(), ^{ [self->_deviceList refreshDeviceList]; [self retrieveAndSendWiFiCredentials]; }); } else { - CHIPCommissioningParameters * params = [[CHIPCommissioningParameters alloc] init]; + MTRCommissioningParameters * params = [[MTRCommissioningParameters alloc] init]; params.deviceAttestationDelegate = [[CHIPToolDeviceAttestationDelegate alloc] initWithViewController:self]; params.failSafeExpiryTimeoutSecs = @600; NSError * error; @@ -577,7 +589,7 @@ - (void)showError:(NSError *)error }); } -- (void)showPayload:(CHIPSetupPayload *)payload rawPayload:(NSString *)rawPayload isManualCode:(BOOL)isManualCode +- (void)showPayload:(MTRSetupPayload *)payload rawPayload:(NSString *)rawPayload isManualCode:(BOOL)isManualCode { [self->_activityIndicator stopAnimating]; self->_activityIndicator.hidden = YES; @@ -602,7 +614,7 @@ - (void)retrieveAndSendWiFiCredentials textField.clearButtonMode = UITextFieldViewModeWhileEditing; textField.borderStyle = UITextBorderStyleRoundedRect; - NSString * networkSSID = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkSSIDDefaultsKey); + NSString * networkSSID = MTRGetDomainValueForKey(MTRToolDefaultsDomain, kNetworkSSIDDefaultsKey); if ([networkSSID length] > 0) { textField.text = networkSSID; } @@ -614,7 +626,7 @@ - (void)retrieveAndSendWiFiCredentials textField.borderStyle = UITextBorderStyleRoundedRect; textField.secureTextEntry = YES; - NSString * networkPassword = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkPasswordDefaultsKey); + NSString * networkPassword = MTRGetDomainValueForKey(MTRToolDefaultsDomain, kNetworkPasswordDefaultsKey); if ([networkPassword length] > 0) { textField.text = networkPassword; } @@ -635,13 +647,13 @@ - (void)retrieveAndSendWiFiCredentials UITextField * networkSSID = textfields[0]; UITextField * networkPassword = textfields[1]; if ([networkSSID.text length] > 0) { - CHIPSetDomainValueForKey( - kCHIPToolDefaultsDomain, kNetworkSSIDDefaultsKey, networkSSID.text); + MTRSetDomainValueForKey( + MTRToolDefaultsDomain, kNetworkSSIDDefaultsKey, networkSSID.text); } if ([networkPassword.text length] > 0) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkPasswordDefaultsKey, - networkPassword.text); + MTRSetDomainValueForKey( + MTRToolDefaultsDomain, kNetworkPasswordDefaultsKey, networkPassword.text); } NSLog(@"New SSID: %@ Password: %@", networkSSID.text, networkPassword.text); @@ -655,16 +667,16 @@ - (void)commissionWithSSID:(NSString *)ssid password:(NSString *)password { NSError * error; - CHIPDeviceController * controller = InitializeCHIP(); + MTRDeviceController * controller = InitializeMTR(); // create commissioning params in ObjC. Pass those in here with network credentials. // maybe this just becomes the new norm - CHIPCommissioningParameters * params = [[CHIPCommissioningParameters alloc] init]; + MTRCommissioningParameters * params = [[MTRCommissioningParameters alloc] init]; params.wifiSSID = [ssid dataUsingEncoding:NSUTF8StringEncoding]; params.wifiCredentials = [password dataUsingEncoding:NSUTF8StringEncoding]; params.deviceAttestationDelegate = [[CHIPToolDeviceAttestationDelegate alloc] initWithViewController:self]; params.failSafeExpiryTimeoutSecs = @600; - uint64_t deviceId = CHIPGetNextAvailableDeviceID() - 1; + uint64_t deviceId = MTRGetNextAvailableDeviceID() - 1; if (![controller commissionDevice:deviceId commissioningParams:params error:&error]) { NSLog(@"Failed to commission Device %llu, with error %@", deviceId, error); @@ -678,12 +690,12 @@ - (void)onCommissioningComplete:(NSError * _Nullable)error return; } // track this device - uint64_t deviceId = CHIPGetNextAvailableDeviceID() - 1; - CHIPSetDevicePaired(deviceId, YES); + uint64_t deviceId = MTRGetNextAvailableDeviceID() - 1; + MTRSetDevicePaired(deviceId, YES); [self setVendorIDOnAccessory]; } -- (void)updateUIFields:(CHIPSetupPayload *)payload rawPayload:(nullable NSString *)rawPayload isManualCode:(BOOL)isManualCode +- (void)updateUIFields:(MTRSetupPayload *)payload rawPayload:(nullable NSString *)rawPayload isManualCode:(BOOL)isManualCode { if (isManualCode) { _manualCodeLabel.hidden = NO; @@ -711,12 +723,12 @@ - (void)updateUIFields:(CHIPSetupPayload *)payload rawPayload:(nullable NSString [self updateResultViewUI:_setupPayloadView]; - if (payload.commissioningFlow == kCommissioningFlowCustom) { + if (payload.commissioningFlow == MTRCommissioningFlowCustom) { _readFromLedgerButton.hidden = NO; } } -- (void)parseOptionalData:(CHIPSetupPayload *)payload +- (void)parseOptionalData:(MTRSetupPayload *)payload { NSLog(@"Payload vendorID %@", payload.vendorID); BOOL isSameVendorID = [payload.vendorID isEqualToNumber:[NSNumber numberWithInt:EXAMPLE_VENDOR_ID]]; @@ -725,13 +737,13 @@ - (void)parseOptionalData:(CHIPSetupPayload *)payload } NSArray * optionalInfo = [payload getAllOptionalVendorData:nil]; - for (CHIPOptionalQRCodeInfo * info in optionalInfo) { + for (MTROptionalQRCodeInfo * info in optionalInfo) { NSNumber * tag = info.tag; if (!tag) { continue; } - BOOL isTypeString = [info.infoType isEqualToNumber:[NSNumber numberWithInt:kOptionalQRCodeInfoTypeString]]; + BOOL isTypeString = [info.infoType isEqualToNumber:[NSNumber numberWithInt:MTROptionalQRCodeInfoTypeString]]; if (!isTypeString) { return; } @@ -749,17 +761,17 @@ - (void)parseOptionalData:(CHIPSetupPayload *)payload // MARK: Rendez Vous -- (void)handleRendezVous:(CHIPSetupPayload *)payload rawPayload:(NSString *)rawPayload +- (void)handleRendezVous:(MTRSetupPayload *)payload rawPayload:(NSString *)rawPayload { switch (payload.rendezvousInformation) { - case kRendezvousInformationNone: - case kRendezvousInformationOnNetwork: - case kRendezvousInformationBLE: - case kRendezvousInformationAllMask: + case MTRRendezvousInformationNone: + case MTRRendezvousInformationOnNetwork: + case MTRRendezvousInformationBLE: + case MTRRendezvousInformationAllMask: NSLog(@"Rendezvous Default"); [self handleRendezVousDefault:rawPayload]; break; - case kRendezvousInformationSoftAP: + case MTRRendezvousInformationSoftAP: NSLog(@"Rendezvous Wi-Fi"); [self handleRendezVousWiFi:[self getNetworkName:payload.discriminator]]; break; @@ -775,7 +787,7 @@ - (NSString *)getNetworkName:(NSNumber *)discriminator - (void)_restartMatterStack { - self.chipController = CHIPRestartController(self.chipController); + self.chipController = MTRRestartController(self.chipController); dispatch_queue_t callbackQueue = dispatch_queue_create("com.csa.matter.qrcodevc.callback", DISPATCH_QUEUE_SERIAL); [self.chipController setPairingDelegate:self queue:callbackQueue]; } @@ -783,14 +795,14 @@ - (void)_restartMatterStack - (void)handleRendezVousDefault:(NSString *)payload { NSError * error; - uint64_t deviceID = CHIPGetNextAvailableDeviceID(); + uint64_t deviceID = MTRGetNextAvailableDeviceID(); // restart the Matter Stack before pairing (for reliability + testing restarts) [self _restartMatterStack]; if ([self.chipController pairDevice:deviceID onboardingPayload:payload error:&error]) { deviceID++; - CHIPSetNextAvailableDeviceID(deviceID); + MTRSetNextAvailableDeviceID(deviceID); } } @@ -841,7 +853,7 @@ - (BOOL)startScanning return YES; } -- (void)displayQRCodeInSetupPayloadView:(CHIPSetupPayload *)payload rawPayload:(NSString *)rawPayload error:(NSError *)error +- (void)displayQRCodeInSetupPayloadView:(MTRSetupPayload *)payload rawPayload:(NSString *)rawPayload error:(NSError *)error { if (error) { [self showError:error]; @@ -856,7 +868,7 @@ - (void)scannedQRCode:(NSString *)qrCode [self->_captureSession stopRunning]; [self->_session invalidateSession]; }); - CHIPQRCodeSetupPayloadParser * parser = [[CHIPQRCodeSetupPayloadParser alloc] initWithBase38Representation:qrCode]; + MTRQRCodeSetupPayloadParser * parser = [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:qrCode]; NSError * error; _setupPayload = [parser populatePayload:&error]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ @@ -881,7 +893,7 @@ - (void)captureOutput:(AVCaptureOutput *)captureOutput } // MARK: Manual Code -- (void)displayManualCodeInSetupPayloadView:(CHIPSetupPayload *)payload +- (void)displayManualCodeInSetupPayloadView:(MTRSetupPayload *)payload decimalString:(NSString *)decimalString withError:(NSError *)error { @@ -929,8 +941,7 @@ - (IBAction)enteredManualCode:(id)sender NSString * decimalString = _manualCodeTextField.text; [self manualCodeEnteredStartState]; - CHIPManualSetupPayloadParser * parser = - [[CHIPManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:decimalString]; + MTRManualSetupPayloadParser * parser = [[MTRManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:decimalString]; NSError * error; _setupPayload = [parser populatePayload:&error]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, INDICATOR_DELAY), dispatch_get_main_queue(), ^{ @@ -1073,7 +1084,7 @@ - (instancetype)initWithViewController:(QRCodeViewController *)viewController return self; } -- (void)deviceAttestation:(CHIPDeviceController *)controller failedForDevice:(void *)device error:(NSError * _Nonnull)error +- (void)deviceAttestation:(MTRDeviceController *)controller failedForDevice:(void *)device error:(NSError * _Nonnull)error { dispatch_async(dispatch_get_main_queue(), ^{ UIAlertController * alertController = [UIAlertController diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.h index 93bb9a79e2bc03..426707aa90112e 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.h @@ -6,7 +6,7 @@ // Copyright © 2020 CHIP. All rights reserved. // -#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m index 0bf33308842ce5..c545a61cc5d297 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m @@ -184,14 +184,15 @@ - (void)updateTempInUI:(int)newTemp NSLog(@"Status: Updated temp in UI to %@", _temperatureLabel.text); } -// MARK: CHIPTemperatureMeasurement +// MARK: MTRTemperatureMeasurement - (void)readCurrentTemperature { - if (CHIPGetConnectedDevice(^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { - CHIPTemperatureMeasurement * cluster = - [[CHIPTemperatureMeasurement alloc] initWithDevice:chipDevice endpoint:1 queue:dispatch_get_main_queue()]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:chipDevice + endpoint:1 + queue:dispatch_get_main_queue()]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { if (error != nil) @@ -217,47 +218,48 @@ - (void)reportFromUserEnteredSettings NSLog( @"Sending temp reporting values: min %@ max %@ value %@", @(minIntervalSeconds), @(maxIntervalSeconds), @(deltaInCelsius)); - if (CHIPGetConnectedDevice(^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { - if (chipDevice) { - // Use a wildcard subscription + if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (chipDevice) { + // Use a wildcard subscription [chipDevice subscribeWithQueue:dispatch_get_main_queue() minInterval:minIntervalSeconds maxInterval:maxIntervalSeconds params:nil cacheContainer:nil - reportHandler:^(NSArray * _Nullable reports, NSError * _Nullable error) { - if (error) { - NSLog(@"Status: update reportAttributeMeasuredValue completed with error %@", - [error description]); - return; - } - for (CHIPAttributeReport * report in reports) { - // These should be exposed by the SDK - if ([report.path.cluster isEqualToNumber:@(kMatterClusterTemperatureMeasurementID)] && - [report.path.attribute - isEqualToNumber:@(kMatterClusterTemperatureMeasurementAttributeMeasuredValueID)]) { - if (report.error != nil) { - NSLog(@"Error reading temperature: %@", report.error); - } else { - __auto_type controller = [TemperatureSensorViewController currentController]; - if (controller != nil) { - [controller updateTempInUI:((NSNumber *) report.value).shortValue]; - } - } - } - } + attributeReportHandler:^(NSArray * _Nullable reports) { + if (!reports) + return; + for (MTRAttributeReport * report in reports) { + // These should be exposed by the SDK + if ([report.path.cluster isEqualToNumber:@(MTRClusterTemperatureMeasurementID)] && + [report.path.attribute isEqualToNumber:@(MTRClusterTemperatureMeasurementAttributeMeasuredValueID)]) { + if (report.error != nil) { + NSLog(@"Error reading temperature: %@", report.error); + } else { + __auto_type controller = [TemperatureSensorViewController currentController]; + if (controller != nil) { + [controller updateTempInUI:((NSNumber *) report.value).shortValue]; + } + } + } + } + } + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Status: update reportAttributeMeasuredValue completed with error %@", [error description]); } - subscriptionEstablished:^ { - - }]; + subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler { + if (error) { + NSLog(@"Status: update reportAttributeMeasuredValue completed"); + } + ]; } else { NSLog(@"Status: Failed to establish a connection with the device"); } })) { NSLog(@"Status: Waiting for connection with the device"); - } else { - NSLog(@"Status: Failed to trigger the connection with the device"); } + else { NSLog(@"Status: Failed to trigger the connection with the device"); } } @end diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.h b/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.h index c6091a44e51c8e..6c29d9e358c14a 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.h +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.m index 1b6a6517222e76..8cfad927136bf0 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/UnpairDevices/UnpairDevicesViewController.m @@ -19,7 +19,7 @@ #import "CHIPUIViewUtils.h" #import "DefaultsUtils.h" #import "DeviceSelector.h" -#import +#import @interface UnpairDevicesViewController () @property (strong, nonatomic) UISwitch * unpairAllDevicesSwitch; @@ -129,7 +129,7 @@ - (IBAction)unpairAllDevicesButton:(id)sender - (IBAction)unpairSelectedDevices:(id)sender { [_deviceSelector forSelectedDevices:^(uint64_t deviceId) { - CHIPUnpairDeviceWithID(deviceId); + MTRUnpairDeviceWithID(deviceId); }]; [_deviceSelector refreshDeviceList]; diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/WiFi/WiFiViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/WiFi/WiFiViewController.m index 03c088bdb35e21..e1b2a53bbf51b1 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/WiFi/WiFiViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/WiFi/WiFiViewController.m @@ -113,12 +113,12 @@ - (void)setupUI - (void)fillNetworkConfigWithDefaults { - NSString * networkSSID = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkSSIDDefaultsKey); + NSString * networkSSID = MTRGetDomainValueForKey(MTRToolDefaultsDomain, kNetworkSSIDDefaultsKey); if ([networkSSID length] > 0) { self.networkSSID.text = networkSSID; } - NSString * networkPassword = CHIPGetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkPasswordDefaultsKey); + NSString * networkPassword = MTRGetDomainValueForKey(MTRToolDefaultsDomain, kNetworkPasswordDefaultsKey); if ([networkPassword length] > 0) { self.networkPassword.text = networkPassword; } @@ -129,11 +129,11 @@ - (void)fillNetworkConfigWithDefaults - (IBAction)saveCredientials:(id)sender { if ([self.networkSSID.text length] > 0) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkSSIDDefaultsKey, self.networkSSID.text); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, kNetworkSSIDDefaultsKey, self.networkSSID.text); } if ([self.networkPassword.text length] > 0) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkPasswordDefaultsKey, self.networkPassword.text); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, kNetworkPasswordDefaultsKey, self.networkPassword.text); } [self.navigationController popViewControllerAnimated:YES]; @@ -142,11 +142,11 @@ - (IBAction)saveCredientials:(id)sender - (IBAction)clearCredientials:(id)sender { if ([self.networkSSID.text length] > 0) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkSSIDDefaultsKey, nil); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, kNetworkSSIDDefaultsKey, nil); } if ([self.networkPassword.text length] > 0) { - CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, kNetworkPasswordDefaultsKey, nil); + MTRSetDomainValueForKey(MTRToolDefaultsDomain, kNetworkPasswordDefaultsKey, nil); } self.networkSSID.text = @""; diff --git a/src/darwin/Darwin.xcworkspace/contents.xcworkspacedata b/src/darwin/Darwin.xcworkspace/contents.xcworkspacedata index b243c8ac5a4e09..c85ca5e473e3f0 100644 --- a/src/darwin/Darwin.xcworkspace/contents.xcworkspacedata +++ b/src/darwin/Darwin.xcworkspace/contents.xcworkspacedata @@ -2,9 +2,9 @@ + location = "group:Framework/Matter.xcodeproj"> + location = "group:CHIPTool/CHIPTool.xcodeproj"> diff --git a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj deleted file mode 100644 index f14d199428cd37..00000000000000 --- a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj +++ /dev/null @@ -1,977 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 53; - objects = { - -/* Begin PBXBuildFile section */ - 1E85730C265519AE0050A4D9 /* callback-stub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E857307265519AE0050A4D9 /* callback-stub.cpp */; }; - 1EB41B7B263C4CC60048E4C1 /* CHIPClustersTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EB41B7A263C4CC60048E4C1 /* CHIPClustersTests.m */; }; - 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */; }; - 1EC4CE5D25CC26E900D7304F /* CHIPClustersObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE5925CC26E900D7304F /* CHIPClustersObjc.mm */; }; - 1EC4CE6425CC276600D7304F /* CHIPClustersObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EC4CE6325CC276600D7304F /* CHIPClustersObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1ED276E026C57CF000547A89 /* CHIPCallbackBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276DF26C57CF000547A89 /* CHIPCallbackBridge.mm */; }; - 1ED276E226C5812A00547A89 /* CHIPCluster.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276E126C5812A00547A89 /* CHIPCluster.mm */; }; - 1ED276E426C5832500547A89 /* CHIPCluster.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ED276E326C5832500547A89 /* CHIPCluster.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 27A53C1727FBC6920053F131 /* CHIPAttestationTrustStoreBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 27A53C1527FBC6920053F131 /* CHIPAttestationTrustStoreBridge.h */; }; - 27A53C1827FBC6920053F131 /* CHIPAttestationTrustStoreBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 27A53C1627FBC6920053F131 /* CHIPAttestationTrustStoreBridge.mm */; }; - 2C1B027A2641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C1B02782641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.mm */; }; - 2C1B027B2641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C1B02792641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.h */; }; - 2C222AD0255C620600E446B9 /* CHIPDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ACE255C620600E446B9 /* CHIPDevice.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2C222AD1255C620600E446B9 /* CHIPDevice.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C222ACF255C620600E446B9 /* CHIPDevice.mm */; }; - 2C222ADF255C811800E446B9 /* CHIPDevice_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ADE255C811800E446B9 /* CHIPDevice_Internal.h */; }; - 2C4DF09E248B2C60009307CB /* libmbedtls.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C4DF09D248B2C60009307CB /* libmbedtls.a */; settings = {ATTRIBUTES = (Required, ); }; }; - 2C5EEEF6268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C5EEEF4268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.h */; }; - 2C5EEEF7268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C5EEEF5268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.mm */; }; - 2C8C8FC0253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C8C8FBD253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.h */; }; - 2C8C8FC1253E0C2100797F05 /* CHIPPersistentStorageDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C8C8FBE253E0C2100797F05 /* CHIPPersistentStorageDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2C8C8FC2253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C8C8FBF253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm */; }; - 2CB7163B252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CB71638252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.h */; }; - 2CB7163C252E8A7C0026E2BB /* CHIPDevicePairingDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2CB71639252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.mm */; }; - 2CB7163F252F731E0026E2BB /* CHIPDevicePairingDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CB7163E252F731E0026E2BB /* CHIPDevicePairingDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2FD775542695557E00FF4B12 /* error-mapping.cpp */; }; - 5129BCFD26A9EE3300122DDF /* CHIPError.h in Headers */ = {isa = PBXBuildFile; fileRef = 5129BCFC26A9EE3300122DDF /* CHIPError.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5136661328067D550025EDAE /* CHIPDeviceController_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136660F28067D540025EDAE /* CHIPDeviceController_Internal.h */; }; - 5136661428067D550025EDAE /* MatterControllerFactory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5136661028067D540025EDAE /* MatterControllerFactory.mm */; }; - 5136661528067D550025EDAE /* MatterControllerFactory_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136661128067D540025EDAE /* MatterControllerFactory_Internal.h */; }; - 5136661628067D550025EDAE /* MatterControllerFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136661228067D550025EDAE /* MatterControllerFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 513DDB862761F69300DAA01A /* CHIPAttributeTLVValueDecoder_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 513DDB852761F69300DAA01A /* CHIPAttributeTLVValueDecoder_Internal.h */; }; - 513DDB8A2761F6F900DAA01A /* CHIPAttributeTLVValueDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 513DDB892761F6F900DAA01A /* CHIPAttributeTLVValueDecoder.mm */; }; - 51431AF927D2973E008A7943 /* CHIPIMDispatch.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51431AF827D2973E008A7943 /* CHIPIMDispatch.mm */; }; - 51431AFB27D29CA4008A7943 /* ota-provider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51431AFA27D29CA4008A7943 /* ota-provider.cpp */; }; - 515C1C6F284F9FFB00A48F0C /* MTRMemory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */; }; - 515C1C70284F9FFB00A48F0C /* MTRMemory.h in Headers */ = {isa = PBXBuildFile; fileRef = 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */; }; - 517BF3F0282B62B800A8B7DB /* MTRCertificates.h in Headers */ = {isa = PBXBuildFile; fileRef = 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 517BF3F1282B62B800A8B7DB /* MTRCertificates.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */; }; - 517BF3F3282B62CB00A8B7DB /* MatterCertificateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 517BF3F2282B62CB00A8B7DB /* MatterCertificateTests.m */; }; - 51B22C1E2740CB0A008D5055 /* CHIPStructsObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 51B22C1D2740CB0A008D5055 /* CHIPStructsObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 51B22C222740CB1D008D5055 /* CHIPCommandPayloadsObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 51B22C212740CB1D008D5055 /* CHIPCommandPayloadsObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 51B22C262740CB32008D5055 /* CHIPStructsObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51B22C252740CB32008D5055 /* CHIPStructsObjc.mm */; }; - 51B22C2A2740CB47008D5055 /* CHIPCommandPayloadsObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51B22C292740CB47008D5055 /* CHIPCommandPayloadsObjc.mm */; }; - 51C8E3F82825CDB600D47D00 /* CHIPTestKeys.m in Sources */ = {isa = PBXBuildFile; fileRef = 51C8E3F72825CDB600D47D00 /* CHIPTestKeys.m */; }; - 51D10D2E2808E2CA00E8CA3D /* CHIPTestStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 51D10D2D2808E2CA00E8CA3D /* CHIPTestStorage.m */; }; - 51E0310027EA20D20083DC9C /* CHIPControllerAccessControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E030FE27EA20D20083DC9C /* CHIPControllerAccessControl.h */; }; - 51E0310127EA20D20083DC9C /* CHIPControllerAccessControl.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E030FF27EA20D20083DC9C /* CHIPControllerAccessControl.mm */; }; - 51E24E73274E0DAC007CCF6E /* CHIPErrorTestUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E24E72274E0DAC007CCF6E /* CHIPErrorTestUtils.mm */; }; - 51E51FBF282AD37A00FC978D /* CHIPDeviceControllerStartupParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E51FBC282AD37A00FC978D /* CHIPDeviceControllerStartupParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 51E51FC0282AD37A00FC978D /* CHIPDeviceControllerStartupParams_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E51FBD282AD37A00FC978D /* CHIPDeviceControllerStartupParams_Internal.h */; }; - 51E51FC1282AD37A00FC978D /* CHIPDeviceControllerStartupParams.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E51FBE282AD37A00FC978D /* CHIPDeviceControllerStartupParams.mm */; }; - 51F07EAD285C343C002FEBD8 /* privilege-storage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51F07EAC285C343C002FEBD8 /* privilege-storage.cpp */; }; - 5A60370827EA1FF60020DB79 /* CHIPAttributeCacheContainer+XPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A60370727EA1FF60020DB79 /* CHIPAttributeCacheContainer+XPC.h */; }; - 5A6FEC9027B563D900F25F42 /* CHIPDeviceControllerOverXPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC8F27B563D900F25F42 /* CHIPDeviceControllerOverXPC.m */; }; - 5A6FEC9227B5669C00F25F42 /* CHIPDeviceControllerOverXPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC8D27B5624E00F25F42 /* CHIPDeviceControllerOverXPC.h */; }; - 5A6FEC9627B5983000F25F42 /* CHIPDeviceControllerXPCConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9527B5983000F25F42 /* CHIPDeviceControllerXPCConnection.m */; }; - 5A6FEC9827B5C6AF00F25F42 /* CHIPDeviceOverXPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9727B5C6AF00F25F42 /* CHIPDeviceOverXPC.m */; }; - 5A6FEC9927B5C88900F25F42 /* CHIPDeviceOverXPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC8B27B5609C00F25F42 /* CHIPDeviceOverXPC.h */; }; - 5A6FEC9A27B5C89300F25F42 /* CHIPDeviceControllerXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC9427B5976200F25F42 /* CHIPDeviceControllerXPCConnection.h */; }; - 5A6FEC9D27B5E48900F25F42 /* CHIPXPCProtocolTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9C27B5E48800F25F42 /* CHIPXPCProtocolTests.m */; }; - 5A7947DE27BEC3F500434CF2 /* CHIPXPCListenerSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A7947DD27BEC3F500434CF2 /* CHIPXPCListenerSampleTests.m */; }; - 5A7947E427C0129600434CF2 /* CHIPDeviceController+XPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A7947E327C0129500434CF2 /* CHIPDeviceController+XPC.m */; }; - 5A7947E527C0129F00434CF2 /* CHIPDeviceController+XPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A7947E227C0101200434CF2 /* CHIPDeviceController+XPC.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5A830D6C27CFCF590053B85D /* CHIPDeviceControllerOverXPC_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A830D6B27CFCF590053B85D /* CHIPDeviceControllerOverXPC_Internal.h */; }; - 5ACDDD7A27CD129700EFD68A /* CHIPAttributeCacheContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5ACDDD7927CD129700EFD68A /* CHIPAttributeCacheContainer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5ACDDD7D27CD16D200EFD68A /* CHIPAttributeCacheContainer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5ACDDD7C27CD16D200EFD68A /* CHIPAttributeCacheContainer.mm */; }; - 5ACDDD7E27CD3F3A00EFD68A /* CHIPAttributeCacheContainer_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5ACDDD7B27CD14AF00EFD68A /* CHIPAttributeCacheContainer_Internal.h */; }; - 5AE6D4E427A99041001F2493 /* CHIPDeviceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AE6D4E327A99041001F2493 /* CHIPDeviceTests.m */; }; - 754F3DF427FBB94B00E60580 /* CHIPEventTLVValueDecoder_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 754F3DF327FBB94B00E60580 /* CHIPEventTLVValueDecoder_Internal.h */; }; - 7560FD1C27FBBD3F005E85B3 /* CHIPEventTLVValueDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7560FD1B27FBBD3F005E85B3 /* CHIPEventTLVValueDecoder.mm */; }; - 75C645A42825AAC3007E2C29 /* MatterClusterConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 75C645A32825AAC3007E2C29 /* MatterClusterConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 88EBF8CE27FABDD500686BC1 /* CHIPDeviceAttestationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CB27FABDD500686BC1 /* CHIPDeviceAttestationDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 88EBF8CF27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 88EBF8CC27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.mm */; }; - 88EBF8D027FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CD27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.h */; }; - 991DC0842475F45400C13860 /* CHIPDeviceController.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC0822475F45400C13860 /* CHIPDeviceController.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 991DC0892475F47D00C13860 /* CHIPDeviceController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */; }; - 991DC08B247704DC00C13860 /* CHIPLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC08A247704DC00C13860 /* CHIPLogging.h */; }; - 9956064426420367000C28DE /* CHIPSetupPayload_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 9956064326420367000C28DE /* CHIPSetupPayload_Internal.h */; }; - 997DED162695343400975E97 /* CHIPThreadOperationalDataset.mm in Sources */ = {isa = PBXBuildFile; fileRef = 997DED152695343400975E97 /* CHIPThreadOperationalDataset.mm */; }; - 997DED182695344800975E97 /* CHIPThreadOperationalDataset.h in Headers */ = {isa = PBXBuildFile; fileRef = 997DED172695344800975E97 /* CHIPThreadOperationalDataset.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 997DED1A26955D0200975E97 /* CHIPThreadOperationalDatasetTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 997DED1926955D0200975E97 /* CHIPThreadOperationalDatasetTests.mm */; }; - 998F286D26D55E10001846C6 /* CHIPKeypair.h in Headers */ = {isa = PBXBuildFile; fileRef = 998F286C26D55E10001846C6 /* CHIPKeypair.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 998F286F26D55EC5001846C6 /* CHIPP256KeypairBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 998F286E26D55EC5001846C6 /* CHIPP256KeypairBridge.h */; }; - 998F287126D56940001846C6 /* CHIPP256KeypairBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 998F287026D56940001846C6 /* CHIPP256KeypairBridge.mm */; }; - 99AECC802798A57F00B6355B /* CHIPCommissioningParameters.m in Sources */ = {isa = PBXBuildFile; fileRef = 99AECC7F2798A57E00B6355B /* CHIPCommissioningParameters.m */; }; - 99C65E10267282F1003402F6 /* CHIPControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 99C65E0F267282F1003402F6 /* CHIPControllerTests.m */; }; - 99D466E12798936D0089A18F /* CHIPCommissioningParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = 99D466E02798936D0089A18F /* CHIPCommissioningParameters.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B20252972459E34F00F97062 /* CHIP.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B202528D2459E34F00F97062 /* CHIP.framework */; }; - B289D4212639C0D300D4E314 /* CHIPOnboardingPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B289D41F2639C0D300D4E314 /* CHIPOnboardingPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B289D4222639C0D300D4E314 /* CHIPOnboardingPayloadParser.m in Sources */ = {isa = PBXBuildFile; fileRef = B289D4202639C0D300D4E314 /* CHIPOnboardingPayloadParser.m */; }; - B2E0D7B1245B0B5C003C5B48 /* CHIP.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7A8245B0B5C003C5B48 /* CHIP.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B2E0D7B2245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7A9245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B2E0D7B3245B0B5C003C5B48 /* CHIPError.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AA245B0B5C003C5B48 /* CHIPError.mm */; }; - B2E0D7B4245B0B5C003C5B48 /* CHIPError_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AB245B0B5C003C5B48 /* CHIPError_Internal.h */; }; - B2E0D7B5245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AC245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B2E0D7B6245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AD245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.mm */; }; - B2E0D7B7245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AE245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.mm */; }; - B2E0D7B8245B0B5C003C5B48 /* CHIPSetupPayload.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AF245B0B5C003C5B48 /* CHIPSetupPayload.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B2E0D7B9245B0B5C003C5B48 /* CHIPSetupPayload.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7B0245B0B5C003C5B48 /* CHIPSetupPayload.mm */; }; - B2F53AF2245B0DCF0010745E /* CHIPSetupPayloadParserTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F53AF1245B0DCF0010745E /* CHIPSetupPayloadParserTests.m */; }; - BA09EB43247477BA00605257 /* libCHIP.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BA09EB3F2474762900605257 /* libCHIP.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - B20252982459E34F00F97062 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = B20252842459E34F00F97062 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B202528C2459E34F00F97062; - remoteInfo = CHP; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 1E857307265519AE0050A4D9 /* callback-stub.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "callback-stub.cpp"; path = "../../../../zzz_generated/controller-clusters/zap-generated/callback-stub.cpp"; sourceTree = ""; }; - 1EB41B7A263C4CC60048E4C1 /* CHIPClustersTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHIPClustersTests.m; sourceTree = ""; }; - 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "cluster-objects.cpp"; path = "../../../../zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp"; sourceTree = ""; }; - 1EC4CE5925CC26E900D7304F /* CHIPClustersObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPClustersObjc.mm; path = "zap-generated/CHIPClustersObjc.mm"; sourceTree = ""; }; - 1EC4CE6325CC276600D7304F /* CHIPClustersObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CHIPClustersObjc.h; path = "zap-generated/CHIPClustersObjc.h"; sourceTree = ""; }; - 1ED276DF26C57CF000547A89 /* CHIPCallbackBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPCallbackBridge.mm; path = "zap-generated/CHIPCallbackBridge.mm"; sourceTree = ""; }; - 1ED276E126C5812A00547A89 /* CHIPCluster.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPCluster.mm; sourceTree = ""; }; - 1ED276E326C5832500547A89 /* CHIPCluster.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPCluster.h; sourceTree = ""; }; - 27A53C1527FBC6920053F131 /* CHIPAttestationTrustStoreBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPAttestationTrustStoreBridge.h; sourceTree = ""; }; - 27A53C1627FBC6920053F131 /* CHIPAttestationTrustStoreBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPAttestationTrustStoreBridge.mm; sourceTree = ""; }; - 2C1B02782641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPOperationalCredentialsDelegate.mm; sourceTree = ""; }; - 2C1B02792641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPOperationalCredentialsDelegate.h; sourceTree = ""; }; - 2C222ACE255C620600E446B9 /* CHIPDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDevice.h; sourceTree = ""; }; - 2C222ACF255C620600E446B9 /* CHIPDevice.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDevice.mm; sourceTree = ""; }; - 2C222ADE255C811800E446B9 /* CHIPDevice_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDevice_Internal.h; sourceTree = ""; }; - 2C4DF09D248B2C60009307CB /* libmbedtls.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmbedtls.a; path = lib/libmbedtls.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 2C5EEEF4268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceConnectionBridge.h; sourceTree = ""; }; - 2C5EEEF5268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceConnectionBridge.mm; sourceTree = ""; }; - 2C8C8FBD253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPPersistentStorageDelegateBridge.h; sourceTree = ""; }; - 2C8C8FBE253E0C2100797F05 /* CHIPPersistentStorageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPPersistentStorageDelegate.h; sourceTree = ""; }; - 2C8C8FBF253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPPersistentStorageDelegateBridge.mm; sourceTree = ""; }; - 2CB71638252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDevicePairingDelegateBridge.h; sourceTree = ""; }; - 2CB71639252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDevicePairingDelegateBridge.mm; sourceTree = ""; }; - 2CB7163E252F731E0026E2BB /* CHIPDevicePairingDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDevicePairingDelegate.h; sourceTree = ""; }; - 2FD775542695557E00FF4B12 /* error-mapping.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "error-mapping.cpp"; path = "../../../app/util/error-mapping.cpp"; sourceTree = ""; }; - 5129BCFC26A9EE3300122DDF /* CHIPError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = CHIPError.h; path = CHIP/CHIPError.h; sourceTree = ""; }; - 5136660F28067D540025EDAE /* CHIPDeviceController_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceController_Internal.h; sourceTree = ""; }; - 5136661028067D540025EDAE /* MatterControllerFactory.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MatterControllerFactory.mm; sourceTree = ""; }; - 5136661128067D540025EDAE /* MatterControllerFactory_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MatterControllerFactory_Internal.h; sourceTree = ""; }; - 5136661228067D550025EDAE /* MatterControllerFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MatterControllerFactory.h; sourceTree = ""; }; - 513DDB852761F69300DAA01A /* CHIPAttributeTLVValueDecoder_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPAttributeTLVValueDecoder_Internal.h; sourceTree = ""; }; - 513DDB892761F6F900DAA01A /* CHIPAttributeTLVValueDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPAttributeTLVValueDecoder.mm; path = "zap-generated/CHIPAttributeTLVValueDecoder.mm"; sourceTree = ""; }; - 51431AF827D2973E008A7943 /* CHIPIMDispatch.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPIMDispatch.mm; sourceTree = ""; }; - 51431AFA27D29CA4008A7943 /* ota-provider.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ota-provider.cpp"; path = "../../../app/clusters/ota-provider/ota-provider.cpp"; sourceTree = ""; }; - 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRMemory.mm; sourceTree = ""; }; - 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRMemory.h; sourceTree = ""; }; - 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCertificates.h; sourceTree = ""; }; - 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRCertificates.mm; sourceTree = ""; }; - 517BF3F2282B62CB00A8B7DB /* MatterCertificateTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MatterCertificateTests.m; sourceTree = ""; }; - 51B22C1D2740CB0A008D5055 /* CHIPStructsObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CHIPStructsObjc.h; path = "zap-generated/CHIPStructsObjc.h"; sourceTree = ""; }; - 51B22C212740CB1D008D5055 /* CHIPCommandPayloadsObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CHIPCommandPayloadsObjc.h; path = "zap-generated/CHIPCommandPayloadsObjc.h"; sourceTree = ""; }; - 51B22C252740CB32008D5055 /* CHIPStructsObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPStructsObjc.mm; path = "zap-generated/CHIPStructsObjc.mm"; sourceTree = ""; }; - 51B22C292740CB47008D5055 /* CHIPCommandPayloadsObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPCommandPayloadsObjc.mm; path = "zap-generated/CHIPCommandPayloadsObjc.mm"; sourceTree = ""; }; - 51C8E3F72825CDB600D47D00 /* CHIPTestKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHIPTestKeys.m; sourceTree = ""; }; - 51D10D2D2808E2CA00E8CA3D /* CHIPTestStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHIPTestStorage.m; sourceTree = ""; }; - 51E030FE27EA20D20083DC9C /* CHIPControllerAccessControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPControllerAccessControl.h; sourceTree = ""; }; - 51E030FF27EA20D20083DC9C /* CHIPControllerAccessControl.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPControllerAccessControl.mm; sourceTree = ""; }; - 51E24E72274E0DAC007CCF6E /* CHIPErrorTestUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPErrorTestUtils.mm; sourceTree = ""; }; - 51E51FBC282AD37A00FC978D /* CHIPDeviceControllerStartupParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceControllerStartupParams.h; sourceTree = ""; }; - 51E51FBD282AD37A00FC978D /* CHIPDeviceControllerStartupParams_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceControllerStartupParams_Internal.h; sourceTree = ""; }; - 51E51FBE282AD37A00FC978D /* CHIPDeviceControllerStartupParams.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceControllerStartupParams.mm; sourceTree = ""; }; - 51F07EAC285C343C002FEBD8 /* privilege-storage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "privilege-storage.cpp"; path = "../../../app/util/privilege-storage.cpp"; sourceTree = ""; }; - 5A60370727EA1FF60020DB79 /* CHIPAttributeCacheContainer+XPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CHIPAttributeCacheContainer+XPC.h"; sourceTree = ""; }; - 5A6FEC8B27B5609C00F25F42 /* CHIPDeviceOverXPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceOverXPC.h; sourceTree = ""; }; - 5A6FEC8D27B5624E00F25F42 /* CHIPDeviceControllerOverXPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceControllerOverXPC.h; sourceTree = ""; }; - 5A6FEC8F27B563D900F25F42 /* CHIPDeviceControllerOverXPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPDeviceControllerOverXPC.m; sourceTree = ""; }; - 5A6FEC9427B5976200F25F42 /* CHIPDeviceControllerXPCConnection.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceControllerXPCConnection.h; sourceTree = ""; }; - 5A6FEC9527B5983000F25F42 /* CHIPDeviceControllerXPCConnection.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPDeviceControllerXPCConnection.m; sourceTree = ""; }; - 5A6FEC9727B5C6AF00F25F42 /* CHIPDeviceOverXPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPDeviceOverXPC.m; sourceTree = ""; }; - 5A6FEC9C27B5E48800F25F42 /* CHIPXPCProtocolTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPXPCProtocolTests.m; sourceTree = ""; }; - 5A7947DD27BEC3F500434CF2 /* CHIPXPCListenerSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPXPCListenerSampleTests.m; sourceTree = ""; }; - 5A7947E227C0101200434CF2 /* CHIPDeviceController+XPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CHIPDeviceController+XPC.h"; sourceTree = ""; }; - 5A7947E327C0129500434CF2 /* CHIPDeviceController+XPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "CHIPDeviceController+XPC.m"; sourceTree = ""; }; - 5A830D6B27CFCF590053B85D /* CHIPDeviceControllerOverXPC_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceControllerOverXPC_Internal.h; sourceTree = ""; }; - 5ACDDD7927CD129700EFD68A /* CHIPAttributeCacheContainer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPAttributeCacheContainer.h; sourceTree = ""; }; - 5ACDDD7B27CD14AF00EFD68A /* CHIPAttributeCacheContainer_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPAttributeCacheContainer_Internal.h; sourceTree = ""; }; - 5ACDDD7C27CD16D200EFD68A /* CHIPAttributeCacheContainer.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPAttributeCacheContainer.mm; sourceTree = ""; }; - 5AE6D4E327A99041001F2493 /* CHIPDeviceTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPDeviceTests.m; sourceTree = ""; }; - 754F3DF327FBB94B00E60580 /* CHIPEventTLVValueDecoder_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPEventTLVValueDecoder_Internal.h; sourceTree = ""; }; - 7560FD1B27FBBD3F005E85B3 /* CHIPEventTLVValueDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CHIPEventTLVValueDecoder.mm; path = "zap-generated/CHIPEventTLVValueDecoder.mm"; sourceTree = ""; }; - 75C645A32825AAC3007E2C29 /* MatterClusterConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MatterClusterConstants.h; sourceTree = ""; }; - 88EBF8CB27FABDD500686BC1 /* CHIPDeviceAttestationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceAttestationDelegate.h; sourceTree = ""; }; - 88EBF8CC27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceAttestationDelegateBridge.mm; sourceTree = ""; }; - 88EBF8CD27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceAttestationDelegateBridge.h; sourceTree = ""; }; - 991DC0822475F45400C13860 /* CHIPDeviceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceController.h; sourceTree = ""; }; - 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceController.mm; sourceTree = ""; }; - 991DC08A247704DC00C13860 /* CHIPLogging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPLogging.h; sourceTree = ""; }; - 9956064326420367000C28DE /* CHIPSetupPayload_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPSetupPayload_Internal.h; sourceTree = ""; }; - 997DED152695343400975E97 /* CHIPThreadOperationalDataset.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPThreadOperationalDataset.mm; sourceTree = ""; }; - 997DED172695344800975E97 /* CHIPThreadOperationalDataset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPThreadOperationalDataset.h; sourceTree = ""; }; - 997DED1926955D0200975E97 /* CHIPThreadOperationalDatasetTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPThreadOperationalDatasetTests.mm; sourceTree = ""; }; - 998F286C26D55E10001846C6 /* CHIPKeypair.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPKeypair.h; sourceTree = ""; }; - 998F286E26D55EC5001846C6 /* CHIPP256KeypairBridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPP256KeypairBridge.h; sourceTree = ""; }; - 998F287026D56940001846C6 /* CHIPP256KeypairBridge.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPP256KeypairBridge.mm; sourceTree = ""; }; - 99AECC7F2798A57E00B6355B /* CHIPCommissioningParameters.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPCommissioningParameters.m; sourceTree = ""; }; - 99C65E0F267282F1003402F6 /* CHIPControllerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPControllerTests.m; sourceTree = ""; }; - 99D466E02798936D0089A18F /* CHIPCommissioningParameters.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPCommissioningParameters.h; sourceTree = ""; }; - B202528D2459E34F00F97062 /* CHIP.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CHIP.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - B20252912459E34F00F97062 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B20252962459E34F00F97062 /* CHIPTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CHIPTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - B202529D2459E34F00F97062 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B289D41F2639C0D300D4E314 /* CHIPOnboardingPayloadParser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPOnboardingPayloadParser.h; sourceTree = ""; }; - B289D4202639C0D300D4E314 /* CHIPOnboardingPayloadParser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CHIPOnboardingPayloadParser.m; sourceTree = ""; }; - B2E0D7A8245B0B5C003C5B48 /* CHIP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIP.h; sourceTree = ""; }; - B2E0D7A9245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPManualSetupPayloadParser.h; sourceTree = ""; }; - B2E0D7AA245B0B5C003C5B48 /* CHIPError.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPError.mm; sourceTree = ""; }; - B2E0D7AB245B0B5C003C5B48 /* CHIPError_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPError_Internal.h; sourceTree = ""; }; - B2E0D7AC245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPQRCodeSetupPayloadParser.h; sourceTree = ""; }; - B2E0D7AD245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPManualSetupPayloadParser.mm; sourceTree = ""; }; - B2E0D7AE245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPQRCodeSetupPayloadParser.mm; sourceTree = ""; }; - B2E0D7AF245B0B5C003C5B48 /* CHIPSetupPayload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHIPSetupPayload.h; sourceTree = ""; }; - B2E0D7B0245B0B5C003C5B48 /* CHIPSetupPayload.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPSetupPayload.mm; sourceTree = ""; }; - B2F53AF1245B0DCF0010745E /* CHIPSetupPayloadParserTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHIPSetupPayloadParserTests.m; sourceTree = ""; }; - BA09EB3F2474762900605257 /* libCHIP.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libCHIP.a; path = lib/libCHIP.a; sourceTree = BUILT_PRODUCTS_DIR; }; - BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = chip_xcode_build_connector.sh; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - B202528A2459E34F00F97062 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - BA09EB43247477BA00605257 /* libCHIP.a in Frameworks */, - 2C4DF09E248B2C60009307CB /* libmbedtls.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B20252932459E34F00F97062 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - B20252972459E34F00F97062 /* CHIP.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1E857311265519DE0050A4D9 /* CHIPApp */ = { - isa = PBXGroup; - children = ( - 2FD775542695557E00FF4B12 /* error-mapping.cpp */, - 51F07EAC285C343C002FEBD8 /* privilege-storage.cpp */, - 51431AFA27D29CA4008A7943 /* ota-provider.cpp */, - ); - name = CHIPApp; - sourceTree = ""; - }; - 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */ = { - isa = PBXGroup; - children = ( - 513DDB892761F6F900DAA01A /* CHIPAttributeTLVValueDecoder.mm */, - 7560FD1B27FBBD3F005E85B3 /* CHIPEventTLVValueDecoder.mm */, - 51B22C292740CB47008D5055 /* CHIPCommandPayloadsObjc.mm */, - 51B22C252740CB32008D5055 /* CHIPStructsObjc.mm */, - 51B22C212740CB1D008D5055 /* CHIPCommandPayloadsObjc.h */, - 51B22C1D2740CB0A008D5055 /* CHIPStructsObjc.h */, - 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */, - 1ED276DF26C57CF000547A89 /* CHIPCallbackBridge.mm */, - 1E857307265519AE0050A4D9 /* callback-stub.cpp */, - 1EC4CE6325CC276600D7304F /* CHIPClustersObjc.h */, - 1EC4CE5925CC26E900D7304F /* CHIPClustersObjc.mm */, - 75C645A32825AAC3007E2C29 /* MatterClusterConstants.h */, - ); - name = CHIPGeneratedFiles; - sourceTree = ""; - }; - B20252832459E34F00F97062 = { - isa = PBXGroup; - children = ( - 5129BCFC26A9EE3300122DDF /* CHIPError.h */, - BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */, - B202528F2459E34F00F97062 /* CHIP */, - B202529A2459E34F00F97062 /* CHIPTests */, - B202528E2459E34F00F97062 /* Products */, - BA09EB3E2474762900605257 /* Frameworks */, - ); - sourceTree = ""; - }; - B202528E2459E34F00F97062 /* Products */ = { - isa = PBXGroup; - children = ( - B202528D2459E34F00F97062 /* CHIP.framework */, - B20252962459E34F00F97062 /* CHIPTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - B202528F2459E34F00F97062 /* CHIP */ = { - isa = PBXGroup; - children = ( - 27A53C1527FBC6920053F131 /* CHIPAttestationTrustStoreBridge.h */, - 27A53C1627FBC6920053F131 /* CHIPAttestationTrustStoreBridge.mm */, - 88EBF8CB27FABDD500686BC1 /* CHIPDeviceAttestationDelegate.h */, - 88EBF8CD27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.h */, - 88EBF8CC27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.mm */, - 513DDB852761F69300DAA01A /* CHIPAttributeTLVValueDecoder_Internal.h */, - 754F3DF327FBB94B00E60580 /* CHIPEventTLVValueDecoder_Internal.h */, - 1ED276E326C5832500547A89 /* CHIPCluster.h */, - 1ED276E126C5812A00547A89 /* CHIPCluster.mm */, - 2C5EEEF4268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.h */, - 51431AF827D2973E008A7943 /* CHIPIMDispatch.mm */, - 51E030FE27EA20D20083DC9C /* CHIPControllerAccessControl.h */, - 51E030FF27EA20D20083DC9C /* CHIPControllerAccessControl.mm */, - 2C5EEEF5268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.mm */, - 1E857311265519DE0050A4D9 /* CHIPApp */, - 2C1B02792641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.h */, - 2C1B02782641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.mm */, - 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */, - 2C222ADE255C811800E446B9 /* CHIPDevice_Internal.h */, - 2C222ACE255C620600E446B9 /* CHIPDevice.h */, - 2C222ACF255C620600E446B9 /* CHIPDevice.mm */, - 2C8C8FBE253E0C2100797F05 /* CHIPPersistentStorageDelegate.h */, - 5ACDDD7927CD129700EFD68A /* CHIPAttributeCacheContainer.h */, - 5A60370727EA1FF60020DB79 /* CHIPAttributeCacheContainer+XPC.h */, - 5ACDDD7B27CD14AF00EFD68A /* CHIPAttributeCacheContainer_Internal.h */, - 5ACDDD7C27CD16D200EFD68A /* CHIPAttributeCacheContainer.mm */, - 997DED152695343400975E97 /* CHIPThreadOperationalDataset.mm */, - 997DED172695344800975E97 /* CHIPThreadOperationalDataset.h */, - 2C8C8FBD253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.h */, - 2C8C8FBF253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm */, - 99D466E02798936D0089A18F /* CHIPCommissioningParameters.h */, - 99AECC7F2798A57E00B6355B /* CHIPCommissioningParameters.m */, - 2CB7163E252F731E0026E2BB /* CHIPDevicePairingDelegate.h */, - 2CB71638252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.h */, - 2CB71639252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.mm */, - B2E0D7A8245B0B5C003C5B48 /* CHIP.h */, - B2E0D7AB245B0B5C003C5B48 /* CHIPError_Internal.h */, - B2E0D7AA245B0B5C003C5B48 /* CHIPError.mm */, - 991DC08A247704DC00C13860 /* CHIPLogging.h */, - B289D41F2639C0D300D4E314 /* CHIPOnboardingPayloadParser.h */, - B289D4202639C0D300D4E314 /* CHIPOnboardingPayloadParser.m */, - B2E0D7A9245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.h */, - B2E0D7AD245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.mm */, - B2E0D7AC245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.h */, - B2E0D7AE245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.mm */, - B2E0D7AF245B0B5C003C5B48 /* CHIPSetupPayload.h */, - 9956064326420367000C28DE /* CHIPSetupPayload_Internal.h */, - B2E0D7B0245B0B5C003C5B48 /* CHIPSetupPayload.mm */, - 991DC0822475F45400C13860 /* CHIPDeviceController.h */, - 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */, - 5136660F28067D540025EDAE /* CHIPDeviceController_Internal.h */, - 5136661128067D540025EDAE /* MatterControllerFactory_Internal.h */, - 51E51FBD282AD37A00FC978D /* CHIPDeviceControllerStartupParams_Internal.h */, - 51E51FBC282AD37A00FC978D /* CHIPDeviceControllerStartupParams.h */, - 51E51FBE282AD37A00FC978D /* CHIPDeviceControllerStartupParams.mm */, - 5136661228067D550025EDAE /* MatterControllerFactory.h */, - 5136661028067D540025EDAE /* MatterControllerFactory.mm */, - 5A7947E227C0101200434CF2 /* CHIPDeviceController+XPC.h */, - 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */, - 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */, - 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */, - 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */, - 5A7947E327C0129500434CF2 /* CHIPDeviceController+XPC.m */, - B20252912459E34F00F97062 /* Info.plist */, - 998F286C26D55E10001846C6 /* CHIPKeypair.h */, - 998F286E26D55EC5001846C6 /* CHIPP256KeypairBridge.h */, - 998F287026D56940001846C6 /* CHIPP256KeypairBridge.mm */, - 5A6FEC8B27B5609C00F25F42 /* CHIPDeviceOverXPC.h */, - 5A6FEC9727B5C6AF00F25F42 /* CHIPDeviceOverXPC.m */, - 5A6FEC8D27B5624E00F25F42 /* CHIPDeviceControllerOverXPC.h */, - 5A830D6B27CFCF590053B85D /* CHIPDeviceControllerOverXPC_Internal.h */, - 5A6FEC8F27B563D900F25F42 /* CHIPDeviceControllerOverXPC.m */, - 5A6FEC9427B5976200F25F42 /* CHIPDeviceControllerXPCConnection.h */, - 5A6FEC9527B5983000F25F42 /* CHIPDeviceControllerXPCConnection.m */, - ); - path = CHIP; - sourceTree = ""; - }; - B202529A2459E34F00F97062 /* CHIPTests */ = { - isa = PBXGroup; - children = ( - 51E24E72274E0DAC007CCF6E /* CHIPErrorTestUtils.mm */, - 51C8E3F72825CDB600D47D00 /* CHIPTestKeys.m */, - 51D10D2D2808E2CA00E8CA3D /* CHIPTestStorage.m */, - 1EB41B7A263C4CC60048E4C1 /* CHIPClustersTests.m */, - 99C65E0F267282F1003402F6 /* CHIPControllerTests.m */, - 5AE6D4E327A99041001F2493 /* CHIPDeviceTests.m */, - 5A6FEC9C27B5E48800F25F42 /* CHIPXPCProtocolTests.m */, - 5A7947DD27BEC3F500434CF2 /* CHIPXPCListenerSampleTests.m */, - B2F53AF1245B0DCF0010745E /* CHIPSetupPayloadParserTests.m */, - 997DED1926955D0200975E97 /* CHIPThreadOperationalDatasetTests.mm */, - 517BF3F2282B62CB00A8B7DB /* MatterCertificateTests.m */, - B202529D2459E34F00F97062 /* Info.plist */, - ); - path = CHIPTests; - sourceTree = ""; - }; - BA09EB3E2474762900605257 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 2C4DF09D248B2C60009307CB /* libmbedtls.a */, - BA09EB3F2474762900605257 /* libCHIP.a */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - B20252882459E34F00F97062 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 517BF3F0282B62B800A8B7DB /* MTRCertificates.h in Headers */, - 51E51FBF282AD37A00FC978D /* CHIPDeviceControllerStartupParams.h in Headers */, - 5136661628067D550025EDAE /* MatterControllerFactory.h in Headers */, - 5A6FEC9927B5C88900F25F42 /* CHIPDeviceOverXPC.h in Headers */, - 51B22C222740CB1D008D5055 /* CHIPCommandPayloadsObjc.h in Headers */, - 51B22C1E2740CB0A008D5055 /* CHIPStructsObjc.h in Headers */, - 2CB7163B252E8A7B0026E2BB /* CHIPDevicePairingDelegateBridge.h in Headers */, - 5ACDDD7A27CD129700EFD68A /* CHIPAttributeCacheContainer.h in Headers */, - 5A6FEC9227B5669C00F25F42 /* CHIPDeviceControllerOverXPC.h in Headers */, - 2C1B027B2641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.h in Headers */, - 99D466E12798936D0089A18F /* CHIPCommissioningParameters.h in Headers */, - 5136661528067D550025EDAE /* MatterControllerFactory_Internal.h in Headers */, - 75C645A42825AAC3007E2C29 /* MatterClusterConstants.h in Headers */, - 515C1C70284F9FFB00A48F0C /* MTRMemory.h in Headers */, - B289D4212639C0D300D4E314 /* CHIPOnboardingPayloadParser.h in Headers */, - 513DDB862761F69300DAA01A /* CHIPAttributeTLVValueDecoder_Internal.h in Headers */, - 2CB7163F252F731E0026E2BB /* CHIPDevicePairingDelegate.h in Headers */, - 88EBF8CE27FABDD500686BC1 /* CHIPDeviceAttestationDelegate.h in Headers */, - 2C222AD0255C620600E446B9 /* CHIPDevice.h in Headers */, - 991DC0842475F45400C13860 /* CHIPDeviceController.h in Headers */, - 754F3DF427FBB94B00E60580 /* CHIPEventTLVValueDecoder_Internal.h in Headers */, - B2E0D7B2245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.h in Headers */, - B2E0D7B1245B0B5C003C5B48 /* CHIP.h in Headers */, - B2E0D7B8245B0B5C003C5B48 /* CHIPSetupPayload.h in Headers */, - 997DED182695344800975E97 /* CHIPThreadOperationalDataset.h in Headers */, - 9956064426420367000C28DE /* CHIPSetupPayload_Internal.h in Headers */, - 27A53C1727FBC6920053F131 /* CHIPAttestationTrustStoreBridge.h in Headers */, - 5A830D6C27CFCF590053B85D /* CHIPDeviceControllerOverXPC_Internal.h in Headers */, - 88EBF8D027FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.h in Headers */, - 5A60370827EA1FF60020DB79 /* CHIPAttributeCacheContainer+XPC.h in Headers */, - 5ACDDD7E27CD3F3A00EFD68A /* CHIPAttributeCacheContainer_Internal.h in Headers */, - 5136661328067D550025EDAE /* CHIPDeviceController_Internal.h in Headers */, - 998F286D26D55E10001846C6 /* CHIPKeypair.h in Headers */, - 1ED276E426C5832500547A89 /* CHIPCluster.h in Headers */, - 5A6FEC9A27B5C89300F25F42 /* CHIPDeviceControllerXPCConnection.h in Headers */, - 5129BCFD26A9EE3300122DDF /* CHIPError.h in Headers */, - 2C8C8FC1253E0C2100797F05 /* CHIPPersistentStorageDelegate.h in Headers */, - B2E0D7B5245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.h in Headers */, - 1EC4CE6425CC276600D7304F /* CHIPClustersObjc.h in Headers */, - 2C5EEEF6268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.h in Headers */, - 2C8C8FC0253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.h in Headers */, - 51E51FC0282AD37A00FC978D /* CHIPDeviceControllerStartupParams_Internal.h in Headers */, - 998F286F26D55EC5001846C6 /* CHIPP256KeypairBridge.h in Headers */, - 2C222ADF255C811800E446B9 /* CHIPDevice_Internal.h in Headers */, - 51E0310027EA20D20083DC9C /* CHIPControllerAccessControl.h in Headers */, - 991DC08B247704DC00C13860 /* CHIPLogging.h in Headers */, - 5A7947E527C0129F00434CF2 /* CHIPDeviceController+XPC.h in Headers */, - B2E0D7B4245B0B5C003C5B48 /* CHIPError_Internal.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - B202528C2459E34F00F97062 /* CHIP */ = { - isa = PBXNativeTarget; - buildConfigurationList = B20252A12459E34F00F97062 /* Build configuration list for PBXNativeTarget "CHIP" */; - buildPhases = ( - 0C40A67D246C9AC700885C81 /* Run Script */, - B20252882459E34F00F97062 /* Headers */, - B20252892459E34F00F97062 /* Sources */, - B202528A2459E34F00F97062 /* Frameworks */, - B202528B2459E34F00F97062 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = CHIP; - productName = CHP; - productReference = B202528D2459E34F00F97062 /* CHIP.framework */; - productType = "com.apple.product-type.framework"; - }; - B20252952459E34F00F97062 /* CHIPTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = B20252A42459E34F00F97062 /* Build configuration list for PBXNativeTarget "CHIPTests" */; - buildPhases = ( - B20252922459E34F00F97062 /* Sources */, - B20252932459E34F00F97062 /* Frameworks */, - B20252942459E34F00F97062 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - B20252992459E34F00F97062 /* PBXTargetDependency */, - ); - name = CHIPTests; - productName = CHPTests; - productReference = B20252962459E34F00F97062 /* CHIPTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - B20252842459E34F00F97062 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastUpgradeCheck = 1140; - ORGANIZATIONNAME = CHIP; - TargetAttributes = { - B202528C2459E34F00F97062 = { - CreatedOnToolsVersion = 11.4.1; - }; - B20252952459E34F00F97062 = { - CreatedOnToolsVersion = 11.4.1; - }; - }; - }; - buildConfigurationList = B20252872459E34F00F97062 /* Build configuration list for PBXProject "CHIP" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = B20252832459E34F00F97062; - productRefGroup = B202528E2459E34F00F97062 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - B202528C2459E34F00F97062 /* CHIP */, - B20252952459E34F00F97062 /* CHIPTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - B202528B2459E34F00F97062 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B20252942459E34F00F97062 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 0C40A67D246C9AC700885C81 /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "./chip_xcode_build_connector.sh\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - B20252892459E34F00F97062 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2C8C8FC2253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm in Sources */, - 99AECC802798A57F00B6355B /* CHIPCommissioningParameters.m in Sources */, - 2CB7163C252E8A7C0026E2BB /* CHIPDevicePairingDelegateBridge.mm in Sources */, - 997DED162695343400975E97 /* CHIPThreadOperationalDataset.mm in Sources */, - 515C1C6F284F9FFB00A48F0C /* MTRMemory.mm in Sources */, - 27A53C1827FBC6920053F131 /* CHIPAttestationTrustStoreBridge.mm in Sources */, - 998F287126D56940001846C6 /* CHIPP256KeypairBridge.mm in Sources */, - 5136661428067D550025EDAE /* MatterControllerFactory.mm in Sources */, - 51B22C2A2740CB47008D5055 /* CHIPCommandPayloadsObjc.mm in Sources */, - 2C5EEEF7268A85C400CAE3D3 /* CHIPDeviceConnectionBridge.mm in Sources */, - 51B22C262740CB32008D5055 /* CHIPStructsObjc.mm in Sources */, - 2C222AD1255C620600E446B9 /* CHIPDevice.mm in Sources */, - 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */, - 991DC0892475F47D00C13860 /* CHIPDeviceController.mm in Sources */, - B2E0D7B7245B0B5C003C5B48 /* CHIPQRCodeSetupPayloadParser.mm in Sources */, - 1EC4CE5D25CC26E900D7304F /* CHIPClustersObjc.mm in Sources */, - 51E0310127EA20D20083DC9C /* CHIPControllerAccessControl.mm in Sources */, - 1ED276E226C5812A00547A89 /* CHIPCluster.mm in Sources */, - B2E0D7B3245B0B5C003C5B48 /* CHIPError.mm in Sources */, - 1E85730C265519AE0050A4D9 /* callback-stub.cpp in Sources */, - 51E51FC1282AD37A00FC978D /* CHIPDeviceControllerStartupParams.mm in Sources */, - 1ED276E026C57CF000547A89 /* CHIPCallbackBridge.mm in Sources */, - 517BF3F1282B62B800A8B7DB /* MTRCertificates.mm in Sources */, - 5A6FEC9627B5983000F25F42 /* CHIPDeviceControllerXPCConnection.m in Sources */, - 5ACDDD7D27CD16D200EFD68A /* CHIPAttributeCacheContainer.mm in Sources */, - 513DDB8A2761F6F900DAA01A /* CHIPAttributeTLVValueDecoder.mm in Sources */, - 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */, - 5A7947E427C0129600434CF2 /* CHIPDeviceController+XPC.m in Sources */, - 5A6FEC9027B563D900F25F42 /* CHIPDeviceControllerOverXPC.m in Sources */, - B289D4222639C0D300D4E314 /* CHIPOnboardingPayloadParser.m in Sources */, - 2C1B027A2641DB4E00780EF1 /* CHIPOperationalCredentialsDelegate.mm in Sources */, - 7560FD1C27FBBD3F005E85B3 /* CHIPEventTLVValueDecoder.mm in Sources */, - B2E0D7B9245B0B5C003C5B48 /* CHIPSetupPayload.mm in Sources */, - B2E0D7B6245B0B5C003C5B48 /* CHIPManualSetupPayloadParser.mm in Sources */, - 88EBF8CF27FABDD500686BC1 /* CHIPDeviceAttestationDelegateBridge.mm in Sources */, - 5A6FEC9827B5C6AF00F25F42 /* CHIPDeviceOverXPC.m in Sources */, - 51431AF927D2973E008A7943 /* CHIPIMDispatch.mm in Sources */, - 51F07EAD285C343C002FEBD8 /* privilege-storage.cpp in Sources */, - 51431AFB27D29CA4008A7943 /* ota-provider.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B20252922459E34F00F97062 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 51D10D2E2808E2CA00E8CA3D /* CHIPTestStorage.m in Sources */, - 1EB41B7B263C4CC60048E4C1 /* CHIPClustersTests.m in Sources */, - 997DED1A26955D0200975E97 /* CHIPThreadOperationalDatasetTests.mm in Sources */, - 51C8E3F82825CDB600D47D00 /* CHIPTestKeys.m in Sources */, - 99C65E10267282F1003402F6 /* CHIPControllerTests.m in Sources */, - 5A6FEC9D27B5E48900F25F42 /* CHIPXPCProtocolTests.m in Sources */, - 5AE6D4E427A99041001F2493 /* CHIPDeviceTests.m in Sources */, - 5A7947DE27BEC3F500434CF2 /* CHIPXPCListenerSampleTests.m in Sources */, - B2F53AF2245B0DCF0010745E /* CHIPSetupPayloadParserTests.m in Sources */, - 517BF3F3282B62CB00A8B7DB /* MatterCertificateTests.m in Sources */, - 51E24E73274E0DAC007CCF6E /* CHIPErrorTestUtils.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - B20252992459E34F00F97062 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = B202528C2459E34F00F97062 /* CHIP */; - targetProxy = B20252982459E34F00F97062 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - BA09EB732474881D00605257 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - OTHER_LDFLAGS = "-Wl,-unexported_symbol,\"__Z*\""; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; - SUPPORTS_TEXT_BASED_API = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - BA09EB742474881D00605257 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CHIP_ROOT = "$(PROJECT_DIR)/../../.."; - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREPROCESSOR_DEFINITIONS = ( - CHIP_HAVE_CONFIG_H, - "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(CHIP_ROOT)/src", - "$(CHIP_ROOT)/src/include", - "$(CHIP_ROOT)/src/lib", - "$(CHIP_ROOT)/src/app", - "$(CHIP_ROOT)/config/ios", - "$(CHIP_ROOT)/third_party/nlassert/repo/include", - "$(CHIP_ROOT)/src/darwin/Framework/CHIP/", - "$(CHIP_ROOT)/src/app/util", - "$(CHIP_ROOT)/third_party/nlio/repo/include", - "$(TEMP_DIR)/out/gen/include", - "$(CHIP_ROOT)/zzz_generated/", - "$(CHIP_ROOT)/zzz_generated/app-common", - "$(CHIP_ROOT)/zzz_generated/controller-clusters", - ); - INFOPLIST_FILE = CHIP/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; - LIBRARY_SEARCH_PATHS = "$(TEMP_DIR)/out/lib"; - OTHER_CFLAGS = ( - "-Wformat", - "-Wformat-nonliteral", - "-Wformat-security", - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[sdk=*]" = ( - "-framework", - CoreData, - "-framework", - Foundation, - "-framework", - CoreBluetooth, - "-lnetwork", - "-Wl,-unexported_symbol,\"__Z*\"", - ); - "OTHER_LDFLAGS[sdk=macosx*]" = ( - "-framework", - IOKit, - "-lnetwork", - "-framework", - CoreBluetooth, - "-framework", - CoreData, - "-Wl,-unexported_symbol,\"__Z*\"", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIP; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - BA09EB752474881D00605257 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - "HEADER_SEARCH_PATHS[arch=*]" = "$(PROJECT_DIR)/../../../src"; - INFOPLIST_FILE = CHIPTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - BA09EB772474882200605257 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ""; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - OTHER_LDFLAGS = "-Wl,-unexported_symbol,\"__Z*\""; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; - SUPPORTS_TEXT_BASED_API = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BA09EB782474882200605257 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CHIP_ROOT = "$(PROJECT_DIR)/../../.."; - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREPROCESSOR_DEFINITIONS = ( - CHIP_HAVE_CONFIG_H, - "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(CHIP_ROOT)/src", - "$(CHIP_ROOT)/src/include", - "$(CHIP_ROOT)/src/lib", - "$(CHIP_ROOT)/src/app", - "$(CHIP_ROOT)/config/ios", - "$(CHIP_ROOT)/third_party/nlassert/repo/include", - "$(CHIP_ROOT)/src/darwin/Framework/CHIP/", - "$(CHIP_ROOT)/src/app/util", - "$(CHIP_ROOT)/third_party/nlio/repo/include", - "$(TEMP_DIR)/out/gen/include", - "$(CHIP_ROOT)/zzz_generated/", - "$(CHIP_ROOT)/zzz_generated/app-common", - "$(CHIP_ROOT)/zzz_generated/controller-clusters", - ); - INFOPLIST_FILE = CHIP/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; - LIBRARY_SEARCH_PATHS = "$(TEMP_DIR)/out/lib"; - OTHER_CFLAGS = ( - "-Wformat", - "-Wformat-nonliteral", - "-Wformat-security", - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[arch=*]" = ( - "-lnetwork", - "-framework", - Foundation, - "-framework", - CoreBluetooth, - "-framework", - CoreData, - "-Wl,-unexported_symbol,\"__Z*\"", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIP; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - STRIP_STYLE = "non-global"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - BA09EB792474882200605257 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = ""; - "HEADER_SEARCH_PATHS[arch=*]" = "$(PROJECT_DIR)/../../../src"; - INFOPLIST_FILE = CHIPTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - B20252872459E34F00F97062 /* Build configuration list for PBXProject "CHIP" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BA09EB732474881D00605257 /* Debug */, - BA09EB772474882200605257 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B20252A12459E34F00F97062 /* Build configuration list for PBXNativeTarget "CHIP" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BA09EB742474881D00605257 /* Debug */, - BA09EB782474882200605257 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B20252A42459E34F00F97062 /* Build configuration list for PBXNativeTarget "CHIPTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BA09EB752474881D00605257 /* Debug */, - BA09EB792474882200605257 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = B20252842459E34F00F97062 /* Project object */; -} diff --git a/src/darwin/Framework/CHIP/BUILD.gn b/src/darwin/Framework/CHIP/BUILD.gn index a532434c0c50e2..c9174dd064f1b0 100644 --- a/src/darwin/Framework/CHIP/BUILD.gn +++ b/src/darwin/Framework/CHIP/BUILD.gn @@ -15,10 +15,7 @@ import("//build_overrides/chip.gni") config("darwin_config") { - include_dirs = [ - ".", - "..", - ] + include_dirs = [ "." ] cflags = [ "-Wconversion", @@ -29,61 +26,8 @@ config("darwin_config") { static_library("framework") { sources = [ "${chip_root}/src/app/clusters/ota-provider/ota-provider.cpp", - "CHIP.h", - "CHIPAttestationTrustStoreBridge.mm", - "CHIPCluster.mm", - "CHIPCommissioningParameters.m", - "CHIPControllerAccessControl.h", - "CHIPControllerAccessControl.mm", - "CHIPDevice.h", - "CHIPDevice.mm", - "CHIPDeviceAttestationDelegateBridge.h", - "CHIPDeviceAttestationDelegateBridge.mm", - "CHIPDeviceConnectionBridge.mm", - "CHIPDeviceController.h", - "CHIPDeviceController.mm", - "CHIPDeviceControllerStartupParams.h", - "CHIPDeviceControllerStartupParams.mm", - "CHIPDeviceControllerStartupParams_Internal.h", - "CHIPDeviceController_Internal.h", - "CHIPDevicePairingDelegate.h", - "CHIPDevicePairingDelegateBridge.h", - "CHIPDevicePairingDelegateBridge.mm", - "CHIPDevice_Internal.h", - "CHIPError.h", - "CHIPError.mm", - "CHIPError_Internal.h", - "CHIPIMDispatch.mm", - "CHIPLogging.h", - "CHIPManualSetupPayloadParser.h", - "CHIPManualSetupPayloadParser.mm", - "CHIPOnboardingPayloadParser.m", - "CHIPOperationalCredentialsDelegate.mm", - "CHIPP256KeypairBridge.mm", - "CHIPPersistentStorageDelegate.h", - "CHIPPersistentStorageDelegateBridge.h", - "CHIPPersistentStorageDelegateBridge.mm", - "CHIPQRCodeSetupPayloadParser.h", - "CHIPQRCodeSetupPayloadParser.mm", - "CHIPSetupPayload.h", - "CHIPSetupPayload.mm", - "MTRCertificates.h", - "MTRCertificates.mm", - "MTRMemory.h", - "MTRMemory.mm", - "MatterControllerFactory.h", - "MatterControllerFactory.mm", - "MatterControllerFactory_Internal.h", - "zap-generated/CHIPAttributeTLVValueDecoder.mm", - "zap-generated/CHIPCallbackBridge.mm", - "zap-generated/CHIPClustersObjc.h", - "zap-generated/CHIPClustersObjc.mm", - "zap-generated/CHIPCommandPayloadsObjc.h", - "zap-generated/CHIPCommandPayloadsObjc.mm", - "zap-generated/CHIPEventTLVValueDecoder.mm", - "zap-generated/CHIPStructsObjc.h", - "zap-generated/CHIPStructsObjc.mm", - "zap-generated/MatterClusterConstants.h", + "MTRError.mm", + "MTRIMDispatch.mm", ] public_deps = [ @@ -101,6 +45,6 @@ static_library("framework") { public_configs = [ ":darwin_config" ] } -group("CHIP") { +group("static-matter") { public_deps = [ ":framework" ] } diff --git a/src/darwin/Framework/CHIP/CHIP.h b/src/darwin/Framework/CHIP/CHIP.h deleted file mode 100644 index 6a97411437ab4e..00000000000000 --- a/src/darwin/Framework/CHIP/CHIP.h +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// pull together CHIP headers -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import - -#import -//! Project version number for CHIP. -FOUNDATION_EXPORT double CHIPVersionNumber; - -//! Project version string for CHIP. -FOUNDATION_EXPORT const unsigned char CHIPVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import diff --git a/src/darwin/Framework/CHIP/CHIPCallbackBridge_internal.h b/src/darwin/Framework/CHIP/CHIPCallbackBridge_internal.h deleted file mode 120000 index d0d61ee275c7e8..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPCallbackBridge_internal.h +++ /dev/null @@ -1 +0,0 @@ -zap-generated/CHIPCallbackBridge_internal.h \ No newline at end of file diff --git a/src/darwin/Framework/CHIP/CHIPClustersObjc.h b/src/darwin/Framework/CHIP/CHIPClustersObjc.h deleted file mode 120000 index e67ba31104d431..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPClustersObjc.h +++ /dev/null @@ -1 +0,0 @@ -zap-generated/CHIPClustersObjc.h \ No newline at end of file diff --git a/src/darwin/Framework/CHIP/CHIPCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/CHIPCommandPayloadsObjc.h deleted file mode 120000 index 9e7cd4e7e32b49..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPCommandPayloadsObjc.h +++ /dev/null @@ -1 +0,0 @@ -zap-generated/CHIPCommandPayloadsObjc.h \ No newline at end of file diff --git a/src/darwin/Framework/CHIP/CHIPError.h b/src/darwin/Framework/CHIP/CHIPError.h deleted file mode 100644 index 4f4240e2772839..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPError.h +++ /dev/null @@ -1,104 +0,0 @@ -/** - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -NS_ASSUME_NONNULL_BEGIN -FOUNDATION_EXPORT NSErrorDomain const CHIPErrorDomain; - -FOUNDATION_EXPORT NSErrorDomain const MatterInteractionErrorDomain; - -/** - * ChipErrorDomain contains errors caused by data processing the framework - * itself is performing. These can be caused by invalid values provided to a - * framework API, failure to decode an incoming message, and so forth. - * - * Errors reported by the other side of a Matter interaction use - * MatterInteractionErrorDomain instead. - */ -// clang-format off -typedef NS_ERROR_ENUM(CHIPErrorDomain, CHIPErrorCode){ - /** - * CHIPErrorCodeGeneralError represents a generic Matter error with no - * further categorization. - * - * The userInfo will have a key named @"errorCode" whose value will be an - * integer representing the underlying Matter error code. These integer - * values should not be assumed to be stable across releases, but may be - * useful in logging and debugging. - */ - CHIPErrorCodeGeneralError = 1, - CHIPErrorCodeInvalidStringLength = 2, - CHIPErrorCodeInvalidIntegerValue = 3, - CHIPErrorCodeInvalidArgument = 4, - CHIPErrorCodeInvalidMessageLength = 5, - CHIPErrorCodeInvalidState = 6, - CHIPErrorCodeWrongAddressType = 7, - CHIPErrorCodeIntegrityCheckFailed = 8, - CHIPErrorCodeTimeout = 9, -}; -// clang-format on - -/** - * MatterInteractionErrorDomain contains errors that represent a Matter - * StatusIB error. These represent errors reported by the other side of a - * Matter interaction. - * - * When the code is MatterInteractionErrorCodeFailure the userInfo may have a - * key named @"clusterStatus" whose value is the cluster-specific status that - * was reported. This key will be absent if there was no cluster-specific - * status. - */ -// clang-format off -typedef NS_ERROR_ENUM(MatterInteractionErrorDomain, MatterInteractionErrorCode){ - // These values come from the general status code table in the Matter - // Interaction Model specification. Do not change these values unless the - // specification changes. - MatterInteractionErrorCodeFailure = 0x01, - MatterInteractionErrorCodeInvalidSubscription = 0x7d, - MatterInteractionErrorCodeUnsupportedAccess = 0x7e, - MatterInteractionErrorCodeUnsupportedEndpoint = 0x7f, - MatterInteractionErrorCodeInvalidAction = 0x80, - MatterInteractionErrorCodeUnsupportedCommand = 0x81, - // Gap in values is intentional. - MatterInteractionErrorCodeInvalidCommand = 0x85, - MatterInteractionErrorCodeUnsupportedAttribute = 0x86, - MatterInteractionErrorCodeConstraintError = 0x87, - MatterInteractionErrorCodeUnsupportedWrite = 0x88, - MatterInteractionErrorCodeResourceExhausted = 0x89, - // Gap in values is intentional. - MatterInteractionErrorCodeNotFound = 0x8b, - MatterInteractionErrorCodeUnreportableAttribute = 0x8c, - MatterInteractionErrorCodeInvalidDataType = 0x8d, - // Gap in values is intentional. - MatterInteractionErrorCodeUnsupportedRead = 0x8f, - // Gap in values is intentional. - MatterInteractionErrorCodeDataVersionMismatch = 0x92, - // Gap in values is intentional. - MatterInteractionErrorCodeTimeout = 0x94, - // Gap in values is intentional. - MatterInteractionErrorCodeBusy = 0x9c, - // Gap in values is intentional. - MatterInteractionErrorCodeUnsupportedCluster = 0xc3, - // Gap in values is intentional. - MatterInteractionErrorCodeNoUpstreamSubscription = 0xc5, - MatterInteractionErrorCodeNeedsTimedInteraction = 0xc6, - MatterInteractionErrorCodeUnsupportedEvent = 0xc7, -}; -// clang-format on - -NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.m b/src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.m deleted file mode 100644 index 0e0f6560909a92..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.m +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "CHIPOnboardingPayloadParser.h" -#import "CHIPManualSetupPayloadParser.h" -#import "CHIPQRCodeSetupPayloadParser.h" -#import "CHIPSetupPayload.h" - -@implementation CHIPOnboardingPayloadParser - -+ (nullable CHIPSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload - ofType:(CHIPOnboardingPayloadType)type - error:(NSError * __autoreleasing *)error -{ - CHIPSetupPayload * payload; - switch (type) { - case CHIPOnboardingPayloadTypeManualCode: - case CHIPOnboardingPayloadTypeAdmin: - payload = [self setupPayloadForManualCodeOnboardingPayload:onboardingPayload error:error]; - break; - case CHIPOnboardingPayloadTypeQRCode: - case CHIPOnboardingPayloadTypeNFC: - payload = [self setupPayloadForQRCodeOnboardingPayload:onboardingPayload error:error]; - break; - default: - break; - } - return payload; -} - -+ (nullable CHIPSetupPayload *)setupPayloadForQRCodeOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error -{ - CHIPQRCodeSetupPayloadParser * qrCodeParser = - [[CHIPQRCodeSetupPayloadParser alloc] initWithBase38Representation:onboardingPayload]; - return [qrCodeParser populatePayload:error]; -} - -+ (nullable CHIPSetupPayload *)setupPayloadForManualCodeOnboardingPayload:(NSString *)onboardingPayload - error:(NSError * __autoreleasing *)error -{ - CHIPManualSetupPayloadParser * manualParser = - [[CHIPManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:onboardingPayload]; - return [manualParser populatePayload:error]; -} -@end diff --git a/src/darwin/Framework/CHIP/CHIPSetupPayload.h b/src/darwin/Framework/CHIP/CHIPSetupPayload.h deleted file mode 100644 index 20298d19c3e471..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPSetupPayload.h +++ /dev/null @@ -1,66 +0,0 @@ -/** - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -NS_ASSUME_NONNULL_BEGIN - -typedef NS_ENUM(NSUInteger, CHIPRendezvousInformationFlags) { - kRendezvousInformationNone = 0, // Device does not support any method for rendezvous - kRendezvousInformationSoftAP = 1 << 0, // Device supports WiFi softAP - kRendezvousInformationBLE = 1 << 1, // Device supports BLE - kRendezvousInformationOnNetwork = 1 << 2, // Device supports On Network setup - - kRendezvousInformationAllMask = kRendezvousInformationSoftAP | kRendezvousInformationBLE | kRendezvousInformationOnNetwork, -}; - -typedef NS_ENUM(NSUInteger, CHIPCommissioningFlow) { - kCommissioningFlowStandard = 0, // Device automatically enters pairing mode upon power-up - kCommissioningFlowUserActionRequired = 1, // Device requires a user interaction to enter pairing mode - kCommissioningFlowCustom = 2, // Commissioning steps should be retrieved from the distributed compliance ledger - kCommissioningFlowInvalid = 3, -}; - -typedef NS_ENUM(NSUInteger, CHIPOptionalQRCodeInfoType) { - kOptionalQRCodeInfoTypeUnknown, - kOptionalQRCodeInfoTypeString, - kOptionalQRCodeInfoTypeInt32 -}; - -@interface CHIPOptionalQRCodeInfo : NSObject -@property (nonatomic, strong) NSNumber * infoType; -@property (nonatomic, strong) NSNumber * tag; -@property (nonatomic, strong) NSNumber * integerValue; -@property (nonatomic, strong) NSString * stringValue; -@end - -@interface CHIPSetupPayload : NSObject - -@property (nonatomic, strong) NSNumber * version; -@property (nonatomic, strong) NSNumber * vendorID; -@property (nonatomic, strong) NSNumber * productID; -@property (nonatomic, assign) CHIPCommissioningFlow commissioningFlow; -@property (nonatomic, assign) CHIPRendezvousInformationFlags rendezvousInformation; -@property (nonatomic, strong) NSNumber * discriminator; -@property (nonatomic, strong) NSNumber * setUpPINCode; - -@property (nonatomic, strong) NSString * serialNumber; -- (nullable NSArray *)getAllOptionalVendorData:(NSError * __autoreleasing *)error; - -@end - -NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPSetupPayload_Internal.h b/src/darwin/Framework/CHIP/CHIPSetupPayload_Internal.h deleted file mode 100644 index 98d336715de80c..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPSetupPayload_Internal.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// CHIPSetupPayload_Internal.h -// CHIP -// -// Copyright © 2021 CHIP. All rights reserved. -// - -#import - -#import "CHIPSetupPayload.h" - -#ifdef __cplusplus -#import -#endif - -@interface CHIPSetupPayload () - -#ifdef __cplusplus -- (id)initWithSetupPayload:(chip::SetupPayload)setupPayload; -- (CHIPRendezvousInformationFlags)convertRendezvousFlags:(chip::RendezvousInformationFlags)value; -- (CHIPCommissioningFlow)convertCommissioningFlow:(chip::CommissioningFlow)value; -#endif - -@end diff --git a/src/darwin/Framework/CHIP/CHIPStructsObjc.h b/src/darwin/Framework/CHIP/CHIPStructsObjc.h deleted file mode 120000 index 6f9908655c891e..00000000000000 --- a/src/darwin/Framework/CHIP/CHIPStructsObjc.h +++ /dev/null @@ -1 +0,0 @@ -zap-generated/CHIPStructsObjc.h \ No newline at end of file diff --git a/src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.h b/src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.h similarity index 81% rename from src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.h rename to src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.h index e0082c4ba56b8f..ced955cb1c8b1d 100644 --- a/src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.h +++ b/src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.h @@ -15,18 +15,18 @@ * limitations under the License. */ -#import "CHIPError_Internal.h" +#import "MTRError_Internal.h" #include NS_ASSUME_NONNULL_BEGIN -class CHIPAttestationTrustStoreBridge : public chip::Credentials::AttestationTrustStore { +class MTRAttestationTrustStoreBridge : public chip::Credentials::AttestationTrustStore { public: - CHIPAttestationTrustStoreBridge(NSArray * paaCerts) + MTRAttestationTrustStoreBridge(NSArray * paaCerts) : mPaaCerts(paaCerts) { } - ~CHIPAttestationTrustStoreBridge() {}; + ~MTRAttestationTrustStoreBridge() {}; CHIP_ERROR GetProductAttestationAuthorityCert( const chip::ByteSpan & skid, chip::MutableByteSpan & outPaaDerBuffer) const override; diff --git a/src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.mm b/src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.mm similarity index 92% rename from src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.mm rename to src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.mm index 861413c9ab36b1..ee88d420624d4a 100644 --- a/src/darwin/Framework/CHIP/CHIPAttestationTrustStoreBridge.mm +++ b/src/darwin/Framework/CHIP/MTRAttestationTrustStoreBridge.mm @@ -15,11 +15,11 @@ * limitations under the License. */ -#import "CHIPAttestationTrustStoreBridge.h" +#import "MTRAttestationTrustStoreBridge.h" static chip::ByteSpan asByteSpan(NSData * value) { return chip::ByteSpan(static_cast(value.bytes), value.length); } -CHIP_ERROR CHIPAttestationTrustStoreBridge::GetProductAttestationAuthorityCert( +CHIP_ERROR MTRAttestationTrustStoreBridge::GetProductAttestationAuthorityCert( const chip::ByteSpan & skid, chip::MutableByteSpan & outPaaDerBuffer) const { VerifyOrReturnError(skid.size() == chip::Crypto::kSubjectKeyIdentifierLength, CHIP_ERROR_INVALID_ARGUMENT); diff --git a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer+XPC.h b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer+XPC.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPAttributeCacheContainer+XPC.h rename to src/darwin/Framework/CHIP/MTRAttributeCacheContainer+XPC.h index fb9cc654d7eb9a..9f7e8a1d21ebbc 100644 --- a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer+XPC.h +++ b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer+XPC.h @@ -17,12 +17,12 @@ #import -#import "CHIPAttributeCacheContainer.h" +#import "MTRAttributeCacheContainer.h" NS_ASSUME_NONNULL_BEGIN -@interface CHIPAttributeCacheContainer (XPC) -- (void)setXPCConnection:(CHIPDeviceControllerXPCConnection *)xpcConnection +@interface MTRAttributeCacheContainer (XPC) +- (void)setXPCConnection:(MTRDeviceControllerXPCConnection *)xpcConnection controllerId:(id)controllerId deviceId:(uint64_t)deviceId; @end diff --git a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.h b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer.h similarity index 93% rename from src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.h rename to src/darwin/Framework/CHIP/MTRAttributeCacheContainer.h index d695cb23977271..31a09d5f4e4cd1 100644 --- a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.h +++ b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer.h @@ -17,13 +17,13 @@ #import -#import +#import NS_ASSUME_NONNULL_BEGIN -@class CHIPSubscribeParams; +@class MTRSubscribeParams; -@interface CHIPAttributeCacheContainer : NSObject +@interface MTRAttributeCacheContainer : NSObject /** * Reads an attribute with specific attribute path diff --git a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.mm b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer.mm similarity index 64% rename from src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.mm rename to src/darwin/Framework/CHIP/MTRAttributeCacheContainer.mm index 9a7df6d18b610f..eccdb418e19cf0 100644 --- a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer.mm +++ b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer.mm @@ -17,13 +17,13 @@ #import -#import "CHIPAttributeCacheContainer_Internal.h" -#import "CHIPCluster.h" -#import "CHIPDeviceControllerXPCConnection.h" -#import "CHIPDevice_Internal.h" -#import "CHIPError.h" -#import "CHIPError_Internal.h" -#import "CHIPLogging.h" +#import "MTRAttributeCacheContainer_Internal.h" +#import "MTRCluster.h" +#import "MTRDeviceControllerXPCConnection.h" +#import "MTRDevice_Internal.h" +#import "MTRError.h" +#import "MTRError_Internal.h" +#import "MTRLogging.h" #include #include @@ -31,7 +31,7 @@ using namespace chip; -@implementation CHIPAttributeCacheContainer +@implementation MTRAttributeCacheContainer - (instancetype)init { @@ -42,7 +42,7 @@ - (instancetype)init return self; } -- (void)setXPCConnection:(CHIPDeviceControllerXPCConnection *)xpcConnection +- (void)setXPCConnection:(MTRDeviceControllerXPCConnection *)xpcConnection controllerId:(id)controllerId deviceId:(uint64_t)deviceId { @@ -60,20 +60,20 @@ static CHIP_ERROR AppendAttibuteValueToArray( if (err == CHIP_NO_ERROR) { id obj = NSObjectFromCHIPTLV(&reader); if (obj) { - [array addObject:@ { kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:path], kCHIPDataKey : obj }]; + [array addObject:@ { MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:path], MTRDataKey : obj }]; return CHIP_NO_ERROR; } - CHIP_LOG_ERROR("Error: Cached value could not be converted to generic NSObject"); + MTR_LOG_ERROR("Error: Cached value could not be converted to generic NSObject"); [array addObject:@ { - kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:path], - kCHIPErrorKey : [CHIPError errorForCHIPErrorCode:CHIP_ERROR_DECODE_FAILED] + MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:path], + MTRErrorKey : [MTRError errorForCHIPErrorCode:CHIP_ERROR_DECODE_FAILED] }]; return CHIP_ERROR_DECODE_FAILED; } - CHIP_LOG_ERROR("Error: Failed to read from attribute cache: %s", err.AsString()); + MTR_LOG_ERROR("Error: Failed to read from attribute cache: %s", err.AsString()); [array addObject:@ { - kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:path], - kCHIPErrorKey : [CHIPError errorForCHIPErrorCode:err] + MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:path], + MTRErrorKey : [MTRError errorForCHIPErrorCode:err] }]; return err; } @@ -92,45 +92,45 @@ - (void)readAttributeWithEndpointId:(NSNumber * _Nullable)endpointId }; if (self.shouldUseXPC) { - CHIPDeviceControllerXPCConnection * xpcConnection = self.xpcConnection; + MTRDeviceControllerXPCConnection * xpcConnection = self.xpcConnection; if (!xpcConnection) { - CHIP_LOG_ERROR("Attribute cache read failed: CHIPDeviceController was already disposed"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + MTR_LOG_ERROR("Attribute cache read failed: MTRDeviceController was already disposed"); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); return; } __auto_type controllerId = self.xpcControllerId; uint64_t nodeId = self.deviceId; - [xpcConnection getProxyHandleWithCompletion:^( - dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { - if (handle) { - [handle.proxy readAttributeCacheWithController:controllerId - nodeId:nodeId - endpointId:endpointId - clusterId:clusterId - attributeId:attributeId - completion:^(id _Nullable values, NSError * _Nullable error) { - completion([CHIPDeviceController decodeXPCResponseValues:values], error); - __auto_type handleRetainer = handle; - (void) handleRetainer; - }]; - } else { - CHIP_LOG_ERROR("Attribute cache read failed due to XPC connection failure"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); - } - }]; + [xpcConnection + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { + if (handle) { + [handle.proxy readAttributeCacheWithController:controllerId + nodeId:nodeId + endpointId:endpointId + clusterId:clusterId + attributeId:attributeId + completion:^(id _Nullable values, NSError * _Nullable error) { + completion([MTRDeviceController decodeXPCResponseValues:values], error); + __auto_type handleRetainer = handle; + (void) handleRetainer; + }]; + } else { + MTR_LOG_ERROR("Attribute cache read failed due to XPC connection failure"); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); + } + }]; return; } dispatch_async(DeviceLayer::PlatformMgrImpl().GetWorkQueue(), ^{ if (endpointId == nil && clusterId == nil) { - CHIP_LOG_ERROR("Error: currently read from attribute cache does not support wildcards for both endpoint and cluster"); - completionHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeInvalidArgument userInfo:nil]); + MTR_LOG_ERROR("Error: currently read from attribute cache does not support wildcards for both endpoint and cluster"); + completionHandler(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeInvalidArgument userInfo:nil]); return; } if (!self.cppAttributeCache) { - CHIP_LOG_ERROR("Error: No attribute cache available to read from"); - completionHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + MTR_LOG_ERROR("Error: No attribute cache available to read from"); + completionHandler(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); return; } @@ -174,7 +174,7 @@ - (void)readAttributeWithEndpointId:(NSNumber * _Nullable)endpointId if (err == CHIP_NO_ERROR) { completionHandler(result, nil); } else { - completionHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:err.AsInteger() userInfo:nil]); + completionHandler(nil, [NSError errorWithDomain:MTRErrorDomain code:err.AsInteger() userInfo:nil]); } }); } diff --git a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer_Internal.h b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer_Internal.h similarity index 82% rename from src/darwin/Framework/CHIP/CHIPAttributeCacheContainer_Internal.h rename to src/darwin/Framework/CHIP/MTRAttributeCacheContainer_Internal.h index cb7bf680ae4da7..1ab45bc0778682 100644 --- a/src/darwin/Framework/CHIP/CHIPAttributeCacheContainer_Internal.h +++ b/src/darwin/Framework/CHIP/MTRAttributeCacheContainer_Internal.h @@ -17,18 +17,18 @@ #import -#import "CHIPAttributeCacheContainer.h" -#import "CHIPDeviceControllerOverXPC.h" +#import "MTRAttributeCacheContainer.h" +#import "MTRDeviceControllerOverXPC.h" #include NS_ASSUME_NONNULL_BEGIN -@interface CHIPAttributeCacheContainer () +@interface MTRAttributeCacheContainer () @property (atomic, readwrite, nullable) chip::app::ClusterStateCache * cppAttributeCache; @property (nonatomic, readwrite) uint64_t deviceId; -@property (nonatomic, readwrite, weak, nullable) CHIPDeviceControllerXPCConnection * xpcConnection; +@property (nonatomic, readwrite, weak, nullable) MTRDeviceControllerXPCConnection * xpcConnection; @property (nonatomic, readwrite, strong, nullable) id xpcControllerId; @property (atomic, readwrite) BOOL shouldUseXPC; diff --git a/src/darwin/Framework/CHIP/CHIPAttributeTLVValueDecoder_Internal.h b/src/darwin/Framework/CHIP/MTRAttributeTLVValueDecoder_Internal.h similarity index 86% rename from src/darwin/Framework/CHIP/CHIPAttributeTLVValueDecoder_Internal.h rename to src/darwin/Framework/CHIP/MTRAttributeTLVValueDecoder_Internal.h index 8d61ac863d2699..fd1540645ebf8e 100644 --- a/src/darwin/Framework/CHIP/CHIPAttributeTLVValueDecoder_Internal.h +++ b/src/darwin/Framework/CHIP/MTRAttributeTLVValueDecoder_Internal.h @@ -26,6 +26,6 @@ NS_ASSUME_NONNULL_BEGIN -id CHIPDecodeAttributeValue(const chip::app::ConcreteAttributePath & aPath, chip::TLV::TLVReader & aReader, CHIP_ERROR * aError); +id MTRDecodeAttributeValue(const chip::app::ConcreteAttributePath & aPath, chip::TLV::TLVReader & aReader, CHIP_ERROR * aError); NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h b/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h similarity index 79% rename from src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h rename to src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h index 1a9b49ea4f27c7..fe7ded16cb7e57 100644 --- a/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h +++ b/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h @@ -17,18 +17,18 @@ #import -#import "CHIPError_Internal.h" -#import "zap-generated/CHIPClustersObjc.h" +#import "MTRError_Internal.h" +#import "zap-generated/MTRClustersObjc.h" #include #include -typedef CHIP_ERROR (^CHIPActionBlock)(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure); -typedef void (*CHIPDefaultFailureCallbackType)(void *, CHIP_ERROR); +typedef CHIP_ERROR (^MTRActionBlock)(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure); +typedef void (*DefaultFailureCallbackType)(void *, CHIP_ERROR); -template class CHIPCallbackBridge { +template class MTRCallbackBridge { public: - CHIPCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, T OnSuccessFn, bool keepAlive) + MTRCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, T OnSuccessFn, bool keepAlive) : mQueue(queue) , mHandler(handler) , mKeepAlive(keepAlive) @@ -50,13 +50,13 @@ template class CHIPCallbackBridge { // Take the normal async error-reporting codepath. This will also // handle cleaning us up properly. - DispatchFailure(this, [CHIPError errorForCHIPErrorCode:err]); + DispatchFailure(this, [MTRError errorForCHIPErrorCode:err]); } }; - virtual ~CHIPCallbackBridge() {}; + virtual ~MTRCallbackBridge() {}; - static void OnFailureFn(void * context, CHIP_ERROR error) { DispatchFailure(context, [CHIPError errorForCHIPErrorCode:error]); } + static void OnFailureFn(void * context, CHIP_ERROR error) { DispatchFailure(context, [MTRError errorForCHIPErrorCode:error]); } static void DispatchSuccess(void * context, id value) { DispatchCallbackResult(context, nil, value); } @@ -68,7 +68,7 @@ template class CHIPCallbackBridge { private: static void DispatchCallbackResult(void * context, NSError * error, id value) { - CHIPCallbackBridge * callbackBridge = static_cast(context); + MTRCallbackBridge * callbackBridge = static_cast(context); if (!callbackBridge) { return; } @@ -98,7 +98,7 @@ template class CHIPCallbackBridge { bool mKeepAlive; chip::Callback::Callback mSuccess; - chip::Callback::Callback mFailure; + chip::Callback::Callback mFailure; // Measure the time it took for the callback to trigger NSDate * mRequestTime; diff --git a/src/darwin/Framework/CHIP/MTRCertificates.h b/src/darwin/Framework/CHIP/MTRCertificates.h index 561c5dc26ffafd..301ab76f5b5ad3 100644 --- a/src/darwin/Framework/CHIP/MTRCertificates.h +++ b/src/darwin/Framework/CHIP/MTRCertificates.h @@ -13,8 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MATTER_CERTIFICATES_H -#define MATTER_CERTIFICATES_H /** * Utilities for working with Matter certificates. @@ -24,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol CHIPKeypair; +@protocol MTRKeypair; @interface MTRCertificates : NSObject @@ -41,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateRootCertificate:(id)keypair ++ (nullable NSData *)generateRootCertificate:(id)keypair issuerId:(nullable NSNumber *)issuerId fabricId:(nullable NSNumber *)fabricId error:(NSError * __autoreleasing _Nullable * _Nullable)error; @@ -59,7 +57,7 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair ++ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair rootCertificate:(NSData *)rootCertificate intermediatePublicKey:(SecKeyRef)intermediatePublicKey issuerId:(nullable NSNumber *)issuerId @@ -87,7 +85,7 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair ++ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair signingCertificate:(NSData *)signingCertificate operationalPublicKey:(SecKeyRef)operationalPublicKey fabricId:(NSNumber *)fabricId @@ -102,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN * * Will return NO on failures to extract public keys from the objects. */ -+ (BOOL)keypair:(id)keypair matchesCertificate:(NSData *)certificate; ++ (BOOL)keypair:(id)keypair matchesCertificate:(NSData *)certificate; /** * Check whether two X.509 DER encoded certificates are equivalent, in the sense @@ -112,7 +110,7 @@ NS_ASSUME_NONNULL_BEGIN + (BOOL)isCertificate:(NSData *)certificate1 equalTo:(NSData *)certificate2; /** - * Generate a PKCS#10 certificate signing request from a CHIPKeypair. This can + * Generate a PKCS#10 certificate signing request from a MTRKeypair. This can * then be used to request an operational or ICA certificate from an external * certificate authority. * @@ -124,11 +122,9 @@ NS_ASSUME_NONNULL_BEGIN * On failure returns nil and if "error" is not null sets *error to the relevant * error. */ -+ (nullable NSData *)generateCertificateSigningRequest:(id)keypair ++ (nullable NSData *)generateCertificateSigningRequest:(id)keypair error:(NSError * __autoreleasing _Nullable * _Nullable)error; @end NS_ASSUME_NONNULL_END - -#endif // MATTER_CERTIFICATES_H diff --git a/src/darwin/Framework/CHIP/MTRCertificates.mm b/src/darwin/Framework/CHIP/MTRCertificates.mm index 57d968e2e4a792..f9fd846addf8ad 100644 --- a/src/darwin/Framework/CHIP/MTRCertificates.mm +++ b/src/darwin/Framework/CHIP/MTRCertificates.mm @@ -15,10 +15,10 @@ */ #import "MTRCertificates.h" -#import "CHIPError_Internal.h" -#import "CHIPOperationalCredentialsDelegate.h" -#import "CHIPP256KeypairBridge.h" +#import "MTRError_Internal.h" #import "MTRMemory.h" +#import "MTROperationalCredentialsDelegate.h" +#import "MTRP256KeypairBridge.h" #import "NSDataSpanConversion.h" #include @@ -30,7 +30,7 @@ @implementation MTRCertificates -+ (nullable NSData *)generateRootCertificate:(id)keypair ++ (nullable NSData *)generateRootCertificate:(id)keypair issuerId:(nullable NSNumber *)issuerId fabricId:(nullable NSNumber *)fabricId error:(NSError * __autoreleasing *)error @@ -40,9 +40,9 @@ + (nullable NSData *)generateRootCertificate:(id)keypair [MTRMemory ensureInit]; NSData * rootCert = nil; - CHIP_ERROR err = CHIPOperationalCredentialsDelegate::GenerateRootCertificate(keypair, issuerId, fabricId, &rootCert); + CHIP_ERROR err = MTROperationalCredentialsDelegate::GenerateRootCertificate(keypair, issuerId, fabricId, &rootCert); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } if (err != CHIP_NO_ERROR) { @@ -52,7 +52,7 @@ + (nullable NSData *)generateRootCertificate:(id)keypair return rootCert; } -+ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair ++ (nullable NSData *)generateIntermediateCertificate:(id)rootKeypair rootCertificate:(NSData *)rootCertificate intermediatePublicKey:(SecKeyRef)intermediatePublicKey issuerId:(nullable NSNumber *)issuerId @@ -64,10 +64,10 @@ + (nullable NSData *)generateIntermediateCertificate:(id)rootKeypai [MTRMemory ensureInit]; NSData * intermediate = nil; - CHIP_ERROR err = CHIPOperationalCredentialsDelegate::GenerateIntermediateCertificate( + CHIP_ERROR err = MTROperationalCredentialsDelegate::GenerateIntermediateCertificate( rootKeypair, rootCertificate, intermediatePublicKey, issuerId, fabricId, &intermediate); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } if (err != CHIP_NO_ERROR) { @@ -77,7 +77,7 @@ + (nullable NSData *)generateIntermediateCertificate:(id)rootKeypai return intermediate; } -+ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair ++ (nullable NSData *)generateOperationalCertificate:(id)signingKeypair signingCertificate:(NSData *)signingCertificate operationalPublicKey:(SecKeyRef)operationalPublicKey fabricId:(NSNumber *)fabricId @@ -90,10 +90,10 @@ + (nullable NSData *)generateOperationalCertificate:(id)signingKeyp [MTRMemory ensureInit]; NSData * opcert = nil; - CHIP_ERROR err = CHIPOperationalCredentialsDelegate::GenerateOperationalCertificate( + CHIP_ERROR err = MTROperationalCredentialsDelegate::GenerateOperationalCertificate( signingKeypair, signingCertificate, operationalPublicKey, fabricId, nodeId, caseAuthenticatedTags, &opcert); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } if (err != CHIP_NO_ERROR) { @@ -103,12 +103,12 @@ + (nullable NSData *)generateOperationalCertificate:(id)signingKeyp return opcert; } -+ (BOOL)keypair:(id)keypair matchesCertificate:(NSData *)certificate ++ (BOOL)keypair:(id)keypair matchesCertificate:(NSData *)certificate { [MTRMemory ensureInit]; P256PublicKey keypairPubKey; - CHIP_ERROR err = CHIPP256KeypairBridge::MatterPubKeyFromSecKeyRef(keypair.pubkey, &keypairPubKey); + CHIP_ERROR err = MTRP256KeypairBridge::MatterPubKeyFromSecKeyRef(keypair.publicKey, &keypairPubKey); if (err != CHIP_NO_ERROR) { NSLog(@"Can't extract public key from keypair: %s", ErrorStr(err)); return NO; @@ -167,12 +167,12 @@ + (BOOL)isCertificate:(NSData *)certificate1 equalTo:(NSData *)certificate2 return subject1.IsEqual(subject2); } -+ (nullable NSData *)generateCertificateSigningRequest:(id)keypair ++ (nullable NSData *)generateCertificateSigningRequest:(id)keypair error:(NSError * __autoreleasing _Nullable * _Nullable)error { [MTRMemory ensureInit]; - CHIPP256KeypairBridge keypairBridge; + MTRP256KeypairBridge keypairBridge; CHIP_ERROR err = CHIP_NO_ERROR; do { err = keypairBridge.Init(keypair); @@ -192,7 +192,7 @@ + (nullable NSData *)generateCertificateSigningRequest:(id)keypair } while (0); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } return nil; } diff --git a/src/darwin/Framework/CHIP/CHIPCluster.h b/src/darwin/Framework/CHIP/MTRCluster.h similarity index 88% rename from src/darwin/Framework/CHIP/CHIPCluster.h rename to src/darwin/Framework/CHIP/MTRCluster.h index 40345426eaa623..75ba8c1c7f84f9 100644 --- a/src/darwin/Framework/CHIP/CHIPCluster.h +++ b/src/darwin/Framework/CHIP/MTRCluster.h @@ -17,16 +17,16 @@ #import -@class CHIPDevice; +@class MTRDevice; NS_ASSUME_NONNULL_BEGIN /** - * CHIPCluster + * MTRCluster * This is the base class for clusters. */ -@interface CHIPCluster : NSObject -- (nullable instancetype)initWithDevice:(CHIPDevice *)device +@interface MTRCluster : NSObject +- (nullable instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; @@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN * If not provided (i.e. nil passed for the CHIPWriteParams argument), will be * treated as if a default-initialized object was passed in. */ -@interface CHIPWriteParams : NSObject +@interface MTRWriteParams : NSObject /** * Controls whether the write is a timed write. @@ -54,8 +54,10 @@ NS_ASSUME_NONNULL_BEGIN * from the sever to the client (for the status response and actual write * request) within the timeout window. * + * This value is specified in milliseconds + * */ -@property (strong, nonatomic, nullable) NSNumber * timedWriteTimeoutMs; +@property (strong, nonatomic, nullable) NSNumber * timedWriteTimeout; /** * Sets the data version for the Write Request for the interaction. @@ -66,15 +68,16 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * dataVersion; - (instancetype)init; + @end /** - * CHIPReadParams + * MTRReadParams * This is used to control the behavior of attribute reads and subscribes. - * If not provided (i.e. nil passed for the CHIPReadParams argument), will be + * If not provided (i.e. nil passed for the MTRReadParams argument), will be * treated as if a default-initialized object was passed in. */ -@interface CHIPReadParams : NSObject +@interface MTRReadParams : NSObject /** * Whether the read/subscribe is fabric-filtered. nil (the default value) is @@ -89,15 +92,16 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * fabricFiltered; - (instancetype)init; + @end /** - * CHIPSubscribeParams + * MTRSubscribeParams * This is used to control the behavior of attribute subscribes. If not - * provided (i.e. nil passed for the CHIPSubscribeParams argument), will be + * provided (i.e. nil passed for the MTRSubscribeParams argument), will be * treated as if a default-initialized object was passed in. */ -@interface CHIPSubscribeParams : CHIPReadParams +@interface MTRSubscribeParams : MTRReadParams /** * Whether the subscribe should allow previous subscriptions to stay in @@ -125,6 +129,7 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * autoResubscribe; - (instancetype)init; + @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPCluster.mm b/src/darwin/Framework/CHIP/MTRCluster.mm similarity index 85% rename from src/darwin/Framework/CHIP/CHIPCluster.mm rename to src/darwin/Framework/CHIP/MTRCluster.mm index 6b5bc48d75df51..37e4df6fb2ac92 100644 --- a/src/darwin/Framework/CHIP/CHIPCluster.mm +++ b/src/darwin/Framework/CHIP/MTRCluster.mm @@ -15,14 +15,14 @@ * limitations under the License. */ -#import "CHIPCluster_internal.h" -#import "CHIPDevice.h" +#import "MTRCluster_internal.h" +#import "MTRDevice.h" #import "NSDataSpanConversion.h" using namespace ::chip; -@implementation CHIPCluster -- (instancetype)initWithDevice:(CHIPDevice *)device endpoint:(EndpointId)endpoint queue:(dispatch_queue_t)queue +@implementation MTRCluster +- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(EndpointId)endpoint queue:(dispatch_queue_t)queue { if (self = [super init]) { Controller::ClusterBase * cppCluster = [self getCluster]; @@ -61,18 +61,18 @@ - (instancetype)initWithDevice:(CHIPDevice *)device endpoint:(EndpointId)endpoin } @end -@implementation CHIPWriteParams +@implementation MTRWriteParams - (instancetype)init { if (self = [super init]) { - _timedWriteTimeoutMs = nil; + _timedWriteTimeout = nil; } return self; } @end -@implementation CHIPReadParams +@implementation MTRReadParams - (instancetype)init { if (self = [super init]) { @@ -83,7 +83,7 @@ - (instancetype)init @end -@implementation CHIPSubscribeParams +@implementation MTRSubscribeParams - (instancetype)init { if (self = [super init]) { diff --git a/src/darwin/Framework/CHIP/CHIPCluster_internal.h b/src/darwin/Framework/CHIP/MTRCluster_internal.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPCluster_internal.h rename to src/darwin/Framework/CHIP/MTRCluster_internal.h index b196306f0a3ee4..7cb0bb86a7ed0e 100644 --- a/src/darwin/Framework/CHIP/CHIPCluster_internal.h +++ b/src/darwin/Framework/CHIP/MTRCluster_internal.h @@ -17,14 +17,16 @@ #import -#import "CHIPCluster.h" -#import "CHIPDevice.h" -#import "CHIPDevice_Internal.h" +#import "MTRCluster.h" +#import "MTRDevice.h" +#import "MTRDevice_Internal.h" #import "zap-generated/CHIPClusters.h" -#import "zap-generated/CHIPClustersObjc.h" +#import "zap-generated/MTRClustersObjc.h" -@interface CHIPCluster () +using namespace chip::app::Clusters; + +@interface MTRCluster () @property (readonly, nonatomic) dispatch_queue_t callbackQueue; - (chip::Controller::ClusterBase *)getCluster; - (chip::ByteSpan)asByteSpan:(NSData *)value; diff --git a/src/darwin/Framework/CHIP/CHIPCommissioningParameters.h b/src/darwin/Framework/CHIP/MTRCommissioningParameters.h similarity index 88% rename from src/darwin/Framework/CHIP/CHIPCommissioningParameters.h rename to src/darwin/Framework/CHIP/MTRCommissioningParameters.h index d1181ba9f6b3e2..04936d041e0fe3 100644 --- a/src/darwin/Framework/CHIP/CHIPCommissioningParameters.h +++ b/src/darwin/Framework/CHIP/MTRCommissioningParameters.h @@ -19,13 +19,13 @@ NS_ASSUME_NONNULL_BEGIN -@protocol CHIPDeviceAttestationDelegate; +@protocol MTRDeviceAttestationDelegate; /** * The class definition for the CHIPCommissioningParameters * */ -@interface CHIPCommissioningParameters : NSObject +@interface MTRCommissioningParameters : NSObject /** * The CSRNonce @@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN /** * The Device Attestation status delegate */ -@property (nonatomic, nullable, strong, readwrite) id deviceAttestationDelegate; +@property (nonatomic, nullable, strong, readwrite) id deviceAttestationDelegate; /** * The timeout in secs to set for fail-safe when attestation fails */ diff --git a/src/darwin/Framework/CHIP/CHIPCommissioningParameters.m b/src/darwin/Framework/CHIP/MTRCommissioningParameters.m similarity index 88% rename from src/darwin/Framework/CHIP/CHIPCommissioningParameters.m rename to src/darwin/Framework/CHIP/MTRCommissioningParameters.m index a4ed0d8c257a04..47f9b2983cff6a 100644 --- a/src/darwin/Framework/CHIP/CHIPCommissioningParameters.m +++ b/src/darwin/Framework/CHIP/MTRCommissioningParameters.m @@ -15,11 +15,11 @@ * limitations under the License. */ -#import "CHIPCommissioningParameters.h" +#import "MTRCommissioningParameters.h" NS_ASSUME_NONNULL_BEGIN -@implementation CHIPCommissioningParameters : NSObject +@implementation MTRCommissioningParameters : NSObject @end diff --git a/src/darwin/Framework/CHIP/CHIPControllerAccessControl.h b/src/darwin/Framework/CHIP/MTRControllerAccessControl.h similarity index 95% rename from src/darwin/Framework/CHIP/CHIPControllerAccessControl.h rename to src/darwin/Framework/CHIP/MTRControllerAccessControl.h index 0a2b291670ae34..6adc5288212088 100644 --- a/src/darwin/Framework/CHIP/CHIPControllerAccessControl.h +++ b/src/darwin/Framework/CHIP/MTRControllerAccessControl.h @@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface CHIPControllerAccessControl : NSObject +@interface MTRControllerAccessControl : NSObject - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; diff --git a/src/darwin/Framework/CHIP/CHIPControllerAccessControl.mm b/src/darwin/Framework/CHIP/MTRControllerAccessControl.mm similarity index 97% rename from src/darwin/Framework/CHIP/CHIPControllerAccessControl.mm rename to src/darwin/Framework/CHIP/MTRControllerAccessControl.mm index db3ac12a5d295d..8ea39e55fb2bec 100644 --- a/src/darwin/Framework/CHIP/CHIPControllerAccessControl.mm +++ b/src/darwin/Framework/CHIP/MTRControllerAccessControl.mm @@ -14,7 +14,7 @@ * limitations under the License. */ -#import "CHIPControllerAccessControl.h" +#import "MTRControllerAccessControl.h" #include #include @@ -71,7 +71,7 @@ CHIP_ERROR Check( AccessControlDelegate gDelegate; } // anonymous namespace -@implementation CHIPControllerAccessControl +@implementation MTRControllerAccessControl + (void)init { diff --git a/src/darwin/Framework/CHIP/MatterControllerFactory.h b/src/darwin/Framework/CHIP/MTRControllerFactory.h similarity index 69% rename from src/darwin/Framework/CHIP/MatterControllerFactory.h rename to src/darwin/Framework/CHIP/MTRControllerFactory.h index e57223912544a3..5c457b957dd39c 100644 --- a/src/darwin/Framework/CHIP/MatterControllerFactory.h +++ b/src/darwin/Framework/CHIP/MTRControllerFactory.h @@ -15,9 +15,6 @@ * limitations under the License. */ -#ifndef MATTER_CONTROLLER_FACTORY_H -#define MATTER_CONTROLLER_FACTORY_H - /** * An object that allows creating Matter controllers. There can be only one such * object in a given process. @@ -27,24 +24,23 @@ NS_ASSUME_NONNULL_BEGIN -@protocol CHIPPersistentStorageDelegate; -@protocol CHIPKeypair; -@class CHIPDeviceController; -@class CHIPDeviceControllerStartupParams; +@protocol MTRPersistentStorageDelegate; +@protocol MTRKeypair; + +@class MTRDeviceController; +@class MTRDeviceControllerStartupParams; -@interface MatterControllerFactoryParams : NSObject +@interface MTRControllerFactoryParams : NSObject /* * Storage delegate must be provided for correct functioning of Matter * controllers. It is used to store persistent information for the fabrics the * controllers ends up interacting with. */ -@property (strong, nonatomic, readonly) id storageDelegate; +@property (strong, nonatomic, readonly) id storageDelegate; /* * The Product Attestation Authority certificates that are trusted to sign * device attestation information. Defaults to nil. * - * TODO: We may want to support different PAA sets per controller, but - * the underlying SDK code does not handle that right now. */ @property (strong, nonatomic, nullable) NSArray * paaCerts; /* @@ -59,10 +55,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) BOOL startServer; - (instancetype)init NS_UNAVAILABLE; -- (instancetype)initWithStorage:(id)storageDelegate; +- (instancetype)initWithStorage:(id)storageDelegate; @end -@interface MatterControllerFactory : NSObject +@interface MTRControllerFactory : NSObject @property (readonly, nonatomic) BOOL isRunning; @@ -70,7 +66,7 @@ NS_ASSUME_NONNULL_BEGIN + (instancetype)new NS_UNAVAILABLE; /** - * Return the single MatterControllerFactory we support existing. It starts off + * Return the single MTRControllerFactory we support existing. It starts off * in a "not started" state. */ + (instancetype)sharedInstance; @@ -84,7 +80,7 @@ NS_ASSUME_NONNULL_BEGIN * * @return Whether startup succeded. */ -- (BOOL)startup:(MatterControllerFactoryParams *)startupParams; +- (BOOL)startup:(MTRControllerFactoryParams *)startupParams; /** * Shut down the controller factory. This will shut down any outstanding @@ -96,7 +92,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)shutdown; /** - * Create a CHIPDeviceController on an existing fabric. Returns nil on failure. + * Create a MTRDeviceController on an existing fabric. Returns nil on failure. * * This method will fail if there is no such fabric or if there is * already a controller started for that fabric. @@ -104,20 +100,18 @@ NS_ASSUME_NONNULL_BEGIN * The fabric is identified by the root public key and fabric id in * the startupParams. */ -- (CHIPDeviceController * _Nullable)startControllerOnExistingFabric:(CHIPDeviceControllerStartupParams *)startupParams; +- (MTRDeviceController * _Nullable)startControllerOnExistingFabric:(MTRDeviceControllerStartupParams *)startupParams; /** - * Create a CHIPDeviceController on a new fabric. Returns nil on failure. + * Create a MTRDeviceController on a new fabric. Returns nil on failure. * * This method will fail if the given fabric already exists. * * The fabric is identified by the root public key and fabric id in * the startupParams. */ -- (CHIPDeviceController * _Nullable)startControllerOnNewFabric:(CHIPDeviceControllerStartupParams *)startupParams; +- (MTRDeviceController * _Nullable)startControllerOnNewFabric:(MTRDeviceControllerStartupParams *)startupParams; @end NS_ASSUME_NONNULL_END - -#endif // MATTER_CONTROLLER_FACTORY_H diff --git a/src/darwin/Framework/CHIP/MatterControllerFactory.mm b/src/darwin/Framework/CHIP/MTRControllerFactory.mm similarity index 75% rename from src/darwin/Framework/CHIP/MatterControllerFactory.mm rename to src/darwin/Framework/CHIP/MTRControllerFactory.mm index 12db00bf231f9c..676455d5916a74 100644 --- a/src/darwin/Framework/CHIP/MatterControllerFactory.mm +++ b/src/darwin/Framework/CHIP/MTRControllerFactory.mm @@ -14,20 +14,20 @@ * limitations under the License. */ -#import "MatterControllerFactory.h" -#import "MatterControllerFactory_Internal.h" - -#import "CHIPAttestationTrustStoreBridge.h" -#import "CHIPControllerAccessControl.h" -#import "CHIPDeviceController.h" -#import "CHIPDeviceControllerStartupParams.h" -#import "CHIPDeviceControllerStartupParams_Internal.h" -#import "CHIPDeviceController_Internal.h" -#import "CHIPLogging.h" -#import "CHIPP256KeypairBridge.h" -#import "CHIPPersistentStorageDelegateBridge.h" +#import "MTRControllerFactory.h" +#import "MTRControllerFactory_Internal.h" + +#import "MTRAttestationTrustStoreBridge.h" #import "MTRCertificates.h" +#import "MTRControllerAccessControl.h" +#import "MTRDeviceController.h" +#import "MTRDeviceControllerStartupParams.h" +#import "MTRDeviceControllerStartupParams_Internal.h" +#import "MTRDeviceController_Internal.h" +#import "MTRLogging.h" #import "MTRMemory.h" +#import "MTRP256KeypairBridge.h" +#import "MTRPersistentStorageDelegateBridge.h" #import "NSDataSpanConversion.h" #include @@ -54,36 +54,36 @@ static NSString * const kErrorKeystoreInit = @"Init failure while initializing persistent storage keystore"; static NSString * const kErrorCertStoreInit = @"Init failure while initializing persistent storage operational certificate store"; -@interface MatterControllerFactory () +@interface MTRControllerFactory () @property (atomic, readonly) dispatch_queue_t chipWorkQueue; @property (readonly) DeviceControllerFactory * controllerFactory; -@property (readonly) CHIPPersistentStorageDelegateBridge * persistentStorageDelegateBridge; -@property (readonly) CHIPAttestationTrustStoreBridge * attestationTrustStoreBridge; +@property (readonly) MTRPersistentStorageDelegateBridge * persistentStorageDelegateBridge; +@property (readonly) MTRAttestationTrustStoreBridge * attestationTrustStoreBridge; // We use TestPersistentStorageDelegate just to get an in-memory store to back // our group data provider impl. We initialize this store correctly on every // controller startup, so don't need to actually persist it. @property (readonly) TestPersistentStorageDelegate * groupStorageDelegate; @property (readonly) Credentials::GroupDataProviderImpl * groupDataProvider; -@property (readonly) NSMutableArray * controllers; +@property (readonly) NSMutableArray * controllers; @property (readonly) PersistentStorageOperationalKeystore * keystore; @property (readonly) Credentials::PersistentStorageOpCertStore * opCertStore; @property () chip::Credentials::DeviceAttestationVerifier * deviceAttestationVerifier; - (BOOL)findMatchingFabric:(FabricTable &)fabricTable - params:(CHIPDeviceControllerStartupParams *)params + params:(MTRDeviceControllerStartupParams *)params fabric:(const FabricInfo * _Nullable * _Nonnull)fabric; @end -@implementation MatterControllerFactory +@implementation MTRControllerFactory + (instancetype)sharedInstance { - static MatterControllerFactory * factory = nil; + static MTRControllerFactory * factory = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ // initialize the factory. - factory = [[MatterControllerFactory alloc] init]; + factory = [[MTRControllerFactory alloc] init]; }); return factory; } @@ -136,7 +136,7 @@ - (BOOL)checkForInitError:(BOOL)condition logMsg:(NSString *)logMsg return NO; } - CHIP_LOG_ERROR("Error: %@", logMsg); + MTR_LOG_ERROR("Error: %@", logMsg); [self cleanupInitObjects]; @@ -189,10 +189,10 @@ - (void)cleanupStartupObjects } } -- (BOOL)startup:(MatterControllerFactoryParams *)startupParams +- (BOOL)startup:(MTRControllerFactoryParams *)startupParams { if ([self isRunning]) { - CHIP_LOG_DEBUG("Ignoring duplicate call to startup, Matter controller factory already started..."); + MTR_LOG_DEBUG("Ignoring duplicate call to startup, Matter controller factory already started..."); return YES; } @@ -203,46 +203,46 @@ - (BOOL)startup:(MatterControllerFactoryParams *)startupParams return; } - [CHIPControllerAccessControl init]; + [MTRControllerAccessControl init]; - _persistentStorageDelegateBridge = new CHIPPersistentStorageDelegateBridge(startupParams.storageDelegate); + _persistentStorageDelegateBridge = new MTRPersistentStorageDelegateBridge(startupParams.storageDelegate); if (_persistentStorageDelegateBridge == nil) { - CHIP_LOG_ERROR("Error: %@", kErrorPersistentStorageInit); + MTR_LOG_ERROR("Error: %@", kErrorPersistentStorageInit); return; } // TODO: Allow passing a different keystore implementation via startupParams. _keystore = new PersistentStorageOperationalKeystore(); if (_keystore == nullptr) { - CHIP_LOG_ERROR("Error: %@", kErrorKeystoreInit); + MTR_LOG_ERROR("Error: %@", kErrorKeystoreInit); return; } CHIP_ERROR errorCode = _keystore->Init(_persistentStorageDelegateBridge); if (errorCode != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: %@", kErrorKeystoreInit); + MTR_LOG_ERROR("Error: %@", kErrorKeystoreInit); return; } // TODO Allow passing a different opcert store implementation via startupParams. _opCertStore = new Credentials::PersistentStorageOpCertStore(); if (_opCertStore == nullptr) { - CHIP_LOG_ERROR("Error: %@", kErrorCertStoreInit); + MTR_LOG_ERROR("Error: %@", kErrorCertStoreInit); return; } errorCode = _opCertStore->Init(_persistentStorageDelegateBridge); if (errorCode != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: %@", kErrorCertStoreInit); + MTR_LOG_ERROR("Error: %@", kErrorCertStoreInit); return; } // Initialize device attestation verifier const Credentials::AttestationTrustStore * trustStore; if (startupParams.paaCerts) { - _attestationTrustStoreBridge = new CHIPAttestationTrustStoreBridge(startupParams.paaCerts); + _attestationTrustStoreBridge = new MTRAttestationTrustStoreBridge(startupParams.paaCerts); if (_attestationTrustStoreBridge == nullptr) { - CHIP_LOG_ERROR("Error: %@", kErrorAttestationTrustStoreInit); + MTR_LOG_ERROR("Error: %@", kErrorAttestationTrustStoreInit); return; } trustStore = _attestationTrustStoreBridge; @@ -252,7 +252,7 @@ - (BOOL)startup:(MatterControllerFactoryParams *)startupParams } _deviceAttestationVerifier = new Credentials::DefaultDACVerifier(trustStore); if (_deviceAttestationVerifier == nullptr) { - CHIP_LOG_ERROR("Error: %@", kErrorDACVerifierInit); + MTR_LOG_ERROR("Error: %@", kErrorDACVerifierInit); return; } @@ -270,7 +270,7 @@ - (BOOL)startup:(MatterControllerFactoryParams *)startupParams params.opCertStore = _opCertStore; errorCode = _controllerFactory->Init(params); if (errorCode != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: %@", kErrorControllerFactoryInit); + MTR_LOG_ERROR("Error: %@", kErrorControllerFactoryInit); return; } @@ -297,7 +297,7 @@ - (void)shutdown [_controllers[0] shutdown]; } - CHIP_LOG_DEBUG("%@", kInfoFactoryShutdown); + MTR_LOG_DEBUG("%@", kInfoFactoryShutdown); _controllerFactory->Shutdown(); [self cleanupStartupObjects]; @@ -309,10 +309,10 @@ - (void)shutdown _isRunning = NO; } -- (CHIPDeviceController * _Nullable)startControllerOnExistingFabric:(CHIPDeviceControllerStartupParams *)startupParams +- (MTRDeviceController * _Nullable)startControllerOnExistingFabric:(MTRDeviceControllerStartupParams *)startupParams { if (![self isRunning]) { - CHIP_LOG_ERROR("Trying to start controller while Matter controller factory is not running"); + MTR_LOG_ERROR("Trying to start controller while Matter controller factory is not running"); return nil; } @@ -323,7 +323,7 @@ - (CHIPDeviceController * _Nullable)startControllerOnExistingFabric:(CHIPDeviceC return nil; } - __block CHIPDeviceControllerStartupParamsInternal * params = nil; + __block MTRDeviceControllerStartupParamsInternal * params = nil; // We want the block to end up with just a pointer to the fabric table, // since we know our on-stack instance will outlive the block. FabricTable fabricTableInstance; @@ -332,33 +332,33 @@ - (CHIPDeviceController * _Nullable)startControllerOnExistingFabric:(CHIPDeviceC const FabricInfo * fabric = nullptr; BOOL ok = [self findMatchingFabric:*fabricTable params:startupParams fabric:&fabric]; if (!ok) { - CHIP_LOG_ERROR("Can't start on existing fabric: fabric matching failed"); + MTR_LOG_ERROR("Can't start on existing fabric: fabric matching failed"); return; } if (fabric == nullptr) { - CHIP_LOG_ERROR("Can't start on existing fabric: fabric not found"); + MTR_LOG_ERROR("Can't start on existing fabric: fabric not found"); return; } - for (CHIPDeviceController * existing in _controllers) { + for (MTRDeviceController * existing in _controllers) { BOOL isRunning = YES; // assume the worst if ([existing isRunningOnFabric:fabricTable fabricIndex:fabric->GetFabricIndex() isRunning:&isRunning] != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Can't tell what fabric a controller is running on. Not safe to start."); + MTR_LOG_ERROR("Can't tell what fabric a controller is running on. Not safe to start."); return; } if (isRunning) { - CHIP_LOG_ERROR("Can't start on existing fabric: another controller is running on it"); + MTR_LOG_ERROR("Can't start on existing fabric: another controller is running on it"); return; } } - params = [[CHIPDeviceControllerStartupParamsInternal alloc] initForExistingFabric:fabricTable - fabricIndex:fabric->GetFabricIndex() - keystore:_keystore - params:startupParams]; + params = [[MTRDeviceControllerStartupParamsInternal alloc] initForExistingFabric:fabricTable + fabricIndex:fabric->GetFabricIndex() + keystore:_keystore + params:startupParams]; }); if (params == nil) { @@ -374,20 +374,20 @@ - (CHIPDeviceController * _Nullable)startControllerOnExistingFabric:(CHIPDeviceC return controller; } -- (CHIPDeviceController * _Nullable)startControllerOnNewFabric:(CHIPDeviceControllerStartupParams *)startupParams +- (MTRDeviceController * _Nullable)startControllerOnNewFabric:(MTRDeviceControllerStartupParams *)startupParams { if (![self isRunning]) { - CHIP_LOG_ERROR("Trying to start controller while Matter controller factory is not running"); + MTR_LOG_ERROR("Trying to start controller while Matter controller factory is not running"); return nil; } if (startupParams.vendorId == nil) { - CHIP_LOG_ERROR("Must provide vendor id when starting controller on new fabric"); + MTR_LOG_ERROR("Must provide vendor id when starting controller on new fabric"); return nil; } if (startupParams.intermediateCertificate != nil && startupParams.rootCertificate == nil) { - CHIP_LOG_ERROR("Must provide a root certificate when using an intermediate certificate"); + MTR_LOG_ERROR("Must provide a root certificate when using an intermediate certificate"); return nil; } @@ -398,7 +398,7 @@ - (CHIPDeviceController * _Nullable)startControllerOnNewFabric:(CHIPDeviceContro return nil; } - __block CHIPDeviceControllerStartupParamsInternal * params = nil; + __block MTRDeviceControllerStartupParamsInternal * params = nil; // We want the block to end up with just a pointer to the fabric table, // since we know our on-stack instance will outlive the block. FabricTable fabricTableInstance; @@ -407,18 +407,18 @@ - (CHIPDeviceController * _Nullable)startControllerOnNewFabric:(CHIPDeviceContro const FabricInfo * fabric = nullptr; BOOL ok = [self findMatchingFabric:*fabricTable params:startupParams fabric:&fabric]; if (!ok) { - CHIP_LOG_ERROR("Can't start on new fabric: fabric matching failed"); + MTR_LOG_ERROR("Can't start on new fabric: fabric matching failed"); return; } if (fabric != nullptr) { - CHIP_LOG_ERROR("Can't start on new fabric that matches existing fabric"); + MTR_LOG_ERROR("Can't start on new fabric that matches existing fabric"); return; } - params = [[CHIPDeviceControllerStartupParamsInternal alloc] initForNewFabric:fabricTable - keystore:_keystore - params:startupParams]; + params = [[MTRDeviceControllerStartupParamsInternal alloc] initForNewFabric:fabricTable + keystore:_keystore + params:startupParams]; }); if (params == nil) { @@ -434,11 +434,11 @@ - (CHIPDeviceController * _Nullable)startControllerOnNewFabric:(CHIPDeviceContro return controller; } -- (CHIPDeviceController * _Nullable)createController +- (MTRDeviceController * _Nullable)createController { - CHIPDeviceController * controller = [[CHIPDeviceController alloc] initWithFactory:self queue:_chipWorkQueue]; + MTRDeviceController * controller = [[MTRDeviceController alloc] initWithFactory:self queue:_chipWorkQueue]; if (controller == nil) { - CHIP_LOG_ERROR("Failed to init controller"); + MTR_LOG_ERROR("Failed to init controller"); return nil; } @@ -464,13 +464,13 @@ - (CHIPDeviceController * _Nullable)createController // outlive the consumer's use of the FabricInfo we return, which is // why it's provided by the caller. - (BOOL)findMatchingFabric:(FabricTable &)fabricTable - params:(CHIPDeviceControllerStartupParams *)params + params:(MTRDeviceControllerStartupParams *)params fabric:(const FabricInfo * _Nullable * _Nonnull)fabric { CHIP_ERROR err = fabricTable.Init( { .storage = _persistentStorageDelegateBridge, .operationalKeystore = _keystore, .opCertStore = _opCertStore }); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Can't initialize fabric table: %s", ErrorStr(err)); + MTR_LOG_ERROR("Can't initialize fabric table: %s", ErrorStr(err)); return NO; } @@ -478,15 +478,15 @@ - (BOOL)findMatchingFabric:(FabricTable &)fabricTable if (params.rootCertificate != nil) { err = ExtractPubkeyFromX509Cert(AsByteSpan(params.rootCertificate), pubKey); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Can't extract public key from root certificate: %s", ErrorStr(err)); + MTR_LOG_ERROR("Can't extract public key from root certificate: %s", ErrorStr(err)); return NO; } } else { // No root certificate means the nocSigner is using the root keys, because // consumers must provide a root certificate whenever an ICA is used. - err = CHIPP256KeypairBridge::MatterPubKeyFromSecKeyRef(params.nocSigner.pubkey, &pubKey); + err = MTRP256KeypairBridge::MatterPubKeyFromSecKeyRef(params.nocSigner.publicKey, &pubKey); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Can't extract public key from CHIPKeypair: %s", ErrorStr(err)); + MTR_LOG_ERROR("Can't extract public key from MTRKeypair: %s", ErrorStr(err)); return NO; } } @@ -497,12 +497,12 @@ - (BOOL)findMatchingFabric:(FabricTable &)fabricTable @end -@implementation MatterControllerFactory (InternalMethods) +@implementation MTRControllerFactory (InternalMethods) -- (void)controllerShuttingDown:(CHIPDeviceController *)controller +- (void)controllerShuttingDown:(MTRDeviceController *)controller { if (![_controllers containsObject:controller]) { - CHIP_LOG_ERROR("Controller we don't know about shutting down"); + MTR_LOG_ERROR("Controller we don't know about shutting down"); return; } @@ -535,7 +535,7 @@ - (void)controllerShuttingDown:(CHIPDeviceController *)controller } } -- (CHIPPersistentStorageDelegateBridge *)storageDelegateBridge +- (MTRPersistentStorageDelegateBridge *)storageDelegateBridge { return _persistentStorageDelegateBridge; } @@ -547,9 +547,9 @@ - (CHIPPersistentStorageDelegateBridge *)storageDelegateBridge @end -@implementation MatterControllerFactoryParams +@implementation MTRControllerFactoryParams -- (instancetype)initWithStorage:(id)storageDelegate +- (instancetype)initWithStorage:(id)storageDelegate { if (!(self = [super init])) { return nil; diff --git a/src/darwin/Framework/CHIP/MatterControllerFactory_Internal.h b/src/darwin/Framework/CHIP/MTRControllerFactory_Internal.h similarity index 65% rename from src/darwin/Framework/CHIP/MatterControllerFactory_Internal.h rename to src/darwin/Framework/CHIP/MTRControllerFactory_Internal.h index 05148855faba9a..3f783d7b39e975 100644 --- a/src/darwin/Framework/CHIP/MatterControllerFactory_Internal.h +++ b/src/darwin/Framework/CHIP/MTRControllerFactory_Internal.h @@ -14,19 +14,16 @@ * limitations under the License. */ -#ifndef MATTER_CONTROLLER_FACTORY_INTERNAL_H -#define MATTER_CONTROLLER_FACTORY_INTERNAL_H - /** - * Parts of MatterControllerFactory that are not part of the framework API. - * Mostly for use from CHIPDeviceController. + * Parts of MTRControllerFactory that are not part of the framework API. + * Mostly for use from MTRDeviceController. */ #import -#import "MatterControllerFactory.h" +#import "MTRControllerFactory.h" -class CHIPPersistentStorageDelegateBridge; +class MTRPersistentStorageDelegateBridge; namespace chip { namespace Credentials { @@ -35,19 +32,17 @@ namespace Credentials { } // namespace Credentials } // namespace chip -@class CHIPDeviceController; +@class MTRDeviceController; NS_ASSUME_NONNULL_BEGIN -@interface MatterControllerFactory (InternalMethods) +@interface MTRControllerFactory (InternalMethods) -- (void)controllerShuttingDown:(CHIPDeviceController *)controller; +- (void)controllerShuttingDown:(MTRDeviceController *)controller; -@property (readonly) CHIPPersistentStorageDelegateBridge * storageDelegateBridge; +@property (readonly) MTRPersistentStorageDelegateBridge * storageDelegateBridge; @property (readonly) chip::Credentials::GroupDataProvider * groupData; @property (readonly) chip::Credentials::DeviceAttestationVerifier * deviceAttestationVerifier; @end NS_ASSUME_NONNULL_END - -#endif // MATTER_CONTROLLER_FACTORY_INTERNAL_H diff --git a/src/darwin/Framework/CHIP/CHIPDevice.h b/src/darwin/Framework/CHIP/MTRDevice.h similarity index 58% rename from src/darwin/Framework/CHIP/CHIPDevice.h rename to src/darwin/Framework/CHIP/MTRDevice.h index 83bd6b2d4d2c2f..3230b26a15dedf 100644 --- a/src/darwin/Framework/CHIP/CHIPDevice.h +++ b/src/darwin/Framework/CHIP/MTRDevice.h @@ -15,9 +15,6 @@ * limitations under the License. */ -#ifndef CHIP_DEVICE_H -#define CHIP_DEVICE_H - #import NS_ASSUME_NONNULL_BEGIN @@ -31,106 +28,73 @@ NS_ASSUME_NONNULL_BEGIN * * A response-value is an NSDictionary object with the following key values: * - * kCHIPAttributePathKey : CHIPAttributePath object. Included for attribute value. - * kCHIPCommandPathKey : CHIPCommandPath object. Included for command response. - * kCHIPErrorKey : NSError object. Included to indicate an error. - * kCHIPDataKey: Data-value NSDictionary object. + * MTRAttributePathKey : MTRAttributePath object. Included for attribute value. + * MTRCommandPathKey : MTRCommandPath object. Included for command response. + * MTRErrorKey : NSError object. Included to indicate an error. + * MTRDataKey: Data-value NSDictionary object. * Included when there is data and when there is no error. * The data-value is described below. * * A data-value is an NSDictionary object with the following key values: * - * kCHIPTypeKey : data type. kCHIPSignedIntegerValueType, kCHIPUnsignedIntegerValueType, kCHIPBooleanValueType, - * kCHIPUTF8StringValueType, kCHIPOctetStringValueType, kCHIPFloatValueType, kCHIPDoubleValueType, - * kCHIPNullValueType, kCHIPStructureValueType or kCHIPArrayValueType. - * - * kCHIPValueKey : data value. Per each data type, data value shall be the following object: - * - * kCHIPSignedIntegerValueType: NSNumber object. - * kCHIPUnsignedIntegerValueType: NSNumber object. - * kCHIPBooleanValueType: NSNumber object. - * kCHIPUTF8StringValueType: NSString object. - * kCHIPOctetStringValueType: NSData object. - * kCHIPFloatValueType: NSNumber object. - * kCHIPDoubleValueType: NSNumber object. - * kCHIPNullValueType: "value" key will not be included. - * kCHIPStructureValueType: structure-value NSArray object. + * MTRTypeKey : data type. MTRSignedIntegerValueType, MTRUnsignedIntegerValueType, MTRBooleanValueType, + * MTRUTF8StringValueType, MTROctetStringValueType, MTRFloatValueType, MTRDoubleValueType, + * MTRNullValueType, MTRStructureValueType or MTRArrayValueType. + * + * MTRValueKey : data value. Per each data type, data value shall be the following object: + * + * MTRSignedIntegerValueType: NSNumber object. + * MTRUnsignedIntegerValueType: NSNumber object. + * MTRBooleanValueType: NSNumber object. + * MTRUTF8StringValueType: NSString object. + * MTROctetStringValueType: NSData object. + * MTRFloatValueType: NSNumber object. + * MTRDoubleValueType: NSNumber object. + * MTRNullValueType: "value" key will not be included. + * MTRStructureValueType: structure-value NSArray object. * See below for the definition of structure-value. - * kCHIPArrayValueType: Array-value NSArray object. See below for the definition of array-value. + * MTRArrayValueType: Array-value NSArray object. See below for the definition of array-value. * * A structure-value is an NSArray object with NSDictionary objects as its elements. Each dictionary element will * contain the following key values. * - * kCHIPContextTagKey : NSNumber object as context tag. - * kCHIPDataKey : Data-value NSDictionary object. + * MTRContextTagKey : NSNumber object as context tag. + * MTRDataKey : Data-value NSDictionary object. * * An array-value is an NSArray object with NSDictionary objects as its elements. Each dictionary element will * contain the following key values. * - * kCHIPDataKey : Data-value NSDictionary object. + * MTRDataKey : Data-value NSDictionary object. */ -typedef void (^CHIPDeviceResponseHandler)(NSArray *> * _Nullable values, NSError * _Nullable error); +typedef void (^MTRDeviceResponseHandler)(NSArray *> * _Nullable values, NSError * _Nullable error); -extern NSString * const kCHIPAttributePathKey; -extern NSString * const kCHIPCommandPathKey; -extern NSString * const kCHIPDataKey; -extern NSString * const kCHIPErrorKey; -extern NSString * const kCHIPTypeKey; -extern NSString * const kCHIPValueKey; -extern NSString * const kCHIPContextTagKey; -extern NSString * const kCHIPSignedIntegerValueType; -extern NSString * const kCHIPUnsignedIntegerValueType; -extern NSString * const kCHIPBooleanValueType; -extern NSString * const kCHIPUTF8StringValueType; -extern NSString * const kCHIPOctetStringValueType; -extern NSString * const kCHIPFloatValueType; -extern NSString * const kCHIPDoubleValueType; -extern NSString * const kCHIPNullValueType; -extern NSString * const kCHIPStructureValueType; -extern NSString * const kCHIPArrayValueType; +extern NSString * const MTRAttributePathKey; +extern NSString * const MTRCommandPathKey; +extern NSString * const MTRDataKey; +extern NSString * const MTRErrorKey; +extern NSString * const MTRTypeKey; +extern NSString * const MTRValueKey; +extern NSString * const MTRContextTagKey; +extern NSString * const MTRSignedIntegerValueType; +extern NSString * const MTRUnsignedIntegerValueType; +extern NSString * const MTRBooleanValueType; +extern NSString * const MTRUTF8StringValueType; +extern NSString * const MTROctetStringValueType; +extern NSString * const MTRFloatValueType; +extern NSString * const MTRDoubleValueType; +extern NSString * const MTRNullValueType; +extern NSString * const MTRStructureValueType; +extern NSString * const MTRArrayValueType; -@class CHIPAttributeCacheContainer; -@class CHIPReadParams; -@class CHIPSubscribeParams; +@class MTRAttributeCacheContainer; +@class MTRReadParams; +@class MTRSubscribeParams; -@interface CHIPDevice : NSObject +@interface MTRDevice : NSObject - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; -/** - * Subscribe to receive attribute reports for everything (all endpoints, all - * clusters, all attributes, all events) on the device. - * - * A non-nil attribute cache container will cache attribute values, retrievable - * through the designated attribute cache container. - * - * reportHandler will be called any time a data update is available (with a - * non-nil "value" and nil "error"), or any time there is an error for the - * entire subscription (with a nil "value" and non-nil "error"). If it's called - * with an error, that will terminate the subscription. - * - * The array passed to reportHandler will contain CHIPAttributeReport - * instances. Errors for specific paths, not the whole subscription, will be - * reported via those objects. - * - * reportHandler is not supported over XPC at the moment. - * - * subscriptionEstablished block, if not nil, will be called once the - * subscription is established. This will be _after_ the first (priming) call - * to reportHandler. Note that if the CHIPSubscribeParams are set to - * automatically resubscribe this can end up being called more than once. - * - * TODO: Remove this once the replacement below is adopted - */ -- (void)subscribeWithQueue:(dispatch_queue_t)queue - minInterval:(uint16_t)minInterval - maxInterval:(uint16_t)maxInterval - params:(nullable CHIPSubscribeParams *)params - cacheContainer:(CHIPAttributeCacheContainer * _Nullable)attributeCacheContainer - reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler - subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler; - /** * Subscribe to receive attribute reports for everything (all endpoints, all * clusters, all attributes, all events) on the device. @@ -141,7 +105,7 @@ extern NSString * const kCHIPArrayValueType; * attributeReportHandler will be called any time a data update is available (with a * non-nil "value") * - * The array passed to attributeReportHandler will contain CHIPAttributeReport + * The array passed to attributeReportHandler will contain MTRAttributeReport * instances. Errors for specific paths, not the whole subscription, will be * reported via those objects. * @@ -159,16 +123,16 @@ extern NSString * const kCHIPArrayValueType; * * subscriptionEstablished block, if not nil, will be called once the * subscription is established. This will be _after_ the first (priming) call - * to both report handlers. Note that if the CHIPSubscribeParams are set to + * to both report handlers. Note that if the MTRSubscribeParams are set to * automatically resubscribe this can end up being called more than once. */ - (void)subscribeWithQueue:(dispatch_queue_t)queue minInterval:(uint16_t)minInterval maxInterval:(uint16_t)maxInterval - params:(nullable CHIPSubscribeParams *)params - cacheContainer:(CHIPAttributeCacheContainer * _Nullable)attributeCacheContainer - attributeReportHandler:(void (^)(NSArray * value))attributeReportHandler - eventReportHandler:(void (^)(NSArray * value))eventReportHandler + params:(nullable MTRSubscribeParams *)params + cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer + attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler + eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler errorHandler:(void (^)(NSError * error))errorHandler subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler; @@ -178,15 +142,15 @@ extern NSString * const kCHIPArrayValueType; - (void)readAttributeWithEndpointId:(NSNumber * _Nullable)endpointId clusterId:(NSNumber * _Nullable)clusterId attributeId:(NSNumber * _Nullable)attributeId - params:(CHIPReadParams * _Nullable)params + params:(MTRReadParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion; + completion:(MTRDeviceResponseHandler)completion; /** * Write to attribute in a designated attribute path * * @param value A data-value NSDictionary object as described in - * CHIPDeviceResponseHandler. + * MTRDeviceResponseHandler. * * @param timeoutMs timeout in milliseconds for timed write, or nil. * @@ -201,15 +165,15 @@ extern NSString * const kCHIPArrayValueType; value:(id)value timedWriteTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion; + completion:(MTRDeviceResponseHandler)completion; /** * Invoke a command with a designated command path * * @param commandFields command fields object. The object must be a data-value NSDictionary object - * as described in the CHIPDeviceResponseHandler. + * as described in the MTRDeviceResponseHandler. * The attribute must be a Structure, i.e., - * the NSDictionary kCHIPTypeKey key must have the value kCHIPStructureValueType. + * the NSDictionary MTRTypeKey key must have the value MTRStructureValueType. * * @param timeoutMs timeout in milliseconds for timed invoke, or nil. * @@ -221,7 +185,7 @@ extern NSString * const kCHIPArrayValueType; commandFields:(id)commandFields timedInvokeTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion; + completion:(MTRDeviceResponseHandler)completion; /** * Subscribe an attribute in a designated attribute path @@ -231,9 +195,9 @@ extern NSString * const kCHIPArrayValueType; attributeId:(NSNumber * _Nullable)attributeId minInterval:(NSNumber *)minInterval maxInterval:(NSNumber *)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - reportHandler:(CHIPDeviceResponseHandler)reportHandler + reportHandler:(MTRDeviceResponseHandler)reportHandler subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler; /** @@ -247,7 +211,7 @@ extern NSString * const kCHIPArrayValueType; @end -@interface CHIPAttributePath : NSObject +@interface MTRAttributePath : NSObject @property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; @property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; @property (nonatomic, readonly, strong, nonnull) NSNumber * attribute; @@ -260,7 +224,7 @@ extern NSString * const kCHIPArrayValueType; + (instancetype)new NS_UNAVAILABLE; @end -@interface CHIPEventPath : NSObject +@interface MTREventPath : NSObject @property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; @property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; @property (nonatomic, readonly, strong, nonnull) NSNumber * event; @@ -271,7 +235,7 @@ extern NSString * const kCHIPArrayValueType; + (instancetype)new NS_UNAVAILABLE; @end -@interface CHIPCommandPath : NSObject +@interface MTRCommandPath : NSObject @property (nonatomic, readonly, strong, nonnull) NSNumber * endpoint; @property (nonatomic, readonly, strong, nonnull) NSNumber * cluster; @property (nonatomic, readonly, strong, nonnull) NSNumber * command; @@ -282,28 +246,26 @@ extern NSString * const kCHIPArrayValueType; + (instancetype)new NS_UNAVAILABLE; @end -@interface CHIPAttributeReport : NSObject -@property (nonatomic, readonly, strong, nonnull) CHIPAttributePath * path; +@interface MTRAttributeReport : NSObject +@property (nonatomic, readonly, strong, nonnull) MTRAttributePath * path; // value is nullable because nullable attributes can have nil as value. @property (nonatomic, readonly, strong, nullable) id value; // If this specific path resulted in an error, the error (in the -// MatterInteractionErrorDomain or CHIPErrorDomain) that corresponds to this +// MTRInteractionErrorDomain or MTRErrorDomain) that corresponds to this // path. @property (nonatomic, readonly, strong, nullable) NSError * error; @end -@interface CHIPEventReport : NSObject -@property (nonatomic, readonly, strong, nonnull) CHIPEventPath * path; +@interface MTREventReport : NSObject +@property (nonatomic, readonly, strong, nonnull) MTREventPath * path; @property (nonatomic, readonly, strong, nonnull) NSNumber * eventNumber; // chip::EventNumber type (uint64_t) @property (nonatomic, readonly, strong, nonnull) NSNumber * priority; // chip::app::PriorityLevel type (uint8_t) @property (nonatomic, readonly, strong, nonnull) NSNumber * timestamp; // chip::app::Timestamp.mValue type (uint64_t) @property (nonatomic, readonly, strong, nullable) id value; // If this specific path resulted in an error, the error (in the -// MatterInteractionErrorDomain or CHIPErrorDomain) that corresponds to this +// MTRInteractionErrorDomain or MTRErrorDomain) that corresponds to this // path. @property (nonatomic, readonly, strong, nullable) NSError * error; @end NS_ASSUME_NONNULL_END - -#endif /* CHIP_DEVICE_H */ diff --git a/src/darwin/Framework/CHIP/CHIPDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm similarity index 78% rename from src/darwin/Framework/CHIP/CHIPDevice.mm rename to src/darwin/Framework/CHIP/MTRDevice.mm index e25a580aa0c714..9cc39ad8aa581a 100644 --- a/src/darwin/Framework/CHIP/CHIPDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -15,14 +15,14 @@ * limitations under the License. */ -#import "CHIPAttributeCacheContainer_Internal.h" -#import "CHIPAttributeTLVValueDecoder_Internal.h" -#import "CHIPCallbackBridgeBase_internal.h" -#import "CHIPCluster.h" -#import "CHIPDevice_Internal.h" -#import "CHIPError_Internal.h" -#import "CHIPEventTLVValueDecoder_Internal.h" -#import "CHIPLogging.h" +#import "MTRAttributeCacheContainer_Internal.h" +#import "MTRAttributeTLVValueDecoder_Internal.h" +#import "MTRCallbackBridgeBase_internal.h" +#import "MTRCluster.h" +#import "MTRDevice_Internal.h" +#import "MTRError_Internal.h" +#import "MTREventTLVValueDecoder_Internal.h" +#import "MTRLogging.h" #include "app/ConcreteAttributePath.h" #include "app/ConcreteCommandPath.h" #include "lib/core/CHIPError.h" @@ -45,27 +45,27 @@ using namespace chip::app; using namespace chip::Protocols::InteractionModel; -NSString * const kCHIPAttributePathKey = @"attributePath"; -NSString * const kCHIPCommandPathKey = @"commandPath"; -NSString * const kCHIPDataKey = @"data"; -NSString * const kCHIPErrorKey = @"error"; -NSString * const kCHIPTypeKey = @"type"; -NSString * const kCHIPValueKey = @"value"; -NSString * const kCHIPContextTagKey = @"contextTag"; -NSString * const kCHIPSignedIntegerValueType = @"SignedInteger"; -NSString * const kCHIPUnsignedIntegerValueType = @"UnsignedInteger"; -NSString * const kCHIPBooleanValueType = @"Boolean"; -NSString * const kCHIPUTF8StringValueType = @"UTF8String"; -NSString * const kCHIPOctetStringValueType = @"OctetString"; -NSString * const kCHIPFloatValueType = @"Float"; -NSString * const kCHIPDoubleValueType = @"Double"; -NSString * const kCHIPNullValueType = @"Null"; -NSString * const kCHIPStructureValueType = @"Structure"; -NSString * const kCHIPArrayValueType = @"Array"; +NSString * const MTRAttributePathKey = @"attributePath"; +NSString * const MTRCommandPathKey = @"commandPath"; +NSString * const MTRDataKey = @"data"; +NSString * const MTRErrorKey = @"error"; +NSString * const MTRTypeKey = @"type"; +NSString * const MTRValueKey = @"value"; +NSString * const MTRContextTagKey = @"contextTag"; +NSString * const MTRSignedIntegerValueType = @"SignedInteger"; +NSString * const MTRUnsignedIntegerValueType = @"UnsignedInteger"; +NSString * const MTRBooleanValueType = @"Boolean"; +NSString * const MTRUTF8StringValueType = @"UTF8String"; +NSString * const MTROctetStringValueType = @"OctetString"; +NSString * const MTRFloatValueType = @"Float"; +NSString * const MTRDoubleValueType = @"Double"; +NSString * const MTRNullValueType = @"Null"; +NSString * const MTRStructureValueType = @"Structure"; +NSString * const MTRArrayValueType = @"Array"; class NSObjectDataValueCallbackBridge; -@interface CHIPDevice () +@interface MTRDevice () @property (nonatomic, readonly, strong, nonnull) NSRecursiveLock * lock; @property (readonly) chip::DeviceProxy * cppDevice; @@ -73,11 +73,11 @@ @interface CHIPDevice () @end -@interface CHIPAttributeReport () +@interface MTRAttributeReport () - (instancetype)initWithPath:(const ConcreteDataAttributePath &)path value:(nullable id)value error:(nullable NSError *)error; @end -@interface CHIPEventReport () +@interface MTREventReport () - (instancetype)initWithPath:(const ConcreteEventPath &)path eventNumber:(NSNumber *)eventNumber priority:(NSNumber *)priority @@ -86,14 +86,14 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path error:(nullable NSError *)error; @end -@interface CHIPReadClientContainer : NSObject +@interface MTRReadClientContainer : NSObject @property (nonatomic, readwrite) app::ReadClient * readClientPtr; @property (nonatomic, readwrite) app::AttributePathParams * pathParams; @property (nonatomic, readwrite) uint64_t deviceId; - (void)onDone; @end -static NSMutableDictionary *> * readClientContainers; +static NSMutableDictionary *> * readClientContainers; static NSLock * readClientContainersLock; static void InitializeReadClientContainers() @@ -105,7 +105,7 @@ static void InitializeReadClientContainers() }); } -static void AddReadClientContainer(uint64_t deviceId, CHIPReadClientContainer * container) +static void AddReadClientContainer(uint64_t deviceId, MTRReadClientContainer * container) { InitializeReadClientContainers(); @@ -122,7 +122,7 @@ static void PurgeReadClientContainers(uint64_t deviceId, dispatch_queue_t queue, { InitializeReadClientContainers(); - NSMutableArray * listToDelete; + NSMutableArray * listToDelete; NSNumber * key = [NSNumber numberWithUnsignedLongLong:deviceId]; [readClientContainersLock lock]; listToDelete = readClientContainers[key]; @@ -131,7 +131,7 @@ static void PurgeReadClientContainers(uint64_t deviceId, dispatch_queue_t queue, // Destroy read clients in the work queue dispatch_async(DeviceLayer::PlatformMgrImpl().GetWorkQueue(), ^{ - for (CHIPReadClientContainer * container in listToDelete) { + for (MTRReadClientContainer * container in listToDelete) { if (container.readClientPtr) { Platform::Delete(container.readClientPtr); container.readClientPtr = nullptr; @@ -154,7 +154,7 @@ static void PurgeCompletedReadClientContainers(uint64_t deviceId) NSNumber * key = [NSNumber numberWithUnsignedLongLong:deviceId]; [readClientContainersLock lock]; - NSMutableArray * array = readClientContainers[key]; + NSMutableArray * array = readClientContainers[key]; NSUInteger i = 0; while (i < [array count]) { if (array[i].readClientPtr == nullptr) { @@ -172,7 +172,7 @@ static void CauseReadClientFailure(uint64_t deviceId, dispatch_queue_t queue, vo { InitializeReadClientContainers(); - NSMutableArray * listToFail; + NSMutableArray * listToFail; NSNumber * key = [NSNumber numberWithUnsignedLongLong:deviceId]; [readClientContainersLock lock]; listToFail = readClientContainers[key]; @@ -180,7 +180,7 @@ static void CauseReadClientFailure(uint64_t deviceId, dispatch_queue_t queue, vo [readClientContainersLock unlock]; dispatch_async(DeviceLayer::PlatformMgrImpl().GetWorkQueue(), ^{ - for (CHIPReadClientContainer * container in listToFail) { + for (MTRReadClientContainer * container in listToFail) { // Send auto resubscribe request again by read clients, which must fail. chip::app::ReadPrepareParams readParams; if (container.readClientPtr) { @@ -194,7 +194,7 @@ static void CauseReadClientFailure(uint64_t deviceId, dispatch_queue_t queue, vo } #endif -@implementation CHIPReadClientContainer +@implementation MTRReadClientContainer - (void)onDone { if (_readClientPtr) { @@ -221,7 +221,7 @@ - (void)dealloc } @end -@implementation CHIPDevice +@implementation MTRDevice - (instancetype)init { @@ -349,35 +349,10 @@ - (void)invalidateCASESession - (void)subscribeWithQueue:(dispatch_queue_t)queue minInterval:(uint16_t)minInterval maxInterval:(uint16_t)maxInterval - params:(nullable CHIPSubscribeParams *)params - cacheContainer:(CHIPAttributeCacheContainer * _Nullable)attributeCacheContainer - reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler - subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler -{ - [self subscribeWithQueue:queue - minInterval:minInterval - maxInterval:maxInterval - params:params - cacheContainer:attributeCacheContainer - attributeReportHandler:^(NSArray * _Nullable value) { - reportHandler(value, nil); - } - eventReportHandler:^(NSArray * _Nullable value) { - ; // do nothing - } - errorHandler:^(NSError * _Nullable error) { - reportHandler(nil, error); - } - subscriptionEstablished:subscriptionEstablishedHandler]; -} - -- (void)subscribeWithQueue:(dispatch_queue_t)queue - minInterval:(uint16_t)minInterval - maxInterval:(uint16_t)maxInterval - params:(nullable CHIPSubscribeParams *)params - cacheContainer:(CHIPAttributeCacheContainer * _Nullable)attributeCacheContainer - attributeReportHandler:(void (^)(NSArray * value))attributeReportHandler - eventReportHandler:(void (^)(NSArray * value))eventReportHandler + params:(nullable MTRSubscribeParams *)params + cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer + attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler + eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler errorHandler:(void (^)(NSError * error))errorHandler subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler { @@ -385,7 +360,7 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue DeviceProxy * device = [self internalDevice]; if (!device) { dispatch_async(queue, ^{ - errorHandler([CHIPError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]); + errorHandler([MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]); }); return; } @@ -407,10 +382,10 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue std::unique_ptr readClient; std::unique_ptr attributeCache; if (attributeCacheContainer) { - __weak CHIPAttributeCacheContainer * weakPtr = attributeCacheContainer; + __weak MTRAttributeCacheContainer * weakPtr = attributeCacheContainer; callback = std::make_unique( queue, attributeReportHandler, eventReportHandler, errorHandler, subscriptionEstablishedHandler, ^{ - CHIPAttributeCacheContainer * container = weakPtr; + MTRAttributeCacheContainer * container = weakPtr; if (container) { container.cppAttributeCache = nullptr; } @@ -437,7 +412,7 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue if (err != CHIP_NO_ERROR) { dispatch_async(queue, ^{ - errorHandler([CHIPError errorForCHIPErrorCode:err]); + errorHandler([MTRError errorForCHIPErrorCode:err]); }); return; @@ -464,82 +439,82 @@ id _Nullable NSObjectFromCHIPTLV(chip::TLV::TLVReader * data) int64_t val; CHIP_ERROR err = data->Get(val); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV signed integer decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV signed integer decoding failed", chip::ErrorStr(err)); return nil; } - return [NSDictionary dictionaryWithObjectsAndKeys:kCHIPSignedIntegerValueType, kCHIPTypeKey, - [NSNumber numberWithLongLong:val], kCHIPValueKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:MTRSignedIntegerValueType, MTRTypeKey, [NSNumber numberWithLongLong:val], + MTRValueKey, nil]; } case chip::TLV::kTLVType_UnsignedInteger: { uint64_t val; CHIP_ERROR err = data->Get(val); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV unsigned integer decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV unsigned integer decoding failed", chip::ErrorStr(err)); return nil; } - return [NSDictionary dictionaryWithObjectsAndKeys:kCHIPUnsignedIntegerValueType, kCHIPTypeKey, - [NSNumber numberWithUnsignedLongLong:val], kCHIPValueKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:MTRUnsignedIntegerValueType, MTRTypeKey, + [NSNumber numberWithUnsignedLongLong:val], MTRValueKey, nil]; } case chip::TLV::kTLVType_Boolean: { bool val; CHIP_ERROR err = data->Get(val); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV boolean decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV boolean decoding failed", chip::ErrorStr(err)); return nil; } return [NSDictionary - dictionaryWithObjectsAndKeys:kCHIPBooleanValueType, kCHIPTypeKey, [NSNumber numberWithBool:val], kCHIPValueKey, nil]; + dictionaryWithObjectsAndKeys:MTRBooleanValueType, MTRTypeKey, [NSNumber numberWithBool:val], MTRValueKey, nil]; } case chip::TLV::kTLVType_FloatingPointNumber: { // Try float first float floatValue; CHIP_ERROR err = data->Get(floatValue); if (err == CHIP_NO_ERROR) { - return @ { kCHIPTypeKey : kCHIPFloatValueType, kCHIPValueKey : [NSNumber numberWithFloat:floatValue] }; + return @ { MTRTypeKey : MTRFloatValueType, MTRValueKey : [NSNumber numberWithFloat:floatValue] }; } double val; err = data->Get(val); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV floating point decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV floating point decoding failed", chip::ErrorStr(err)); return nil; } return [NSDictionary - dictionaryWithObjectsAndKeys:kCHIPDoubleValueType, kCHIPTypeKey, [NSNumber numberWithDouble:val], kCHIPValueKey, nil]; + dictionaryWithObjectsAndKeys:MTRDoubleValueType, MTRTypeKey, [NSNumber numberWithDouble:val], MTRValueKey, nil]; } case chip::TLV::kTLVType_UTF8String: { uint32_t len = data->GetLength(); const uint8_t * ptr; CHIP_ERROR err = data->GetDataPtr(ptr); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV UTF8String decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV UTF8String decoding failed", chip::ErrorStr(err)); return nil; } - return [NSDictionary dictionaryWithObjectsAndKeys:kCHIPUTF8StringValueType, kCHIPTypeKey, - [[NSString alloc] initWithBytes:ptr length:len encoding:NSUTF8StringEncoding], kCHIPValueKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:MTRUTF8StringValueType, MTRTypeKey, + [[NSString alloc] initWithBytes:ptr length:len encoding:NSUTF8StringEncoding], MTRValueKey, nil]; } case chip::TLV::kTLVType_ByteString: { uint32_t len = data->GetLength(); const uint8_t * ptr; CHIP_ERROR err = data->GetDataPtr(ptr); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV ByteString decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV ByteString decoding failed", chip::ErrorStr(err)); return nil; } - return [NSDictionary dictionaryWithObjectsAndKeys:kCHIPOctetStringValueType, kCHIPTypeKey, - [NSData dataWithBytes:ptr length:len], kCHIPValueKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:MTROctetStringValueType, MTRTypeKey, + [NSData dataWithBytes:ptr length:len], MTRValueKey, nil]; } case chip::TLV::kTLVType_Null: { - return [NSDictionary dictionaryWithObjectsAndKeys:kCHIPNullValueType, kCHIPTypeKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:MTRNullValueType, MTRTypeKey, nil]; } case chip::TLV::kTLVType_Structure: case chip::TLV::kTLVType_Array: { NSString * typeName; switch (dataTLVType) { case chip::TLV::kTLVType_Structure: - typeName = kCHIPStructureValueType; + typeName = MTRStructureValueType; break; case chip::TLV::kTLVType_Array: - typeName = kCHIPArrayValueType; + typeName = MTRArrayValueType; break; default: typeName = @"Unsupported"; @@ -548,7 +523,7 @@ id _Nullable NSObjectFromCHIPTLV(chip::TLV::TLVReader * data) chip::TLV::TLVType tlvType; CHIP_ERROR err = data->EnterContainer(tlvType); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV container entering failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV container entering failed", chip::ErrorStr(err)); return nil; } NSMutableArray * array = [[NSMutableArray alloc] init]; @@ -556,29 +531,29 @@ id _Nullable NSObjectFromCHIPTLV(chip::TLV::TLVReader * data) chip::TLV::Tag tag = data->GetTag(); id value = NSObjectFromCHIPTLV(data); if (value == nullptr) { - CHIP_LOG_ERROR("Error when decoding TLV container"); + MTR_LOG_ERROR("Error when decoding TLV container"); return nil; } NSMutableDictionary * arrayElement = [NSMutableDictionary dictionary]; - [arrayElement setObject:value forKey:kCHIPDataKey]; + [arrayElement setObject:value forKey:MTRDataKey]; if (dataTLVType == chip::TLV::kTLVType_Structure) { - [arrayElement setObject:[NSNumber numberWithUnsignedLong:TagNumFromTag(tag)] forKey:kCHIPContextTagKey]; + [arrayElement setObject:[NSNumber numberWithUnsignedLong:TagNumFromTag(tag)] forKey:MTRContextTagKey]; } [array addObject:arrayElement]; } if (err != CHIP_END_OF_TLV) { - CHIP_LOG_ERROR("Error(%s): TLV container decoding failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV container decoding failed", chip::ErrorStr(err)); return nil; } err = data->ExitContainer(tlvType); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): TLV container exiting failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): TLV container exiting failed", chip::ErrorStr(err)); return nil; } - return [NSDictionary dictionaryWithObjectsAndKeys:typeName, kCHIPTypeKey, array, kCHIPValueKey, nil]; + return [NSDictionary dictionaryWithObjectsAndKeys:typeName, MTRTypeKey, array, MTRValueKey, nil]; } default: - CHIP_LOG_ERROR("Error: Unsupported TLV type for conversion: %u", (unsigned) data->GetType()); + MTR_LOG_ERROR("Error: Unsupported TLV type for conversion: %u", (unsigned) data->GetType()); return nil; } } @@ -586,83 +561,83 @@ id _Nullable NSObjectFromCHIPTLV(chip::TLV::TLVReader * data) static CHIP_ERROR EncodeTLVFromObject(id object, chip::TLV::TLVWriter & writer, chip::TLV::Tag tag) { if (![object isKindOfClass:[NSDictionary class]]) { - CHIP_LOG_ERROR("Error: Unsupported object to encode: %@", [object class]); + MTR_LOG_ERROR("Error: Unsupported object to encode: %@", [object class]); return CHIP_ERROR_INVALID_ARGUMENT; } - NSString * typeName = ((NSDictionary *) object)[kCHIPTypeKey]; - id value = ((NSDictionary *) object)[kCHIPValueKey]; + NSString * typeName = ((NSDictionary *) object)[MTRTypeKey]; + id value = ((NSDictionary *) object)[MTRValueKey]; if (!typeName) { - CHIP_LOG_ERROR("Error: Object to encode is corrupt"); + MTR_LOG_ERROR("Error: Object to encode is corrupt"); return CHIP_ERROR_INVALID_ARGUMENT; } - if ([typeName isEqualToString:kCHIPSignedIntegerValueType]) { + if ([typeName isEqualToString:MTRSignedIntegerValueType]) { if (![value isKindOfClass:[NSNumber class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt signed integer type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt signed integer type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, [value longLongValue]); } - if ([typeName isEqualToString:kCHIPUnsignedIntegerValueType]) { + if ([typeName isEqualToString:MTRUnsignedIntegerValueType]) { if (![value isKindOfClass:[NSNumber class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt unsigned integer type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt unsigned integer type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, [value unsignedLongLongValue]); } - if ([typeName isEqualToString:kCHIPBooleanValueType]) { + if ([typeName isEqualToString:MTRBooleanValueType]) { if (![value isKindOfClass:[NSNumber class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt boolean type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt boolean type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, static_cast([value boolValue])); } - if ([typeName isEqualToString:kCHIPFloatValueType]) { + if ([typeName isEqualToString:MTRFloatValueType]) { if (![value isKindOfClass:[NSNumber class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt float type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt float type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, [value floatValue]); } - if ([typeName isEqualToString:kCHIPDoubleValueType]) { + if ([typeName isEqualToString:MTRDoubleValueType]) { if (![value isKindOfClass:[NSNumber class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt double type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt double type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, [value doubleValue]); } - if ([typeName isEqualToString:kCHIPNullValueType]) { + if ([typeName isEqualToString:MTRNullValueType]) { return writer.PutNull(tag); } - if ([typeName isEqualToString:kCHIPUTF8StringValueType]) { + if ([typeName isEqualToString:MTRUTF8StringValueType]) { if (![value isKindOfClass:[NSString class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt UTF8 string type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt UTF8 string type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.PutString(tag, [value cStringUsingEncoding:NSUTF8StringEncoding]); } - if ([typeName isEqualToString:kCHIPOctetStringValueType]) { + if ([typeName isEqualToString:MTROctetStringValueType]) { if (![value isKindOfClass:[NSData class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt octet string type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt octet string type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } return writer.Put(tag, chip::ByteSpan(static_cast([value bytes]), [value length])); } - if ([typeName isEqualToString:kCHIPStructureValueType]) { + if ([typeName isEqualToString:MTRStructureValueType]) { if (![value isKindOfClass:[NSArray class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt structure type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt structure type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, chip::TLV::kTLVType_Structure, outer)); for (id element in value) { if (![element isKindOfClass:[NSDictionary class]]) { - CHIP_LOG_ERROR("Error: Structure element to encode has corrupt type: %@", [element class]); + MTR_LOG_ERROR("Error: Structure element to encode has corrupt type: %@", [element class]); return CHIP_ERROR_INVALID_ARGUMENT; } - NSNumber * elementTag = element[kCHIPContextTagKey]; - id elementValue = element[kCHIPDataKey]; + NSNumber * elementTag = element[MTRContextTagKey]; + id elementValue = element[MTRDataKey]; if (!elementTag || !elementValue) { - CHIP_LOG_ERROR("Error: Structure element to encode has corrupt value: %@", element); + MTR_LOG_ERROR("Error: Structure element to encode has corrupt value: %@", element); return CHIP_ERROR_INVALID_ARGUMENT; } ReturnErrorOnFailure(EncodeTLVFromObject(elementValue, writer, chip::TLV::ContextTag([elementTag unsignedCharValue]))); @@ -670,21 +645,21 @@ static CHIP_ERROR EncodeTLVFromObject(id object, chip::TLV::TLVWriter & writer, ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } - if ([typeName isEqualToString:kCHIPArrayValueType]) { + if ([typeName isEqualToString:MTRArrayValueType]) { if (![value isKindOfClass:[NSArray class]]) { - CHIP_LOG_ERROR("Error: Object to encode has corrupt array type: %@", [value class]); + MTR_LOG_ERROR("Error: Object to encode has corrupt array type: %@", [value class]); return CHIP_ERROR_INVALID_ARGUMENT; } TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, chip::TLV::kTLVType_Array, outer)); for (id element in value) { if (![element isKindOfClass:[NSDictionary class]]) { - CHIP_LOG_ERROR("Error: Array element to encode has corrupt type: %@", [element class]); + MTR_LOG_ERROR("Error: Array element to encode has corrupt type: %@", [element class]); return CHIP_ERROR_INVALID_ARGUMENT; } - id elementValue = element[kCHIPDataKey]; + id elementValue = element[MTRDataKey]; if (!elementValue) { - CHIP_LOG_ERROR("Error: Array element to encode has corrupt value: %@", element); + MTR_LOG_ERROR("Error: Array element to encode has corrupt value: %@", element); return CHIP_ERROR_INVALID_ARGUMENT; } ReturnErrorOnFailure(EncodeTLVFromObject(elementValue, writer, chip::TLV::AnonymousTag())); @@ -692,13 +667,13 @@ static CHIP_ERROR EncodeTLVFromObject(id object, chip::TLV::TLVWriter & writer, ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } - CHIP_LOG_ERROR("Error: Unsupported type to encode: %@", typeName); + MTR_LOG_ERROR("Error: Unsupported type to encode: %@", typeName); return CHIP_ERROR_INVALID_ARGUMENT; } // Callback type to pass data value as an NSObject typedef void (*NSObjectDataValueCallback)(void * context, id value); -typedef void (*CHIPErrorCallback)(void * context, CHIP_ERROR error); +typedef void (*MTRErrorCallback)(void * context, CHIP_ERROR error); // Rename to be generic for decode and encode class NSObjectData { @@ -716,7 +691,7 @@ CHIP_ERROR Decode(chip::TLV::TLVReader & data) { decodedObj = NSObjectFromCHIPTLV(&data); if (decodedObj == nil) { - CHIP_LOG_ERROR("Error: Failed to get value from TLV data for attribute reading response"); + MTR_LOG_ERROR("Error: Failed to get value from TLV data for attribute reading response"); } return (decodedObj) ? CHIP_NO_ERROR : CHIP_ERROR_DECODE_FAILED; } @@ -737,11 +712,11 @@ CHIP_ERROR Encode(chip::TLV::TLVWriter & writer, chip::TLV::Tag tag) const }; // Callback bridge for NSObjectDataValueCallback -class NSObjectDataValueCallbackBridge : public CHIPCallbackBridge { +class NSObjectDataValueCallbackBridge : public MTRCallbackBridge { public: NSObjectDataValueCallbackBridge( - dispatch_queue_t queue, CHIPDeviceResponseHandler handler, CHIPActionBlock action, bool keepAlive = false) - : CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive) {}; + dispatch_queue_t queue, MTRDeviceResponseHandler handler, MTRActionBlock action, bool keepAlive = false) + : MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive) {}; static void OnSuccessFn(void * context, id value) { DispatchSuccess(context, value); } }; @@ -826,14 +801,14 @@ void OnDeallocatePaths(chip::app::ReadPrepareParams && aReadPrepareParams) overr - (void)readAttributeWithEndpointId:(NSNumber *)endpointId clusterId:(NSNumber *)clusterId attributeId:(NSNumber *)attributeId - params:(CHIPReadParams * _Nullable)params + params:(MTRReadParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { new NSObjectDataValueCallbackBridge( clientQueue, completion, ^(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure) { auto successFn = chip::Callback::Callback::FromCancelable(success); - auto failureFn = chip::Callback::Callback::FromCancelable(failure); + auto failureFn = chip::Callback::Callback::FromCancelable(failure); auto context = successFn->mContext; auto successCb = successFn->mCall; auto failureCb = failureFn->mCall; @@ -843,8 +818,8 @@ new NSObjectDataValueCallbackBridge( auto onSuccessCb = [resultArray, resultSuccess](const app::ConcreteAttributePath & attribPath, const NSObjectData & aData) { [resultArray addObject:@ { - kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:attribPath], - kCHIPDataKey : aData.GetDecodedObject() + MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:attribPath], + MTRDataKey : aData.GetDecodedObject() }]; if ([resultSuccess count] == 0) { [resultSuccess addObject:[NSNumber numberWithBool:YES]]; @@ -854,11 +829,11 @@ new NSObjectDataValueCallbackBridge( auto onFailureCb = [resultArray, resultFailure](const app::ConcreteAttributePath * attribPath, CHIP_ERROR aError) { if (attribPath) { [resultArray addObject:@ { - kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:*attribPath], - kCHIPErrorKey : [CHIPError errorForCHIPErrorCode:aError] + MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:*attribPath], + MTRErrorKey : [MTRError errorForCHIPErrorCode:aError] }]; } else if ([resultFailure count] == 0) { - [resultFailure addObject:[CHIPError errorForCHIPErrorCode:aError]]; + [resultFailure addObject:[MTRError errorForCHIPErrorCode:aError]]; } }; @@ -886,9 +861,9 @@ new NSObjectDataValueCallbackBridge( // Failure if (failureCb) { if ([resultFailure count] > 0) { - failureCb(context, [CHIPError errorToCHIPErrorCode:resultFailure[0]]); + failureCb(context, [MTRError errorToCHIPErrorCode:resultFailure[0]]); } else if ([resultArray count] > 0) { - failureCb(context, [CHIPError errorToCHIPErrorCode:resultArray[0][kCHIPErrorKey]]); + failureCb(context, [MTRError errorToCHIPErrorCode:resultArray[0][MTRErrorKey]]); } else { failureCb(context, CHIP_ERROR_READ_FAILED); } @@ -933,12 +908,12 @@ - (void)writeAttributeWithEndpointId:(NSNumber *)endpointId value:(id)value timedWriteTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { new NSObjectDataValueCallbackBridge( clientQueue, completion, ^(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure) { auto successFn = chip::Callback::Callback::FromCancelable(success); - auto failureFn = chip::Callback::Callback::FromCancelable(failure); + auto failureFn = chip::Callback::Callback::FromCancelable(failure); auto context = successFn->mContext; auto successCb = successFn->mCall; auto failureCb = failureFn->mCall; @@ -946,7 +921,7 @@ new NSObjectDataValueCallbackBridge( auto resultSuccess = [[NSMutableArray alloc] init]; auto resultFailure = [[NSMutableArray alloc] init]; auto onSuccessCb = [resultArray, resultSuccess](const app::ConcreteAttributePath & attribPath) { - [resultArray addObject:@ { kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:attribPath] }]; + [resultArray addObject:@ { MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:attribPath] }]; if ([resultSuccess count] == 0) { [resultSuccess addObject:[NSNumber numberWithBool:YES]]; } @@ -955,12 +930,12 @@ new NSObjectDataValueCallbackBridge( auto onFailureCb = [resultArray, resultFailure](const app::ConcreteAttributePath * attribPath, CHIP_ERROR aError) { if (attribPath) { [resultArray addObject:@ { - kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:*attribPath], - kCHIPErrorKey : [CHIPError errorForCHIPErrorCode:aError], + MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:*attribPath], + MTRErrorKey : [MTRError errorForCHIPErrorCode:aError], }]; } else { if ([resultFailure count] == 0) { - [resultFailure addObject:[CHIPError errorForCHIPErrorCode:aError]]; + [resultFailure addObject:[MTRError errorForCHIPErrorCode:aError]]; } } }; @@ -971,9 +946,9 @@ new NSObjectDataValueCallbackBridge( // Failure if (failureCb) { if ([resultFailure count] > 0) { - failureCb(context, [CHIPError errorToCHIPErrorCode:resultFailure[0]]); + failureCb(context, [MTRError errorToCHIPErrorCode:resultFailure[0]]); } else if ([resultArray count] > 0) { - failureCb(context, [CHIPError errorToCHIPErrorCode:resultArray[0][kCHIPErrorKey]]); + failureCb(context, [MTRError errorToCHIPErrorCode:resultArray[0][MTRErrorKey]]); } else { failureCb(context, CHIP_ERROR_WRITE_FAILED); } @@ -1065,12 +1040,12 @@ - (void)invokeCommandWithEndpointId:(NSNumber *)endpointId commandFields:(id)commandFields timedInvokeTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { new NSObjectDataValueCallbackBridge( clientQueue, completion, ^(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure) { auto successFn = chip::Callback::Callback::FromCancelable(success); - auto failureFn = chip::Callback::Callback::FromCancelable(failure); + auto failureFn = chip::Callback::Callback::FromCancelable(failure); auto context = successFn->mContext; auto successCb = successFn->mCall; auto failureCb = failureFn->mCall; @@ -1081,11 +1056,11 @@ new NSObjectDataValueCallbackBridge( const app::StatusIB & status, const NSObjectData & responseData) { if (responseData.GetDecodedObject()) { [resultArray addObject:@ { - kCHIPCommandPathKey : [[CHIPCommandPath alloc] initWithPath:commandPath], - kCHIPDataKey : responseData.GetDecodedObject() + MTRCommandPathKey : [[MTRCommandPath alloc] initWithPath:commandPath], + MTRDataKey : responseData.GetDecodedObject() }]; } else { - [resultArray addObject:@ { kCHIPCommandPathKey : [[CHIPCommandPath alloc] initWithPath:commandPath] }]; + [resultArray addObject:@ { MTRCommandPathKey : [[MTRCommandPath alloc] initWithPath:commandPath] }]; } if ([resultSuccess count] == 0) { [resultSuccess addObject:[NSNumber numberWithBool:YES]]; @@ -1094,7 +1069,7 @@ new NSObjectDataValueCallbackBridge( auto onFailureCb = [resultFailure](CHIP_ERROR aError) { if ([resultFailure count] == 0) { - [resultFailure addObject:[CHIPError errorForCHIPErrorCode:aError]]; + [resultFailure addObject:[MTRError errorForCHIPErrorCode:aError]]; } }; @@ -1113,7 +1088,7 @@ new NSObjectDataValueCallbackBridge( // Failure if (failureCb) { if ([resultFailure count] > 0) { - failureCb(context, [CHIPError errorToCHIPErrorCode:resultFailure[0]]); + failureCb(context, [MTRError errorToCHIPErrorCode:resultFailure[0]]); } else { failureCb(context, CHIP_ERROR_WRITE_FAILED); } @@ -1149,9 +1124,9 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId attributeId:(NSNumber * _Nullable)attributeId minInterval:(NSNumber *)minInterval maxInterval:(NSNumber *)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - reportHandler:(CHIPDeviceResponseHandler)reportHandler + reportHandler:(MTRDeviceResponseHandler)reportHandler subscriptionEstablished:(SubscriptionEstablishedHandler)subscriptionEstablishedHandler { dispatch_async(DeviceLayer::PlatformMgrImpl().GetWorkQueue(), ^{ @@ -1160,9 +1135,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId app::ConcreteAttributePath pathCopy = attribPath; dispatch_async(clientQueue, ^{ reportHandler( - @[ - @ { kCHIPAttributePathKey : [[CHIPAttributePath alloc] initWithPath:pathCopy], kCHIPDataKey : valueObject } - ], + @[ @ { MTRAttributePathKey : [[MTRAttributePath alloc] initWithPath:pathCopy], MTRDataKey : valueObject } ], nil); }); }; @@ -1178,7 +1151,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId } if (reportHandler) { dispatch_async(clientQueue, ^{ - reportHandler(nil, [CHIPError errorForCHIPErrorCode:error]); + reportHandler(nil, [MTRError errorForCHIPErrorCode:error]); }); } }; @@ -1193,7 +1166,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId } }; - CHIPReadClientContainer * container = [[CHIPReadClientContainer alloc] init]; + MTRReadClientContainer * container = [[MTRReadClientContainer alloc] init]; container.deviceId = self.cppDevice->GetDeviceId(); container.pathParams = Platform::New(); if (endpointId) { @@ -1234,7 +1207,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId if (err != CHIP_NO_ERROR) { if (reportHandler) { dispatch_async(clientQueue, ^{ - reportHandler(nil, [CHIPError errorForCHIPErrorCode:err]); + reportHandler(nil, [MTRError errorForCHIPErrorCode:err]); }); } Platform::Delete(readClient); @@ -1250,8 +1223,8 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId - (void)deregisterReportHandlersWithClientQueue:(dispatch_queue_t)clientQueue completion:(void (^)(void))completion { - // This method must only be used for CHIPDeviceOverXPC. However, for unit testing purpose, the method purges all read clients. - CHIP_LOG_DEBUG("Unexpected call to deregister report handlers"); + // This method must only be used for MTRDeviceOverXPC. However, for unit testing purpose, the method purges all read clients. + MTR_LOG_DEBUG("Unexpected call to deregister report handlers"); PurgeReadClientContainers(self.cppDevice->GetDeviceId(), clientQueue, completion); } @@ -1259,7 +1232,7 @@ - (void)deregisterReportHandlersWithClientQueue:(dispatch_queue_t)clientQueue co // This method is for unit testing only - (void)failSubscribers:(dispatch_queue_t)clientQueue completion:(void (^)(void))completion { - CHIP_LOG_DEBUG("Causing failure in subscribers on purpose"); + MTR_LOG_DEBUG("Causing failure in subscribers on purpose"); CauseReadClientFailure(self.cppDevice->GetDeviceId(), clientQueue, completion); } #endif @@ -1274,31 +1247,31 @@ + (id)CHIPEncodeAndDecodeNSObject:(id)object CHIP_ERROR error = originalData.Encode(writer, chip::TLV::Tag(1)); if (error != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: Data encoding failed: %s", error.AsString()); + MTR_LOG_ERROR("Error: Data encoding failed: %s", error.AsString()); return nil; } error = writer.Finalize(); if (error != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: TLV writer finalizing failed: %s", error.AsString()); + MTR_LOG_ERROR("Error: TLV writer finalizing failed: %s", error.AsString()); return nil; } chip::TLV::TLVReader reader; reader.Init(buffer, writer.GetLengthWritten()); error = reader.Next(); if (error != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: TLV reader failed to fetch next element: %s", error.AsString()); + MTR_LOG_ERROR("Error: TLV reader failed to fetch next element: %s", error.AsString()); return nil; } __auto_type tag = reader.GetTag(); if (tag != chip::TLV::Tag(1)) { - CHIP_LOG_ERROR("Error: TLV reader did not read the tag correctly: %llu", tag.mVal); + MTR_LOG_ERROR("Error: TLV reader did not read the tag correctly: %llu", tag.mVal); return nil; } NSObjectData decodedData; error = decodedData.Decode(reader); if (error != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error: Data decoding failed: %s", error.AsString()); + MTR_LOG_ERROR("Error: Data decoding failed: %s", error.AsString()); return nil; } return decodedData.GetDecodedObject(); @@ -1306,7 +1279,7 @@ + (id)CHIPEncodeAndDecodeNSObject:(id)object @end -@implementation CHIPAttributePath +@implementation MTRAttributePath - (instancetype)initWithPath:(const ConcreteDataAttributePath &)path { if (self = [super init]) { @@ -1323,11 +1296,11 @@ ConcreteDataAttributePath path(static_cast([endpoint unsignedS static_cast([clusterId unsignedLongValue]), static_cast([attributeId unsignedLongValue])); - return [[CHIPAttributePath alloc] initWithPath:path]; + return [[MTRAttributePath alloc] initWithPath:path]; } @end -@implementation CHIPEventPath +@implementation MTREventPath - (instancetype)initWithPath:(const ConcreteEventPath &)path { if (self = [super init]) { @@ -1343,11 +1316,11 @@ + (instancetype)eventPathWithEndpointId:(NSNumber *)endpoint clusterId:(NSNumber ConcreteEventPath path(static_cast([endpoint unsignedShortValue]), static_cast([clusterId unsignedLongValue]), static_cast([eventId unsignedLongValue])); - return [[CHIPEventPath alloc] initWithPath:path]; + return [[MTREventPath alloc] initWithPath:path]; } @end -@implementation CHIPCommandPath +@implementation MTRCommandPath - (instancetype)initWithPath:(const ConcreteCommandPath &)path { if (self = [super init]) { @@ -1363,15 +1336,15 @@ + (instancetype)commandPathWithEndpointId:(NSNumber *)endpoint clusterId:(NSNumb ConcreteCommandPath path(static_cast([endpoint unsignedShortValue]), static_cast([clusterId unsignedLongValue]), static_cast([commandId unsignedLongValue])); - return [[CHIPCommandPath alloc] initWithPath:path]; + return [[MTRCommandPath alloc] initWithPath:path]; } @end -@implementation CHIPAttributeReport +@implementation MTRAttributeReport - (instancetype)initWithPath:(const ConcreteDataAttributePath &)path value:(nullable id)value error:(nullable NSError *)error { if (self = [super init]) { - _path = [[CHIPAttributePath alloc] initWithPath:path]; + _path = [[MTRAttributePath alloc] initWithPath:path]; _value = value; _error = error; } @@ -1379,7 +1352,7 @@ - (instancetype)initWithPath:(const ConcreteDataAttributePath &)path value:(null } @end -@implementation CHIPEventReport +@implementation MTREventReport - (instancetype)initWithPath:(const ConcreteEventPath &)path eventNumber:(NSNumber *)eventNumber priority:(NSNumber *)priority @@ -1388,7 +1361,7 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path error:(nullable NSError *)error { if (self = [super init]) { - _path = [[CHIPEventPath alloc] initWithPath:path]; + _path = [[MTREventPath alloc] initWithPath:path]; _eventNumber = eventNumber; _priority = priority; _timestamp = timestamp; @@ -1432,12 +1405,12 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path id _Nullable value = nil; NSError * _Nullable error = nil; if (apStatus != nullptr) { - error = [CHIPError errorForIMStatus:*apStatus]; + error = [MTRError errorForIMStatus:*apStatus]; } else if (apData == nullptr) { - error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INVALID_ARGUMENT]; + error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INVALID_ARGUMENT]; } else { CHIP_ERROR err; - value = CHIPDecodeEventPayload(aEventHeader.mPath, *apData, &err); + value = MTRDecodeEventPayload(aEventHeader.mPath, *apData, &err); if (err == CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB) { // We don't know this event; just skip it. return; @@ -1445,7 +1418,7 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path if (err != CHIP_NO_ERROR) { value = nil; - error = [CHIPError errorForCHIPErrorCode:err]; + error = [MTRError errorForCHIPErrorCode:err]; } } @@ -1455,12 +1428,12 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path return; } - [mEventReports addObject:[[CHIPEventReport alloc] initWithPath:aEventHeader.mPath - eventNumber:@(aEventHeader.mEventNumber) - priority:@((uint8_t) aEventHeader.mPriorityLevel) - timestamp:@(aEventHeader.mTimestamp.mValue) - value:value - error:error]]; + [mEventReports addObject:[[MTREventReport alloc] initWithPath:aEventHeader.mPath + eventNumber:@(aEventHeader.mEventNumber) + priority:@((uint8_t) aEventHeader.mPriorityLevel) + timestamp:@(aEventHeader.mTimestamp.mValue) + value:value + error:error]]; } void SubscriptionCallback::OnAttributeData( @@ -1474,12 +1447,12 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path id _Nullable value = nil; NSError * _Nullable error = nil; if (aStatus.mStatus != Status::Success) { - error = [CHIPError errorForIMStatus:aStatus]; + error = [MTRError errorForIMStatus:aStatus]; } else if (apData == nullptr) { - error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INVALID_ARGUMENT]; + error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INVALID_ARGUMENT]; } else { CHIP_ERROR err; - value = CHIPDecodeAttributeValue(aPath, *apData, &err); + value = MTRDecodeAttributeValue(aPath, *apData, &err); if (err == CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH_IB) { // We don't know this attribute; just skip it. return; @@ -1487,7 +1460,7 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path if (err != CHIP_NO_ERROR) { value = nil; - error = [CHIPError errorForCHIPErrorCode:err]; + error = [MTRError errorForCHIPErrorCode:err]; } } @@ -1497,14 +1470,14 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path return; } - [mAttributeReports addObject:[[CHIPAttributeReport alloc] initWithPath:aPath value:value error:error]]; + [mAttributeReports addObject:[[MTRAttributeReport alloc] initWithPath:aPath value:value error:error]]; } void SubscriptionCallback::OnError(CHIP_ERROR aError) { // If OnError is called after OnReportBegin, we should report the collected data ReportData(); - ReportError([CHIPError errorForCHIPErrorCode:aError]); + ReportError([MTRError errorForCHIPErrorCode:aError]); } void SubscriptionCallback::OnDone(ReadClient *) @@ -1547,14 +1520,14 @@ - (instancetype)initWithPath:(const ConcreteEventPath &)path } } -void SubscriptionCallback::ReportError(CHIP_ERROR err) { ReportError([CHIPError errorForCHIPErrorCode:err]); } +void SubscriptionCallback::ReportError(CHIP_ERROR err) { ReportError([MTRError errorForCHIPErrorCode:err]); } -void SubscriptionCallback::ReportError(const StatusIB & status) { ReportError([CHIPError errorForIMStatus:status]); } +void SubscriptionCallback::ReportError(const StatusIB & status) { ReportError([MTRError errorForIMStatus:status]); } void SubscriptionCallback::ReportError(NSError * _Nullable err) { if (!err) { - // Very strange... Someone tried to create a CHIPError for a success status? + // Very strange... Someone tried to create a MTRError for a success status? return; } diff --git a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegate.h b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegate.h similarity index 79% rename from src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegate.h rename to src/darwin/Framework/CHIP/MTRDeviceAttestationDelegate.h index 279e0dc6de035d..42ffa6212e9697 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegate.h +++ b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegate.h @@ -19,14 +19,14 @@ NS_ASSUME_NONNULL_BEGIN -@class CHIPDeviceController; +@class MTRDeviceController; /** - * The protocol definition for the CHIPDeviceAttestationDelegate + * The protocol definition for the MTRDeviceAttestationDelegate * * All delegate methods will be called on the callers queue. */ -@protocol CHIPDeviceAttestationDelegate +@protocol MTRDeviceAttestationDelegate /** * Notify the delegate when device attestation fails * @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN * @param device Handle of device being commissioned * @param error NSError representing the error code for the failure */ -- (void)deviceAttestation:(CHIPDeviceController *)controller failedForDevice:(void *)device error:(NSError * _Nonnull)error; +- (void)deviceAttestation:(MTRDeviceController *)controller failedForDevice:(void *)device error:(NSError * _Nonnull)error; @end diff --git a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.h b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.h similarity index 77% rename from src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.h rename to src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.h index b7712ed25949d3..cc44ef3584c91f 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.h +++ b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.h @@ -18,17 +18,17 @@ #include #include -#include +#include #include -@class CHIPDeviceController; +@class MTRDeviceController; NS_ASSUME_NONNULL_BEGIN -class CHIPDeviceAttestationDelegateBridge : public chip::Credentials::DeviceAttestationDelegate { +class MTRDeviceAttestationDelegateBridge : public chip::Credentials::DeviceAttestationDelegate { public: - CHIPDeviceAttestationDelegateBridge(CHIPDeviceController * deviceController, - id deviceAttestationDelegate, dispatch_queue_t queue, + MTRDeviceAttestationDelegateBridge(MTRDeviceController * deviceController, + id deviceAttestationDelegate, dispatch_queue_t queue, chip::Optional expiryTimeoutSecs) : mResult(chip::Credentials::AttestationVerificationResult::kSuccess) , mDeviceController(deviceController) @@ -38,7 +38,7 @@ class CHIPDeviceAttestationDelegateBridge : public chip::Credentials::DeviceAtte { } - ~CHIPDeviceAttestationDelegateBridge() {} + ~MTRDeviceAttestationDelegateBridge() {} chip::Optional FailSafeExpiryTimeoutSecs() const override { return mExpiryTimeoutSecs; } @@ -49,8 +49,8 @@ class CHIPDeviceAttestationDelegateBridge : public chip::Credentials::DeviceAtte private: chip::Credentials::AttestationVerificationResult mResult; - CHIPDeviceController * __weak mDeviceController; - id mDeviceAttestationDelegate; + MTRDeviceController * __weak mDeviceController; + id mDeviceAttestationDelegate; dispatch_queue_t mQueue; chip::Optional mExpiryTimeoutSecs; }; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.mm b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.mm similarity index 64% rename from src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.mm rename to src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.mm index fec4c72f5c1e38..db8f277ca8a144 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceAttestationDelegateBridge.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceAttestationDelegateBridge.mm @@ -15,23 +15,23 @@ * limitations under the License. */ -#import "CHIPDeviceAttestationDelegateBridge.h" -#import "CHIPError_Internal.h" +#import "MTRDeviceAttestationDelegateBridge.h" +#import "MTRError_Internal.h" -void CHIPDeviceAttestationDelegateBridge::OnDeviceAttestationFailed(chip::Controller::DeviceCommissioner * deviceCommissioner, +void MTRDeviceAttestationDelegateBridge::OnDeviceAttestationFailed(chip::Controller::DeviceCommissioner * deviceCommissioner, chip::DeviceProxy * device, chip::Credentials::AttestationVerificationResult attestationResult) { dispatch_async(mQueue, ^{ - NSLog(@"CHIPDeviceAttestationDelegateBridge::OnDeviceAttestationFailed failed with result: %hu", attestationResult); + NSLog(@"MTRDeviceAttestationDelegateBridge::OnDeviceAttestationFailed failed with result: %hu", attestationResult); mResult = attestationResult; - id strongDelegate = mDeviceAttestationDelegate; + id strongDelegate = mDeviceAttestationDelegate; if ([strongDelegate respondsToSelector:@selector(deviceAttestation:failedForDevice:error:)]) { - CHIPDeviceController * strongController = mDeviceController; + MTRDeviceController * strongController = mDeviceController; if (strongController) { - NSError * error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INTEGRITY_CHECK_FAILED]; + NSError * error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INTEGRITY_CHECK_FAILED]; [strongDelegate deviceAttestation:mDeviceController failedForDevice:device error:error]; } } diff --git a/src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.h b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.h rename to src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.h index 354bfa73453b8f..95148931005c42 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.h +++ b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.h @@ -15,7 +15,8 @@ * limitations under the License. */ -#import +#import "MTRDeviceController.h" + #import #include @@ -23,15 +24,15 @@ NS_ASSUME_NONNULL_BEGIN -class CHIPDeviceConnectionBridge : public chip::ReferenceCounted +class MTRDeviceConnectionBridge : public chip::ReferenceCounted { public: - CHIPDeviceConnectionBridge(CHIPDeviceConnectionCallback completionHandler, dispatch_queue_t queue) : + MTRDeviceConnectionBridge(MTRDeviceConnectionCallback completionHandler, dispatch_queue_t queue) : mCompletionHandler(completionHandler), mQueue(queue), mOnConnected(OnConnected, this), mOnConnectFailed(OnConnectionFailure, this) {} - ~CHIPDeviceConnectionBridge() + ~MTRDeviceConnectionBridge() { mOnConnected.Cancel(); mOnConnectFailed.Cancel(); @@ -43,7 +44,7 @@ class CHIPDeviceConnectionBridge : public chip::ReferenceCounted mOnConnected; chip::Callback::Callback mOnConnectFailed; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.mm b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm similarity index 58% rename from src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.mm rename to src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm index acad191da1969a..6972ae7f788698 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceConnectionBridge.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm @@ -15,25 +15,25 @@ * limitations under the License. */ -#import "CHIPDeviceConnectionBridge.h" -#import "CHIPDevice_Internal.h" -#import "CHIPError_Internal.h" +#import "MTRDeviceConnectionBridge.h" +#import "MTRDevice_Internal.h" +#import "MTRError_Internal.h" -void CHIPDeviceConnectionBridge::OnConnected(void * context, chip::OperationalDeviceProxy * device) +void MTRDeviceConnectionBridge::OnConnected(void * context, chip::OperationalDeviceProxy * device) { - auto * object = static_cast(context); - CHIPDevice * chipDevice = [[CHIPDevice alloc] initWithDevice:device]; + auto * object = static_cast(context); + MTRDevice * chipDevice = [[MTRDevice alloc] initWithDevice:device]; dispatch_async(object->mQueue, ^{ object->mCompletionHandler(chipDevice, nil); object->Release(); }); } -void CHIPDeviceConnectionBridge::OnConnectionFailure(void * context, chip::PeerId peerId, CHIP_ERROR error) +void MTRDeviceConnectionBridge::OnConnectionFailure(void * context, chip::PeerId peerId, CHIP_ERROR error) { - auto * object = static_cast(context); + auto * object = static_cast(context); dispatch_async(object->mQueue, ^{ - object->mCompletionHandler(nil, [CHIPError errorForCHIPErrorCode:error]); + object->mCompletionHandler(nil, [MTRError errorForCHIPErrorCode:error]); object->Release(); }); } diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController+XPC.h b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h similarity index 89% rename from src/darwin/Framework/CHIP/CHIPDeviceController+XPC.h rename to src/darwin/Framework/CHIP/MTRDeviceController+XPC.h index a81eadfcd6099c..4913823964b314 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController+XPC.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h @@ -17,15 +17,15 @@ #import -#import -#import +#import +#import NS_ASSUME_NONNULL_BEGIN /** - * Extended methods for CHIPDeviceController object over XPC + * Extended methods for MTRDeviceController object over XPC */ -@interface CHIPDeviceController (XPC) +@interface MTRDeviceController (XPC) /** * Returns a shared device controller proxy for the controller object over XPC connection. @@ -33,8 +33,8 @@ NS_ASSUME_NONNULL_BEGIN * @param controllerId an implementation specific id in case multiple shared device controllers are available over XPC connection * @param connectBlock block to connect to an XPC listener serving the shared device controllers in an implementation specific way */ -+ (CHIPDeviceController *)sharedControllerWithId:(id _Nullable)controllerId - xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock; ++ (MTRDeviceController *)sharedControllerWithId:(id _Nullable)controllerId + xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock; /** * Returns an encoded values object to send over XPC for read, write and command interactions @@ -51,28 +51,28 @@ NS_ASSUME_NONNULL_BEGIN /** * Returns a serialized read parameter object to send over XPC */ -+ (NSDictionary * _Nullable)encodeXPCReadParams:(CHIPReadParams *)params; ++ (NSDictionary * _Nullable)encodeXPCReadParams:(MTRReadParams *)params; /** * Returns a deserialized read parameter object from an object received over XPC */ -+ (CHIPReadParams * _Nullable)decodeXPCReadParams:(NSDictionary * _Nullable)params; ++ (MTRReadParams * _Nullable)decodeXPCReadParams:(NSDictionary * _Nullable)params; /** * Returns a serialized subscribe parameter object to send over XPC */ -+ (NSDictionary * _Nullable)encodeXPCSubscribeParams:(CHIPSubscribeParams *)params; ++ (NSDictionary * _Nullable)encodeXPCSubscribeParams:(MTRSubscribeParams *)params; /** * Returns a deserialized subscribe parameter object from an object received over XPC */ -+ (CHIPSubscribeParams * _Nullable)decodeXPCSubscribeParams:(NSDictionary * _Nullable)params; ++ (MTRSubscribeParams * _Nullable)decodeXPCSubscribeParams:(NSDictionary * _Nullable)params; @end /** * Protocol that remote object must support over XPC */ -@protocol CHIPDeviceControllerServerProtocol +@protocol MTRDeviceControllerServerProtocol /** * Gets device controller ID corresponding to a specific fabric Id @@ -164,7 +164,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Protocol that the XPC client local object must support */ -@protocol CHIPDeviceControllerClientProtocol +@protocol MTRDeviceControllerClientProtocol /** * Handles a report received by a device controller diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController+XPC.m b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m similarity index 61% rename from src/darwin/Framework/CHIP/CHIPDeviceController+XPC.m rename to src/darwin/Framework/CHIP/MTRDeviceController+XPC.m index 57e9135eebb08f..717bbff4628703 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController+XPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m @@ -15,11 +15,11 @@ * limitations under the License. */ -#import "CHIPDeviceController+XPC.h" +#import "MTRDeviceController+XPC.h" -#import "CHIPCluster.h" -#import "CHIPDevice.h" -#import "CHIPDeviceControllerOverXPC.h" +#import "MTRCluster.h" +#import "MTRDevice.h" +#import "MTRDeviceControllerOverXPC.h" NS_ASSUME_NONNULL_BEGIN @@ -27,7 +27,7 @@ static NSString * const kKeepPreviousSubscriptionsKey = @"keepPreviousSubscriptions"; static NSString * const kAutoResubscribeKey = @"autoResubscribe"; -static NSArray * _Nullable encodeAttributePath(CHIPAttributePath * _Nullable path) +static NSArray * _Nullable encodeAttributePath(MTRAttributePath * _Nullable path) { if (!path) { return nil; @@ -35,7 +35,7 @@ return @[ path.endpoint, path.cluster, path.attribute ]; } -static NSArray * _Nullable encodeCommandPath(CHIPCommandPath * _Nullable path) +static NSArray * _Nullable encodeCommandPath(MTRCommandPath * _Nullable path) { if (!path) { return nil; @@ -43,33 +43,33 @@ return @[ path.endpoint, path.cluster, path.command ]; } -static CHIPAttributePath * _Nullable decodeAttributePath(NSArray * _Nullable pathArray) +static MTRAttributePath * _Nullable decodeAttributePath(NSArray * _Nullable pathArray) { if (pathArray == nil || [pathArray count] != 3) { return nil; } - return [CHIPAttributePath attributePathWithEndpointId:pathArray[0] clusterId:pathArray[1] attributeId:pathArray[2]]; + return [MTRAttributePath attributePathWithEndpointId:pathArray[0] clusterId:pathArray[1] attributeId:pathArray[2]]; } -static CHIPCommandPath * _Nullable decodeCommandPath(NSArray * _Nullable pathArray) +static MTRCommandPath * _Nullable decodeCommandPath(NSArray * _Nullable pathArray) { if (pathArray == nil || [pathArray count] != 3) { return nil; } - return [CHIPCommandPath commandPathWithEndpointId:pathArray[0] clusterId:pathArray[1] commandId:pathArray[2]]; + return [MTRCommandPath commandPathWithEndpointId:pathArray[0] clusterId:pathArray[1] commandId:pathArray[2]]; } -static void decodeReadParams(NSDictionary * inParams, CHIPReadParams * outParams) +static void decodeReadParams(NSDictionary * inParams, MTRReadParams * outParams) { outParams.fabricFiltered = inParams[kFabricFilteredKey]; } -@implementation CHIPDeviceController (XPC) +@implementation MTRDeviceController (XPC) -+ (CHIPDeviceController *)sharedControllerWithId:(id _Nullable)controllerId - xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock ++ (MTRDeviceController *)sharedControllerWithId:(id _Nullable)controllerId + xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock { - return [CHIPDeviceControllerOverXPC sharedControllerWithId:controllerId xpcConnectBlock:connectBlock]; + return [MTRDeviceControllerOverXPC sharedControllerWithId:controllerId xpcConnectBlock:connectBlock]; } + (NSArray *> * _Nullable)encodeXPCResponseValues: @@ -80,17 +80,17 @@ + (CHIPDeviceController *)sharedControllerWithId:(id _Nullable)contro } NSMutableArray * result = [NSMutableArray array]; for (NSDictionary * value in values) { - if (!value || (value[kCHIPAttributePathKey] == nil && value[kCHIPCommandPathKey] == nil)) { + if (!value || (value[MTRAttributePathKey] == nil && value[MTRCommandPathKey] == nil)) { [result addObject:value]; continue; } NSMutableDictionary * resultValue = [NSMutableDictionary dictionaryWithCapacity:[value count]]; [resultValue addEntriesFromDictionary:value]; - if (value[kCHIPAttributePathKey]) { - resultValue[kCHIPAttributePathKey] = encodeAttributePath(value[kCHIPAttributePathKey]); + if (value[MTRAttributePathKey]) { + resultValue[MTRAttributePathKey] = encodeAttributePath(value[MTRAttributePathKey]); } - if (value[kCHIPCommandPathKey]) { - resultValue[kCHIPCommandPathKey] = encodeCommandPath(value[kCHIPCommandPathKey]); + if (value[MTRCommandPathKey]) { + resultValue[MTRCommandPathKey] = encodeCommandPath(value[MTRCommandPathKey]); } [result addObject:resultValue]; } @@ -105,23 +105,23 @@ + (CHIPDeviceController *)sharedControllerWithId:(id _Nullable)contro } NSMutableArray * result = [NSMutableArray array]; for (NSDictionary * value in values) { - if (!value || (value[kCHIPAttributePathKey] == nil && value[kCHIPCommandPathKey] == nil)) { + if (!value || (value[MTRAttributePathKey] == nil && value[MTRCommandPathKey] == nil)) { [result addObject:value]; } NSMutableDictionary * resultValue = [NSMutableDictionary dictionaryWithCapacity:[value count]]; [resultValue addEntriesFromDictionary:value]; - if (value[kCHIPAttributePathKey]) { - resultValue[kCHIPAttributePathKey] = decodeAttributePath(value[kCHIPAttributePathKey]); + if (value[MTRAttributePathKey]) { + resultValue[MTRAttributePathKey] = decodeAttributePath(value[MTRAttributePathKey]); } - if (value[kCHIPCommandPathKey]) { - resultValue[kCHIPCommandPathKey] = decodeCommandPath(value[kCHIPCommandPathKey]); + if (value[MTRCommandPathKey]) { + resultValue[MTRCommandPathKey] = decodeCommandPath(value[MTRCommandPathKey]); } [result addObject:resultValue]; } return result; } -+ (NSDictionary * _Nullable)encodeXPCReadParams:(CHIPReadParams *)params ++ (NSDictionary * _Nullable)encodeXPCReadParams:(MTRReadParams *)params { if (!params) { return nil; @@ -133,23 +133,23 @@ + (CHIPDeviceController *)sharedControllerWithId:(id _Nullable)contro return result; } -+ (CHIPReadParams * _Nullable)decodeXPCReadParams:(NSDictionary * _Nullable)params ++ (MTRReadParams * _Nullable)decodeXPCReadParams:(NSDictionary * _Nullable)params { if (!params) { return nil; } - CHIPReadParams * result = [[CHIPReadParams alloc] init]; + MTRReadParams * result = [[MTRReadParams alloc] init]; decodeReadParams(params, result); return result; } -+ (NSDictionary * _Nullable)encodeXPCSubscribeParams:(CHIPSubscribeParams *)params ++ (NSDictionary * _Nullable)encodeXPCSubscribeParams:(MTRSubscribeParams *)params { if (!params) { return nil; } NSMutableDictionary * result = - [NSMutableDictionary dictionaryWithDictionary:[CHIPDeviceController encodeXPCReadParams:params]]; + [NSMutableDictionary dictionaryWithDictionary:[MTRDeviceController encodeXPCReadParams:params]]; if (params.keepPreviousSubscriptions) { result[kKeepPreviousSubscriptionsKey] = params.keepPreviousSubscriptions; } @@ -159,12 +159,12 @@ + (CHIPReadParams * _Nullable)decodeXPCReadParams:(NSDictionary return result; } -+ (CHIPSubscribeParams * _Nullable)decodeXPCSubscribeParams:(NSDictionary * _Nullable)params ++ (MTRSubscribeParams * _Nullable)decodeXPCSubscribeParams:(NSDictionary * _Nullable)params { if (!params) { return nil; } - CHIPSubscribeParams * result = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * result = [[MTRSubscribeParams alloc] init]; decodeReadParams(params, result); result.keepPreviousSubscriptions = params[kKeepPreviousSubscriptionsKey]; result.autoResubscribe = params[kAutoResubscribeKey]; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.h b/src/darwin/Framework/CHIP/MTRDeviceController.h similarity index 78% rename from src/darwin/Framework/CHIP/CHIPDeviceController.h rename to src/darwin/Framework/CHIP/MTRDeviceController.h index 1c4cd1b00dcaad..fb04cdadb004d4 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController.h @@ -15,23 +15,20 @@ * limitations under the License. */ -#ifndef CHIP_DEVICE_CONTROLLER_H -#define CHIP_DEVICE_CONTROLLER_H - #import -#import +#import -@class CHIPDevice; +@class MTRDevice; NS_ASSUME_NONNULL_BEGIN -typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSError * _Nullable error); +typedef void (^MTRDeviceConnectionCallback)(MTRDevice * _Nullable device, NSError * _Nullable error); -@class CHIPCommissioningParameters; -@protocol CHIPDevicePairingDelegate; +@class MTRCommissioningParameters; +@protocol MTRDevicePairingDelegate; -@interface CHIPDeviceController : NSObject +@interface MTRDeviceController : NSObject @property (readonly, nonatomic) BOOL isRunning; @@ -49,7 +46,7 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr * provided discriminator. * * The pairing process will proceed until a PASE session is established or an - * error occurs, then notify onPairingComplete on the CHIPDevicePairingDelegate + * error occurs, then notify onPairingComplete on the MTRDevicePairingDelegate * for this controller. That delegate is expected to call commissionDevice * after that point if it wants to commission the device. */ @@ -64,7 +61,7 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr * PASE connection. * * The pairing process will proceed until a PASE session is established or an - * error occurs, then notify onPairingComplete on the CHIPDevicePairingDelegate + * error occurs, then notify onPairingComplete on the MTRDevicePairingDelegate * for this controller. That delegate is expected to call commissionDevice * after that point if it wants to commission the device. */ @@ -80,13 +77,13 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr * establish a PASE connection. * * The pairing process will proceed until a PASE session is established or an - * error occurs, then notify onPairingComplete on the CHIPDevicePairingDelegate + * error occurs, then notify onPairingComplete on the MTRDevicePairingDelegate * for this controller. That delegate is expected to call commissionDevice * after that point if it wants to commission the device. */ - (BOOL)pairDevice:(uint64_t)deviceID onboardingPayload:(NSString *)onboardingPayload error:(NSError * __autoreleasing *)error; - (BOOL)commissionDevice:(uint64_t)deviceId - commissioningParams:(CHIPCommissioningParameters *)commissioningParams + commissioningParams:(MTRCommissioningParameters *)commissioningParams error:(NSError * __autoreleasing *)error; - (BOOL)continueCommissioningDevice:(void *)device @@ -95,10 +92,8 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *)error; -- (nullable CHIPDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error; -- (BOOL)getConnectedDevice:(uint64_t)deviceID - queue:(dispatch_queue_t)queue - completionHandler:(CHIPDeviceConnectionCallback)completionHandler; +- (nullable MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error; +- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler; - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error:(NSError * __autoreleasing *)error; - (nullable NSString *)openPairingWindowWithPIN:(uint64_t)deviceID @@ -114,7 +109,7 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr - (BOOL)deviceBeingCommissionedOverBLE:(uint64_t)deviceId; /** - * Controllers are created via the MatterControllerFactory object. + * Controllers are created via the MTRControllerFactory object. */ - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @@ -126,7 +121,7 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr * * @param[in] queue The queue on which the callbacks will be delivered */ -- (void)setPairingDelegate:(id)delegate queue:(dispatch_queue_t)queue; +- (void)setPairingDelegate:(id)delegate queue:(dispatch_queue_t)queue; /** * Shutdown the controller. Calls to shutdown after the first one are NO-OPs. @@ -136,5 +131,3 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr @end NS_ASSUME_NONNULL_END - -#endif /* CHIP_DEVICE_CONTROLLER_H */ diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.mm b/src/darwin/Framework/CHIP/MTRDeviceController.mm similarity index 85% rename from src/darwin/Framework/CHIP/CHIPDeviceController.mm rename to src/darwin/Framework/CHIP/MTRDeviceController.mm index 1521d7a4035f11..f573c87fcabc28 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController.mm @@ -14,28 +14,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#import "CHIPDeviceController.h" - -#import "CHIPCommissioningParameters.h" -#import "CHIPDeviceControllerStartupParams.h" -#import "CHIPDeviceControllerStartupParams_Internal.h" -#import "CHIPDevicePairingDelegateBridge.h" -#import "CHIPDevice_Internal.h" -#import "CHIPError_Internal.h" -#import "CHIPKeypair.h" -#import "CHIPLogging.h" -#import "CHIPOperationalCredentialsDelegate.h" -#import "CHIPP256KeypairBridge.h" -#import "CHIPPersistentStorageDelegateBridge.h" -#import "CHIPSetupPayload.h" -#import "MatterControllerFactory_Internal.h" +#import "MTRDeviceController.h" + +#import "MTRCommissioningParameters.h" +#import "MTRControllerFactory_Internal.h" +#import "MTRDeviceControllerStartupParams.h" +#import "MTRDeviceControllerStartupParams_Internal.h" +#import "MTRDevicePairingDelegateBridge.h" +#import "MTRDevice_Internal.h" +#import "MTRError_Internal.h" +#import "MTRKeypair.h" +#import "MTRLogging.h" +#import "MTROperationalCredentialsDelegate.h" +#import "MTRP256KeypairBridge.h" +#import "MTRPersistentStorageDelegateBridge.h" +#import "MTRSetupPayload.h" #import "NSDataSpanConversion.h" #import #import -#import +#import -#include "CHIPDeviceAttestationDelegateBridge.h" -#import "CHIPDeviceConnectionBridge.h" +#import "MTRDeviceAttestationDelegateBridge.h" +#import "MTRDeviceConnectionBridge.h" #include @@ -61,41 +61,41 @@ static NSString * const kErrorStopPairing = @"Failure while trying to stop the pairing process"; static NSString * const kErrorGetPairedDevice = @"Failure while trying to retrieve a paired device"; static NSString * const kErrorNotRunning = @"Controller is not running. Call startup first."; -static NSString * const kInfoStackShutdown = @"Shutting down the CHIP Stack"; +static NSString * const kInfoStackShutdown = @"Shutting down the Matter Stack"; static NSString * const kErrorSetupCodeGen = @"Generating Manual Pairing Code failed"; static NSString * const kErrorGenerateNOC = @"Generating operational certificate failed"; static NSString * const kErrorKeyAllocation = @"Generating new operational key failed"; static NSString * const kErrorCSRValidation = @"Extracting public key from CSR failed"; -@interface CHIPDeviceController () +@interface MTRDeviceController () -// queue used to serialize all work performed by the CHIPDeviceController +// queue used to serialize all work performed by the MTRDeviceController @property (atomic, readonly) dispatch_queue_t chipWorkQueue; @property (readonly) chip::Controller::DeviceCommissioner * cppCommissioner; -@property (readonly) CHIPDevicePairingDelegateBridge * pairingDelegateBridge; -@property (readonly) CHIPOperationalCredentialsDelegate * operationalCredentialsDelegate; -@property (readonly) CHIPP256KeypairBridge signingKeypairBridge; -@property (readonly) CHIPP256KeypairBridge operationalKeypairBridge; +@property (readonly) MTRDevicePairingDelegateBridge * pairingDelegateBridge; +@property (readonly) MTROperationalCredentialsDelegate * operationalCredentialsDelegate; +@property (readonly) MTRP256KeypairBridge signingKeypairBridge; +@property (readonly) MTRP256KeypairBridge operationalKeypairBridge; @property (readonly) chip::Optional operationalKeypairNativeBridge; -@property (readonly) CHIPDeviceAttestationDelegateBridge * deviceAttestationDelegateBridge; -@property (readonly) MatterControllerFactory * factory; +@property (readonly) MTRDeviceAttestationDelegateBridge * deviceAttestationDelegateBridge; +@property (readonly) MTRControllerFactory * factory; @end -@implementation CHIPDeviceController +@implementation MTRDeviceController -- (instancetype)initWithFactory:(MatterControllerFactory *)factory queue:(dispatch_queue_t)queue +- (instancetype)initWithFactory:(MTRControllerFactory *)factory queue:(dispatch_queue_t)queue { if (self = [super init]) { _chipWorkQueue = queue; _factory = factory; - _pairingDelegateBridge = new CHIPDevicePairingDelegateBridge(); + _pairingDelegateBridge = new MTRDevicePairingDelegateBridge(); if ([self checkForInitError:(_pairingDelegateBridge != nullptr) logMsg:kErrorPairingInit]) { return nil; } - _operationalCredentialsDelegate = new CHIPOperationalCredentialsDelegate(); + _operationalCredentialsDelegate = new MTROperationalCredentialsDelegate(); if ([self checkForInitError:(_operationalCredentialsDelegate != nullptr) logMsg:kErrorOperationalCredentialsInit]) { return nil; } @@ -154,11 +154,11 @@ - (void)cleanup } } -- (BOOL)startup:(CHIPDeviceControllerStartupParamsInternal *)startupParams +- (BOOL)startup:(MTRDeviceControllerStartupParamsInternal *)startupParams { __block BOOL commissionerInitialized = NO; if ([self isRunning]) { - CHIP_LOG_ERROR("Unexpected duplicate call to startup"); + MTR_LOG_ERROR("Unexpected duplicate call to startup"); return NO; } @@ -169,30 +169,30 @@ - (BOOL)startup:(CHIPDeviceControllerStartupParamsInternal *)startupParams if (startupParams.vendorId == nil || [startupParams.vendorId unsignedShortValue] == chip::VendorId::Common) { // Shouldn't be using the "standard" vendor ID for actual devices. - CHIP_LOG_ERROR("%@ is not a valid vendorId to initialize a device controller with", startupParams.vendorId); + MTR_LOG_ERROR("%@ is not a valid vendorId to initialize a device controller with", startupParams.vendorId); return; } if (startupParams.operationalCertificate == nil && startupParams.nodeId == nil) { - CHIP_LOG_ERROR("Can't start a controller if we don't know what node id it is"); + MTR_LOG_ERROR("Can't start a controller if we don't know what node id it is"); return; } if ([startupParams keypairsMatchCertificates] == NO) { - CHIP_LOG_ERROR("Provided keypairs do not match certificates"); + MTR_LOG_ERROR("Provided keypairs do not match certificates"); return; } if (startupParams.operationalCertificate != nil && startupParams.operationalKeypair == nil && (!startupParams.fabricIndex.HasValue() || !startupParams.keystore->HasOpKeypairForFabric(startupParams.fabricIndex.Value()))) { - CHIP_LOG_ERROR("Have no operational keypair for our operational certificate"); + MTR_LOG_ERROR("Have no operational keypair for our operational certificate"); return; } CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; - // create a CHIPP256KeypairBridge here and pass it to the operationalCredentialsDelegate + // create a MTRP256KeypairBridge here and pass it to the operationalCredentialsDelegate std::unique_ptr nativeBridge; if (startupParams.nocSigner) { errorCode = _signingKeypairBridge.Init(startupParams.nocSigner); @@ -310,13 +310,13 @@ - (BOOL)startup:(CHIPDeviceControllerStartupParamsInternal *)startupParams - (NSNumber *)controllerNodeId { if (![self isRunning]) { - CHIP_LOG_ERROR("A controller has no node id if it has not been started"); + MTR_LOG_ERROR("A controller has no node id if it has not been started"); return nil; } __block NSNumber * nodeID; dispatch_sync(_chipWorkQueue, ^{ if (![self isRunning]) { - CHIP_LOG_ERROR("A controller has no node id if it has not been started"); + MTR_LOG_ERROR("A controller has no node id if it has not been started"); nodeID = nil; } else { nodeID = @(_cppCommissioner->GetNodeId()); @@ -404,7 +404,7 @@ - (BOOL)pairDevice:(uint64_t)deviceID onboardingPayload:(NSString *)onboardingPa } - (BOOL)commissionDevice:(uint64_t)deviceId - commissioningParams:(CHIPCommissioningParameters *)commissioningParams + commissioningParams:(MTRCommissioningParameters *)commissioningParams error:(NSError * __autoreleasing *)error { __block CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; @@ -443,7 +443,7 @@ - (BOOL)commissionDevice:(uint64_t)deviceId timeoutSecs = chip::MakeOptional( static_cast([commissioningParams.failSafeExpiryTimeoutSecs unsignedIntValue])); } - _deviceAttestationDelegateBridge = new CHIPDeviceAttestationDelegateBridge( + _deviceAttestationDelegateBridge = new MTRDeviceAttestationDelegateBridge( self, commissioningParams.deviceAttestationDelegate, _chipWorkQueue, timeoutSecs); params.SetDeviceAttestationDelegate(_deviceAttestationDelegateBridge); } @@ -500,7 +500,7 @@ - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *) return success; } -- (CHIPDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error +- (MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error { CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; if (![self isRunning]) { @@ -512,16 +512,14 @@ - (CHIPDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * _ errorCode = self->_cppCommissioner->GetDeviceBeingCommissioned(deviceId, &deviceProxy); if (errorCode != CHIP_NO_ERROR) { if (error) { - *error = [CHIPError errorForCHIPErrorCode:errorCode]; + *error = [MTRError errorForCHIPErrorCode:errorCode]; } return nil; } - return [[CHIPDevice alloc] initWithDevice:deviceProxy]; + return [[MTRDevice alloc] initWithDevice:deviceProxy]; } -- (BOOL)getConnectedDevice:(uint64_t)deviceID - queue:(dispatch_queue_t)queue - completionHandler:(CHIPDeviceConnectionCallback)completionHandler +- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler { __block CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; if (![self isRunning]) { @@ -535,7 +533,7 @@ - (BOOL)getConnectedDevice:(uint64_t)deviceID dispatch_async(_chipWorkQueue, ^{ if ([self isRunning]) { - CHIPDeviceConnectionBridge * connectionBridge = new CHIPDeviceConnectionBridge(completionHandler, queue); + MTRDeviceConnectionBridge * connectionBridge = new MTRDeviceConnectionBridge(completionHandler, queue); errorCode = connectionBridge->connect(self->_cppCommissioner, deviceID); } @@ -555,9 +553,9 @@ - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error CHIP_ERROR err = CHIP_NO_ERROR; if (duration > UINT16_MAX) { - CHIP_LOG_ERROR("Error: Duration %tu is too large. Max value %d", duration, UINT16_MAX); + MTR_LOG_ERROR("Error: Duration %tu is too large. Max value %d", duration, UINT16_MAX); if (error) { - *error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; } return NO; } @@ -566,9 +564,9 @@ - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error self.cppCommissioner, deviceID, chip::System::Clock::Seconds16(static_cast(duration))); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): Open Pairing Window failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): Open Pairing Window failed", chip::ErrorStr(err)); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } return NO; } @@ -585,17 +583,17 @@ - (NSString *)openPairingWindowWithPIN:(uint64_t)deviceID CHIP_ERROR err = CHIP_NO_ERROR; if (duration > UINT16_MAX) { - CHIP_LOG_ERROR("Error: Duration %tu is too large. Max value %d", duration, UINT16_MAX); + MTR_LOG_ERROR("Error: Duration %tu is too large. Max value %d", duration, UINT16_MAX); if (error) { - *error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; } return nil; } if (discriminator > 0xfff) { - CHIP_LOG_ERROR("Error: Discriminator %tu is too large. Max value %d", discriminator, 0xfff); + MTR_LOG_ERROR("Error: Discriminator %tu is too large. Max value %d", discriminator, 0xfff); if (error) { - *error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INVALID_INTEGER_VALUE]; } return nil; } @@ -609,9 +607,9 @@ - (NSString *)openPairingWindowWithPIN:(uint64_t)deviceID setupPayload); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Error(%s): Open Pairing Window failed", chip::ErrorStr(err)); + MTR_LOG_ERROR("Error(%s): Open Pairing Window failed", chip::ErrorStr(err)); if (error) { - *error = [CHIPError errorForCHIPErrorCode:err]; + *error = [MTRError errorForCHIPErrorCode:err]; } return nil; } @@ -620,16 +618,16 @@ - (NSString *)openPairingWindowWithPIN:(uint64_t)deviceID std::string outCode; if (generator.payloadDecimalStringRepresentation(outCode) == CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Setup code is %s", outCode.c_str()); + MTR_LOG_ERROR("Setup code is %s", outCode.c_str()); } else { - CHIP_LOG_ERROR("Failed to get decimal setup code"); + MTR_LOG_ERROR("Failed to get decimal setup code"); return nil; } return [NSString stringWithCString:outCode.c_str() encoding:[NSString defaultCStringEncoding]]; } -- (void)setPairingDelegate:(id)delegate queue:(dispatch_queue_t)queue +- (void)setPairingDelegate:(id)delegate queue:(dispatch_queue_t)queue { dispatch_async(_chipWorkQueue, ^{ self->_pairingDelegateBridge->setDelegate(delegate, queue); @@ -642,7 +640,7 @@ - (BOOL)checkForInitError:(BOOL)condition logMsg:(NSString *)logMsg return NO; } - CHIP_LOG_ERROR("Error: %@", logMsg); + MTR_LOG_ERROR("Error: %@", logMsg); [self cleanup]; @@ -663,7 +661,7 @@ - (BOOL)checkForStartError:(BOOL)condition logMsg:(NSString *)logMsg return NO; } - CHIP_LOG_ERROR("Error: %@", logMsg); + MTR_LOG_ERROR("Error: %@", logMsg); return YES; } @@ -674,9 +672,9 @@ - (BOOL)checkForError:(CHIP_ERROR)errorCode logMsg:(NSString *)logMsg error:(NSE return NO; } - CHIP_LOG_ERROR("Error(%s): %s", chip::ErrorStr(errorCode), [logMsg UTF8String]); + MTR_LOG_ERROR("Error(%s): %s", chip::ErrorStr(errorCode), [logMsg UTF8String]); if (error) { - *error = [CHIPError errorForCHIPErrorCode:errorCode]; + *error = [MTRError errorForCHIPErrorCode:errorCode]; } return YES; @@ -701,7 +699,7 @@ - (BOOL)deviceBeingCommissionedOverBLE:(uint64_t)deviceId @end -@implementation CHIPDeviceController (InternalMethods) +@implementation MTRDeviceController (InternalMethods) - (chip::FabricIndex)fabricIndex { diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.h b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.h similarity index 73% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.h rename to src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.h index 33e29316085dd5..cf72ff65e92b59 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.h @@ -15,13 +15,13 @@ * limitations under the License. */ -#import +#import NS_ASSUME_NONNULL_BEGIN -@class CHIPDeviceControllerXPCConnection; +@class MTRDeviceControllerXPCConnection; -@interface CHIPDeviceControllerOverXPC : CHIPDeviceController +@interface MTRDeviceControllerOverXPC : MTRDeviceController - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @@ -30,8 +30,8 @@ NS_ASSUME_NONNULL_BEGIN * Returns a shared remote device controller associated with an implementation specific id and implementation specific way to * connect to an XPC listener. */ -+ (CHIPDeviceControllerOverXPC *)sharedControllerWithId:(id _Nullable)controllerId - xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock; ++ (MTRDeviceControllerOverXPC *)sharedControllerWithId:(id _Nullable)controllerId + xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock; @end diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.m b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m similarity index 62% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.m rename to src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m index 4e1f9418d7a6f8..74cca0b5c5f17c 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m @@ -15,13 +15,13 @@ * limitations under the License. */ -#import "CHIPDeviceControllerOverXPC_Internal.h" +#import "MTRDeviceControllerOverXPC_Internal.h" -#import "CHIPDeviceController+XPC.h" -#import "CHIPDeviceControllerXPCConnection.h" -#import "CHIPDeviceOverXPC.h" -#import "CHIPError.h" -#import "CHIPLogging.h" +#import "MTRDeviceController+XPC.h" +#import "MTRDeviceControllerXPCConnection.h" +#import "MTRDeviceOverXPC.h" +#import "MTRError.h" +#import "MTRLogging.h" #import @@ -35,15 +35,15 @@ static void SetupXPCQueue(void) }); } -@implementation CHIPDeviceControllerOverXPC +@implementation MTRDeviceControllerOverXPC -+ (CHIPDeviceControllerOverXPC *)sharedControllerWithId:(id _Nullable)controllerId - xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock ++ (MTRDeviceControllerOverXPC *)sharedControllerWithId:(id _Nullable)controllerId + xpcConnectBlock:(NSXPCConnection * (^)(void) )connectBlock { SetupXPCQueue(); - return [[CHIPDeviceControllerOverXPC alloc] initWithControllerId:controllerId - workQueue:globalWorkQueue - connectBlock:connectBlock]; + return [[MTRDeviceControllerOverXPC alloc] initWithControllerId:controllerId + workQueue:globalWorkQueue + connectBlock:connectBlock]; } - (BOOL)pairDevice:(uint64_t)deviceID @@ -51,7 +51,7 @@ - (BOOL)pairDevice:(uint64_t)deviceID setupPINCode:(uint32_t)setupPINCode error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support pairDevice over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support pairDevice over XPC"); return NO; } @@ -62,61 +62,59 @@ - (BOOL)pairDevice:(uint64_t)deviceID setupPINCode:(uint32_t)setupPINCode error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support pairDevice over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support pairDevice over XPC"); return NO; } - (BOOL)pairDevice:(uint64_t)deviceID onboardingPayload:(NSString *)onboardingPayload error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support pairDevice over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support pairDevice over XPC"); return NO; } - (BOOL)commissionDevice:(uint64_t)deviceId - commissioningParams:(CHIPCommissioningParameters *)commissioningParams + commissioningParams:(MTRCommissioningParameters *)commissioningParams error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support pairDevice over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support pairDevice over XPC"); return NO; } - (void)setListenPort:(uint16_t)port { - CHIP_LOG_ERROR("CHIPDevice doesn't support setListenPort over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support setListenPort over XPC"); } - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support stopDevicePairing over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support stopDevicePairing over XPC"); return NO; } -- (nullable CHIPDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error +- (nullable MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support getDeviceBeingCommissioned over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support getDeviceBeingCommissioned over XPC"); return nil; } - (BOOL)deviceBeingCommissionedOverBLE:(uint64_t)deviceId { - CHIP_LOG_ERROR("CHIPDevice doesn't support deviceBeingCommissionedOverBLE over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support deviceBeingCommissionedOverBLE over XPC"); return NO; } -- (BOOL)getConnectedDevice:(uint64_t)deviceID - queue:(dispatch_queue_t)queue - completionHandler:(CHIPDeviceConnectionCallback)completionHandler +- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler { dispatch_async(_workQueue, ^{ dispatch_group_t group = dispatch_group_create(); if (!self.controllerId) { dispatch_group_enter(group); [self.xpcConnection getProxyHandleWithCompletion:^( - dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { [handle.proxy getAnyDeviceControllerWithCompletion:^(id _Nullable controller, NSError * _Nullable error) { if (error) { - CHIP_LOG_ERROR("Failed to fetch any shared remote controller"); + MTR_LOG_ERROR("Failed to fetch any shared remote controller"); } else { self.controllerId = controller; } @@ -125,19 +123,19 @@ - (BOOL)getConnectedDevice:(uint64_t)deviceID (void) handleRetainer; }]; } else { - CHIP_LOG_ERROR("XPC disconnected while retrieving any shared remote controller"); + MTR_LOG_ERROR("XPC disconnected while retrieving any shared remote controller"); dispatch_group_leave(group); } }]; } dispatch_group_notify(group, queue, ^{ if (self.controllerId) { - CHIPDeviceOverXPC * device = [[CHIPDeviceOverXPC alloc] initWithController:self.controllerId - deviceId:deviceID - xpcConnection:self.xpcConnection]; + MTRDeviceOverXPC * device = [[MTRDeviceOverXPC alloc] initWithController:self.controllerId + deviceId:deviceID + xpcConnection:self.xpcConnection]; completionHandler(device, nil); } else { - completionHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completionHandler(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } }); }); @@ -146,7 +144,7 @@ - (BOOL)getConnectedDevice:(uint64_t)deviceID - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support openPairingWindow over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support openPairingWindow over XPC"); return NO; } @@ -156,13 +154,13 @@ - (nullable NSString *)openPairingWindowWithPIN:(uint64_t)deviceID setupPIN:(NSUInteger)setupPIN error:(NSError * __autoreleasing *)error { - CHIP_LOG_ERROR("CHIPDevice doesn't support openPairingWindow over XPC"); + MTR_LOG_ERROR("MTRDevice doesn't support openPairingWindow over XPC"); return nil; } - (instancetype)initWithControllerId:(id)controllerId workQueue:(dispatch_queue_t)queue - xpcConnection:(CHIPDeviceControllerXPCConnection *)connection + xpcConnection:(MTRDeviceControllerXPCConnection *)connection { _controllerId = controllerId; _workQueue = queue; @@ -177,7 +175,7 @@ - (instancetype)initWithControllerId:(id)controllerId { return [self initWithControllerId:controllerId workQueue:queue - xpcConnection:[CHIPDeviceControllerXPCConnection connectionWithWorkQueue:queue connectBlock:connectBlock]]; + xpcConnection:[MTRDeviceControllerXPCConnection connectionWithWorkQueue:queue connectBlock:connectBlock]]; } @end diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC_Internal.h b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC_Internal.h similarity index 79% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC_Internal.h rename to src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC_Internal.h index 980cfd0c21fb90..15a7482182cd58 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerOverXPC_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC_Internal.h @@ -15,16 +15,16 @@ * limitations under the License. */ -#import "CHIPDeviceControllerOverXPC.h" -#import "CHIPDeviceControllerXPCConnection.h" +#import "MTRDeviceControllerOverXPC.h" +#import "MTRDeviceControllerXPCConnection.h" NS_ASSUME_NONNULL_BEGIN -@interface CHIPDeviceControllerOverXPC () +@interface MTRDeviceControllerOverXPC () @property (nonatomic, readwrite, strong) id _Nullable controllerId; @property (nonatomic, readonly, strong) dispatch_queue_t workQueue; -@property (nonatomic, readonly, strong) CHIPDeviceControllerXPCConnection * xpcConnection; +@property (nonatomic, readonly, strong) MTRDeviceControllerXPCConnection * xpcConnection; @end diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.h b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h similarity index 91% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.h rename to src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h index 03b7b43d080b7b..819ddd39974f16 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.h @@ -14,26 +14,23 @@ * limitations under the License. */ -#ifndef CHIP_DEVICE_CONTROLLER_STARTUP_PARAMS_H -#define CHIP_DEVICE_CONTROLLER_STARTUP_PARAMS_H - #import NS_ASSUME_NONNULL_BEGIN -@protocol CHIPKeypair; +@protocol MTRKeypair; -@interface CHIPDeviceControllerStartupParams : NSObject +@interface MTRDeviceControllerStartupParams : NSObject /** * Keypair used to sign operational certificates. This is the root CA keypair * if not using an intermediate CA, the intermediate CA's keypair otherwise. * * Allowed to be nil if this controller will not be issuing operational - * certificates. In that case, the CHIPDeviceControllerStartupParams object + * certificates. In that case, the MTRDeviceControllerStartupParams object * must be initialized using initWithOperationalKeypair (to provide the * operational credentials for the controller itself). */ -@property (strong, nonatomic, readonly, nullable) id nocSigner; +@property (strong, nonatomic, readonly, nullable) id nocSigner; /** * Fabric id for the controller. Must be set to a nonzero value. This is * scoped by the root public key, which is determined as follows: @@ -187,7 +184,7 @@ NS_ASSUME_NONNULL_BEGIN * will for that certificated will be determined as described in the * documentation for nodeId. */ -@property (strong, nonatomic, nullable) id operationalKeypair; +@property (strong, nonatomic, nullable) id operationalKeypair; - (instancetype)init NS_UNAVAILABLE; @@ -199,7 +196,7 @@ NS_ASSUME_NONNULL_BEGIN * * ipk must be 16 bytes in length */ -- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk; +- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk; /** * Prepare to initialize a controller with a complete operational certificate @@ -214,7 +211,7 @@ NS_ASSUME_NONNULL_BEGIN * * ipk must be 16 bytes in length. */ -- (instancetype)initWithOperationalKeypair:(id)operationalKeypair +- (instancetype)initWithOperationalKeypair:(id)operationalKeypair operationalCertificate:(NSData *)operationalCertificate intermediateCertificate:(nullable NSData *)intermediateCertificate rootCertificate:(NSData *)rootCertificate @@ -223,5 +220,3 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END - -#endif // CHIP_DEVICE_CONTROLLER_STARTUP_PARAMS_H diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.mm b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm similarity index 79% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.mm rename to src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm index 8f3fbdbec3549a..181295364063ef 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm @@ -14,11 +14,11 @@ * limitations under the License. */ -#import "CHIPDeviceControllerStartupParams.h" -#import "CHIPDeviceControllerStartupParams_Internal.h" -#import "CHIPLogging.h" -#import "CHIPP256KeypairBridge.h" +#import "MTRDeviceControllerStartupParams.h" #import "MTRCertificates.h" +#import "MTRDeviceControllerStartupParams_Internal.h" +#import "MTRLogging.h" +#import "MTRP256KeypairBridge.h" #import "NSDataSpanConversion.h" #include @@ -28,16 +28,16 @@ using namespace chip; -@implementation CHIPDeviceControllerStartupParams +@implementation MTRDeviceControllerStartupParams -- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk +- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk { if (!(self = [super init])) { return nil; } if (!IsValidFabricId(fabricId)) { - CHIP_LOG_ERROR("%llu is not a valid fabric id to initialize a device controller with", fabricId); + MTR_LOG_ERROR("%llu is not a valid fabric id to initialize a device controller with", fabricId); return nil; } @@ -48,7 +48,7 @@ - (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint return self; } -- (instancetype)initWithOperationalKeypair:(id)operationalKeypair +- (instancetype)initWithOperationalKeypair:(id)operationalKeypair operationalCertificate:(NSData *)operationalCertificate intermediateCertificate:(nullable NSData *)intermediateCertificate rootCertificate:(NSData *)rootCertificate @@ -64,7 +64,7 @@ - (instancetype)initWithOperationalKeypair:(id)operationalKeypair MutableByteSpan tlvOpCert(tlvOpCertBuf); CHIP_ERROR err = Credentials::ConvertX509CertToChipCert(AsByteSpan(operationalCertificate), tlvOpCert); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Unable to convert operational certificate to TLV: %s", ErrorStr(err)); + MTR_LOG_ERROR("Unable to convert operational certificate to TLV: %s", ErrorStr(err)); return nil; } @@ -72,7 +72,7 @@ - (instancetype)initWithOperationalKeypair:(id)operationalKeypair NodeId unused = kUndefinedNodeId; err = Credentials::ExtractNodeIdFabricIdFromOpCert(tlvOpCert, &unused, &fabricId); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Unable to extract fabric id from operational certificate: %s", ErrorStr(err)); + MTR_LOG_ERROR("Unable to extract fabric id from operational certificate: %s", ErrorStr(err)); return nil; } _fabricId = fabricId; @@ -87,7 +87,7 @@ - (instancetype)initWithOperationalKeypair:(id)operationalKeypair return self; } -- (instancetype)initWithParams:(CHIPDeviceControllerStartupParams *)params +- (instancetype)initWithParams:(MTRDeviceControllerStartupParams *)params { if (!(self = [super init])) { return nil; @@ -116,39 +116,39 @@ - (instancetype)initWithParams:(CHIPDeviceControllerStartupParams *)params MutableByteSpan derCert(buf); CHIP_ERROR err = Credentials::ConvertChipCertToX509Cert(cert, derCert); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Failed do convert Matter certificate to X.509 DER: %s", ErrorStr(err)); + MTR_LOG_ERROR("Failed do convert Matter certificate to X.509 DER: %s", ErrorStr(err)); return nil; } return AsData(derCert); } -@implementation CHIPDeviceControllerStartupParamsInternal +@implementation MTRDeviceControllerStartupParamsInternal -- (instancetype)initWithParams:(CHIPDeviceControllerStartupParams *)params +- (instancetype)initWithParams:(MTRDeviceControllerStartupParams *)params { if (!(self = [super initWithParams:params])) { return nil; } if (self.nocSigner == nil && self.rootCertificate == nil) { - CHIP_LOG_ERROR("nocSigner and rootCertificate are both nil; no public key available to identify the fabric"); + MTR_LOG_ERROR("nocSigner and rootCertificate are both nil; no public key available to identify the fabric"); return nil; } if (self.operationalCertificate != nil && self.nodeId != nil) { - CHIP_LOG_ERROR("nodeId must be nil if operationalCertificate is not nil"); + MTR_LOG_ERROR("nodeId must be nil if operationalCertificate is not nil"); return nil; } if (self.operationalCertificate != nil) { if (self.operationalKeypair == nil) { - CHIP_LOG_ERROR("Must have an operational keypair if an operational certificate is provided"); + MTR_LOG_ERROR("Must have an operational keypair if an operational certificate is provided"); return nil; } if (![MTRCertificates keypair:self.operationalKeypair matchesCertificate:self.operationalCertificate]) { - CHIP_LOG_ERROR("operationalKeypair public key does not match operationalCertificate"); + MTR_LOG_ERROR("operationalKeypair public key does not match operationalCertificate"); return nil; } } @@ -158,14 +158,14 @@ - (instancetype)initWithParams:(CHIPDeviceControllerStartupParams *)params - (instancetype)initForNewFabric:(chip::FabricTable *)fabricTable keystore:(chip::Crypto::OperationalKeystore *)keystore - params:(CHIPDeviceControllerStartupParams *)params + params:(MTRDeviceControllerStartupParams *)params { if (!(self = [self initWithParams:params])) { return nil; } if (self.nocSigner == nil && self.operationalCertificate == nil) { - CHIP_LOG_ERROR("No way to get an operational certificate: nocSigner and operationalCertificate are both nil"); + MTR_LOG_ERROR("No way to get an operational certificate: nocSigner and operationalCertificate are both nil"); return nil; } @@ -184,7 +184,7 @@ - (instancetype)initForNewFabric:(chip::FabricTable *)fabricTable fabricId:@(self.fabricId) error:&error]; if (error != nil || self.rootCertificate == nil) { - CHIP_LOG_ERROR("Failed to generate root certificate: %@", error); + MTR_LOG_ERROR("Failed to generate root certificate: %@", error); return nil; } } @@ -198,7 +198,7 @@ - (instancetype)initForNewFabric:(chip::FabricTable *)fabricTable - (instancetype)initForExistingFabric:(FabricTable *)fabricTable fabricIndex:(FabricIndex)fabricIndex keystore:(chip::Crypto::OperationalKeystore *)keystore - params:(CHIPDeviceControllerStartupParams *)params + params:(MTRDeviceControllerStartupParams *)params { if (!(self = [self initWithParams:params])) { return nil; @@ -219,16 +219,16 @@ - (instancetype)initForExistingFabric:(FabricTable *)fabricTable MutableByteSpan noc(nocBuf); CHIP_ERROR err = fabricTable->FetchNOCCert(fabric->GetFabricIndex(), noc); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Failed to get existing NOC: %s", ErrorStr(err)); + MTR_LOG_ERROR("Failed to get existing NOC: %s", ErrorStr(err)); return nil; } self.operationalCertificate = MatterCertToX509Data(noc); if (self.operationalCertificate == nil) { - CHIP_LOG_ERROR("Failed to convert TLV NOC to DER X.509: %s", ErrorStr(err)); + MTR_LOG_ERROR("Failed to convert TLV NOC to DER X.509: %s", ErrorStr(err)); return nil; } if (!keystore->HasOpKeypairForFabric(fabric->GetFabricIndex())) { - CHIP_LOG_ERROR("No existing operational key for fabric"); + MTR_LOG_ERROR("No existing operational key for fabric"); return nil; } } @@ -242,7 +242,7 @@ - (instancetype)initForExistingFabric:(FabricTable *)fabricTable MutableByteSpan icaCert(icaBuf); CHIP_ERROR err = fabricTable->FetchICACert(fabric->GetFabricIndex(), icaCert); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Failed to get existing intermediate certificate: %s", ErrorStr(err)); + MTR_LOG_ERROR("Failed to get existing intermediate certificate: %s", ErrorStr(err)); return nil; } // There might not be an ICA cert for this fabric. @@ -284,7 +284,7 @@ - (instancetype)initForExistingFabric:(FabricTable *)fabricTable MutableByteSpan rootCert(rootBuf); CHIP_ERROR err = fabricTable->FetchRootCert(fabric->GetFabricIndex(), rootCert); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Failed to get existing root certificate: %s", ErrorStr(err)); + MTR_LOG_ERROR("Failed to get existing root certificate: %s", ErrorStr(err)); return nil; } oldRootCert = MatterCertToX509Data(rootCert); @@ -296,7 +296,7 @@ - (instancetype)initForExistingFabric:(FabricTable *)fabricTable if (self.rootCertificate == nil) { self.rootCertificate = oldRootCert; } else if ([MTRCertificates isCertificate:oldRootCert equalTo:self.rootCertificate] == NO) { - CHIP_LOG_ERROR("Root certificate identity does not match existing root certificate"); + MTR_LOG_ERROR("Root certificate identity does not match existing root certificate"); return nil; } @@ -314,20 +314,20 @@ - (BOOL)keypairsMatchCertificates if (signingCert == nil) { signingCert = self.rootCertificate; if (signingCert == nil) { - CHIP_LOG_ERROR("No certificate to match nocSigner"); + MTR_LOG_ERROR("No certificate to match nocSigner"); return NO; } } if ([MTRCertificates keypair:self.nocSigner matchesCertificate:signingCert] == NO) { - CHIP_LOG_ERROR("Provided nocSigner does not match certificates"); + MTR_LOG_ERROR("Provided nocSigner does not match certificates"); return NO; } } if (self.operationalCertificate != nil && self.operationalKeypair != nil) { if ([MTRCertificates keypair:self.operationalKeypair matchesCertificate:self.operationalCertificate] == NO) { - CHIP_LOG_ERROR("Provided operationalKeypair does not match operationalCertificate"); + MTR_LOG_ERROR("Provided operationalKeypair does not match operationalCertificate"); return NO; } } diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams_Internal.h b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h similarity index 81% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams_Internal.h rename to src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h index 5326d1cc8faac3..22a5d895cde2a5 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerStartupParams_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams_Internal.h @@ -16,7 +16,7 @@ #pragma once -#import "CHIPDeviceControllerStartupParams.h" +#import "MTRDeviceControllerStartupParams.h" #import #include @@ -33,16 +33,16 @@ namespace Crypto { NS_ASSUME_NONNULL_BEGIN -@interface CHIPDeviceControllerStartupParams () +@interface MTRDeviceControllerStartupParams () // We want to be able to write to operationalCertificate in -// CHIPDeviceControllerStartupParamsInternal. +// MTRDeviceControllerStartupParamsInternal. @property (strong, nonatomic, nullable) NSData * operationalCertificate; // Init method that just copies the values of all our ivars. -- (instancetype)initWithParams:(CHIPDeviceControllerStartupParams *)params; +- (instancetype)initWithParams:(MTRDeviceControllerStartupParams *)params; @end -@interface CHIPDeviceControllerStartupParamsInternal : CHIPDeviceControllerStartupParams +@interface MTRDeviceControllerStartupParamsInternal : MTRDeviceControllerStartupParams // Fabric table we can use to do things like allocate operational keys. @property (nonatomic, readonly) chip::FabricTable * fabricTable; @@ -73,7 +73,7 @@ NS_ASSUME_NONNULL_BEGIN */ - (instancetype)initForNewFabric:(chip::FabricTable *)fabricTable keystore:(chip::Crypto::OperationalKeystore *)keystore - params:(CHIPDeviceControllerStartupParams *)params; + params:(MTRDeviceControllerStartupParams *)params; /** * Initialize for controller bringup on an existing fabric. @@ -81,10 +81,10 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initForExistingFabric:(chip::FabricTable *)fabricTable fabricIndex:(chip::FabricIndex)fabricIndex keystore:(chip::Crypto::OperationalKeystore *)keystore - params:(CHIPDeviceControllerStartupParams *)params; + params:(MTRDeviceControllerStartupParams *)params; -- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk NS_UNAVAILABLE; -- (instancetype)initWithOperationalKeypair:(id)operationalKeypair +- (instancetype)initWithSigningKeypair:(id)nocSigner fabricId:(uint64_t)fabricId ipk:(NSData *)ipk NS_UNAVAILABLE; +- (instancetype)initWithOperationalKeypair:(id)operationalKeypair operationalCertificate:(NSData *)operationalCertificate intermediateCertificate:(nullable NSData *)intermediateCertificate rootCertificate:(NSData *)rootCertificate diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.h b/src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.h similarity index 82% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.h rename to src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.h index f1596a59e26070..9f06af1e1c8177 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import "CHIPDeviceController+XPC.h" +#import "MTRDeviceController+XPC.h" NS_ASSUME_NONNULL_BEGIN @@ -25,9 +25,9 @@ NS_ASSUME_NONNULL_BEGIN * Releasing the handle may cause invalidating the XPC connection. Hence, in order to retain the connection, the handle must not be * released. */ -@interface CHIPDeviceControllerXPCProxyHandle : NSObject +@interface MTRDeviceControllerXPCProxyHandle : NSObject -@property (nonatomic, readonly, getter=proxy) id proxy; +@property (nonatomic, readonly, getter=proxy) id proxy; @end @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN * * This class is in charge of making a new XPC connection and disconnecting as needed by the clients and by the report handlers. */ -@interface CHIPDeviceControllerXPCConnection : NSObject +@interface MTRDeviceControllerXPCConnection : NSObject /** * This method is just for test purpsoe. @@ -44,7 +44,7 @@ NS_ASSUME_NONNULL_BEGIN + (instancetype)connectionWithWorkQueue:(dispatch_queue_t)workQueue connectBlock:(NSXPCConnection * (^)(void) )connectBlock; - (void)getProxyHandleWithCompletion:(void (^)(dispatch_queue_t queue, - CHIPDeviceControllerXPCProxyHandle * _Nullable container))completion; + MTRDeviceControllerXPCProxyHandle * _Nullable container))completion; - (void)registerReportHandlerWithController:(id)controller nodeId:(NSUInteger)nodeId handler:(void (^)(id _Nullable values, NSError * _Nullable error))handler; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.m b/src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.m similarity index 81% rename from src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.m rename to src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.m index 2bcc28e9c1c6cf..f3354907d7a626 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceControllerXPCConnection.m +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerXPCConnection.m @@ -15,20 +15,20 @@ * limitations under the License. */ -#import "CHIPDeviceControllerXPCConnection.h" -#import "CHIPDeviceControllerOverXPC.h" -#import "CHIPLogging.h" +#import "MTRDeviceControllerXPCConnection.h" +#import "MTRDeviceControllerOverXPC.h" +#import "MTRLogging.h" #import -@interface CHIPDeviceControllerXPCProxyHandle () +@interface MTRDeviceControllerXPCProxyHandle () @property (weak, nonatomic, readonly) NSXPCConnection * xpcConnection; - (instancetype)initWithXPCConnection:(NSXPCConnection *)xpcConnection; @end -@implementation CHIPDeviceControllerXPCProxyHandle +@implementation MTRDeviceControllerXPCProxyHandle - (instancetype)initWithXPCConnection:(NSXPCConnection *)xpcConnection { @@ -38,7 +38,7 @@ - (instancetype)initWithXPCConnection:(NSXPCConnection *)xpcConnection return self; } -- (id)proxy +- (id)proxy { return [_xpcConnection remoteObjectProxy]; } @@ -50,26 +50,26 @@ - (void)dealloc @end -@interface CHIPDeviceControllerXPCConnection () +@interface MTRDeviceControllerXPCConnection () @property (strong, nonatomic, readonly) NSXPCInterface * remoteDeviceServerProtocol; @property (strong, nonatomic, readonly) NSXPCInterface * remoteDeviceClientProtocol; @property (strong, nonatomic, readonly) NSXPCConnection * (^connectBlock)(void); -@property (weak, nonatomic, readwrite) CHIPDeviceControllerXPCProxyHandle * proxyHandle; -@property (strong, nonatomic, readwrite) CHIPDeviceControllerXPCProxyHandle * proxyRetainerForReports; +@property (weak, nonatomic, readwrite) MTRDeviceControllerXPCProxyHandle * proxyHandle; +@property (strong, nonatomic, readwrite) MTRDeviceControllerXPCProxyHandle * proxyRetainerForReports; @property (strong, atomic, readonly) dispatch_queue_t workQueue; @property (strong, nonatomic, readonly) NSMutableDictionary * reportRegistry; @end -@implementation CHIPDeviceControllerXPCConnection +@implementation MTRDeviceControllerXPCConnection - (instancetype)initWithWorkQueue:(dispatch_queue_t)workQueue connectBlock:(NSXPCConnection * (^)(void) )connectBlock { if ([super init]) { - _remoteDeviceServerProtocol = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerServerProtocol)]; - _remoteDeviceClientProtocol = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerClientProtocol)]; + _remoteDeviceServerProtocol = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerServerProtocol)]; + _remoteDeviceClientProtocol = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerClientProtocol)]; _connectBlock = connectBlock; _workQueue = workQueue; _reportRegistry = [[NSMutableDictionary alloc] init]; @@ -80,18 +80,18 @@ - (instancetype)initWithWorkQueue:(dispatch_queue_t)workQueue connectBlock:(NSXP // This class method is for unit testing + (instancetype)connectionWithWorkQueue:(dispatch_queue_t)workQueue connectBlock:(NSXPCConnection * (^)(void) )connectBlock { - return [[CHIPDeviceControllerXPCConnection alloc] initWithWorkQueue:workQueue connectBlock:connectBlock]; + return [[MTRDeviceControllerXPCConnection alloc] initWithWorkQueue:workQueue connectBlock:connectBlock]; } -- (void)getProxyHandleWithCompletion:(void (^)(dispatch_queue_t queue, - CHIPDeviceControllerXPCProxyHandle * _Nullable container))completion +- (void)getProxyHandleWithCompletion:(void (^)( + dispatch_queue_t queue, MTRDeviceControllerXPCProxyHandle * _Nullable container))completion { dispatch_async(_workQueue, ^{ - CHIPDeviceControllerXPCProxyHandle * container = self.proxyHandle; + MTRDeviceControllerXPCProxyHandle * container = self.proxyHandle; if (!container) { NSXPCConnection * xpcConnection = self.connectBlock(); if (!xpcConnection) { - CHIP_LOG_ERROR("Cannot connect to XPC server for remote controller"); + MTR_LOG_ERROR("Cannot connect to XPC server for remote controller"); completion(self.workQueue, nil); return; } @@ -99,7 +99,7 @@ - (void)getProxyHandleWithCompletion:(void (^)(dispatch_queue_t queue, xpcConnection.exportedInterface = self.remoteDeviceClientProtocol; xpcConnection.exportedObject = self; [xpcConnection resume]; - container = [[CHIPDeviceControllerXPCProxyHandle alloc] initWithXPCConnection:xpcConnection]; + container = [[MTRDeviceControllerXPCProxyHandle alloc] initWithXPCConnection:xpcConnection]; self.proxyHandle = container; __weak typeof(self) weakSelf = self; xpcConnection.invalidationHandler = ^{ @@ -109,11 +109,11 @@ - (void)getProxyHandleWithCompletion:(void (^)(dispatch_queue_t queue, strongSelf.proxyHandle = nil; strongSelf.proxyRetainerForReports = nil; [strongSelf.reportRegistry removeAllObjects]; - CHIP_LOG_DEBUG("CHIP XPC connection disconnected"); + MTR_LOG_DEBUG("CHIP XPC connection disconnected"); }); } }; - CHIP_LOG_DEBUG("CHIP XPC connection established"); + MTR_LOG_DEBUG("CHIP XPC connection established"); } completion(self.workQueue, container); }); @@ -168,9 +168,9 @@ - (void)deregisterReportHandlersWithController:(id)controller completion(); }; [self - getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { - CHIP_LOG_DEBUG("CHIP XPC connection requests to stop reports"); + MTR_LOG_DEBUG("CHIP XPC connection requests to stop reports"); [handle.proxy stopReportsWithController:controller nodeId:nodeId completion:^{ @@ -179,7 +179,7 @@ - (void)deregisterReportHandlersWithController:(id)controller clearRegistry(); }]; } else { - CHIP_LOG_ERROR("CHIP XPC connection failed to stop reporting"); + MTR_LOG_ERROR("CHIP XPC connection failed to stop reporting"); clearRegistry(); } }]; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController_Internal.h b/src/darwin/Framework/CHIP/MTRDeviceController_Internal.h similarity index 73% rename from src/darwin/Framework/CHIP/CHIPDeviceController_Internal.h rename to src/darwin/Framework/CHIP/MTRDeviceController_Internal.h index 3c4cd4f0627f4e..687eef7a22c74b 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController_Internal.h @@ -14,23 +14,20 @@ * limitations under the License. */ -#ifndef MATTER_DEVICE_CONTROLLER_INTERNAL_H -#define MATTER_DEVICE_CONTROLLER_INTERNAL_H - /** - * Parts of CHIPDeviceController that are not part of the framework API. Mostly - * for use from MatterControllerFactory. + * Parts of MTRDeviceController that are not part of the framework API. Mostly + * for use from MTRControllerFactory. */ #import -#import "CHIPDeviceController.h" +#import "MTRDeviceController.h" #include #include -@class CHIPDeviceControllerStartupParamsInternal; -@class MatterControllerFactory; +@class MTRDeviceControllerStartupParamsInternal; +@class MTRControllerFactory; namespace chip { class FabricTable; @@ -38,19 +35,19 @@ class FabricTable; NS_ASSUME_NONNULL_BEGIN -@interface CHIPDeviceController (InternalMethods) +@interface MTRDeviceController (InternalMethods) /** * Start a new controller. Returns whether startup succeeded. If this fails, * it guarantees that it has called controllerShuttingDown on the - * MatterControllerFactory. + * MTRControllerFactory. * * The return value will always match [controller isRunning] for this * controller. * - * Only MatterControllerFactory should be calling this. + * Only MTRControllerFactory should be calling this. */ -- (BOOL)startup:(CHIPDeviceControllerStartupParamsInternal *)startupParams; +- (BOOL)startup:(MTRDeviceControllerStartupParamsInternal *)startupParams; /** * Will return chip::kUndefinedFabricIndex if we do not have a fabric index. @@ -61,9 +58,9 @@ NS_ASSUME_NONNULL_BEGIN /** * Init a newly created controller. * - * Only MatterControllerFactory should be calling this. + * Only MTRControllerFactory should be calling this. */ -- (instancetype)initWithFactory:(MatterControllerFactory *)factory queue:(dispatch_queue_t)queue; +- (instancetype)initWithFactory:(MTRControllerFactory *)factory queue:(dispatch_queue_t)queue; /** * Check whether this controller is running on the given fabric, as represented @@ -74,7 +71,7 @@ NS_ASSUME_NONNULL_BEGIN * Might return failure, in which case we don't know whether it's running on the * given fabric. Otherwise it will set *isRunning to the right boolean value. * - * Only MatterControllerFactory should be calling this. + * Only MTRControllerFactory should be calling this. */ - (CHIP_ERROR)isRunningOnFabric:(chip::FabricTable *)fabricTable fabricIndex:(chip::FabricIndex)fabricIndex @@ -91,5 +88,3 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END - -#endif // MATTER_DEVICE_CONTROLLER_INTERNAL_H diff --git a/src/darwin/Framework/CHIP/CHIPDeviceOverXPC.h b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h similarity index 86% rename from src/darwin/Framework/CHIP/CHIPDeviceOverXPC.h rename to src/darwin/Framework/CHIP/MTRDeviceOverXPC.h index 855e92ca72ed0a..918ab8829d9f5d 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceOverXPC.h +++ b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h @@ -15,12 +15,12 @@ * limitations under the License. */ -#import "CHIPDevice.h" -#import "CHIPDeviceControllerXPCConnection.h" +#import "MTRDevice.h" +#import "MTRDeviceControllerXPCConnection.h" NS_ASSUME_NONNULL_BEGIN -@interface CHIPDeviceOverXPC : CHIPDevice +@interface MTRDeviceOverXPC : MTRDevice - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithController:(id)controller deviceId:(uint64_t)deviceId - xpcConnection:(CHIPDeviceControllerXPCConnection *)xpcConnection; + xpcConnection:(MTRDeviceControllerXPCConnection *)xpcConnection; @end diff --git a/src/darwin/Framework/CHIP/CHIPDeviceOverXPC.m b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m similarity index 66% rename from src/darwin/Framework/CHIP/CHIPDeviceOverXPC.m rename to src/darwin/Framework/CHIP/MTRDeviceOverXPC.m index cd329a11dc8f1a..d6008fdf603799 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceOverXPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.m @@ -15,30 +15,30 @@ * limitations under the License. */ -#import "CHIPDeviceOverXPC.h" +#import "MTRDeviceOverXPC.h" -#import "CHIPAttributeCacheContainer+XPC.h" -#import "CHIPCluster.h" -#import "CHIPDeviceController+XPC.h" -#import "CHIPDeviceControllerXPCConnection.h" -#import "CHIPError.h" -#import "CHIPLogging.h" +#import "MTRAttributeCacheContainer+XPC.h" +#import "MTRCluster.h" +#import "MTRDeviceController+XPC.h" +#import "MTRDeviceControllerXPCConnection.h" +#import "MTRError.h" +#import "MTRLogging.h" NS_ASSUME_NONNULL_BEGIN -@interface CHIPDeviceOverXPC () +@interface MTRDeviceOverXPC () @property (nonatomic, strong, readonly) id controller; @property (nonatomic, readonly) uint64_t nodeId; -@property (nonatomic, strong, readonly) CHIPDeviceControllerXPCConnection * xpcConnection; +@property (nonatomic, strong, readonly) MTRDeviceControllerXPCConnection * xpcConnection; @end -@implementation CHIPDeviceOverXPC +@implementation MTRDeviceOverXPC - (instancetype)initWithController:(id)controller deviceId:(uint64_t)deviceId - xpcConnection:(CHIPDeviceControllerXPCConnection *)xpcConnection + xpcConnection:(MTRDeviceControllerXPCConnection *)xpcConnection { _controller = controller; _nodeId = deviceId; @@ -49,65 +49,67 @@ - (instancetype)initWithController:(id)controller - (void)subscribeWithQueue:(dispatch_queue_t)queue minInterval:(uint16_t)minInterval maxInterval:(uint16_t)maxInterval - params:(nullable CHIPSubscribeParams *)params - cacheContainer:(CHIPAttributeCacheContainer * _Nullable)attributeCacheContainer - reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler - subscriptionEstablished:(void (^_Nullable)(void))subscriptionEstablishedHandler + params:(nullable MTRSubscribeParams *)params + cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer + attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler + eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler + errorHandler:(void (^)(NSError * error))errorHandler + subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler; { - CHIP_LOG_DEBUG("Subscribing all attributes... Note that reportHandler is not supported."); + MTR_LOG_DEBUG("Subscribing all attributes... Note that reportHandler is not supported."); if (attributeCacheContainer) { [attributeCacheContainer setXPCConnection:_xpcConnection controllerId:self.controller deviceId:self.nodeId]; } - [_xpcConnection getProxyHandleWithCompletion:^( - dispatch_queue_t _Nonnull proxyQueue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { - if (handle) { - [handle.proxy subscribeWithController:self.controller - nodeId:self.nodeId - minInterval:@(minInterval) - maxInterval:@(maxInterval) - params:[CHIPDeviceController encodeXPCSubscribeParams:params] - shouldCache:(attributeCacheContainer != nil) - completion:^(NSError * _Nullable error) { - dispatch_async(queue, ^{ - if (error) { - reportHandler(nil, error); - } else { - subscriptionEstablishedHandler(); - } - }); - __auto_type handleRetainer = handle; - (void) handleRetainer; - }]; - } else { - CHIP_LOG_ERROR("Failed to obtain XPC connection to write attribute"); - dispatch_async(queue, ^{ - reportHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); - }); - } - }]; + [_xpcConnection + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull proxyQueue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { + if (handle) { + [handle.proxy subscribeWithController:self.controller + nodeId:self.nodeId + minInterval:@(minInterval) + maxInterval:@(maxInterval) + params:[MTRDeviceController encodeXPCSubscribeParams:params] + shouldCache:(attributeCacheContainer != nil) + completion:^(NSError * _Nullable error) { + dispatch_async(queue, ^{ + if (error) { + errorHandler(error); + } else { + subscriptionEstablishedHandler(); + } + }); + __auto_type handleRetainer = handle; + (void) handleRetainer; + }]; + } else { + MTR_LOG_ERROR("Failed to obtain XPC connection to write attribute"); + dispatch_async(queue, ^{ + errorHandler([NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); + }); + } + }]; } - (void)readAttributeWithEndpointId:(NSNumber * _Nullable)endpointId clusterId:(NSNumber * _Nullable)clusterId attributeId:(NSNumber * _Nullable)attributeId - params:(CHIPReadParams * _Nullable)params + params:(MTRReadParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { - CHIP_LOG_DEBUG("Reading attribute ..."); + MTR_LOG_DEBUG("Reading attribute ..."); [_xpcConnection - getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { [handle.proxy readAttributeWithController:self.controller nodeId:self.nodeId endpointId:endpointId clusterId:clusterId attributeId:attributeId - params:[CHIPDeviceController encodeXPCReadParams:params] + params:[MTRDeviceController encodeXPCReadParams:params] completion:^(id _Nullable values, NSError * _Nullable error) { dispatch_async(clientQueue, ^{ - CHIP_LOG_DEBUG("Attribute read"); - completion([CHIPDeviceController decodeXPCResponseValues:values], error); + MTR_LOG_DEBUG("Attribute read"); + completion([MTRDeviceController decodeXPCResponseValues:values], error); // The following captures the proxy handle in the closure so that the // handle won't be released prior to block call. __auto_type handleRetainer = handle; @@ -116,8 +118,8 @@ - (void)readAttributeWithEndpointId:(NSNumber * _Nullable)endpointId }]; } else { dispatch_async(clientQueue, ^{ - CHIP_LOG_ERROR("Failed to obtain XPC connection to read attribute"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + MTR_LOG_ERROR("Failed to obtain XPC connection to read attribute"); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); }); } }]; @@ -129,11 +131,11 @@ - (void)writeAttributeWithEndpointId:(NSNumber *)endpointId value:(id)value timedWriteTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { - CHIP_LOG_DEBUG("Writing attribute ..."); + MTR_LOG_DEBUG("Writing attribute ..."); [_xpcConnection - getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { [handle.proxy writeAttributeWithController:self.controller nodeId:self.nodeId @@ -144,8 +146,8 @@ - (void)writeAttributeWithEndpointId:(NSNumber *)endpointId timedWriteTimeout:timeoutMs completion:^(id _Nullable values, NSError * _Nullable error) { dispatch_async(clientQueue, ^{ - CHIP_LOG_DEBUG("Attribute written"); - completion([CHIPDeviceController decodeXPCResponseValues:values], error); + MTR_LOG_DEBUG("Attribute written"); + completion([MTRDeviceController decodeXPCResponseValues:values], error); // The following captures the proxy handle in the closure so that the // handle won't be released prior to block call. __auto_type handleRetainer = handle; @@ -154,8 +156,8 @@ - (void)writeAttributeWithEndpointId:(NSNumber *)endpointId }]; } else { dispatch_async(clientQueue, ^{ - CHIP_LOG_ERROR("Failed to obtain XPC connection to write attribute"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + MTR_LOG_ERROR("Failed to obtain XPC connection to write attribute"); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); }); } }]; @@ -167,11 +169,11 @@ - (void)invokeCommandWithEndpointId:(NSNumber *)endpointId commandFields:(id)commandFields timedInvokeTimeout:(NSNumber * _Nullable)timeoutMs clientQueue:(dispatch_queue_t)clientQueue - completion:(CHIPDeviceResponseHandler)completion + completion:(MTRDeviceResponseHandler)completion { - CHIP_LOG_DEBUG("Invoking command ..."); + MTR_LOG_DEBUG("Invoking command ..."); [_xpcConnection - getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + getProxyHandleWithCompletion:^(dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { [handle.proxy invokeCommandWithController:self.controller nodeId:self.nodeId @@ -182,8 +184,8 @@ - (void)invokeCommandWithEndpointId:(NSNumber *)endpointId timedInvokeTimeout:timeoutMs completion:^(id _Nullable values, NSError * _Nullable error) { dispatch_async(clientQueue, ^{ - CHIP_LOG_DEBUG("Command invoked"); - completion([CHIPDeviceController decodeXPCResponseValues:values], error); + MTR_LOG_DEBUG("Command invoked"); + completion([MTRDeviceController decodeXPCResponseValues:values], error); // The following captures the proxy handle in the closure so that the // handle won't be released prior to block call. __auto_type handleRetainer = handle; @@ -192,8 +194,8 @@ - (void)invokeCommandWithEndpointId:(NSNumber *)endpointId }]; } else { dispatch_async(clientQueue, ^{ - CHIP_LOG_ERROR("Failed to obtain XPC connection to invoke command"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + MTR_LOG_ERROR("Failed to obtain XPC connection to invoke command"); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); }); } }]; @@ -204,36 +206,36 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId attributeId:(NSNumber * _Nullable)attributeId minInterval:(NSNumber *)minInterval maxInterval:(NSNumber *)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue - reportHandler:(CHIPDeviceResponseHandler)reportHandler + reportHandler:(MTRDeviceResponseHandler)reportHandler subscriptionEstablished:(void (^_Nullable)(void))subscriptionEstablishedHandler { - CHIP_LOG_DEBUG("Subscribing attribute ..."); + MTR_LOG_DEBUG("Subscribing attribute ..."); [_xpcConnection getProxyHandleWithCompletion:^( - dispatch_queue_t _Nonnull queue, CHIPDeviceControllerXPCProxyHandle * _Nullable handle) { + dispatch_queue_t _Nonnull queue, MTRDeviceControllerXPCProxyHandle * _Nullable handle) { if (handle) { - CHIP_LOG_DEBUG("Setup report handler"); + MTR_LOG_DEBUG("Setup report handler"); [self.xpcConnection registerReportHandlerWithController:self.controller nodeId:self.nodeId handler:^(id _Nullable values, NSError * _Nullable error) { if (values && ![values isKindOfClass:[NSArray class]]) { - CHIP_LOG_ERROR("Unsupported report format"); + MTR_LOG_ERROR("Unsupported report format"); return; } if (!values) { - CHIP_LOG_DEBUG("Error report received"); + MTR_LOG_DEBUG("Error report received"); dispatch_async(clientQueue, ^{ reportHandler(values, error); }); return; } - __auto_type decodedValues = [CHIPDeviceController decodeXPCResponseValues:values]; + __auto_type decodedValues = [MTRDeviceController decodeXPCResponseValues:values]; NSMutableArray *> * filteredValues = [NSMutableArray arrayWithCapacity:[decodedValues count]]; for (NSDictionary * decodedValue in decodedValues) { - CHIPAttributePath * attributePath = decodedValue[kCHIPAttributePathKey]; + MTRAttributePath * attributePath = decodedValue[MTRAttributePathKey]; if ((endpointId == nil || [attributePath.endpoint isEqualToNumber:endpointId]) && (clusterId == nil || [attributePath.cluster isEqualToNumber:clusterId]) && (attributeId == nil || @@ -242,7 +244,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId } } if ([filteredValues count] > 0) { - CHIP_LOG_DEBUG("Report received"); + MTR_LOG_DEBUG("Report received"); dispatch_async(clientQueue, ^{ reportHandler(filteredValues, error); }); @@ -255,10 +257,10 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId attributeId:attributeId minInterval:minInterval maxInterval:maxInterval - params:[CHIPDeviceController encodeXPCSubscribeParams:params] + params:[MTRDeviceController encodeXPCSubscribeParams:params] establishedHandler:^{ dispatch_async(clientQueue, ^{ - CHIP_LOG_DEBUG("Subscription established"); + MTR_LOG_DEBUG("Subscription established"); subscriptionEstablishedHandler(); // The following captures the proxy handle in the closure so that the handle // won't be released prior to block call. @@ -268,9 +270,9 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId }]; } else { dispatch_async(clientQueue, ^{ - CHIP_LOG_ERROR("Failed to obtain XPC connection to subscribe to attribute"); + MTR_LOG_ERROR("Failed to obtain XPC connection to subscribe to attribute"); subscriptionEstablishedHandler(); - reportHandler(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + reportHandler(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); }); } }]; @@ -278,7 +280,7 @@ - (void)subscribeAttributeWithEndpointId:(NSNumber * _Nullable)endpointId - (void)deregisterReportHandlersWithClientQueue:(dispatch_queue_t)clientQueue completion:(void (^)(void))completion { - CHIP_LOG_DEBUG("Deregistering report handlers"); + MTR_LOG_DEBUG("Deregistering report handlers"); [_xpcConnection deregisterReportHandlersWithController:self.controller nodeId:self.nodeId completion:^{ diff --git a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegate.h b/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h similarity index 80% rename from src/darwin/Framework/CHIP/CHIPDevicePairingDelegate.h rename to src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h index 1c403911955f8f..eeb7a4f33fa8f9 100644 --- a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegate.h +++ b/src/darwin/Framework/CHIP/MTRDevicePairingDelegate.h @@ -19,24 +19,24 @@ NS_ASSUME_NONNULL_BEGIN -typedef NS_ENUM(NSUInteger, CHIPPairingStatus) { - kSecurePairingSuccess = 0, - kSecurePairingFailed, - kUnknownStatus, +typedef NS_ENUM(NSUInteger, MTRPairingStatus) { + MTRPairingStatusUnknown = 0, + MTRPairingStatusSuccess = 1, + MTRPairingStatusFailed = 2 }; /** - * The protocol definition for the CHIPDevicePairingDelegate + * The protocol definition for the MTRDevicePairingDelegate * * All delegate methods will be called on the supplied Delegate Queue. */ -@protocol CHIPDevicePairingDelegate +@protocol MTRDevicePairingDelegate @optional /** * Notify the delegate when pairing status gets updated * */ -- (void)onStatusUpdate:(CHIPPairingStatus)status; +- (void)onStatusUpdate:(MTRPairingStatus)status; /** * Notify the delegate when pairing is completed diff --git a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.h b/src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.h similarity index 72% rename from src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.h rename to src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.h index 8a391e749af3c7..a932319aaf4352 100644 --- a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.h +++ b/src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.h @@ -15,21 +15,20 @@ * limitations under the License. */ -#import "CHIPDevicePairingDelegate.h" - -#include +#import "MTRDevicePairingDelegate.h" #include +#include NS_ASSUME_NONNULL_BEGIN -class CHIPDevicePairingDelegateBridge : public chip::Controller::DevicePairingDelegate +class MTRDevicePairingDelegateBridge : public chip::Controller::DevicePairingDelegate { public: - CHIPDevicePairingDelegateBridge(); - ~CHIPDevicePairingDelegateBridge(); + MTRDevicePairingDelegateBridge(); + ~MTRDevicePairingDelegateBridge(); - void setDelegate(id delegate, dispatch_queue_t queue); + void setDelegate(id delegate, dispatch_queue_t queue); void OnStatusUpdate(chip::Controller::DevicePairingDelegate::Status status) override; @@ -40,10 +39,10 @@ class CHIPDevicePairingDelegateBridge : public chip::Controller::DevicePairingDe void OnCommissioningComplete(chip::NodeId deviceId, CHIP_ERROR error) override; private: - _Nullable id mDelegate; + _Nullable id mDelegate; _Nullable dispatch_queue_t mQueue; - CHIPPairingStatus MapStatus(chip::Controller::DevicePairingDelegate::Status status); + MTRPairingStatus MapStatus(chip::Controller::DevicePairingDelegate::Status status); }; NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.mm b/src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.mm similarity index 62% rename from src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.mm rename to src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.mm index e026553e3c080d..bd05a12f8950bb 100644 --- a/src/darwin/Framework/CHIP/CHIPDevicePairingDelegateBridge.mm +++ b/src/darwin/Framework/CHIP/MTRDevicePairingDelegateBridge.mm @@ -15,17 +15,17 @@ * limitations under the License. */ -#import "CHIPDevicePairingDelegateBridge.h" -#import "CHIPError_Internal.h" +#import "MTRDevicePairingDelegateBridge.h" +#import "MTRError_Internal.h" -CHIPDevicePairingDelegateBridge::CHIPDevicePairingDelegateBridge(void) +MTRDevicePairingDelegateBridge::MTRDevicePairingDelegateBridge(void) : mDelegate(nil) { } -CHIPDevicePairingDelegateBridge::~CHIPDevicePairingDelegateBridge(void) {} +MTRDevicePairingDelegateBridge::~MTRDevicePairingDelegateBridge(void) {} -void CHIPDevicePairingDelegateBridge::setDelegate(id delegate, dispatch_queue_t queue) +void MTRDevicePairingDelegateBridge::setDelegate(id delegate, dispatch_queue_t queue) { if (delegate && queue) { mDelegate = delegate; @@ -36,28 +36,28 @@ } } -CHIPPairingStatus CHIPDevicePairingDelegateBridge::MapStatus(chip::Controller::DevicePairingDelegate::Status status) +MTRPairingStatus MTRDevicePairingDelegateBridge::MapStatus(chip::Controller::DevicePairingDelegate::Status status) { - CHIPPairingStatus rv = kUnknownStatus; + MTRPairingStatus rv = MTRPairingStatusUnknown; switch (status) { case chip::Controller::DevicePairingDelegate::Status::SecurePairingSuccess: - rv = kSecurePairingSuccess; + rv = MTRPairingStatusSuccess; break; case chip::Controller::DevicePairingDelegate::Status::SecurePairingFailed: - rv = kSecurePairingFailed; + rv = MTRPairingStatusFailed; break; } return rv; } -void CHIPDevicePairingDelegateBridge::OnStatusUpdate(chip::Controller::DevicePairingDelegate::Status status) +void MTRDevicePairingDelegateBridge::OnStatusUpdate(chip::Controller::DevicePairingDelegate::Status status) { NSLog(@"DevicePairingDelegate status updated: %d", status); - id strongDelegate = mDelegate; + id strongDelegate = mDelegate; if ([strongDelegate respondsToSelector:@selector(onStatusUpdate:)]) { if (strongDelegate && mQueue) { - CHIPPairingStatus pairingStatus = MapStatus(status); + MTRPairingStatus pairingStatus = MapStatus(status); dispatch_async(mQueue, ^{ [strongDelegate onStatusUpdate:pairingStatus]; }); @@ -65,45 +65,45 @@ } } -void CHIPDevicePairingDelegateBridge::OnPairingComplete(CHIP_ERROR error) +void MTRDevicePairingDelegateBridge::OnPairingComplete(CHIP_ERROR error) { NSLog(@"DevicePairingDelegate Pairing complete. Status %s", chip::ErrorStr(error)); - id strongDelegate = mDelegate; + id strongDelegate = mDelegate; if ([strongDelegate respondsToSelector:@selector(onPairingComplete:)]) { if (strongDelegate && mQueue) { dispatch_async(mQueue, ^{ - NSError * nsError = [CHIPError errorForCHIPErrorCode:error]; + NSError * nsError = [MTRError errorForCHIPErrorCode:error]; [strongDelegate onPairingComplete:nsError]; }); } } } -void CHIPDevicePairingDelegateBridge::OnPairingDeleted(CHIP_ERROR error) +void MTRDevicePairingDelegateBridge::OnPairingDeleted(CHIP_ERROR error) { NSLog(@"DevicePairingDelegate Pairing deleted. Status %s", chip::ErrorStr(error)); - id strongDelegate = mDelegate; + id strongDelegate = mDelegate; if ([strongDelegate respondsToSelector:@selector(onPairingDeleted:)]) { if (strongDelegate && mQueue) { dispatch_async(mQueue, ^{ - NSError * nsError = [CHIPError errorForCHIPErrorCode:error]; + NSError * nsError = [MTRError errorForCHIPErrorCode:error]; [strongDelegate onPairingDeleted:nsError]; }); } } } -void CHIPDevicePairingDelegateBridge::OnCommissioningComplete(chip::NodeId nodeId, CHIP_ERROR error) +void MTRDevicePairingDelegateBridge::OnCommissioningComplete(chip::NodeId nodeId, CHIP_ERROR error) { NSLog(@"DevicePairingDelegate Commissioning complete. NodeId %llu Status %s", nodeId, chip::ErrorStr(error)); - id strongDelegate = mDelegate; + id strongDelegate = mDelegate; if ([strongDelegate respondsToSelector:@selector(onCommissioningComplete:)]) { if (strongDelegate && mQueue) { dispatch_async(mQueue, ^{ - NSError * nsError = [CHIPError errorForCHIPErrorCode:error]; + NSError * nsError = [MTRError errorForCHIPErrorCode:error]; [strongDelegate onCommissioningComplete:nsError]; }); } diff --git a/src/darwin/Framework/CHIP/CHIPDevice_Internal.h b/src/darwin/Framework/CHIP/MTRDevice_Internal.h similarity index 86% rename from src/darwin/Framework/CHIP/CHIPDevice_Internal.h rename to src/darwin/Framework/CHIP/MTRDevice_Internal.h index e8e4ecafa5d0f6..7dea9c4a92b152 100644 --- a/src/darwin/Framework/CHIP/CHIPDevice_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDevice_Internal.h @@ -15,10 +15,7 @@ * limitations under the License. */ -#ifndef CHIP_DEVICE_INTERNAL_H -#define CHIP_DEVICE_INTERNAL_H - -#import "CHIPDevice.h" +#import "MTRDevice.h" #import #include @@ -27,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface CHIPDevice () +@interface MTRDevice () - (instancetype)initWithDevice:(chip::DeviceProxy *)device; - (chip::DeviceProxy *)internalDevice; @@ -41,11 +38,11 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface CHIPAttributePath () +@interface MTRAttributePath () - (instancetype)initWithPath:(const chip::app::ConcreteDataAttributePath &)path; @end -@interface CHIPCommandPath () +@interface MTRCommandPath () - (instancetype)initWithPath:(const chip::app::ConcreteCommandPath &)path; @end @@ -53,5 +50,3 @@ NS_ASSUME_NONNULL_BEGIN id _Nullable NSObjectFromCHIPTLV(chip::TLV::TLVReader * data); NS_ASSUME_NONNULL_END - -#endif /* CHIP_DEVICE_INTERNAL_H */ diff --git a/src/darwin/Framework/CHIP/MTRError.h b/src/darwin/Framework/CHIP/MTRError.h new file mode 100644 index 00000000000000..f69ce1d73e05d5 --- /dev/null +++ b/src/darwin/Framework/CHIP/MTRError.h @@ -0,0 +1,104 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN +FOUNDATION_EXPORT NSErrorDomain const MTRErrorDomain; + +FOUNDATION_EXPORT NSErrorDomain const MTRInteractionErrorDomain; + +/** + * ChipErrorDomain contains errors caused by data processing the framework + * itself is performing. These can be caused by invalid values provided to a + * framework API, failure to decode an incoming message, and so forth. + * + * Errors reported by the other side of a Matter interaction use + * MTRInteractionErrorDomain instead. + */ +// clang-format off +typedef NS_ERROR_ENUM(MTRErrorDomain, MTRErrorCode){ + /** + * MTRErrorCodeGeneralError represents a generic Matter error with no + * further categorization. + * + * The userInfo will have a key named @"errorCode" whose value will be an + * integer representing the underlying Matter error code. These integer + * values should not be assumed to be stable across releases, but may be + * useful in logging and debugging. + */ + MTRErrorCodeGeneralError = 1, + MTRErrorCodeInvalidStringLength = 2, + MTRErrorCodeInvalidIntegerValue = 3, + MTRErrorCodeInvalidArgument = 4, + MTRErrorCodeInvalidMessageLength = 5, + MTRErrorCodeInvalidState = 6, + MTRErrorCodeWrongAddressType = 7, + MTRErrorCodeIntegrityCheckFailed = 8, + MTRErrorCodeTimeout = 9, +}; +// clang-format on + +/** + * MTRInteractionErrorDomain contains errors that represent a Matter + * StatusIB error. These represent errors reported by the other side of a + * Matter interaction. + * + * When the code is MTRInteractionErrorCodeFailure the userInfo may have a + * key named @"clusterStatus" whose value is the cluster-specific status that + * was reported. This key will be absent if there was no cluster-specific + * status. + */ +// clang-format off +typedef NS_ERROR_ENUM(MTRInteractionErrorDomain, MTRInteractionErrorCode){ + // These values come from the general status code table in the Matter + // Interaction Model specification. Do not change these values unless the + // specification changes. + MTRInteractionErrorCodeFailure = 0x01, + MTRInteractionErrorCodeInvalidSubscription = 0x7d, + MTRInteractionErrorCodeUnsupportedAccess = 0x7e, + MTRInteractionErrorCodeUnsupportedEndpoint = 0x7f, + MTRInteractionErrorCodeInvalidAction = 0x80, + MTRInteractionErrorCodeUnsupportedCommand = 0x81, + // Gap in values is intentional. + MTRInteractionErrorCodeInvalidCommand = 0x85, + MTRInteractionErrorCodeUnsupportedAttribute = 0x86, + MTRInteractionErrorCodeConstraintError = 0x87, + MTRInteractionErrorCodeUnsupportedWrite = 0x88, + MTRInteractionErrorCodeResourceExhausted = 0x89, + // Gap in values is intentional. + MTRInteractionErrorCodeNotFound = 0x8b, + MTRInteractionErrorCodeUnreportableAttribute = 0x8c, + MTRInteractionErrorCodeInvalidDataType = 0x8d, + // Gap in values is intentional. + MTRInteractionErrorCodeUnsupportedRead = 0x8f, + // Gap in values is intentional. + MTRInteractionErrorCodeDataVersionMismatch = 0x92, + // Gap in values is intentional. + MTRInteractionErrorCodeTimeout = 0x94, + // Gap in values is intentional. + MTRInteractionErrorCodeBusy = 0x9c, + // Gap in values is intentional. + MTRInteractionErrorCodeUnsupportedCluster = 0xc3, + // Gap in values is intentional. + MTRInteractionErrorCodeNoUpstreamSubscription = 0xc5, + MTRInteractionErrorCodeNeedsTimedInteraction = 0xc6, + MTRInteractionErrorCodeUnsupportedEvent = 0xc7, +}; +// clang-format on + +NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPError.mm b/src/darwin/Framework/CHIP/MTRError.mm similarity index 85% rename from src/darwin/Framework/CHIP/CHIPError.mm rename to src/darwin/Framework/CHIP/MTRError.mm index 3df745e2ce2d24..e07928fa8659a5 100644 --- a/src/darwin/Framework/CHIP/CHIPError.mm +++ b/src/darwin/Framework/CHIP/MTRError.mm @@ -15,8 +15,8 @@ * limitations under the License. */ -#import "CHIPError.h" -#import "CHIPError_Internal.h" +#import "MTRError.h" +#import "MTRError_Internal.h" #import #import @@ -24,13 +24,13 @@ #import #import -NSString * const CHIPErrorDomain = @"CHIPErrorDomain"; +NSString * const MTRErrorDomain = @"MTRErrorDomain"; -NSString * const MatterInteractionErrorDomain = @"MatterInteractionErrorDomain"; +NSString * const MTRInteractionErrorDomain = @"MTRInteractionErrorDomain"; // Class for holding on to a CHIP_ERROR that we can use as the value // in a dictionary. -@interface CHIPErrorHolder : NSObject +@interface MTRErrorHolder : NSObject @property (nonatomic, readonly) CHIP_ERROR error; - (instancetype)init NS_UNAVAILABLE; @@ -39,7 +39,7 @@ + (instancetype)new NS_UNAVAILABLE; - (instancetype)initWithError:(CHIP_ERROR)error; @end -@implementation CHIPError +@implementation MTRError + (NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode { @@ -49,36 +49,36 @@ + (NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode if (errorCode.IsIMStatus()) { chip::app::StatusIB status(errorCode); - return [CHIPError errorForIMStatus:status]; + return [MTRError errorForIMStatus:status]; } NSMutableDictionary * userInfo = [[NSMutableDictionary alloc] init]; - CHIPErrorCode code = CHIPErrorCodeGeneralError; + MTRErrorCode code = MTRErrorCodeGeneralError; if (errorCode == CHIP_ERROR_INVALID_STRING_LENGTH) { - code = CHIPErrorCodeInvalidStringLength; + code = MTRErrorCodeInvalidStringLength; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"A list length is invalid.", nil) }]; } else if (errorCode == CHIP_ERROR_INVALID_INTEGER_VALUE) { - code = CHIPErrorCodeInvalidIntegerValue; + code = MTRErrorCodeInvalidIntegerValue; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"Unexpected integer value.", nil) }]; } else if (errorCode == CHIP_ERROR_INVALID_ARGUMENT) { - code = CHIPErrorCodeInvalidArgument; + code = MTRErrorCodeInvalidArgument; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"An argument is invalid.", nil) }]; } else if (errorCode == CHIP_ERROR_INVALID_MESSAGE_LENGTH) { - code = CHIPErrorCodeInvalidMessageLength; + code = MTRErrorCodeInvalidMessageLength; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"A message length is invalid.", nil) }]; } else if (errorCode == CHIP_ERROR_INCORRECT_STATE) { - code = CHIPErrorCodeInvalidState; + code = MTRErrorCodeInvalidState; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"Invalid object state.", nil) }]; } else if (errorCode == CHIP_ERROR_INTEGRITY_CHECK_FAILED) { - code = CHIPErrorCodeIntegrityCheckFailed; + code = MTRErrorCodeIntegrityCheckFailed; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"Integrity check failed.", nil) }]; } else if (errorCode == CHIP_ERROR_TIMEOUT) { - code = CHIPErrorCodeTimeout; + code = MTRErrorCodeTimeout; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"Transaction timed out.", nil) }]; } else { - code = CHIPErrorCodeGeneralError; + code = MTRErrorCodeGeneralError; [userInfo addEntriesFromDictionary:@{ NSLocalizedDescriptionKey : [NSString stringWithFormat:NSLocalizedString(@"Undefined error:%u.", nil), errorCode.AsInteger()], @@ -86,9 +86,9 @@ + (NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode }]; } - userInfo[@"underlyingError"] = [[CHIPErrorHolder alloc] initWithError:errorCode]; + userInfo[@"underlyingError"] = [[MTRErrorHolder alloc] initWithError:errorCode]; - return [NSError errorWithDomain:CHIPErrorDomain code:code userInfo:userInfo]; + return [NSError errorWithDomain:MTRErrorDomain code:code userInfo:userInfo]; ; } @@ -208,7 +208,7 @@ + (NSError *)errorForIMStatus:(const chip::app::StatusIB &)status userInfo[@"clusterStatus"] = @(status.mClusterStatus.Value()); } - return [NSError errorWithDomain:MatterInteractionErrorDomain code:chip::to_underlying(status.mStatus) userInfo:userInfo]; + return [NSError errorWithDomain:MTRInteractionErrorDomain code:chip::to_underlying(status.mStatus) userInfo:userInfo]; } + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error @@ -217,7 +217,7 @@ + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error return CHIP_NO_ERROR; } - if (error.domain == MatterInteractionErrorDomain) { + if (error.domain == MTRInteractionErrorDomain) { chip::app::StatusIB status(static_cast(error.code)); if (error.userInfo != nil && error.userInfo[@"clusterStatus"] != nil) { status.mClusterStatus.Emplace([error.userInfo[@"clusterStatus"] unsignedCharValue]); @@ -225,41 +225,41 @@ + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error return status.ToChipError(); } - if (error.domain != CHIPErrorDomain) { + if (error.domain != MTRErrorDomain) { return CHIP_ERROR_INTERNAL; } if (error.userInfo != nil) { id underlyingError = error.userInfo[@"underlyingError"]; - if (underlyingError != nil && [underlyingError isKindOfClass:[CHIPErrorHolder class]]) { - return ((CHIPErrorHolder *) underlyingError).error; + if (underlyingError != nil && [underlyingError isKindOfClass:[MTRErrorHolder class]]) { + return ((MTRErrorHolder *) underlyingError).error; } } chip::ChipError::StorageType code; switch (error.code) { - case CHIPErrorCodeInvalidStringLength: + case MTRErrorCodeInvalidStringLength: code = CHIP_ERROR_INVALID_STRING_LENGTH.AsInteger(); break; - case CHIPErrorCodeInvalidIntegerValue: + case MTRErrorCodeInvalidIntegerValue: code = CHIP_ERROR_INVALID_INTEGER_VALUE.AsInteger(); break; - case CHIPErrorCodeInvalidArgument: + case MTRErrorCodeInvalidArgument: code = CHIP_ERROR_INVALID_ARGUMENT.AsInteger(); break; - case CHIPErrorCodeInvalidMessageLength: + case MTRErrorCodeInvalidMessageLength: code = CHIP_ERROR_INVALID_MESSAGE_LENGTH.AsInteger(); break; - case CHIPErrorCodeInvalidState: + case MTRErrorCodeInvalidState: code = CHIP_ERROR_INCORRECT_STATE.AsInteger(); break; - case CHIPErrorCodeIntegrityCheckFailed: + case MTRErrorCodeIntegrityCheckFailed: code = CHIP_ERROR_INTEGRITY_CHECK_FAILED.AsInteger(); break; - case CHIPErrorCodeTimeout: + case MTRErrorCodeTimeout: code = CHIP_ERROR_TIMEOUT.AsInteger(); break; - case CHIPErrorCodeGeneralError: { + case MTRErrorCodeGeneralError: { if (error.userInfo != nil && error.userInfo[@"errorCode"] != nil) { code = static_cast([error.userInfo[@"errorCode"] unsignedLongValue]); break; @@ -276,7 +276,7 @@ + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error @end -@implementation CHIPErrorHolder +@implementation MTRErrorHolder - (instancetype)initWithError:(CHIP_ERROR)error { diff --git a/src/darwin/Framework/CHIP/CHIPError_Internal.h b/src/darwin/Framework/CHIP/MTRError_Internal.h similarity index 96% rename from src/darwin/Framework/CHIP/CHIPError_Internal.h rename to src/darwin/Framework/CHIP/MTRError_Internal.h index 56febce49f4da1..e5e58b3f0f9568 100644 --- a/src/darwin/Framework/CHIP/CHIPError_Internal.h +++ b/src/darwin/Framework/CHIP/MTRError_Internal.h @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface CHIPError : NSObject +@interface MTRError : NSObject + (nullable NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode; + (nullable NSError *)errorForIMStatus:(const chip::app::StatusIB &)status; + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error; diff --git a/src/darwin/Framework/CHIP/CHIPEventTLVValueDecoder_Internal.h b/src/darwin/Framework/CHIP/MTREventTLVValueDecoder_Internal.h similarity index 87% rename from src/darwin/Framework/CHIP/CHIPEventTLVValueDecoder_Internal.h rename to src/darwin/Framework/CHIP/MTREventTLVValueDecoder_Internal.h index 91f0c7a798e924..d66c58ea59de9c 100644 --- a/src/darwin/Framework/CHIP/CHIPEventTLVValueDecoder_Internal.h +++ b/src/darwin/Framework/CHIP/MTREventTLVValueDecoder_Internal.h @@ -27,6 +27,6 @@ NS_ASSUME_NONNULL_BEGIN -id CHIPDecodeEventPayload(const chip::app::ConcreteEventPath & aPath, chip::TLV::TLVReader & aReader, CHIP_ERROR * aError); +id MTRDecodeEventPayload(const chip::app::ConcreteEventPath & aPath, chip::TLV::TLVReader & aReader, CHIP_ERROR * aError); NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPIMDispatch.mm b/src/darwin/Framework/CHIP/MTRIMDispatch.mm similarity index 100% rename from src/darwin/Framework/CHIP/CHIPIMDispatch.mm rename to src/darwin/Framework/CHIP/MTRIMDispatch.mm diff --git a/src/darwin/Framework/CHIP/CHIPKeypair.h b/src/darwin/Framework/CHIP/MTRKeypair.h similarity index 79% rename from src/darwin/Framework/CHIP/CHIPKeypair.h rename to src/darwin/Framework/CHIP/MTRKeypair.h index 87edc304fca33a..b0affe4f5ba678 100644 --- a/src/darwin/Framework/CHIP/CHIPKeypair.h +++ b/src/darwin/Framework/CHIP/MTRKeypair.h @@ -20,12 +20,12 @@ NS_ASSUME_NONNULL_BEGIN -@protocol CHIPKeypair +@protocol MTRKeypair @required /** * @brief Return public key for the keypair. */ -- (SecKeyRef)pubkey; +- (SecKeyRef)publicKey; @optional /** @@ -37,10 +37,10 @@ NS_ASSUME_NONNULL_BEGIN * point form (see SEC1). Sometimes also called RFC 4754 form or P1363 * form. * - * Either this selector or ECDSA_sign_message_DER must be supported by a - * CHIPKeypair. + * Either this selector or signMessageECDSA_DER must be supported by a + * MTRKeypair. */ -- (NSData *)ECDSA_sign_message_raw:(NSData *)message; +- (NSData *)signMessageECDSA_RAW:(NSData *)message; /** * @brief A function to sign a message using ECDSA @@ -49,10 +49,10 @@ NS_ASSUME_NONNULL_BEGIN * * @return An ASN.1 DER-encoded signature (per X9.62). * - * Either this selector or ECDSA_sign_message_raw must be supported by a - * CHIPKeypair. + * Either this selector or signMessageECDSA_RAW must be supported by a + * MTRKeypair. */ -- (NSData *)ECDSA_sign_message_DER:(NSData *)message; +- (NSData *)signMessageECDSA_DER:(NSData *)message; @end diff --git a/src/darwin/Framework/CHIP/MTRLogging.h b/src/darwin/Framework/CHIP/MTRLogging.h new file mode 100644 index 00000000000000..f2bcb33f12d555 --- /dev/null +++ b/src/darwin/Framework/CHIP/MTRLogging.h @@ -0,0 +1,27 @@ +/* + * + * Copyright (c) 2020 Project CHIP Authors + * All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +#define MTR_LOG_FAULT(format, ...) os_log_fault(OS_LOG_DEFAULT, format, ##__VA_ARGS__) +#define MTR_LOG_ERROR(format, ...) os_log_error(OS_LOG_DEFAULT, format, ##__VA_ARGS__) +#define MTR_LOG_INFO(format, ...) os_log_info(OS_LOG_DEFAULT, format, ##__VA_ARGS__) +#define MTR_LOG_DEBUG(format, ...) os_log_debug(OS_LOG_DEFAULT, format, ##__VA_ARGS__) + +#define MTR_LOG_METHOD_ENTRY() \ + ({ os_log_debug(OS_LOG_DEFAULT, "[<%@: %p> %@]", NSStringFromClass([self class]), self, NSStringFromSelector(_cmd)); }) diff --git a/src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.h b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.h rename to src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h index 92e3dcc6a33040..673a43c8909abc 100644 --- a/src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.h @@ -17,13 +17,13 @@ #import -@class CHIPSetupPayload; +@class MTRSetupPayload; NS_ASSUME_NONNULL_BEGIN -@interface CHIPManualSetupPayloadParser : NSObject +@interface MTRManualSetupPayloadParser : NSObject - (instancetype)initWithDecimalStringRepresentation:(NSString *)decimalStringRepresentation; -- (nullable CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; +- (nullable MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.mm b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.mm similarity index 76% rename from src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.mm rename to src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.mm index 9a8d274ab15710..fc493afb507c91 100644 --- a/src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.mm +++ b/src/darwin/Framework/CHIP/MTRManualSetupPayloadParser.mm @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#import "CHIPManualSetupPayloadParser.h" +#import "MTRManualSetupPayloadParser.h" -#import "CHIPError_Internal.h" -#import "CHIPLogging.h" -#import "CHIPSetupPayload_Internal.h" +#import "MTRError_Internal.h" +#import "MTRLogging.h" #import "MTRMemory.h" +#import "MTRSetupPayload_Internal.h" #import #import -@implementation CHIPManualSetupPayloadParser { +@implementation MTRManualSetupPayloadParser { NSString * _decimalStringRepresentation; chip::ManualSetupPayloadParser * _chipManualSetupPayloadParser; } @@ -39,23 +39,23 @@ - (id)initWithDecimalStringRepresentation:(NSString *)decimalStringRepresentatio return self; } -- (CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error +- (MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error { chip::SetupPayload cPlusPluspayload; - CHIPSetupPayload * payload; + MTRSetupPayload * payload; if (_chipManualSetupPayloadParser) { CHIP_ERROR chipError = _chipManualSetupPayloadParser->populatePayload(cPlusPluspayload); if (chipError == CHIP_NO_ERROR) { - payload = [[CHIPSetupPayload alloc] initWithSetupPayload:cPlusPluspayload]; + payload = [[MTRSetupPayload alloc] initWithSetupPayload:cPlusPluspayload]; } else if (error) { - *error = [CHIPError errorForCHIPErrorCode:chipError]; + *error = [MTRError errorForCHIPErrorCode:chipError]; } } else { // Memory init has failed if (error) { - *error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_NO_MEMORY]; + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_NO_MEMORY]; } } diff --git a/src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.h b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h similarity index 56% rename from src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.h rename to src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h index a04da1f818a3f4..cb812ddc41e67a 100644 --- a/src/darwin/Framework/CHIP/CHIPOnboardingPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.h @@ -19,20 +19,20 @@ NS_ASSUME_NONNULL_BEGIN -@class CHIPSetupPayload; +@class MTRSetupPayload; -typedef NS_ENUM(NSUInteger, CHIPOnboardingPayloadType) { - CHIPOnboardingPayloadTypeQRCode = 0, - CHIPOnboardingPayloadTypeManualCode, - CHIPOnboardingPayloadTypeNFC, - CHIPOnboardingPayloadTypeAdmin, +typedef NS_ENUM(NSUInteger, MTROnboardingPayloadType) { + MTROnboardingPayloadTypeQRCode = 0, + MTROnboardingPayloadTypeManualCode, + MTROnboardingPayloadTypeNFC, + MTROnboardingPayloadTypeAdmin, }; -@interface CHIPOnboardingPayloadParser : NSObject +@interface MTROnboardingPayloadParser : NSObject -+ (nullable CHIPSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload - ofType:(CHIPOnboardingPayloadType)type - error:(NSError * __autoreleasing *)error; ++ (nullable MTRSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload + ofType:(MTROnboardingPayloadType)type + error:(NSError * __autoreleasing *)error; @end diff --git a/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m new file mode 100644 index 00000000000000..3af4fe1a38bb9c --- /dev/null +++ b/src/darwin/Framework/CHIP/MTROnboardingPayloadParser.m @@ -0,0 +1,60 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import "MTROnboardingPayloadParser.h" +#import "MTRManualSetupPayloadParser.h" +#import "MTRQRCodeSetupPayloadParser.h" +#import "MTRSetupPayload.h" + +@implementation MTROnboardingPayloadParser + ++ (nullable MTRSetupPayload *)setupPayloadForOnboardingPayload:(NSString *)onboardingPayload + ofType:(MTROnboardingPayloadType)type + error:(NSError * __autoreleasing *)error +{ + MTRSetupPayload * payload; + switch (type) { + case MTROnboardingPayloadTypeManualCode: + case MTROnboardingPayloadTypeAdmin: + payload = [self setupPayloadForManualCodeOnboardingPayload:onboardingPayload error:error]; + break; + case MTROnboardingPayloadTypeQRCode: + case MTROnboardingPayloadTypeNFC: + payload = [self setupPayloadForQRCodeOnboardingPayload:onboardingPayload error:error]; + break; + default: + break; + } + return payload; +} + ++ (nullable MTRSetupPayload *)setupPayloadForQRCodeOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error +{ + MTRQRCodeSetupPayloadParser * qrCodeParser = + [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:onboardingPayload]; + return [qrCodeParser populatePayload:error]; +} + ++ (nullable MTRSetupPayload *)setupPayloadForManualCodeOnboardingPayload:(NSString *)onboardingPayload + error:(NSError * __autoreleasing *)error +{ + MTRManualSetupPayloadParser * manualParser = + [[MTRManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:onboardingPayload]; + return [manualParser populatePayload:error]; +} +@end diff --git a/src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.h b/src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.h rename to src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.h index 3912fcff798006..e2af848d743ed8 100644 --- a/src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.h +++ b/src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.h @@ -20,10 +20,10 @@ #import #import -#import "CHIPError_Internal.h" -#import "CHIPKeypair.h" -#import "CHIPP256KeypairBridge.h" -#import "CHIPPersistentStorageDelegateBridge.h" +#import "MTRError_Internal.h" +#import "MTRKeypair.h" +#import "MTRP256KeypairBridge.h" +#import "MTRPersistentStorageDelegateBridge.h" #include #include @@ -32,13 +32,13 @@ NS_ASSUME_NONNULL_BEGIN -class CHIPOperationalCredentialsDelegate : public chip::Controller::OperationalCredentialsDelegate { +class MTROperationalCredentialsDelegate : public chip::Controller::OperationalCredentialsDelegate { public: using ChipP256KeypairPtr = std::unique_ptr; - ~CHIPOperationalCredentialsDelegate() {} + ~MTROperationalCredentialsDelegate() {} - CHIP_ERROR Init(CHIPPersistentStorageDelegateBridge * storage, ChipP256KeypairPtr nocSigner, NSData * ipk, NSData * rootCert, + CHIP_ERROR Init(MTRPersistentStorageDelegateBridge * storage, ChipP256KeypairPtr nocSigner, NSData * ipk, NSData * rootCert, NSData * _Nullable icaCert); CHIP_ERROR GenerateNOCChain(const chip::ByteSpan & csrElements, const chip::ByteSpan & csrNonce, @@ -66,12 +66,12 @@ class CHIPOperationalCredentialsDelegate : public chip::Controller::OperationalC chip::ByteSpan IntermediateCertSpan() const; // Generate a root (self-signed) DER-encoded X.509 certificate for the given - // CHIPKeypair. If issuerId is provided, it is used; otherwise a random one + // MTRKeypair. If issuerId is provided, it is used; otherwise a random one // is generated. If a fabric id is provided it is added to the subject DN // of the certificate. // // The outparam must not be null and is set to nil on errors. - static CHIP_ERROR GenerateRootCertificate(id keypair, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, + static CHIP_ERROR GenerateRootCertificate(id keypair, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, NSData * _Nullable __autoreleasing * _Nonnull rootCert); // Generate an intermediate DER-encoded X.509 certificate for the given root @@ -80,14 +80,14 @@ class CHIPOperationalCredentialsDelegate : public chip::Controller::OperationalC // added to the subject DN of the certificate. // // The outparam must not be null and is set to nil on errors. - static CHIP_ERROR GenerateIntermediateCertificate(id rootKeypair, NSData * rootCertificate, + static CHIP_ERROR GenerateIntermediateCertificate(id rootKeypair, NSData * rootCertificate, SecKeyRef intermediatePublicKey, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, NSData * _Nullable __autoreleasing * _Nonnull intermediateCert); // Generate an operational DER-encoded X.509 certificate for the given // signing certificate and operational public key, using the given fabric // id, node id, and CATs. - static CHIP_ERROR GenerateOperationalCertificate(id signingKeypair, NSData * signingCertificate, + static CHIP_ERROR GenerateOperationalCertificate(id signingKeypair, NSData * signingCertificate, SecKeyRef operationalPublicKey, NSNumber * fabricId, NSNumber * nodeId, NSArray * _Nullable caseAuthenticatedTags, NSData * _Nullable __autoreleasing * _Nonnull operationalCert); @@ -104,7 +104,7 @@ class CHIPOperationalCredentialsDelegate : public chip::Controller::OperationalC static const uint32_t kCertificateValiditySecs = 365 * 24 * 60 * 60; - CHIPPersistentStorageDelegateBridge * mStorage; + MTRPersistentStorageDelegateBridge * mStorage; chip::NodeId mDeviceBeingPaired = chip::kUndefinedNodeId; diff --git a/src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.mm b/src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.mm similarity index 86% rename from src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.mm rename to src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.mm index 2b1327483c1eeb..f8dcd67391362a 100644 --- a/src/darwin/Framework/CHIP/CHIPOperationalCredentialsDelegate.mm +++ b/src/darwin/Framework/CHIP/MTROperationalCredentialsDelegate.mm @@ -17,14 +17,14 @@ #include -#import "CHIPOperationalCredentialsDelegate.h" +#import "MTROperationalCredentialsDelegate.h" #import #include -#import "CHIPLogging.h" #import "MTRCertificates.h" +#import "MTRLogging.h" #import "NSDataSpanConversion.h" #include @@ -40,7 +40,7 @@ using namespace Credentials; using namespace Crypto; -CHIP_ERROR CHIPOperationalCredentialsDelegate::Init(CHIPPersistentStorageDelegateBridge * storage, ChipP256KeypairPtr nocSigner, +CHIP_ERROR MTROperationalCredentialsDelegate::Init(MTRPersistentStorageDelegateBridge * storage, ChipP256KeypairPtr nocSigner, NSData * ipk, NSData * rootCert, NSData * _Nullable icaCert) { if (storage == nil || ipk == nil || rootCert == nil) { @@ -52,7 +52,7 @@ mIssuerKey = std::move(nocSigner); if ([ipk length] != mIPK.Length()) { - CHIP_LOG_ERROR("CHIPOperationalCredentialsDelegate::init provided IPK is wrong size"); + MTR_LOG_ERROR("MTROperationalCredentialsDelegate::init provided IPK is wrong size"); return CHIP_ERROR_INVALID_ARGUMENT; } memcpy(mIPK.Bytes(), [ipk bytes], [ipk length]); @@ -74,7 +74,7 @@ return CHIP_NO_ERROR; } -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateNOC( +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateNOC( NodeId nodeId, FabricId fabricId, const chip::CATValues & cats, const Crypto::P256PublicKey & pubkey, MutableByteSpan & noc) { if (!mIssuerKey) { @@ -85,7 +85,7 @@ *mIssuerKey, (mIntermediateCert != nil) ? mIntermediateCert : mRootCert, nodeId, fabricId, cats, pubkey, noc); } -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateNOC(P256Keypair & signingKeypair, NSData * signingCertificate, NodeId nodeId, +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateNOC(P256Keypair & signingKeypair, NSData * signingCertificate, NodeId nodeId, FabricId fabricId, const CATValues & cats, const P256PublicKey & pubkey, MutableByteSpan & noc) { uint32_t validityStart, validityEnd; @@ -112,7 +112,7 @@ return NewNodeOperationalX509Cert(noc_request, pubkey, signingKeypair, noc); } -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateNOCChain(const chip::ByteSpan & csrElements, const chip::ByteSpan & csrNonce, +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateNOCChain(const chip::ByteSpan & csrElements, const chip::ByteSpan & csrNonce, const chip::ByteSpan & attestationSignature, const chip::ByteSpan & attestationChallenge, const chip::ByteSpan & DAC, const chip::ByteSpan & PAI, chip::Callback::Callback * onCompletion) { @@ -158,9 +158,9 @@ return CHIP_NO_ERROR; } -ByteSpan CHIPOperationalCredentialsDelegate::RootCertSpan() const { return AsByteSpan(mRootCert); } +ByteSpan MTROperationalCredentialsDelegate::RootCertSpan() const { return AsByteSpan(mRootCert); } -ByteSpan CHIPOperationalCredentialsDelegate::IntermediateCertSpan() const +ByteSpan MTROperationalCredentialsDelegate::IntermediateCertSpan() const { if (mIntermediateCert == nil) { return ByteSpan(); @@ -169,7 +169,7 @@ return AsByteSpan(mIntermediateCert); } -bool CHIPOperationalCredentialsDelegate::ToChipEpochTime(uint32_t offset, uint32_t & epoch) +bool MTROperationalCredentialsDelegate::ToChipEpochTime(uint32_t offset, uint32_t & epoch) { NSDate * date = [NSDate dateWithTimeIntervalSinceNow:offset]; unsigned units = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute @@ -197,11 +197,11 @@ uint64_t GetIssuerId(NSNumber * _Nullable providedIssuerId) } } // anonymous namespace -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateRootCertificate(id keypair, NSNumber * _Nullable issuerId, +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateRootCertificate(id keypair, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, NSData * _Nullable __autoreleasing * _Nonnull rootCert) { *rootCert = nil; - CHIPP256KeypairBridge keypairBridge; + MTRP256KeypairBridge keypairBridge; ReturnErrorOnFailure(keypairBridge.Init(keypair)); CHIPP256KeypairNativeBridge nativeKeypair(keypairBridge); @@ -234,8 +234,8 @@ uint64_t GetIssuerId(NSNumber * _Nullable providedIssuerId) return CHIP_NO_ERROR; } -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateIntermediateCertificate(id rootKeypair, - NSData * rootCertificate, SecKeyRef intermediatePublicKey, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateIntermediateCertificate(id rootKeypair, NSData * rootCertificate, + SecKeyRef intermediatePublicKey, NSNumber * _Nullable issuerId, NSNumber * _Nullable fabricId, NSData * _Nullable __autoreleasing * _Nonnull intermediateCert) { *intermediateCert = nil; @@ -245,14 +245,14 @@ uint64_t GetIssuerId(NSNumber * _Nullable providedIssuerId) return CHIP_ERROR_INVALID_ARGUMENT; } - CHIPP256KeypairBridge keypairBridge; + MTRP256KeypairBridge keypairBridge; ReturnErrorOnFailure(keypairBridge.Init(rootKeypair)); CHIPP256KeypairNativeBridge nativeRootKeypair(keypairBridge); ByteSpan rcac = AsByteSpan(rootCertificate); P256PublicKey pubKey; - ReturnErrorOnFailure(CHIPP256KeypairBridge::MatterPubKeyFromSecKeyRef(intermediatePublicKey, &pubKey)); + ReturnErrorOnFailure(MTRP256KeypairBridge::MatterPubKeyFromSecKeyRef(intermediatePublicKey, &pubKey)); ChipDN rcac_dn; ReturnErrorOnFailure(ExtractSubjectDNFromX509Cert(rcac, rcac_dn)); @@ -285,7 +285,7 @@ uint64_t GetIssuerId(NSNumber * _Nullable providedIssuerId) return CHIP_NO_ERROR; } -CHIP_ERROR CHIPOperationalCredentialsDelegate::GenerateOperationalCertificate(id signingKeypair, +CHIP_ERROR MTROperationalCredentialsDelegate::GenerateOperationalCertificate(id signingKeypair, NSData * signingCertificate, SecKeyRef operationalPublicKey, NSNumber * fabricId, NSNumber * nodeId, NSArray * _Nullable caseAuthenticatedTags, NSData * _Nullable __autoreleasing * _Nonnull operationalCert) { @@ -306,12 +306,12 @@ uint64_t GetIssuerId(NSNumber * _Nullable providedIssuerId) NodeId node = [nodeId unsignedLongLongValue]; VerifyOrReturnError(IsOperationalNodeId(node), CHIP_ERROR_INVALID_ARGUMENT); - CHIPP256KeypairBridge keypairBridge; + MTRP256KeypairBridge keypairBridge; ReturnErrorOnFailure(keypairBridge.Init(signingKeypair)); CHIPP256KeypairNativeBridge nativeSigningKeypair(keypairBridge); P256PublicKey pubKey; - ReturnErrorOnFailure(CHIPP256KeypairBridge::MatterPubKeyFromSecKeyRef(operationalPublicKey, &pubKey)); + ReturnErrorOnFailure(MTRP256KeypairBridge::MatterPubKeyFromSecKeyRef(operationalPublicKey, &pubKey)); CATValues cats; if (caseAuthenticatedTags != nil) { diff --git a/src/darwin/Framework/CHIP/CHIPP256KeypairBridge.h b/src/darwin/Framework/CHIP/MTRP256KeypairBridge.h similarity index 88% rename from src/darwin/Framework/CHIP/CHIPP256KeypairBridge.h rename to src/darwin/Framework/CHIP/MTRP256KeypairBridge.h index 612a4338d7619e..2c3756738318c3 100644 --- a/src/darwin/Framework/CHIP/CHIPP256KeypairBridge.h +++ b/src/darwin/Framework/CHIP/MTRP256KeypairBridge.h @@ -15,19 +15,19 @@ * limitations under the License. */ -#import "CHIPKeypair.h" +#import "MTRKeypair.h" -#import "CHIPError_Internal.h" +#import "MTRError_Internal.h" #include NS_ASSUME_NONNULL_BEGIN -class CHIPP256KeypairBridge : public chip::Crypto::P256KeypairBase +class MTRP256KeypairBridge : public chip::Crypto::P256KeypairBase { public: - ~CHIPP256KeypairBridge(){}; + ~MTRP256KeypairBridge(){}; - CHIP_ERROR Init(id keypair); + CHIP_ERROR Init(id keypair); bool HasKeypair() const { return mKeypair != nil; }; @@ -51,7 +51,7 @@ class CHIPP256KeypairBridge : public chip::Crypto::P256KeypairBase static CHIP_ERROR MatterPubKeyFromSecKeyRef(SecKeyRef pubkeyRef, chip::Crypto::P256PublicKey * matterPubKey); private: - id _Nullable mKeypair; + id _Nullable mKeypair; chip::Crypto::P256PublicKey mPubkey; CHIP_ERROR setPubkey(); diff --git a/src/darwin/Framework/CHIP/CHIPP256KeypairBridge.mm b/src/darwin/Framework/CHIP/MTRP256KeypairBridge.mm similarity index 61% rename from src/darwin/Framework/CHIP/CHIPP256KeypairBridge.mm rename to src/darwin/Framework/CHIP/MTRP256KeypairBridge.mm index dbee9ddd9b76a3..a48c2bccc736f7 100644 --- a/src/darwin/Framework/CHIP/CHIPP256KeypairBridge.mm +++ b/src/darwin/Framework/CHIP/MTRP256KeypairBridge.mm @@ -15,22 +15,22 @@ * limitations under the License. */ -#import "CHIPP256KeypairBridge.h" +#import "MTRP256KeypairBridge.h" #import "NSDataSpanConversion.h" #import #include -#import "CHIPKeypair.h" -#import "CHIPLogging.h" +#import "MTRKeypair.h" +#import "MTRLogging.h" using namespace chip::Crypto; -CHIP_ERROR CHIPP256KeypairBridge::Init(id keypair) +CHIP_ERROR MTRP256KeypairBridge::Init(id keypair) { - if (![keypair respondsToSelector:@selector(ECDSA_sign_message_DER:)] - && ![keypair respondsToSelector:@selector(ECDSA_sign_message_raw:)]) { - // Not a valid CHIPKeypair implementation. + if (![keypair respondsToSelector:@selector(signMessageECDSA_DER:)] + && ![keypair respondsToSelector:@selector(signMessageECDSA_RAW:)]) { + // Not a valid MTRKeypair implementation. NSLog(@"Keypair does not support message signing"); return CHIP_ERROR_INVALID_ARGUMENT; } @@ -39,7 +39,7 @@ return setPubkey(); } -CHIP_ERROR CHIPP256KeypairBridge::Initialize() +CHIP_ERROR MTRP256KeypairBridge::Initialize() { if (!HasKeypair()) { return CHIP_ERROR_INCORRECT_STATE; @@ -49,7 +49,7 @@ return CHIP_NO_ERROR; } -CHIP_ERROR CHIPP256KeypairBridge::Serialize(P256SerializedKeypair & output) const +CHIP_ERROR MTRP256KeypairBridge::Serialize(P256SerializedKeypair & output) const { if (!HasKeypair()) { return CHIP_ERROR_INCORRECT_STATE; @@ -58,7 +58,7 @@ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } -CHIP_ERROR CHIPP256KeypairBridge::Deserialize(P256SerializedKeypair & input) +CHIP_ERROR MTRP256KeypairBridge::Deserialize(P256SerializedKeypair & input) { if (!HasKeypair()) { return CHIP_ERROR_INCORRECT_STATE; @@ -67,7 +67,7 @@ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } -CHIP_ERROR CHIPP256KeypairBridge::NewCertificateSigningRequest(uint8_t * csr, size_t & csr_length) const +CHIP_ERROR MTRP256KeypairBridge::NewCertificateSigningRequest(uint8_t * csr, size_t & csr_length) const { if (!HasKeypair()) { return CHIP_ERROR_INCORRECT_STATE; @@ -76,18 +76,18 @@ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } -CHIP_ERROR CHIPP256KeypairBridge::ECDSA_sign_msg(const uint8_t * msg, size_t msg_length, P256ECDSASignature & out_signature) const +CHIP_ERROR MTRP256KeypairBridge::ECDSA_sign_msg(const uint8_t * msg, size_t msg_length, P256ECDSASignature & out_signature) const { if (!HasKeypair()) { - CHIP_LOG_ERROR("ECDSA sign msg failure: no keypair to sign with."); + MTR_LOG_ERROR("ECDSA sign msg failure: no keypair to sign with."); return CHIP_ERROR_INCORRECT_STATE; } NSData * msgData = [NSData dataWithBytes:msg length:msg_length]; NSData * signature; - if ([mKeypair respondsToSelector:@selector(ECDSA_sign_message_DER:)]) { - signature = [mKeypair ECDSA_sign_message_DER:msgData]; + if ([mKeypair respondsToSelector:@selector(signMessageECDSA_DER:)]) { + signature = [mKeypair signMessageECDSA_DER:msgData]; if (!signature) { - CHIP_LOG_ERROR("ECDSA sign msg failure: no signature returned"); + MTR_LOG_ERROR("ECDSA sign msg failure: no signature returned"); return CHIP_ERROR_INTERNAL; } @@ -96,24 +96,24 @@ CHIP_ERROR err = EcdsaAsn1SignatureToRaw(kP256_FE_Length, AsByteSpan(signature), rawSignature); if (err != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Converting ASN.1 DER signature to raw form failed: %s", chip::ErrorStr(err)); + MTR_LOG_ERROR("Converting ASN.1 DER signature to raw form failed: %s", chip::ErrorStr(err)); return err; } signature = AsData(rawSignature); if (!signature) { - CHIP_LOG_ERROR("Failed to create NSData for raw signature"); + MTR_LOG_ERROR("Failed to create NSData for raw signature"); return CHIP_ERROR_INTERNAL; } } else { - signature = [mKeypair ECDSA_sign_message_raw:msgData]; + signature = [mKeypair signMessageECDSA_RAW:msgData]; if (!signature) { - CHIP_LOG_ERROR("ECDSA sign msg failure: no signature returned"); + MTR_LOG_ERROR("ECDSA sign msg failure: no signature returned"); return CHIP_ERROR_INTERNAL; } } if (signature.length > out_signature.Capacity()) { - CHIP_LOG_ERROR("ECDSA sign msg failure: unexpected signature size %llu vs %llu", static_cast(signature.length), + MTR_LOG_ERROR("ECDSA sign msg failure: unexpected signature size %llu vs %llu", static_cast(signature.length), static_cast(out_signature.Capacity())); return CHIP_ERROR_NO_MEMORY; } @@ -122,7 +122,7 @@ return CHIP_NO_ERROR; } -CHIP_ERROR CHIPP256KeypairBridge::ECDH_derive_secret( +CHIP_ERROR MTRP256KeypairBridge::ECDH_derive_secret( const P256PublicKey & remote_public_key, P256ECDHDerivedSecret & out_secret) const { if (!HasKeypair()) { @@ -132,22 +132,22 @@ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } -CHIP_ERROR CHIPP256KeypairBridge::setPubkey() { return MatterPubKeyFromSecKeyRef([mKeypair pubkey], &mPubkey); } +CHIP_ERROR MTRP256KeypairBridge::setPubkey() { return MatterPubKeyFromSecKeyRef([mKeypair publicKey], &mPubkey); } -CHIP_ERROR CHIPP256KeypairBridge::MatterPubKeyFromSecKeyRef(SecKeyRef pubkeyRef, P256PublicKey * matterPubKey) +CHIP_ERROR MTRP256KeypairBridge::MatterPubKeyFromSecKeyRef(SecKeyRef pubkeyRef, P256PublicKey * matterPubKey) { if (!pubkeyRef) { - CHIP_LOG_ERROR("Unable to initialize Pubkey"); + MTR_LOG_ERROR("Unable to initialize Pubkey"); return CHIP_ERROR_INTERNAL; } NSData * pubkeyData = (__bridge_transfer NSData *) SecKeyCopyExternalRepresentation(pubkeyRef, nil); if (!pubkeyData) { - CHIP_LOG_ERROR("Unable to copy external representation for pubkey ref, cannot initialize pubkey"); + MTR_LOG_ERROR("Unable to copy external representation for publicKey ref, cannot initialize publicKey"); return CHIP_ERROR_INTERNAL; } if (pubkeyData.length != kP256_PublicKey_Length) { - CHIP_LOG_ERROR("Unexpected pubkey length, cannot initialize pubkey"); + MTR_LOG_ERROR("Unexpected publicKey length, cannot initialize publicKey"); return CHIP_ERROR_INTERNAL; } chip::FixedByteSpan pubkeyBytes((const uint8_t *) pubkeyData.bytes); diff --git a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegate.h b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h similarity index 96% rename from src/darwin/Framework/CHIP/CHIPPersistentStorageDelegate.h rename to src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h index 2596563214ec73..248df57d67b60d 100644 --- a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegate.h +++ b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegate.h @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN * * All delegate methods will be called on the supplied Delegate Queue. */ -@protocol CHIPPersistentStorageDelegate +@protocol MTRPersistentStorageDelegate @required /** diff --git a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.h b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.h similarity index 75% rename from src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.h rename to src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.h index a497500129ce24..dfa210c74e31ae 100644 --- a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.h +++ b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.h @@ -15,18 +15,18 @@ * limitations under the License. */ -#import "CHIPPersistentStorageDelegate.h" +#import "MTRPersistentStorageDelegate.h" -#import "CHIPError_Internal.h" +#import "MTRError_Internal.h" #include NS_ASSUME_NONNULL_BEGIN -class CHIPPersistentStorageDelegateBridge : public chip::PersistentStorageDelegate +class MTRPersistentStorageDelegateBridge : public chip::PersistentStorageDelegate { public: - CHIPPersistentStorageDelegateBridge(id delegate); - ~CHIPPersistentStorageDelegateBridge(); + MTRPersistentStorageDelegateBridge(id delegate); + ~MTRPersistentStorageDelegateBridge(); CHIP_ERROR SyncGetKeyValue(const char * key, void * buffer, uint16_t & size) override; @@ -35,7 +35,7 @@ class CHIPPersistentStorageDelegateBridge : public chip::PersistentStorageDelega CHIP_ERROR SyncDeleteKeyValue(const char * key) override; private: - id mDelegate; + id mDelegate; dispatch_queue_t mWorkQueue; }; diff --git a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.mm similarity index 83% rename from src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm rename to src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.mm index 5fc7f200a1f3f4..cf74e08ab028df 100644 --- a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm +++ b/src/darwin/Framework/CHIP/MTRPersistentStorageDelegateBridge.mm @@ -15,17 +15,17 @@ * limitations under the License. */ -#import "CHIPPersistentStorageDelegateBridge.h" +#import "MTRPersistentStorageDelegateBridge.h" -CHIPPersistentStorageDelegateBridge::CHIPPersistentStorageDelegateBridge(id delegate) +MTRPersistentStorageDelegateBridge::MTRPersistentStorageDelegateBridge(id delegate) : mDelegate(delegate) , mWorkQueue(dispatch_queue_create("com.csa.matter.framework.storage.workqueue", DISPATCH_QUEUE_SERIAL)) { } -CHIPPersistentStorageDelegateBridge::~CHIPPersistentStorageDelegateBridge(void) {} +MTRPersistentStorageDelegateBridge::~MTRPersistentStorageDelegateBridge(void) {} -CHIP_ERROR CHIPPersistentStorageDelegateBridge::SyncGetKeyValue(const char * key, void * buffer, uint16_t & size) +CHIP_ERROR MTRPersistentStorageDelegateBridge::SyncGetKeyValue(const char * key, void * buffer, uint16_t & size) { if (buffer == nullptr && size != 0) { return CHIP_ERROR_INVALID_ARGUMENT; @@ -65,7 +65,7 @@ return error; } -CHIP_ERROR CHIPPersistentStorageDelegateBridge::SyncSetKeyValue(const char * key, const void * value, uint16_t size) +CHIP_ERROR MTRPersistentStorageDelegateBridge::SyncSetKeyValue(const char * key, const void * value, uint16_t size) { if (value == nullptr && size != 0) { return CHIP_ERROR_INVALID_ARGUMENT; @@ -86,7 +86,7 @@ return error; } -CHIP_ERROR CHIPPersistentStorageDelegateBridge::SyncDeleteKeyValue(const char * key) +CHIP_ERROR MTRPersistentStorageDelegateBridge::SyncDeleteKeyValue(const char * key) { NSString * keyString = [NSString stringWithUTF8String:key]; diff --git a/src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.h b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h similarity index 83% rename from src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.h rename to src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h index f135e31cc267f6..ab0e6f63017496 100644 --- a/src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.h +++ b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.h @@ -17,13 +17,13 @@ #import -@class CHIPSetupPayload; +@class MTRSetupPayload; NS_ASSUME_NONNULL_BEGIN -@interface CHIPQRCodeSetupPayloadParser : NSObject +@interface MTRQRCodeSetupPayloadParser : NSObject - (instancetype)initWithBase38Representation:(NSString *)base38Representation; -- (nullable CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; +- (nullable MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error; @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.mm b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.mm similarity index 76% rename from src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.mm rename to src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.mm index 6df71fb8725bbe..8d0354c0cef147 100644 --- a/src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.mm +++ b/src/darwin/Framework/CHIP/MTRQRCodeSetupPayloadParser.mm @@ -15,16 +15,16 @@ * limitations under the License. */ -#import "CHIPQRCodeSetupPayloadParser.h" -#import "CHIPError_Internal.h" -#import "CHIPLogging.h" -#import "CHIPSetupPayload_Internal.h" +#import "MTRQRCodeSetupPayloadParser.h" +#import "MTRError_Internal.h" +#import "MTRLogging.h" #import "MTRMemory.h" +#import "MTRSetupPayload_Internal.h" #import #import -@implementation CHIPQRCodeSetupPayloadParser { +@implementation MTRQRCodeSetupPayloadParser { NSString * _base38Representation; chip::QRCodeSetupPayloadParser * _chipQRCodeSetupPayloadParser; } @@ -39,23 +39,23 @@ - (id)initWithBase38Representation:(NSString *)base38Representation return self; } -- (CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error +- (MTRSetupPayload *)populatePayload:(NSError * __autoreleasing *)error { chip::SetupPayload cPlusPluspayload; - CHIPSetupPayload * payload; + MTRSetupPayload * payload; if (_chipQRCodeSetupPayloadParser) { CHIP_ERROR chipError = _chipQRCodeSetupPayloadParser->populatePayload(cPlusPluspayload); if (chipError == CHIP_NO_ERROR) { - payload = [[CHIPSetupPayload alloc] initWithSetupPayload:cPlusPluspayload]; + payload = [[MTRSetupPayload alloc] initWithSetupPayload:cPlusPluspayload]; } else if (error) { - *error = [CHIPError errorForCHIPErrorCode:chipError]; + *error = [MTRError errorForCHIPErrorCode:chipError]; } } else { // Memory init has failed if (error) { - *error = [CHIPError errorForCHIPErrorCode:CHIP_ERROR_NO_MEMORY]; + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_NO_MEMORY]; } } diff --git a/src/darwin/Framework/CHIP/MTRSetupPayload.h b/src/darwin/Framework/CHIP/MTRSetupPayload.h new file mode 100644 index 00000000000000..8b93980e57be41 --- /dev/null +++ b/src/darwin/Framework/CHIP/MTRSetupPayload.h @@ -0,0 +1,67 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, MTRRendezvousInformationFlags) { + MTRRendezvousInformationNone = 0, // Device does not support any method for rendezvous + MTRRendezvousInformationSoftAP = 1 << 0, // Device supports WiFi softAP + MTRRendezvousInformationBLE = 1 << 1, // Device supports BLE + MTRRendezvousInformationOnNetwork = 1 << 2, // Device supports On Network setup + + MTRRendezvousInformationAllMask + = MTRRendezvousInformationSoftAP | MTRRendezvousInformationBLE | MTRRendezvousInformationOnNetwork, +}; + +typedef NS_ENUM(NSUInteger, MTRCommissioningFlow) { + MTRCommissioningFlowStandard = 0, // Device automatically enters pairing mode upon power-up + MTRCommissioningFlowUserActionRequired = 1, // Device requires a user interaction to enter pairing mode + MTRCommissioningFlowCustom = 2, // Commissioning steps should be retrieved from the distributed compliance ledger + MTRCommissioningFlowInvalid = 3, +}; + +typedef NS_ENUM(NSUInteger, MTROptionalQRCodeInfoType) { + MTROptionalQRCodeInfoTypeUnknown, + MTROptionalQRCodeInfoTypeString, + MTROptionalQRCodeInfoTypeInt32 +}; + +@interface MTROptionalQRCodeInfo : NSObject +@property (nonatomic, strong) NSNumber * infoType; +@property (nonatomic, strong) NSNumber * tag; +@property (nonatomic, strong) NSNumber * integerValue; +@property (nonatomic, strong) NSString * stringValue; +@end + +@interface MTRSetupPayload : NSObject + +@property (nonatomic, strong) NSNumber * version; +@property (nonatomic, strong) NSNumber * vendorID; +@property (nonatomic, strong) NSNumber * productID; +@property (nonatomic, assign) MTRCommissioningFlow commissioningFlow; +@property (nonatomic, assign) MTRRendezvousInformationFlags rendezvousInformation; +@property (nonatomic, strong) NSNumber * discriminator; +@property (nonatomic, strong) NSNumber * setUpPINCode; + +@property (nonatomic, strong) NSString * serialNumber; +- (nullable NSArray *)getAllOptionalVendorData:(NSError * __autoreleasing *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIP/CHIPSetupPayload.mm b/src/darwin/Framework/CHIP/MTRSetupPayload.mm similarity index 70% rename from src/darwin/Framework/CHIP/CHIPSetupPayload.mm rename to src/darwin/Framework/CHIP/MTRSetupPayload.mm index ae229d6c2730bd..c95c903b8d65b5 100644 --- a/src/darwin/Framework/CHIP/CHIPSetupPayload.mm +++ b/src/darwin/Framework/CHIP/MTRSetupPayload.mm @@ -15,44 +15,44 @@ * limitations under the License. */ -#import "CHIPError.h" -#import "CHIPError_Internal.h" -#import "CHIPSetupPayload_Internal.h" +#import "MTRError.h" +#import "MTRError_Internal.h" +#import "MTRSetupPayload_Internal.h" #import -@implementation CHIPOptionalQRCodeInfo +@implementation MTROptionalQRCodeInfo @end -@implementation CHIPSetupPayload { +@implementation MTRSetupPayload { chip::SetupPayload _chipSetupPayload; } -- (CHIPRendezvousInformationFlags)convertRendezvousFlags:(chip::RendezvousInformationFlags)value +- (MTRRendezvousInformationFlags)convertRendezvousFlags:(chip::RendezvousInformationFlags)value { if (value.Has(chip::RendezvousInformationFlag::kBLE)) { - return kRendezvousInformationBLE; + return MTRRendezvousInformationBLE; } if (value.Has(chip::RendezvousInformationFlag::kSoftAP)) { - return kRendezvousInformationSoftAP; + return MTRRendezvousInformationSoftAP; } if (value.Has(chip::RendezvousInformationFlag::kOnNetwork)) { - return kRendezvousInformationOnNetwork; + return MTRRendezvousInformationOnNetwork; } - return kRendezvousInformationNone; + return MTRRendezvousInformationNone; } -- (CHIPCommissioningFlow)convertCommissioningFlow:(chip::CommissioningFlow)value +- (MTRCommissioningFlow)convertCommissioningFlow:(chip::CommissioningFlow)value { if (value == chip::CommissioningFlow::kStandard) { - return kCommissioningFlowStandard; + return MTRCommissioningFlowStandard; } if (value == chip::CommissioningFlow::kUserActionRequired) { - return kCommissioningFlowUserActionRequired; + return MTRCommissioningFlowUserActionRequired; } if (value == chip::CommissioningFlow::kCustom) { - return kCommissioningFlowCustom; + return MTRCommissioningFlowCustom; } - return kCommissioningFlowInvalid; + return MTRCommissioningFlowInvalid; } - (id)initWithSetupPayload:(chip::SetupPayload)setupPayload @@ -81,25 +81,25 @@ - (void)getSerialNumber:(chip::SetupPayload)setupPayload } } -- (NSArray *)getAllOptionalVendorData:(NSError * __autoreleasing *)error +- (NSArray *)getAllOptionalVendorData:(NSError * __autoreleasing *)error { - NSMutableArray * allOptionalData = [NSMutableArray new]; + NSMutableArray * allOptionalData = [NSMutableArray new]; std::vector chipOptionalData = _chipSetupPayload.getAllOptionalVendorData(); for (chip::OptionalQRCodeInfo chipInfo : chipOptionalData) { - CHIPOptionalQRCodeInfo * info = [CHIPOptionalQRCodeInfo new]; + MTROptionalQRCodeInfo * info = [MTROptionalQRCodeInfo new]; info.tag = [NSNumber numberWithUnsignedChar:chipInfo.tag]; switch (chipInfo.type) { case chip::optionalQRCodeInfoTypeString: - info.infoType = [NSNumber numberWithInt:kOptionalQRCodeInfoTypeString]; + info.infoType = [NSNumber numberWithInt:MTROptionalQRCodeInfoTypeString]; info.stringValue = [NSString stringWithUTF8String:chipInfo.data.c_str()]; break; case chip::optionalQRCodeInfoTypeInt32: - info.infoType = [NSNumber numberWithInt:kOptionalQRCodeInfoTypeInt32]; + info.infoType = [NSNumber numberWithInt:MTROptionalQRCodeInfoTypeInt32]; info.integerValue = [NSNumber numberWithInt:chipInfo.int32]; break; default: if (error) { - *error = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeInvalidArgument userInfo:nil]; + *error = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeInvalidArgument userInfo:nil]; } return @[]; } diff --git a/src/darwin/Framework/CHIP/MTRSetupPayload_Internal.h b/src/darwin/Framework/CHIP/MTRSetupPayload_Internal.h new file mode 100644 index 00000000000000..f972fda944e6f0 --- /dev/null +++ b/src/darwin/Framework/CHIP/MTRSetupPayload_Internal.h @@ -0,0 +1,24 @@ +// +// MTRSetupPayload_Internal.h +// MTR +// +// Copyright © 2021 CHIP. All rights reserved. +// + +#import + +#import "MTRSetupPayload.h" + +#ifdef __cplusplus +#import +#endif + +@interface MTRSetupPayload () + +#ifdef __cplusplus +- (id)initWithSetupPayload:(chip::SetupPayload)setupPayload; +- (MTRRendezvousInformationFlags)convertRendezvousFlags:(chip::RendezvousInformationFlags)value; +- (MTRCommissioningFlow)convertCommissioningFlow:(chip::CommissioningFlow)value; +#endif + +@end diff --git a/src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.h b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h similarity index 91% rename from src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.h rename to src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h index a3e5de59cadcf4..17d42ff6cc5813 100644 --- a/src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.h +++ b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.h @@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface CHIPThreadOperationalDataset : NSObject +@interface MTRThreadOperationalDataset : NSObject /** * The expected lengths of each of the NSData fields in the CHIPThreadOperationalDataset @@ -27,10 +27,10 @@ NS_ASSUME_NONNULL_BEGIN * initWithNetworkName must be provided NSData fields with at least these lengths otherwise * the object will fail to init. */ -extern size_t const CHIPSizeThreadNetworkName; -extern size_t const CHIPSizeThreadExtendedPanId; -extern size_t const CHIPSizeThreadMasterKey; -extern size_t const CHIPSizeThreadPSKc; +extern size_t const MTRSizeThreadNetworkName; +extern size_t const MTRSizeThreadExtendedPanId; +extern size_t const MTRSizeThreadMasterKey; +extern size_t const MTRSizeThreadPSKc; /** * The Thread Network name @@ -82,7 +82,7 @@ extern size_t const CHIPSizeThreadPSKc; /** * Get the underlying data that represents the Thread Active Operational Dataset */ -- (NSData *)asData; +- (NSData *)data; @end diff --git a/src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.mm b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm similarity index 79% rename from src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.mm rename to src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm index 548907d7a8923d..945551724ca798 100644 --- a/src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.mm +++ b/src/darwin/Framework/CHIP/MTRThreadOperationalDataset.mm @@ -15,24 +15,24 @@ * limitations under the License. */ -#import "CHIPThreadOperationalDataset.h" +#import "MTRThreadOperationalDataset.h" -#include "CHIPLogging.h" +#include "MTRLogging.h" #include #include -size_t const CHIPSizeThreadNetworkName = chip::Thread::kSizeNetworkName; -size_t const CHIPSizeThreadExtendedPanId = chip::Thread::kSizeExtendedPanId; -size_t const CHIPSizeThreadMasterKey = chip::Thread::kSizeMasterKey; -size_t const CHIPSizeThreadPSKc = chip::Thread::kSizePSKc; +size_t const MTRSizeThreadNetworkName = chip::Thread::kSizeNetworkName; +size_t const MTRSizeThreadExtendedPanId = chip::Thread::kSizeExtendedPanId; +size_t const MTRSizeThreadMasterKey = chip::Thread::kSizeMasterKey; +size_t const MTRSizeThreadPSKc = chip::Thread::kSizePSKc; -@interface CHIPThreadOperationalDataset () +@interface MTRThreadOperationalDataset () @property (readonly) chip::Thread::OperationalDataset cppThreadOperationalDataset; @end -@implementation CHIPThreadOperationalDataset +@implementation MTRThreadOperationalDataset - (nullable instancetype)initWithNetworkName:(NSString *)networkName extendedPANID:(NSData *)extendedPANID @@ -62,7 +62,7 @@ - (BOOL)_populateCppOperationalDataset _cppThreadOperationalDataset.SetNetworkName([self.networkName cStringUsingEncoding:NSUTF8StringEncoding]); if (![self _checkDataLength:self.extendedPANID expectedLength:chip::Thread::kSizeExtendedPanId]) { - CHIP_LOG_ERROR("Invalid ExtendedPANID"); + MTR_LOG_ERROR("Invalid ExtendedPANID"); return NO; } uint8_t extendedPanId[chip::Thread::kSizeExtendedPanId]; @@ -70,7 +70,7 @@ - (BOOL)_populateCppOperationalDataset _cppThreadOperationalDataset.SetExtendedPanId(extendedPanId); if (![self _checkDataLength:self.masterKey expectedLength:chip::Thread::kSizeMasterKey]) { - CHIP_LOG_ERROR("Invalid MasterKey"); + MTR_LOG_ERROR("Invalid MasterKey"); return NO; } uint8_t masterKey[chip::Thread::kSizeMasterKey]; @@ -78,7 +78,7 @@ - (BOOL)_populateCppOperationalDataset _cppThreadOperationalDataset.SetMasterKey(masterKey); if (![self _checkDataLength:self.PSKc expectedLength:chip::Thread::kSizePSKc]) { - CHIP_LOG_ERROR("Invalid PKSc"); + MTR_LOG_ERROR("Invalid PKSc"); return NO; } uint8_t PSKc[chip::Thread::kSizePSKc]; @@ -89,7 +89,7 @@ - (BOOL)_populateCppOperationalDataset // Thread's PAN ID is 2 bytes if (![self _checkDataLength:self.panID expectedLength:2]) { - CHIP_LOG_ERROR("Invalid PAN ID"); + MTR_LOG_ERROR("Invalid PAN ID"); return NO; } uint16_t * valuePtr = (uint16_t *) [self.panID bytes]; @@ -105,7 +105,7 @@ - (BOOL)_populateCppOperationalDataset - (BOOL)_checkDataLength:(NSData *)data expectedLength:(size_t)expectedLength { if (data.length != expectedLength) { - CHIP_LOG_ERROR("Length Check Failed. Length:%tu is incorrect, must be %tu", data.length, expectedLength); + MTR_LOG_ERROR("Length Check Failed. Length:%tu is incorrect, must be %tu", data.length, expectedLength); return NO; } return YES; @@ -117,14 +117,14 @@ - (nullable instancetype)initWithData:(NSData *)data auto dataset = chip::Thread::OperationalDataset(); CHIP_ERROR error = dataset.Init(span); if (error != CHIP_NO_ERROR) { - CHIP_LOG_ERROR("Failed to parse data, cannot construct Operational Dataset. %s", chip::ErrorStr(error)); + MTR_LOG_ERROR("Failed to parse data, cannot construct Operational Dataset. %s", chip::ErrorStr(error)); return nil; } // len+1 for null termination - char networkName[CHIPSizeThreadNetworkName + 1]; - uint8_t pskc[CHIPSizeThreadPSKc]; - uint8_t extendedPANID[CHIPSizeThreadExtendedPanId]; - uint8_t masterKey[CHIPSizeThreadMasterKey]; + char networkName[MTRSizeThreadNetworkName + 1]; + uint8_t pskc[MTRSizeThreadPSKc]; + uint8_t extendedPANID[MTRSizeThreadExtendedPanId]; + uint8_t masterKey[MTRSizeThreadMasterKey]; uint16_t panID; uint16_t channel; dataset.GetNetworkName(networkName); @@ -136,14 +136,14 @@ - (nullable instancetype)initWithData:(NSData *)data panID = CFSwapInt16BigToHost(panID); return [self initWithNetworkName:[NSString stringWithUTF8String:networkName] - extendedPANID:[NSData dataWithBytes:extendedPANID length:CHIPSizeThreadExtendedPanId] - masterKey:[NSData dataWithBytes:masterKey length:CHIPSizeThreadMasterKey] - PSKc:[NSData dataWithBytes:pskc length:CHIPSizeThreadPSKc] + extendedPANID:[NSData dataWithBytes:extendedPANID length:MTRSizeThreadExtendedPanId] + masterKey:[NSData dataWithBytes:masterKey length:MTRSizeThreadMasterKey] + PSKc:[NSData dataWithBytes:pskc length:MTRSizeThreadPSKc] channel:channel panID:[NSData dataWithBytes:&panID length:sizeof(uint16_t)]]; } -- (NSData *)asData +- (NSData *)data { chip::ByteSpan span = _cppThreadOperationalDataset.AsByteSpan(); return [NSData dataWithBytes:span.data() length:span.size()]; diff --git a/src/darwin/Framework/CHIP/Matter.h b/src/darwin/Framework/CHIP/Matter.h new file mode 100644 index 00000000000000..76ee38e643596e --- /dev/null +++ b/src/darwin/Framework/CHIP/Matter.h @@ -0,0 +1,41 @@ +/** + * + * Copyright (c) 2020 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/src/darwin/Framework/CHIP/MatterClusterConstants.h b/src/darwin/Framework/CHIP/MatterClusterConstants.h deleted file mode 120000 index 8d651ddec82b0e..00000000000000 --- a/src/darwin/Framework/CHIP/MatterClusterConstants.h +++ /dev/null @@ -1 +0,0 @@ -zap-generated/MatterClusterConstants.h \ No newline at end of file diff --git a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge-src.zapt b/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge-src.zapt deleted file mode 100644 index fdf3d8243a6998..00000000000000 --- a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge-src.zapt +++ /dev/null @@ -1,66 +0,0 @@ -{{> header}} - -#import "CHIPCallbackBridge_internal.h" -#import "CHIPStructsObjc.h" -#import "CHIPCommandPayloadsObjc.h" - -#include - -{{#>CHIPCallbackBridge partial-type="Status" }}DefaultSuccessCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge partial-type="CommandStatus" }}CommandSuccessCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Octet_String" isNullable=false ns="chip"}}OctetStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Octet_String" isNullable=true ns="chip"}}NullableOctetStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Char_String" isNullable=false ns="chip"}}CharStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Char_String" isNullable=true ns="chip"}}NullableCharStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Boolean" isNullable=false ns="chip"}}BooleanAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Boolean" isNullable=true ns="chip"}}NullableBooleanAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int8u" isNullable=false ns="chip"}}Int8uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int8u" isNullable=true ns="chip"}}NullableInt8uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int8s" isNullable=false ns="chip"}}Int8sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int8s" isNullable=true ns="chip"}}NullableInt8sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int16u" isNullable=false ns="chip"}}Int16uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int16u" isNullable=true ns="chip"}}NullableInt16uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int16s" isNullable=false ns="chip"}}Int16sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int16s" isNullable=true ns="chip"}}NullableInt16sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int32u" isNullable=false ns="chip"}}Int32uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int32u" isNullable=true ns="chip"}}NullableInt32uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int32s" isNullable=false ns="chip"}}Int32sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int32s" isNullable=true ns="chip"}}NullableInt32sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int64u" isNullable=false ns="chip"}}Int64uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int64u" isNullable=true ns="chip"}}NullableInt64uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int64s" isNullable=false ns="chip"}}Int64sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Int64s" isNullable=true ns="chip"}}NullableInt64sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Single" isNullable=false ns="chip"}}FloatAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Single" isNullable=true ns="chip"}}NullableFloatAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Double" isNullable=false ns="chip"}}DoubleAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="Double" isNullable=true ns="chip"}}NullableDoubleAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="vendor_id" isNullable=false ns="chip"}}VendorIdAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type="vendor_id" isNullable=true ns="chip"}}NullableVendorIdAttributeCallback{{/CHIPCallbackBridge}} - -{{#chip_client_clusters includeAll=true}} -{{#chip_server_cluster_attributes}} -{{#if isArray}} -{{#>CHIPCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}ListAttributeCallback{{/CHIPCallbackBridge}} -{{else}} - {{#if_is_struct type}} - {{#>CHIPCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}StructAttributeCallback{{/CHIPCallbackBridge}} - {{/if_is_struct}} - {{#if_is_strongly_typed_bitmap type}} - {{#>CHIPCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}AttributeCallback{{/CHIPCallbackBridge}} - {{/if_is_strongly_typed_bitmap}} -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - -{{#chip_client_clusters includeAll=true}} -{{#chip_cluster_responses}} -{{#>CHIPCallbackBridge partial-type="Command" }}{{asUpperCamelCase ../../name}}Cluster{{asUpperCamelCase ../name}}Callback{{/CHIPCallbackBridge}} -{{/chip_cluster_responses}} -{{/chip_client_clusters}} - -{{#zcl_clusters}} -{{#zcl_enums}} -{{#>CHIPCallbackBridge type=(asType label) isNullable=false ns=parent.name}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge type=(asType label) isNullable=true ns=parent.name}}Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/CHIPCallbackBridge}} -{{/zcl_enums}} -{{/zcl_clusters}} diff --git a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt b/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt deleted file mode 100644 index 494a5b938a0c66..00000000000000 --- a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt +++ /dev/null @@ -1,102 +0,0 @@ -{{> header}} - -#import -#import "CHIPCallbackBridgeBase_internal.h" - -#include -#include -#include - -typedef void (*CommandSuccessCallback)(void *, const chip::app::DataModel::NullObjectType &); -using CHIPCommandSuccessCallbackType = CommandSuccessCallback; -typedef void (*CHIPDefaultSuccessCallbackType)(void *); - -typedef void (*VendorIdAttributeCallback)(void *, chip::VendorId); -typedef void (*NullableVendorIdAttributeCallback)(void *, const chip::app::DataModel::Nullable &); - -{{#chip_client_clusters includeAll=true}} -{{#chip_cluster_responses}} -typedef void (*CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}CallbackType)(void *, const chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::DecodableType &); -{{/chip_cluster_responses}} -{{/chip_client_clusters}} - -{{#zcl_clusters}} -{{#zcl_enums}} -typedef void (*{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback)(void *, chip::app::Clusters::{{asUpperCamelCase parent.name}}::{{asType label}}); -typedef void (*Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback)(void *, const chip::app::DataModel::Nullable &); -{{/zcl_enums}} -{{/zcl_clusters}} - -{{#chip_client_clusters includeAll=true}} -{{#chip_server_cluster_attributes}} -{{#if isArray}} -typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback)(void * context, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true}} data); -{{else}} -{{#if_is_struct type}} -typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}StructAttributeCallback)(void *, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true forceNotOptional=true}}); -{{/if_is_struct}} -{{#if_is_strongly_typed_bitmap type}} -typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}AttributeCallback)(void *, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true forceNotOptional=true}}); -{{/if_is_strongly_typed_bitmap}} -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - -{{#>CHIPCallbackBridge header="1" partial-type="Status" }}DefaultSuccessCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" partial-type="CommandStatus" }}CommandSuccessCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Octet_String" isNullable=false ns="chip"}}OctetStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Octet_String" isNullable=true ns="chip"}}NullableOctetStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Char_String" isNullable=false ns="chip"}}CharStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Char_String" isNullable=true ns="chip"}}NullableCharStringAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Boolean" isNullable=false ns="chip"}}BooleanAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Boolean" isNullable=true ns="chip"}}NullableBooleanAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int8u" isNullable=false ns="chip"}}Int8uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int8u" isNullable=true ns="chip"}}NullableInt8uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int8s" isNullable=false ns="chip"}}Int8sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int8s" isNullable=true ns="chip"}}NullableInt8sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int16u" isNullable=false ns="chip"}}Int16uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int16u" isNullable=true ns="chip"}}NullableInt16uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int16s" isNullable=false ns="chip"}}Int16sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int16s" isNullable=true ns="chip"}}NullableInt16sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int32u" isNullable=false ns="chip"}}Int32uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int32u" isNullable=true ns="chip"}}NullableInt32uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int32s" isNullable=false ns="chip"}}Int32sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int32s" isNullable=true ns="chip"}}NullableInt32sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int64u" isNullable=false ns="chip"}}Int64uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int64u" isNullable=true ns="chip"}}NullableInt64uAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int64s" isNullable=false ns="chip"}}Int64sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Int64s" isNullable=true ns="chip"}}NullableInt64sAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Single" isNullable=false ns="chip"}}FloatAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Single" isNullable=true ns="chip"}}NullableFloatAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Double" isNullable=false ns="chip"}}DoubleAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="Double" isNullable=true ns="chip"}}NullableDoubleAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="vendor_id" isNullable=false ns="chip"}}VendorIdAttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type="vendor_id" isNullable=true ns="chip"}}NullableVendorIdAttributeCallback{{/CHIPCallbackBridge}} - -{{#chip_client_clusters includeAll=true}} -{{#chip_server_cluster_attributes}} -{{#if isArray}} -{{#>CHIPCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}ListAttributeCallback{{/CHIPCallbackBridge}} -{{else}} - {{#if_is_struct type}} - {{#>CHIPCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}StructAttributeCallback{{/CHIPCallbackBridge}} - {{/if_is_struct}} - {{#if_is_strongly_typed_bitmap type}} - {{#>CHIPCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}AttributeCallback{{/CHIPCallbackBridge}} - {{/if_is_strongly_typed_bitmap}} -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - -{{#chip_client_clusters includeAll=true}} -{{#chip_cluster_responses}} -{{#>CHIPCallbackBridge header="1" partial-type="Command" }}{{asUpperCamelCase ../../name}}Cluster{{asUpperCamelCase ../name}}Callback{{/CHIPCallbackBridge}} -{{/chip_cluster_responses}} -{{/chip_client_clusters}} - -{{#zcl_clusters}} -{{#zcl_enums}} -{{#>CHIPCallbackBridge header="1" type=(asType label) isNullable=false ns=parent.name}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/CHIPCallbackBridge}} -{{#>CHIPCallbackBridge header="1" type=(asType label) isNullable=true ns=parent.name}}Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/CHIPCallbackBridge}} -{{/zcl_enums}} -{{/zcl_clusters}} diff --git a/src/darwin/Framework/CHIP/templates/CHIPAttributeTLVValueDecoder-src.zapt b/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt similarity index 88% rename from src/darwin/Framework/CHIP/templates/CHIPAttributeTLVValueDecoder-src.zapt rename to src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt index 347d18014dcdc0..9b478b2ad9f0e8 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPAttributeTLVValueDecoder-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt @@ -1,8 +1,8 @@ {{> header}} -#import "CHIPAttributeTLVValueDecoder_Internal.h" +#import "MTRAttributeTLVValueDecoder_Internal.h" -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" #include #include @@ -14,7 +14,7 @@ using namespace chip; using namespace chip::app; -id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) +id MTRDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) { switch (aPath.mClusterId) { diff --git a/src/darwin/Framework/CHIP/templates/MTRCallbackBridge-src.zapt b/src/darwin/Framework/CHIP/templates/MTRCallbackBridge-src.zapt new file mode 100644 index 00000000000000..def78a0ca68c96 --- /dev/null +++ b/src/darwin/Framework/CHIP/templates/MTRCallbackBridge-src.zapt @@ -0,0 +1,66 @@ +{{> header}} + +#import "MTRCallbackBridge_internal.h" +#import "MTRStructsObjc.h" +#import "MTRCommandPayloadsObjc.h" + +#include + +{{#>MTRCallbackBridge partial-type="Status" }}DefaultSuccessCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge partial-type="CommandStatus" }}CommandSuccessCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Octet_String" isNullable=false ns="chip"}}OctetStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Octet_String" isNullable=true ns="chip"}}NullableOctetStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Char_String" isNullable=false ns="chip"}}CharStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Char_String" isNullable=true ns="chip"}}NullableCharStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Boolean" isNullable=false ns="chip"}}BooleanAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Boolean" isNullable=true ns="chip"}}NullableBooleanAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int8u" isNullable=false ns="chip"}}Int8uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int8u" isNullable=true ns="chip"}}NullableInt8uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int8s" isNullable=false ns="chip"}}Int8sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int8s" isNullable=true ns="chip"}}NullableInt8sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int16u" isNullable=false ns="chip"}}Int16uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int16u" isNullable=true ns="chip"}}NullableInt16uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int16s" isNullable=false ns="chip"}}Int16sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int16s" isNullable=true ns="chip"}}NullableInt16sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int32u" isNullable=false ns="chip"}}Int32uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int32u" isNullable=true ns="chip"}}NullableInt32uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int32s" isNullable=false ns="chip"}}Int32sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int32s" isNullable=true ns="chip"}}NullableInt32sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int64u" isNullable=false ns="chip"}}Int64uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int64u" isNullable=true ns="chip"}}NullableInt64uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int64s" isNullable=false ns="chip"}}Int64sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Int64s" isNullable=true ns="chip"}}NullableInt64sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Single" isNullable=false ns="chip"}}FloatAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Single" isNullable=true ns="chip"}}NullableFloatAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Double" isNullable=false ns="chip"}}DoubleAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="Double" isNullable=true ns="chip"}}NullableDoubleAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="vendor_id" isNullable=false ns="chip"}}VendorIdAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type="vendor_id" isNullable=true ns="chip"}}NullableVendorIdAttributeCallback{{/MTRCallbackBridge}} + +{{#chip_client_clusters includeAll=true}} +{{#chip_server_cluster_attributes}} +{{#if isArray}} +{{#>MTRCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}ListAttributeCallback{{/MTRCallbackBridge}} +{{else}} + {{#if_is_struct type}} + {{#>MTRCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}StructAttributeCallback{{/MTRCallbackBridge}} + {{/if_is_struct}} + {{#if_is_strongly_typed_bitmap type}} + {{#>MTRCallbackBridge ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}AttributeCallback{{/MTRCallbackBridge}} + {{/if_is_strongly_typed_bitmap}} +{{/if}} +{{/chip_server_cluster_attributes}} +{{/chip_client_clusters}} + +{{#chip_client_clusters includeAll=true}} +{{#chip_cluster_responses}} +{{#>MTRCallbackBridge partial-type="Command" }}{{asUpperCamelCase ../../name}}Cluster{{asUpperCamelCase ../name}}Callback{{/MTRCallbackBridge}} +{{/chip_cluster_responses}} +{{/chip_client_clusters}} + +{{#zcl_clusters}} +{{#zcl_enums}} +{{#>MTRCallbackBridge type=(asType label) isNullable=false ns=parent.name}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge type=(asType label) isNullable=true ns=parent.name}}Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/MTRCallbackBridge}} +{{/zcl_enums}} +{{/zcl_clusters}} diff --git a/src/darwin/Framework/CHIP/templates/MTRCallbackBridge_internal.zapt b/src/darwin/Framework/CHIP/templates/MTRCallbackBridge_internal.zapt new file mode 100644 index 00000000000000..738cd4470c1f49 --- /dev/null +++ b/src/darwin/Framework/CHIP/templates/MTRCallbackBridge_internal.zapt @@ -0,0 +1,102 @@ +{{> header}} + +#import +#import "MTRCallbackBridgeBase_internal.h" + +#include +#include +#include + +typedef void (*CommandSuccessCallback)(void *, const chip::app::DataModel::NullObjectType &); +using CommandSuccessCallbackType = CommandSuccessCallback; +typedef void (*DefaultSuccessCallbackType)(void *); + +typedef void (*VendorIdAttributeCallback)(void *, chip::VendorId); +typedef void (*NullableVendorIdAttributeCallback)(void *, const chip::app::DataModel::Nullable &); + +{{#chip_client_clusters includeAll=true}} +{{#chip_cluster_responses}} +typedef void (*{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}CallbackType)(void *, const chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::DecodableType &); +{{/chip_cluster_responses}} +{{/chip_client_clusters}} + +{{#zcl_clusters}} +{{#zcl_enums}} +typedef void (*{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback)(void *, chip::app::Clusters::{{asUpperCamelCase parent.name}}::{{asType label}}); +typedef void (*Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback)(void *, const chip::app::DataModel::Nullable &); +{{/zcl_enums}} +{{/zcl_clusters}} + +{{#chip_client_clusters includeAll=true}} +{{#chip_server_cluster_attributes}} +{{#if isArray}} +typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback)(void * context, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true}} data); +{{else}} +{{#if_is_struct type}} +typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}StructAttributeCallback)(void *, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true forceNotOptional=true}}); +{{/if_is_struct}} +{{#if_is_strongly_typed_bitmap type}} +typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}AttributeCallback)(void *, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true forceNotOptional=true}}); +{{/if_is_strongly_typed_bitmap}} +{{/if}} +{{/chip_server_cluster_attributes}} +{{/chip_client_clusters}} + +{{#>MTRCallbackBridge header="1" partial-type="Status" }}DefaultSuccessCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" partial-type="CommandStatus" }}CommandSuccessCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Octet_String" isNullable=false ns="chip"}}OctetStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Octet_String" isNullable=true ns="chip"}}NullableOctetStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Char_String" isNullable=false ns="chip"}}CharStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Char_String" isNullable=true ns="chip"}}NullableCharStringAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Boolean" isNullable=false ns="chip"}}BooleanAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Boolean" isNullable=true ns="chip"}}NullableBooleanAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int8u" isNullable=false ns="chip"}}Int8uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int8u" isNullable=true ns="chip"}}NullableInt8uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int8s" isNullable=false ns="chip"}}Int8sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int8s" isNullable=true ns="chip"}}NullableInt8sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int16u" isNullable=false ns="chip"}}Int16uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int16u" isNullable=true ns="chip"}}NullableInt16uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int16s" isNullable=false ns="chip"}}Int16sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int16s" isNullable=true ns="chip"}}NullableInt16sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int32u" isNullable=false ns="chip"}}Int32uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int32u" isNullable=true ns="chip"}}NullableInt32uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int32s" isNullable=false ns="chip"}}Int32sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int32s" isNullable=true ns="chip"}}NullableInt32sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int64u" isNullable=false ns="chip"}}Int64uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int64u" isNullable=true ns="chip"}}NullableInt64uAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int64s" isNullable=false ns="chip"}}Int64sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Int64s" isNullable=true ns="chip"}}NullableInt64sAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Single" isNullable=false ns="chip"}}FloatAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Single" isNullable=true ns="chip"}}NullableFloatAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Double" isNullable=false ns="chip"}}DoubleAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="Double" isNullable=true ns="chip"}}NullableDoubleAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="vendor_id" isNullable=false ns="chip"}}VendorIdAttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type="vendor_id" isNullable=true ns="chip"}}NullableVendorIdAttributeCallback{{/MTRCallbackBridge}} + +{{#chip_client_clusters includeAll=true}} +{{#chip_server_cluster_attributes}} +{{#if isArray}} +{{#>MTRCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}ListAttributeCallback{{/MTRCallbackBridge}} +{{else}} + {{#if_is_struct type}} + {{#>MTRCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}StructAttributeCallback{{/MTRCallbackBridge}} + {{/if_is_struct}} + {{#if_is_strongly_typed_bitmap type}} + {{#>MTRCallbackBridge header="1" ns=parent.name }}{{asUpperCamelCase ../../name}}{{asUpperCamelCase ../name}}AttributeCallback{{/MTRCallbackBridge}} + {{/if_is_strongly_typed_bitmap}} +{{/if}} +{{/chip_server_cluster_attributes}} +{{/chip_client_clusters}} + +{{#chip_client_clusters includeAll=true}} +{{#chip_cluster_responses}} +{{#>MTRCallbackBridge header="1" partial-type="Command" }}{{asUpperCamelCase ../../name}}Cluster{{asUpperCamelCase ../name}}Callback{{/MTRCallbackBridge}} +{{/chip_cluster_responses}} +{{/chip_client_clusters}} + +{{#zcl_clusters}} +{{#zcl_enums}} +{{#>MTRCallbackBridge header="1" type=(asType label) isNullable=false ns=parent.name}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/MTRCallbackBridge}} +{{#>MTRCallbackBridge header="1" type=(asType label) isNullable=true ns=parent.name}}Nullable{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}AttributeCallback{{/MTRCallbackBridge}} +{{/zcl_enums}} +{{/zcl_clusters}} diff --git a/src/darwin/Framework/CHIP/templates/MTRClusterConstants.zapt b/src/darwin/Framework/CHIP/templates/MTRClusterConstants.zapt new file mode 100644 index 00000000000000..6f2f6637a5c588 --- /dev/null +++ b/src/darwin/Framework/CHIP/templates/MTRClusterConstants.zapt @@ -0,0 +1,71 @@ +{{> header}} + +#import +#import + +#pragma mark - Clusters IDs + +typedef NS_ENUM(uint32_t, MTRClusterIDType) { +{{#zcl_clusters}} +MTRCluster{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, +{{/zcl_clusters}} +}; + +#pragma mark - Attributes IDs + +typedef NS_ENUM(uint32_t, MTRClusterAttributeIDType) { +// Global attributes +{{#zcl_attributes_server}} +{{#unless clusterRef}} +MTRClusterGlobalAttribute{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, +{{/unless}} +{{/zcl_attributes_server}} + +{{#zcl_clusters}} +{{#zcl_attributes_server}} +{{#first}} +// Cluster {{asUpperCamelCase parent.label}} attributes +{{/first}} +{{#if clusterRef}} +MTRCluster{{asUpperCamelCase parent.label}}Attribute{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, +{{else}} +MTRCluster{{asUpperCamelCase parent.label}}Attribute{{asUpperCamelCase label}}ID = MTRClusterGlobalAttribute{{asUpperCamelCase label}}ID, +{{/if}} +{{#last}} + +{{/last}} +{{/zcl_attributes_server}} +{{/zcl_clusters}} +}; + +#pragma mark - Commands IDs + +typedef NS_ENUM(uint32_t, MTRClusterCommandIDType) { +{{#zcl_clusters}} +{{#zcl_commands}} +{{#first}} +// Cluster {{asUpperCamelCase parent.label}} commands +{{/first}} +MTRCluster{{asUpperCamelCase parent.label}}Command{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, +{{#last}} + +{{/last}} +{{/zcl_commands}} +{{/zcl_clusters}} +}; + +#pragma mark - Events IDs + +typedef NS_ENUM(uint32_t, MTRClusterEventIDType) { +{{#zcl_clusters}} +{{#zcl_events}} +{{#first}} +// Cluster {{asUpperCamelCase parent.label}} events +{{/first}} +MTRCluster{{asUpperCamelCase parent.label}}Event{{asUpperCamelCase name}}ID = {{asMEI manufacturerCode code}}, +{{#last}} + +{{/last}} +{{/zcl_events}} +{{/zcl_clusters}} +}; diff --git a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt similarity index 75% rename from src/darwin/Framework/CHIP/templates/CHIPClustersObjc-src.zapt rename to src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt index 90d73249dd2c95..d15c19d82d47bb 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt @@ -2,14 +2,14 @@ #import -#import "CHIPAttributeCacheContainer_Internal.h" -#import "CHIPCallbackBridge_internal.h" -#import "CHIPCluster_internal.h" -#import "CHIPClustersObjc_internal.h" -#import "CHIPDevice.h" -#import "CHIPDevice_Internal.h" -#import "CHIPStructsObjc.h" -#import "CHIPCommandPayloadsObjc.h" +#import "MTRAttributeCacheContainer_Internal.h" +#import "MTRCallbackBridge_internal.h" +#import "MTRCluster_internal.h" +#import "MTRClustersObjc_internal.h" +#import "MTRDevice.h" +#import "MTRDevice_Internal.h" +#import "MTRStructsObjc.h" +#import "MTRCommandPayloadsObjc.h" #include #include @@ -19,7 +19,7 @@ using chip::Callback::Cancelable; using namespace chip::app::Clusters; // NOLINTBEGIN(clang-analyzer-cplusplus.NewDeleteLeaks): Linter is unable to locate the delete on these objects. {{#chip_client_clusters includeAll=true}} -@implementation CHIP{{asUpperCamelCase name}} +@implementation MTR{{asUpperCamelCase name}} - (chip::Controller::ClusterBase *)getCluster { @@ -34,7 +34,7 @@ using namespace chip::app::Clusters; [self {{asLowerCamelCase name}}WithParams:nil completionHandler:completionHandler]; } {{/unless}} -- (void){{asLowerCamelCase name}}WithParams: (CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completionHandler:({{>command_completion_type command=.}})completionHandler +- (void){{asLowerCamelCase name}}WithParams: (MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completionHandler:({{>command_completion_type command=.}})completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -63,7 +63,7 @@ using namespace chip::app::Clusters; {{/last}} {{/chip_cluster_command_arguments}} - new CHIP{{>callbackName}}CallbackBridge(self.callbackQueue, + new MTR{{>callbackName}}CallbackBridge(self.callbackQueue, {{#if hasSpecificResponse}} {{! This treats completionHandler as taking an id for the data. This is not great from a type-safety perspective, of course. }} @@ -77,8 +77,8 @@ using namespace chip::app::Clusters; }, {{/if}} ^(Cancelable * success, Cancelable * failure) { - auto successFn = CallbackcallbackName}}CallbackType>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback<{{>callbackName}}CallbackType>::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand(request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } @@ -88,20 +88,20 @@ using namespace chip::app::Clusters; {{#*inline "attribute"}}Attribute{{asUpperCamelCase name}}{{/inline}} - (void)read{{>attribute}}With {{~#if_is_fabric_scoped_struct type~}} - Params:(CHIPReadParams * _Nullable)params completionHandler: + Params:(MTRReadParams * _Nullable)params completionHandler: {{~else~}} CompletionHandler: {{~/if_is_fabric_scoped_struct~}} (void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIP{{>attribute_data_callback_name}}CallbackBridge(self.callbackQueue, + new MTR{{>attribute_data_callback_name}}CallbackBridge(self.callbackQueue, {{! This treats completionHandler as taking an id for the data. This is not great from a type-safety perspective, of course. }} completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo; auto successFn = Callback<{{>attribute_data_callback_name}}Callback>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall {{~#if_is_fabric_scoped_struct type~}} , params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue] @@ -116,21 +116,21 @@ using namespace chip::app::Clusters; { [self write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value params:nil completionHandler:completionHandler]; } -- (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value params:(CHIPWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil){ - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } {{#if mustUseTimedInvoke}} - if (!timedWriteTimeoutMs.HasValue()) { - timedWriteTimeoutMs.SetValue(10000); + if (!timedWriteTimeout.HasValue()) { + timedWriteTimeout.SetValue(10000); } {{/if}} - new CHIP{{>callbackName}}CallbackBridge(self.callbackQueue, + new MTR{{>callbackName}}CallbackBridge(self.callbackQueue, {{! For now, don't change the bridge API; instead just use an adapter to invoke our completion handler. This is not great from a type-safety perspective, of course. }} @@ -142,9 +142,9 @@ using namespace chip::app::Clusters; using TypeInfo = {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo; TypeInfo::Type cppValue; {{>encode_value target="cppValue" source="value" cluster=parent.name errorCode="return CHIP_ERROR_INVALID_ARGUMENT;" depth=0}} - auto successFn = CallbackcallbackName}}CallbackType>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + auto successFn = Callback<{{>callbackName}}CallbackType>::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } @@ -152,10 +152,10 @@ using namespace chip::app::Clusters; {{/if}} {{#if isReportableAttribute}} - (void) subscribe{{>attribute}}WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIP{{>attribute_data_callback_name}}CallbackSubscriptionBridge(self.callbackQueue, + new MTR{{>attribute_data_callback_name}}CallbackSubscriptionBridge(self.callbackQueue, {{! This treats reportHandler as taking an id for the data. This is not great from a type-safety perspective, of course. }} reportHandler, @@ -166,17 +166,17 @@ subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEs } using TypeInfo = {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo; auto successFn = Callback<{{>attribute_data_callback_name}}Callback>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], CHIP{{>attribute_data_callback_name}}CallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], MTR{{>attribute_data_callback_name}}CallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue] ); }, subscriptionEstablishedHandler); } -+ (void) read{{>attribute}}WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler ++ (void) read{{>attribute}}WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIP{{>attribute_data_callback_name}}CallbackBridge(queue, + new MTR{{>attribute_data_callback_name}}CallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { diff --git a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt similarity index 67% rename from src/darwin/Framework/CHIP/templates/CHIPClustersObjc.zapt rename to src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt index ac55e2eeb5cf00..3794cf978758bb 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt @@ -1,14 +1,11 @@ {{> header}} -#ifndef CHIP_CLUSTERS_H -#define CHIP_CLUSTERS_H - #import -#import +#import -#include -#include +#import +#import typedef void (^ResponseHandler)(id _Nullable value, NSError * _Nullable error); typedef void (^StatusCompletion)(NSError * _Nullable error); @@ -23,10 +20,10 @@ NS_ASSUME_NONNULL_BEGIN * Cluster {{name}} * {{description}} */ -@interface CHIP{{asUpperCamelCase name}} : CHIPCluster +@interface MTR{{asUpperCamelCase name}} : MTRCluster {{#chip_cluster_commands}} -- (void){{asLowerCamelCase name}}WithParams:(CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completionHandler:({{>command_completion_type command=.}})completionHandler; +- (void){{asLowerCamelCase name}}WithParams:(MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completionHandler:({{>command_completion_type command=.}})completionHandler; {{#unless (hasArguments)}} - (void){{asLowerCamelCase name}}WithCompletionHandler:({{>command_completion_type command=.}})completionHandler; {{/unless}} @@ -36,24 +33,24 @@ NS_ASSUME_NONNULL_BEGIN {{#*inline "attribute"}}Attribute{{asUpperCamelCase name}}{{/inline}} - (void)read{{>attribute}}With {{~#if_is_fabric_scoped_struct type~}} - Params:(CHIPReadParams * _Nullable)params completionHandler: + Params:(MTRReadParams * _Nullable)params completionHandler: {{~else~}} CompletionHandler: {{~/if_is_fabric_scoped_struct~}} (void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler; {{#if isWritableAttribute}} - (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value completionHandler:(StatusCompletion)completionHandler; -- (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value params:(CHIPWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; {{/if}} {{#if isReportableAttribute}} /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void) subscribe{{>attribute}}WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void) read{{>attribute}}WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler; ++ (void) read{{>attribute}}WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error))completionHandler; {{/if}} {{/chip_server_cluster_attributes}} @@ -81,5 +78,3 @@ typedef NS_OPTIONS({{asUnderlyingZclType name}}, {{objCEnumName ../name label}}) {{/zcl_clusters}} NS_ASSUME_NONNULL_END - -#endif /* CHIP_CLUSTERS_H */ diff --git a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc_internal.zapt b/src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt similarity index 75% rename from src/darwin/Framework/CHIP/templates/CHIPClustersObjc_internal.zapt rename to src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt index b1a56f47370687..5641aed228461f 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPClustersObjc_internal.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt @@ -2,11 +2,11 @@ #import -#import "CHIPDevice.h" +#import "MTRDevice.h" {{#chip_client_clusters includeAll=true}} -@interface CHIP{{asUpperCamelCase name}} () +@interface MTR{{asUpperCamelCase name}} () @property (readonly) chip::Controller::{{asUpperCamelCase name}}Cluster cppCluster; @end diff --git a/src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt similarity index 87% rename from src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc-src.zapt rename to src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt index a4cf0626ff9dd9..f6a31156e84bc4 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc-src.zapt @@ -1,12 +1,12 @@ {{> header}} -#import "CHIPCommandPayloadsObjc.h" +#import "MTRCommandPayloadsObjc.h" NS_ASSUME_NONNULL_BEGIN {{#zcl_clusters}} {{#zcl_commands}} -@implementation CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params +@implementation MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params - (instancetype)init { if (self = [super init]) { diff --git a/src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt similarity index 84% rename from src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc.zapt rename to src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt index 7a13e0c83ca9da..f96a55cd0f21f0 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPCommandPayloadsObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRCommandPayloadsObjc.zapt @@ -1,16 +1,13 @@ {{> header}} -#ifndef CHIP_COMMAND_PAYLOADS_H -#define CHIP_COMMAND_PAYLOADS_H - #import -#import +#import NS_ASSUME_NONNULL_BEGIN {{#zcl_clusters}} {{#zcl_commands}} -@interface CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params : NSObject +@interface MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params : NSObject {{#zcl_command_arguments}} {{! Override the getter name because some of our properties start with things @@ -34,10 +31,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end {{/zcl_commands}} {{/zcl_clusters}} NS_ASSUME_NONNULL_END - -#endif /* CHIP_COMMAND_PAYLOADS_H */ diff --git a/src/darwin/Framework/CHIP/templates/CHIPEventTLVValueDecoder-src.zapt b/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt similarity index 83% rename from src/darwin/Framework/CHIP/templates/CHIPEventTLVValueDecoder-src.zapt rename to src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt index 5c48cf27b8c14a..c976278fa5e871 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPEventTLVValueDecoder-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt @@ -1,8 +1,8 @@ {{> header}} -#import "CHIPEventTLVValueDecoder_Internal.h" +#import "MTREventTLVValueDecoder_Internal.h" -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" #include #include @@ -17,7 +17,7 @@ using namespace chip; using namespace chip::app; -id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) +id MTRDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) { switch (aPath.mClusterId) { @@ -38,7 +38,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event *value = [CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event new]; + MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event *value = [MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event new]; {{#zcl_event_fields}} do { diff --git a/src/darwin/Framework/CHIP/templates/CHIPStructsObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt similarity index 88% rename from src/darwin/Framework/CHIP/templates/CHIPStructsObjc-src.zapt rename to src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt index df4ad32f4b9ad2..ffba4f7a66a17b 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPStructsObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRStructsObjc-src.zapt @@ -1,12 +1,12 @@ {{> header}} -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" NS_ASSUME_NONNULL_BEGIN {{#zcl_clusters}} {{#zcl_structs}} -@implementation CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}} +@implementation MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}} - (instancetype)init { if (self = [super init]) { @@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN {{/zcl_structs}} {{#zcl_events}} -@implementation CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event +@implementation MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event - (instancetype)init { if (self = [super init]) { diff --git a/src/darwin/Framework/CHIP/templates/CHIPStructsObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt similarity index 76% rename from src/darwin/Framework/CHIP/templates/CHIPStructsObjc.zapt rename to src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt index edf1bd35e402c6..2066c7ac89af69 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPStructsObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt @@ -1,27 +1,25 @@ {{> header}} -#ifndef CHIP_STRUCTS_H -#define CHIP_STRUCTS_H - #import NS_ASSUME_NONNULL_BEGIN {{#zcl_clusters}} {{#zcl_structs}} -@interface CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}} : NSObject +@interface MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}} : NSObject {{! Override the getter name because some of our properties start with things like "new" or "init" }} {{#zcl_struct_items}} @property (strong, nonatomic{{#unless (isStrEqual (asGetterName label) (asStructPropertyName label))}}, getter={{asGetterName label}}{{/unless}}) {{asObjectiveCType type parent.parent.name}} {{asStructPropertyName label}}; {{/zcl_struct_items}} - (instancetype)init; + @end {{/zcl_structs}} {{#zcl_events}} -@interface CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event : NSObject +@interface MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Event : NSObject {{#zcl_event_fields}} @property (strong, nonatomic{{#unless (isStrEqual (asGetterName name) (asStructPropertyName name))}}, getter={{asGetterName name}}{{/unless}}) {{asObjectiveCType type parent.parent.name}} {{asStructPropertyName name}}; {{/zcl_event_fields}} @@ -33,5 +31,3 @@ NS_ASSUME_NONNULL_BEGIN {{/zcl_clusters}} NS_ASSUME_NONNULL_END - -#endif /* CHIP_STRUCTS_H */ diff --git a/src/darwin/Framework/CHIP/templates/MatterClusterConstants.zapt b/src/darwin/Framework/CHIP/templates/MatterClusterConstants.zapt deleted file mode 100644 index a8c3fdb43238d1..00000000000000 --- a/src/darwin/Framework/CHIP/templates/MatterClusterConstants.zapt +++ /dev/null @@ -1,76 +0,0 @@ -{{> header}} - -#ifndef MATTER_CLUSTER_CONSTANTS_H -#define MATTER_CLUSTER_CONSTANTS_H - -#import -#import - -#pragma mark - Clusters IDs - -typedef NS_ENUM(uint32_t, MatterClusterIDType) { -{{#zcl_clusters}} -kMatterCluster{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, -{{/zcl_clusters}} -}; - -#pragma mark - Attributes IDs - -typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { -// Global attributes -{{#zcl_attributes_server}} -{{#unless clusterRef}} -kMatterClusterGlobalAttribute{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, -{{/unless}} -{{/zcl_attributes_server}} - -{{#zcl_clusters}} -{{#zcl_attributes_server}} -{{#first}} -// Cluster {{asUpperCamelCase parent.label}} attributes -{{/first}} -{{#if clusterRef}} -kMatterCluster{{asUpperCamelCase parent.label}}Attribute{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, -{{else}} -kMatterCluster{{asUpperCamelCase parent.label}}Attribute{{asUpperCamelCase label}}ID = kMatterClusterGlobalAttribute{{asUpperCamelCase label}}ID, -{{/if}} -{{#last}} - -{{/last}} -{{/zcl_attributes_server}} -{{/zcl_clusters}} -}; - -#pragma mark - Commands IDs - -typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { -{{#zcl_clusters}} -{{#zcl_commands}} -{{#first}} -// Cluster {{asUpperCamelCase parent.label}} commands -{{/first}} -kMatterCluster{{asUpperCamelCase parent.label}}Command{{asUpperCamelCase label}}ID = {{asMEI manufacturerCode code}}, -{{#last}} - -{{/last}} -{{/zcl_commands}} -{{/zcl_clusters}} -}; - -#pragma mark - Events IDs - -typedef NS_ENUM(uint32_t, MatterClusterEventIDType) { -{{#zcl_clusters}} -{{#zcl_events}} -{{#first}} -// Cluster {{asUpperCamelCase parent.label}} events -{{/first}} -kMatterCluster{{asUpperCamelCase parent.label}}Event{{asUpperCamelCase name}}ID = {{asMEI manufacturerCode code}}, -{{#last}} - -{{/last}} -{{/zcl_events}} -{{/zcl_clusters}} -}; - -#endif diff --git a/src/darwin/Framework/CHIP/templates/helper.js b/src/darwin/Framework/CHIP/templates/helper.js index eeed85d165225d..436cd43b677035 100644 --- a/src/darwin/Framework/CHIP/templates/helper.js +++ b/src/darwin/Framework/CHIP/templates/helper.js @@ -131,7 +131,7 @@ async function asObjectiveCClass(type, cluster, options) } if (isStruct) { - return `CHIP${appHelper.asUpperCamelCase(cluster)}Cluster${appHelper.asUpperCamelCase(type)}`; + return `MTR${appHelper.asUpperCamelCase(cluster)}Cluster${appHelper.asUpperCamelCase(type)}`; } return 'NSNumber'; @@ -204,7 +204,7 @@ function objCEnumName(clusterName, enumLabel) enumLabel = enumLabel.substring(0, enumLabel.length - "Enum".length); } - return "CHIP" + clusterName + enumLabel; + return "MTR" + clusterName + enumLabel; } function objCEnumItemLabel(itemLabel) diff --git a/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt b/src/darwin/Framework/CHIP/templates/partials/MTRCallbackBridge.zapt similarity index 74% rename from src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt rename to src/darwin/Framework/CHIP/templates/partials/MTRCallbackBridge.zapt index 6dae81fb84636c..1ca732f7a37275 100644 --- a/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/MTRCallbackBridge.zapt @@ -2,7 +2,7 @@ {{#*inline "callbackType"}} {{#if partial-type}} {{#if (isStrEqual partial-type "Command")}} - CHIP{{> @partial-block}}Type + {{> @partial-block}}Type {{else}} {{> @partial-block}} {{/if}} @@ -10,11 +10,11 @@ {{> @partial-block}} {{/if}} {{/inline}} -class CHIP{{> @partial-block}}Bridge : public CHIPCallbackBridge<{{>callbackType}}> +class MTR{{> @partial-block}}Bridge : public MTRCallbackBridge<{{>callbackType}}> { public: - CHIP{{> @partial-block}}Bridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, bool keepAlive = false) - : CHIPCallbackBridge<{{>callbackType}}>(queue, handler, action, OnSuccessFn, keepAlive) + MTR{{> @partial-block}}Bridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, bool keepAlive = false) + : MTRCallbackBridge<{{>callbackType}}>(queue, handler, action, OnSuccessFn, keepAlive) {}; static void OnSuccessFn(void * context @@ -35,11 +35,11 @@ public: }; {{#unless partial-type}} -class CHIP{{> @partial-block}}SubscriptionBridge : public CHIP{{> @partial-block}}Bridge +class MTR{{> @partial-block}}SubscriptionBridge : public MTR{{> @partial-block}}Bridge { public: - CHIP{{> @partial-block}}SubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, SubscriptionEstablishedHandler establishedHandler) - : CHIP{{> @partial-block}}Bridge(queue, handler, action, true), + MTR{{> @partial-block}}SubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) + : MTR{{> @partial-block}}Bridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -51,7 +51,7 @@ private: {{/unless}} {{else}} -void CHIP{{> @partial-block}}Bridge::OnSuccessFn(void * context +void MTR{{> @partial-block}}Bridge::OnSuccessFn(void * context {{#if partial-type}} {{#if (isStrEqual partial-type "Status")}} {{! No more args in this case }} @@ -71,7 +71,7 @@ void CHIP{{> @partial-block}}Bridge::OnSuccessFn(void * context {{#if (isStrEqual partial-type "Status")}} DispatchSuccess(context, nil); {{else if (isStrEqual partial-type "Command")}} - auto * response = [CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params new]; + auto * response = [MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params new]; {{#chip_cluster_response_arguments}} { {{>decode_value target=(concat "response." (asStructPropertyName label)) source=(concat "data." (asLowerCamelCase label)) cluster=parent.parent.name errorCode="OnFailureFn(context, err); return;" depth=0}} @@ -91,9 +91,9 @@ void CHIP{{> @partial-block}}Bridge::OnSuccessFn(void * context }; {{#unless partial-type}} -void CHIP{{> @partial-block}}SubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTR{{> @partial-block}}SubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast @partial-block}}SubscriptionBridge *>(context); + auto * self = static_cast @partial-block}}SubscriptionBridge *>(context); if (!self->mQueue) { return; } diff --git a/src/darwin/Framework/CHIP/templates/partials/command_completion_type.zapt b/src/darwin/Framework/CHIP/templates/partials/command_completion_type.zapt index aca7b63f89ccf6..9fc5fa8ad3af4d 100644 --- a/src/darwin/Framework/CHIP/templates/partials/command_completion_type.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/command_completion_type.zapt @@ -1,5 +1,5 @@ {{#if command.hasSpecificResponse}} -void (^)(CHIP{{asUpperCamelCase command.parent.name}}Cluster{{asUpperCamelCase command.responseName}}Params * _Nullable data, NSError * _Nullable error) +void (^)(MTR{{asUpperCamelCase command.parent.name}}Cluster{{asUpperCamelCase command.responseName}}Params * _Nullable data, NSError * _Nullable error) {{else}} StatusCompletion {{/if}} diff --git a/src/darwin/Framework/CHIP/templates/partials/encode_value.zapt b/src/darwin/Framework/CHIP/templates/partials/encode_value.zapt index 51b1625bd7e082..0c54e8124e19a1 100644 --- a/src/darwin/Framework/CHIP/templates/partials/encode_value.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/encode_value.zapt @@ -27,7 +27,7 @@ } listFreer.add(listHolder_{{depth}}); for (size_t i_{{depth}} = 0; i_{{depth}} < {{source}}.count; ++i_{{depth}}) { - if (![{{source}}[i_{{depth}}] isKindOfClass:[{{asObjectiveCClass type cluster forceNotList=true}} class]]) { + if ( ! [{{source}}[i_{{depth}}] isKindOfClass: [{{asObjectiveCClass type cluster forceNotList=true}} class]] ) { // Wrong kind of value. {{errorCode}} } diff --git a/src/darwin/Framework/CHIP/templates/templates.json b/src/darwin/Framework/CHIP/templates/templates.json index 9155d8187707c0..30e9f2926fe8aa 100644 --- a/src/darwin/Framework/CHIP/templates/templates.json +++ b/src/darwin/Framework/CHIP/templates/templates.json @@ -17,8 +17,8 @@ "path": "../../../../../src/app/zap-templates/partials/header.zapt" }, { - "name": "CHIPCallbackBridge", - "path": "partials/CHIPCallbackBridge.zapt" + "name": "MTRCallbackBridge", + "path": "partials/MTRCallbackBridge.zapt" }, { "name": "encode_value", @@ -43,64 +43,64 @@ ], "templates": [ { - "path": "CHIPCallbackBridge_internal.zapt", - "name": "Objc CHIPCallbackBridge Internal header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h" + "path": "MTRCallbackBridge_internal.zapt", + "name": "Objc MTRCallbackBridge Internal header", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h" }, { - "path": "CHIPCallbackBridge-src.zapt", - "name": "Objc CHIPCallbackBridge", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm" + "path": "MTRCallbackBridge-src.zapt", + "name": "Objc MTRCallbackBridge", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm" }, { - "path": "CHIPClustersObjc_internal.zapt", + "path": "MTRClustersObjc_internal.zapt", "name": "Objc ZCL API Internal Header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc_internal.h" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc_internal.h" }, { - "path": "CHIPClustersObjc.zapt", + "path": "MTRClustersObjc.zapt", "name": "Objc ZCL API Header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h" }, { - "path": "CHIPClustersObjc-src.zapt", + "path": "MTRClustersObjc-src.zapt", "name": "Objc ZCL API", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm" }, { - "path": "CHIPStructsObjc.zapt", - "name": "Objc reflections of CHIP spec structs header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h" + "path": "MTRStructsObjc.zapt", + "name": "Objc reflections of MTR spec structs header", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h" }, { - "path": "CHIPStructsObjc-src.zapt", - "name": "Objc reflections of CHIP spec structs", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm" + "path": "MTRStructsObjc-src.zapt", + "name": "Objc reflections of MTR spec structs", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm" }, { - "path": "CHIPCommandPayloadsObjc.zapt", - "name": "Objc reflections of CHIP command payloads header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h" + "path": "MTRCommandPayloadsObjc.zapt", + "name": "Objc reflections of MTR command payloads header", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h" }, { - "path": "CHIPCommandPayloadsObjc-src.zapt", - "name": "Objc reflections of CHIP command payloads header", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm" + "path": "MTRCommandPayloadsObjc-src.zapt", + "name": "Objc reflections of MTR command payloads header", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm" }, { - "path": "CHIPAttributeTLVValueDecoder-src.zapt", + "path": "MTRAttributeTLVValueDecoder-src.zapt", "name": "Decode TLV attribute values into Objc objects", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm" }, { - "path": "CHIPEventTLVValueDecoder-src.zapt", + "path": "MTREventTLVValueDecoder-src.zapt", "name": "Decode TLV event values into Objc objects", - "output": "src/darwin/Framework/CHIP/zap-generated/CHIPEventTLVValueDecoder.mm" + "output": "src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm" }, { - "path": "MatterClusterConstants.zapt", + "path": "MTRClusterConstants.zapt", "name": "Constants for cluster IDs", - "output": "src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h" } ] } diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm similarity index 99% rename from src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index a35cb5821e747d..9bf7ccc8eab641 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -17,9 +17,9 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPAttributeTLVValueDecoder_Internal.h" +#import "MTRAttributeTLVValueDecoder_Internal.h" -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" #include #include @@ -31,7 +31,7 @@ using namespace chip; using namespace chip::app; -id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) +id MTRDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) { switch (aPath.mClusterId) { case Clusters::Identify::Id: { @@ -1270,8 +1270,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPDescriptorClusterDeviceType * newElement_0; - newElement_0 = [CHIPDescriptorClusterDeviceType new]; + MTRDescriptorClusterDeviceType * newElement_0; + newElement_0 = [MTRDescriptorClusterDeviceType new]; newElement_0.type = [NSNumber numberWithUnsignedInt:entry_0.type]; newElement_0.revision = [NSNumber numberWithUnsignedShort:entry_0.revision]; [array_0 addObject:newElement_0]; @@ -1485,8 +1485,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBindingClusterTargetStruct * newElement_0; - newElement_0 = [CHIPBindingClusterTargetStruct new]; + MTRBindingClusterTargetStruct * newElement_0; + newElement_0 = [MTRBindingClusterTargetStruct new]; if (entry_0.node.HasValue()) { newElement_0.node = [NSNumber numberWithUnsignedLongLong:entry_0.node.Value()]; } else { @@ -1641,8 +1641,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAccessControlClusterAccessControlEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterAccessControlEntry new]; + MTRAccessControlClusterAccessControlEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterAccessControlEntry new]; newElement_0.privilege = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.privilege)]; newElement_0.authMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.authMode)]; if (entry_0.subjects.IsNull()) { @@ -1673,8 +1673,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_3 = entry_0.targets.Value().begin(); while (iter_3.Next()) { auto & entry_3 = iter_3.GetValue(); - CHIPAccessControlClusterTarget * newElement_3; - newElement_3 = [CHIPAccessControlClusterTarget new]; + MTRAccessControlClusterTarget * newElement_3; + newElement_3 = [MTRAccessControlClusterTarget new]; if (entry_3.cluster.IsNull()) { newElement_3.cluster = nil; } else { @@ -1725,8 +1725,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAccessControlClusterExtensionEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterExtensionEntry new]; + MTRAccessControlClusterExtensionEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterExtensionEntry new]; newElement_0.data = [NSData dataWithBytes:entry_0.data.data() length:entry_0.data.size()]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; [array_0 addObject:newElement_0]; @@ -1895,8 +1895,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBridgedActionsClusterActionStruct * newElement_0; - newElement_0 = [CHIPBridgedActionsClusterActionStruct new]; + MTRBridgedActionsClusterActionStruct * newElement_0; + newElement_0 = [MTRBridgedActionsClusterActionStruct new]; newElement_0.actionID = [NSNumber numberWithUnsignedShort:entry_0.actionID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -1929,8 +1929,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBridgedActionsClusterEndpointListStruct * newElement_0; - newElement_0 = [CHIPBridgedActionsClusterEndpointListStruct new]; + MTRBridgedActionsClusterEndpointListStruct * newElement_0; + newElement_0 = [MTRBridgedActionsClusterEndpointListStruct new]; newElement_0.endpointListID = [NSNumber numberWithUnsignedShort:entry_0.endpointListID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -2299,8 +2299,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPBasicClusterCapabilityMinimaStruct * _Nonnull value; - value = [CHIPBasicClusterCapabilityMinimaStruct new]; + MTRBasicClusterCapabilityMinimaStruct * _Nonnull value; + value = [MTRBasicClusterCapabilityMinimaStruct new]; value.caseSessionsPerFabric = [NSNumber numberWithUnsignedShort:cppValue.caseSessionsPerFabric]; value.subscriptionsPerFabric = [NSNumber numberWithUnsignedShort:cppValue.subscriptionsPerFabric]; return value; @@ -2536,8 +2536,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; - newElement_0 = [CHIPOtaSoftwareUpdateRequestorClusterProviderLocation new]; + MTROtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; + newElement_0 = [MTROtaSoftwareUpdateRequestorClusterProviderLocation new]; newElement_0.providerNodeID = [NSNumber numberWithUnsignedLongLong:entry_0.providerNodeID]; newElement_0.endpoint = [NSNumber numberWithUnsignedShort:entry_0.endpoint]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -3771,8 +3771,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull value; - value = [CHIPGeneralCommissioningClusterBasicCommissioningInfo new]; + MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull value; + value = [MTRGeneralCommissioningClusterBasicCommissioningInfo new]; value.failSafeExpiryLengthSeconds = [NSNumber numberWithUnsignedShort:cppValue.failSafeExpiryLengthSeconds]; value.maxCumulativeFailsafeSeconds = [NSNumber numberWithUnsignedShort:cppValue.maxCumulativeFailsafeSeconds]; return value; @@ -3943,8 +3943,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPNetworkCommissioningClusterNetworkInfo * newElement_0; - newElement_0 = [CHIPNetworkCommissioningClusterNetworkInfo new]; + MTRNetworkCommissioningClusterNetworkInfo * newElement_0; + newElement_0 = [MTRNetworkCommissioningClusterNetworkInfo new]; newElement_0.networkID = [NSData dataWithBytes:entry_0.networkID.data() length:entry_0.networkID.size()]; newElement_0.connected = [NSNumber numberWithBool:entry_0.connected]; [array_0 addObject:newElement_0]; @@ -4267,8 +4267,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGeneralDiagnosticsClusterNetworkInterfaceType * newElement_0; - newElement_0 = [CHIPGeneralDiagnosticsClusterNetworkInterfaceType new]; + MTRGeneralDiagnosticsClusterNetworkInterfaceType * newElement_0; + newElement_0 = [MTRGeneralDiagnosticsClusterNetworkInterfaceType new]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() encoding:NSUTF8StringEncoding]; @@ -4586,8 +4586,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPSoftwareDiagnosticsClusterThreadMetrics * newElement_0; - newElement_0 = [CHIPSoftwareDiagnosticsClusterThreadMetrics new]; + MTRSoftwareDiagnosticsClusterThreadMetrics * newElement_0; + newElement_0 = [MTRSoftwareDiagnosticsClusterThreadMetrics new]; newElement_0.id = [NSNumber numberWithUnsignedLongLong:entry_0.id]; if (entry_0.name.HasValue()) { newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().data() @@ -4880,8 +4880,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPThreadNetworkDiagnosticsClusterNeighborTable * newElement_0; - newElement_0 = [CHIPThreadNetworkDiagnosticsClusterNeighborTable new]; + MTRThreadNetworkDiagnosticsClusterNeighborTable * newElement_0; + newElement_0 = [MTRThreadNetworkDiagnosticsClusterNeighborTable new]; newElement_0.extAddress = [NSNumber numberWithUnsignedLongLong:entry_0.extAddress]; newElement_0.age = [NSNumber numberWithUnsignedInt:entry_0.age]; newElement_0.rloc16 = [NSNumber numberWithUnsignedShort:entry_0.rloc16]; @@ -4928,8 +4928,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPThreadNetworkDiagnosticsClusterRouteTable * newElement_0; - newElement_0 = [CHIPThreadNetworkDiagnosticsClusterRouteTable new]; + MTRThreadNetworkDiagnosticsClusterRouteTable * newElement_0; + newElement_0 = [MTRThreadNetworkDiagnosticsClusterRouteTable new]; newElement_0.extAddress = [NSNumber numberWithUnsignedLongLong:entry_0.extAddress]; newElement_0.rloc16 = [NSNumber numberWithUnsignedShort:entry_0.rloc16]; newElement_0.routerId = [NSNumber numberWithUnsignedChar:entry_0.routerId]; @@ -5540,11 +5540,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value; + MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPThreadNetworkDiagnosticsClusterSecurityPolicy new]; + value = [MTRThreadNetworkDiagnosticsClusterSecurityPolicy new]; value.rotationTime = [NSNumber numberWithUnsignedShort:cppValue.Value().rotationTime]; value.flags = [NSNumber numberWithUnsignedShort:cppValue.Value().flags]; } @@ -5572,11 +5572,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value; + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents new]; + value = [MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents new]; value.activeTimestampPresent = [NSNumber numberWithBool:cppValue.Value().activeTimestampPresent]; value.pendingTimestampPresent = [NSNumber numberWithBool:cppValue.Value().pendingTimestampPresent]; value.masterKeyPresent = [NSNumber numberWithBool:cppValue.Value().masterKeyPresent]; @@ -6790,8 +6790,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOperationalCredentialsClusterNOCStruct * newElement_0; - newElement_0 = [CHIPOperationalCredentialsClusterNOCStruct new]; + MTROperationalCredentialsClusterNOCStruct * newElement_0; + newElement_0 = [MTROperationalCredentialsClusterNOCStruct new]; newElement_0.noc = [NSData dataWithBytes:entry_0.noc.data() length:entry_0.noc.size()]; if (entry_0.icac.IsNull()) { newElement_0.icac = nil; @@ -6823,8 +6823,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOperationalCredentialsClusterFabricDescriptor * newElement_0; - newElement_0 = [CHIPOperationalCredentialsClusterFabricDescriptor new]; + MTROperationalCredentialsClusterFabricDescriptor * newElement_0; + newElement_0 = [MTROperationalCredentialsClusterFabricDescriptor new]; newElement_0.rootPublicKey = [NSData dataWithBytes:entry_0.rootPublicKey.data() length:entry_0.rootPublicKey.size()]; newElement_0.vendorId = [NSNumber numberWithUnsignedShort:chip::to_underlying(entry_0.vendorId)]; @@ -7026,8 +7026,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; - newElement_0 = [CHIPGroupKeyManagementClusterGroupKeyMapStruct new]; + MTRGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; + newElement_0 = [MTRGroupKeyManagementClusterGroupKeyMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; newElement_0.groupKeySetID = [NSNumber numberWithUnsignedShort:entry_0.groupKeySetID]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -7055,8 +7055,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGroupKeyManagementClusterGroupInfoMapStruct * newElement_0; - newElement_0 = [CHIPGroupKeyManagementClusterGroupInfoMapStruct new]; + MTRGroupKeyManagementClusterGroupInfoMapStruct * newElement_0; + newElement_0 = [MTRGroupKeyManagementClusterGroupInfoMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; @@ -7237,8 +7237,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPFixedLabelClusterLabelStruct * newElement_0; - newElement_0 = [CHIPFixedLabelClusterLabelStruct new]; + MTRFixedLabelClusterLabelStruct * newElement_0; + newElement_0 = [MTRFixedLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -7378,8 +7378,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPUserLabelClusterLabelStruct * newElement_0; - newElement_0 = [CHIPUserLabelClusterLabelStruct new]; + MTRUserLabelClusterLabelStruct * newElement_0; + newElement_0 = [MTRUserLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -7665,8 +7665,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPModeSelectClusterModeOptionStruct * newElement_0; - newElement_0 = [CHIPModeSelectClusterModeOptionStruct new]; + MTRModeSelectClusterModeOptionStruct * newElement_0; + newElement_0 = [MTRModeSelectClusterModeOptionStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -7676,8 +7676,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_2 = entry_0.semanticTags.begin(); while (iter_2.Next()) { auto & entry_2 = iter_2.GetValue(); - CHIPModeSelectClusterSemanticTag * newElement_2; - newElement_2 = [CHIPModeSelectClusterSemanticTag new]; + MTRModeSelectClusterSemanticTag * newElement_2; + newElement_2 = [MTRModeSelectClusterSemanticTag new]; newElement_2.mfgCode = [NSNumber numberWithUnsignedShort:entry_2.mfgCode]; newElement_2.value = [NSNumber numberWithUnsignedShort:entry_2.value]; [array_2 addObject:newElement_2]; @@ -12473,8 +12473,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPChannelClusterChannelInfo * newElement_0; - newElement_0 = [CHIPChannelClusterChannelInfo new]; + MTRChannelClusterChannelInfo * newElement_0; + newElement_0 = [MTRChannelClusterChannelInfo new]; newElement_0.majorNumber = [NSNumber numberWithUnsignedShort:entry_0.majorNumber]; newElement_0.minorNumber = [NSNumber numberWithUnsignedShort:entry_0.minorNumber]; if (entry_0.name.HasValue()) { @@ -12516,11 +12516,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPChannelClusterLineupInfo * _Nullable value; + MTRChannelClusterLineupInfo * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPChannelClusterLineupInfo new]; + value = [MTRChannelClusterLineupInfo new]; value.operatorName = [[NSString alloc] initWithBytes:cppValue.Value().operatorName.data() length:cppValue.Value().operatorName.size() encoding:NSUTF8StringEncoding]; @@ -12549,11 +12549,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPChannelClusterChannelInfo * _Nullable value; + MTRChannelClusterChannelInfo * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPChannelClusterChannelInfo new]; + value = [MTRChannelClusterChannelInfo new]; value.majorNumber = [NSNumber numberWithUnsignedShort:cppValue.Value().majorNumber]; value.minorNumber = [NSNumber numberWithUnsignedShort:cppValue.Value().minorNumber]; if (cppValue.Value().name.HasValue()) { @@ -12702,8 +12702,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTargetNavigatorClusterTargetInfo * newElement_0; - newElement_0 = [CHIPTargetNavigatorClusterTargetInfo new]; + MTRTargetNavigatorClusterTargetInfo * newElement_0; + newElement_0 = [MTRTargetNavigatorClusterTargetInfo new]; newElement_0.identifier = [NSNumber numberWithUnsignedChar:entry_0.identifier]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -12887,11 +12887,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value; + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPMediaPlaybackClusterPlaybackPosition new]; + value = [MTRMediaPlaybackClusterPlaybackPosition new]; value.updatedAt = [NSNumber numberWithUnsignedLongLong:cppValue.Value().updatedAt]; if (cppValue.Value().position.IsNull()) { value.position = nil; @@ -13064,8 +13064,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPMediaInputClusterInputInfo * newElement_0; - newElement_0 = [CHIPMediaInputClusterInputInfo new]; + MTRMediaInputClusterInputInfo * newElement_0; + newElement_0 = [MTRMediaInputClusterInputInfo new]; newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.inputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.inputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() @@ -13584,8 +13584,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAudioOutputClusterOutputInfo * newElement_0; - newElement_0 = [CHIPAudioOutputClusterOutputInfo new]; + MTRAudioOutputClusterOutputInfo * newElement_0; + newElement_0 = [MTRAudioOutputClusterOutputInfo new]; newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.outputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.outputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() @@ -13755,12 +13755,12 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPApplicationLauncherClusterApplicationEP * _Nullable value; + MTRApplicationLauncherClusterApplicationEP * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPApplicationLauncherClusterApplicationEP new]; - value.application = [CHIPApplicationLauncherClusterApplication new]; + value = [MTRApplicationLauncherClusterApplicationEP new]; + value.application = [MTRApplicationLauncherClusterApplication new]; value.application.catalogVendorId = [NSNumber numberWithUnsignedShort:cppValue.Value().application.catalogVendorId]; value.application.applicationId = [[NSString alloc] initWithBytes:cppValue.Value().application.applicationId.data() length:cppValue.Value().application.applicationId.size() @@ -13933,8 +13933,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPApplicationBasicClusterApplicationBasicApplication * _Nonnull value; - value = [CHIPApplicationBasicClusterApplicationBasicApplication new]; + MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull value; + value = [MTRApplicationBasicClusterApplicationBasicApplication new]; value.catalogVendorId = [NSNumber numberWithUnsignedShort:cppValue.catalogVendorId]; value.applicationId = [[NSString alloc] initWithBytes:cppValue.applicationId.data() length:cppValue.applicationId.size() @@ -16075,8 +16075,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterTestListStructOctet * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestListStructOctet new]; + MTRTestClusterClusterTestListStructOctet * newElement_0; + newElement_0 = [MTRTestClusterClusterTestListStructOctet new]; newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1]; newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()]; [array_0 addObject:newElement_0]; @@ -16169,8 +16169,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterNullablesAndOptionalsStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterNullablesAndOptionalsStruct new]; + MTRTestClusterClusterNullablesAndOptionalsStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterNullablesAndOptionalsStruct new]; if (entry_0.nullableInt.IsNull()) { newElement_0.nullableInt = nil; } else { @@ -16220,7 +16220,7 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (entry_0.nullableStruct.IsNull()) { newElement_0.nullableStruct = nil; } else { - newElement_0.nullableStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableStruct.Value().a]; newElement_0.nullableStruct.b = [NSNumber numberWithBool:entry_0.nullableStruct.Value().b]; newElement_0.nullableStruct.c = @@ -16235,7 +16235,7 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader newElement_0.nullableStruct.h = [NSNumber numberWithDouble:entry_0.nullableStruct.Value().h]; } if (entry_0.optionalStruct.HasValue()) { - newElement_0.optionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.optionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.optionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.optionalStruct.Value().a]; newElement_0.optionalStruct.b = [NSNumber numberWithBool:entry_0.optionalStruct.Value().b]; newElement_0.optionalStruct.c = @@ -16255,7 +16255,7 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (entry_0.nullableOptionalStruct.Value().IsNull()) { newElement_0.nullableOptionalStruct = nil; } else { - newElement_0.nullableOptionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableOptionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableOptionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableOptionalStruct.Value().Value().a]; newElement_0.nullableOptionalStruct.b = @@ -16372,8 +16372,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPTestClusterClusterSimpleStruct * _Nonnull value; - value = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * _Nonnull value; + value = [MTRTestClusterClusterSimpleStruct new]; value.a = [NSNumber numberWithUnsignedChar:cppValue.a]; value.b = [NSNumber numberWithBool:cppValue.b]; value.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue.c)]; @@ -16467,8 +16467,8 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader auto iter_0 = cppValue.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterTestFabricScoped * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestFabricScoped new]; + MTRTestClusterClusterTestFabricScoped * newElement_0; + newElement_0 = [MTRTestClusterClusterTestFabricScoped new]; newElement_0.fabricSensitiveInt8u = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveInt8u]; if (entry_0.optionalFabricSensitiveInt8u.HasValue()) { newElement_0.optionalFabricSensitiveInt8u = @@ -16496,7 +16496,7 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader [[NSString alloc] initWithBytes:entry_0.fabricSensitiveCharString.data() length:entry_0.fabricSensitiveCharString.size() encoding:NSUTF8StringEncoding]; - newElement_0.fabricSensitiveStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.fabricSensitiveStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.fabricSensitiveStruct.a = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveStruct.a]; newElement_0.fabricSensitiveStruct.b = [NSNumber numberWithBool:entry_0.fabricSensitiveStruct.b]; newElement_0.fabricSensitiveStruct.c = @@ -17010,11 +17010,11 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader if (*aError != CHIP_NO_ERROR) { return nil; } - CHIPTestClusterClusterSimpleStruct * _Nullable value; + MTRTestClusterClusterSimpleStruct * _Nullable value; if (cppValue.IsNull()) { value = nil; } else { - value = [CHIPTestClusterClusterSimpleStruct new]; + value = [MTRTestClusterClusterSimpleStruct new]; value.a = [NSNumber numberWithUnsignedChar:cppValue.Value().a]; value.b = [NSNumber numberWithBool:cppValue.Value().b]; value.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue.Value().c)]; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm similarity index 81% rename from src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm index 2e21b43f783636..8b4168c4d8cdbc 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm @@ -17,29 +17,29 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPCallbackBridge_internal.h" -#import "CHIPCommandPayloadsObjc.h" -#import "CHIPStructsObjc.h" +#import "MTRCallbackBridge_internal.h" +#import "MTRCommandPayloadsObjc.h" +#import "MTRStructsObjc.h" #include -void CHIPDefaultSuccessCallbackBridge::OnSuccessFn(void * context) { DispatchSuccess(context, nil); }; +void MTRDefaultSuccessCallbackBridge::OnSuccessFn(void * context) { DispatchSuccess(context, nil); }; -void CHIPCommandSuccessCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::NullObjectType &) +void MTRCommandSuccessCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::NullObjectType &) { DispatchSuccess(context, nil); }; -void CHIPOctetStringAttributeCallbackBridge::OnSuccessFn(void * context, chip::ByteSpan value) +void MTROctetStringAttributeCallbackBridge::OnSuccessFn(void * context, chip::ByteSpan value) { NSData * _Nonnull objCValue; objCValue = [NSData dataWithBytes:value.data() length:value.size()]; DispatchSuccess(context, objCValue); }; -void CHIPOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -53,7 +53,7 @@ } } -void CHIPNullableOctetStringAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOctetStringAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSData * _Nullable objCValue; @@ -65,9 +65,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -81,16 +81,16 @@ } } -void CHIPCharStringAttributeCallbackBridge::OnSuccessFn(void * context, chip::CharSpan value) +void MTRCharStringAttributeCallbackBridge::OnSuccessFn(void * context, chip::CharSpan value) { NSString * _Nonnull objCValue; objCValue = [[NSString alloc] initWithBytes:value.data() length:value.size() encoding:NSUTF8StringEncoding]; DispatchSuccess(context, objCValue); }; -void CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -104,7 +104,7 @@ } } -void CHIPNullableCharStringAttributeCallbackBridge::OnSuccessFn( +void MTRNullableCharStringAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSString * _Nullable objCValue; @@ -116,9 +116,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -132,16 +132,16 @@ } } -void CHIPBooleanAttributeCallbackBridge::OnSuccessFn(void * context, bool value) +void MTRBooleanAttributeCallbackBridge::OnSuccessFn(void * context, bool value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithBool:value]; DispatchSuccess(context, objCValue); }; -void CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -155,7 +155,7 @@ } } -void CHIPNullableBooleanAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableBooleanAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -166,9 +166,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -182,16 +182,16 @@ } } -void CHIPInt8uAttributeCallbackBridge::OnSuccessFn(void * context, uint8_t value) +void MTRInt8uAttributeCallbackBridge::OnSuccessFn(void * context, uint8_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedChar:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -205,7 +205,7 @@ } } -void CHIPNullableInt8uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt8uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -216,9 +216,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -232,16 +232,16 @@ } } -void CHIPInt8sAttributeCallbackBridge::OnSuccessFn(void * context, int8_t value) +void MTRInt8sAttributeCallbackBridge::OnSuccessFn(void * context, int8_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithChar:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -255,7 +255,7 @@ } } -void CHIPNullableInt8sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt8sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -266,9 +266,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -282,16 +282,16 @@ } } -void CHIPInt16uAttributeCallbackBridge::OnSuccessFn(void * context, uint16_t value) +void MTRInt16uAttributeCallbackBridge::OnSuccessFn(void * context, uint16_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedShort:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -305,7 +305,7 @@ } } -void CHIPNullableInt16uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt16uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -316,9 +316,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -332,16 +332,16 @@ } } -void CHIPInt16sAttributeCallbackBridge::OnSuccessFn(void * context, int16_t value) +void MTRInt16sAttributeCallbackBridge::OnSuccessFn(void * context, int16_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithShort:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -355,7 +355,7 @@ } } -void CHIPNullableInt16sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt16sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -366,9 +366,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -382,16 +382,16 @@ } } -void CHIPInt32uAttributeCallbackBridge::OnSuccessFn(void * context, uint32_t value) +void MTRInt32uAttributeCallbackBridge::OnSuccessFn(void * context, uint32_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedInt:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -405,7 +405,7 @@ } } -void CHIPNullableInt32uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt32uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -416,9 +416,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -432,16 +432,16 @@ } } -void CHIPInt32sAttributeCallbackBridge::OnSuccessFn(void * context, int32_t value) +void MTRInt32sAttributeCallbackBridge::OnSuccessFn(void * context, int32_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithInt:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -455,7 +455,7 @@ } } -void CHIPNullableInt32sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt32sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -466,9 +466,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -482,16 +482,16 @@ } } -void CHIPInt64uAttributeCallbackBridge::OnSuccessFn(void * context, uint64_t value) +void MTRInt64uAttributeCallbackBridge::OnSuccessFn(void * context, uint64_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedLongLong:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -505,7 +505,7 @@ } } -void CHIPNullableInt64uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt64uAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -516,9 +516,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -532,16 +532,16 @@ } } -void CHIPInt64sAttributeCallbackBridge::OnSuccessFn(void * context, int64_t value) +void MTRInt64sAttributeCallbackBridge::OnSuccessFn(void * context, int64_t value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithLongLong:value]; DispatchSuccess(context, objCValue); }; -void CHIPInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -555,7 +555,7 @@ } } -void CHIPNullableInt64sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableInt64sAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -566,9 +566,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -582,16 +582,16 @@ } } -void CHIPFloatAttributeCallbackBridge::OnSuccessFn(void * context, float value) +void MTRFloatAttributeCallbackBridge::OnSuccessFn(void * context, float value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithFloat:value]; DispatchSuccess(context, objCValue); }; -void CHIPFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -605,7 +605,7 @@ } } -void CHIPNullableFloatAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableFloatAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -616,9 +616,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -632,16 +632,16 @@ } } -void CHIPDoubleAttributeCallbackBridge::OnSuccessFn(void * context, double value) +void MTRDoubleAttributeCallbackBridge::OnSuccessFn(void * context, double value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithDouble:value]; DispatchSuccess(context, objCValue); }; -void CHIPDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -655,7 +655,7 @@ } } -void CHIPNullableDoubleAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) +void MTRNullableDoubleAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -666,9 +666,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -682,16 +682,16 @@ } } -void CHIPVendorIdAttributeCallbackBridge::OnSuccessFn(void * context, chip::VendorId value) +void MTRVendorIdAttributeCallbackBridge::OnSuccessFn(void * context, chip::VendorId value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedShort:chip::to_underlying(value)]; DispatchSuccess(context, objCValue); }; -void CHIPVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -705,7 +705,7 @@ } } -void CHIPNullableVendorIdAttributeCallbackBridge::OnSuccessFn( +void MTRNullableVendorIdAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -717,9 +717,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -733,7 +733,7 @@ } } -void CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -756,9 +756,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -772,7 +772,7 @@ } } -void CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -795,9 +795,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -811,7 +811,7 @@ } } -void CHIPIdentifyAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -834,9 +834,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -850,7 +850,7 @@ } } -void CHIPGroupsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -873,9 +873,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -889,7 +889,7 @@ } } -void CHIPGroupsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -912,9 +912,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -928,7 +928,7 @@ } } -void CHIPGroupsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -951,9 +951,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -967,7 +967,7 @@ } } -void CHIPScenesGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRScenesGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -990,9 +990,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1006,7 +1006,7 @@ } } -void CHIPScenesAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRScenesAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1029,9 +1029,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1045,7 +1045,7 @@ } } -void CHIPScenesAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRScenesAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1068,9 +1068,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRScenesAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1084,7 +1084,7 @@ } } -void CHIPOnOffGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1107,9 +1107,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1123,7 +1123,7 @@ } } -void CHIPOnOffAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1146,9 +1146,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1162,7 +1162,7 @@ } } -void CHIPOnOffAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1185,9 +1185,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1201,7 +1201,7 @@ } } -void CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1224,10 +1224,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1241,7 +1241,7 @@ } } -void CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1264,10 +1264,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1281,7 +1281,7 @@ } } -void CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1304,9 +1304,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1320,7 +1320,7 @@ } } -void CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLevelControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1343,9 +1343,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1359,7 +1359,7 @@ } } -void CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLevelControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1382,9 +1382,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1398,7 +1398,7 @@ } } -void CHIPLevelControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRLevelControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1421,9 +1421,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLevelControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1437,7 +1437,7 @@ } } -void CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1460,9 +1460,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1476,7 +1476,7 @@ } } -void CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1499,9 +1499,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1515,7 +1515,7 @@ } } -void CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBinaryInputBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1538,9 +1538,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1554,7 +1554,7 @@ } } -void CHIPDescriptorDeviceListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRDescriptorDeviceListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1563,8 +1563,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPDescriptorClusterDeviceType * newElement_0; - newElement_0 = [CHIPDescriptorClusterDeviceType new]; + MTRDescriptorClusterDeviceType * newElement_0; + newElement_0 = [MTRDescriptorClusterDeviceType new]; newElement_0.type = [NSNumber numberWithUnsignedInt:entry_0.type]; newElement_0.revision = [NSNumber numberWithUnsignedShort:entry_0.revision]; [array_0 addObject:newElement_0]; @@ -1579,9 +1579,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorDeviceListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1595,7 +1595,7 @@ } } -void CHIPDescriptorServerListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorServerListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1618,9 +1618,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorServerListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1634,7 +1634,7 @@ } } -void CHIPDescriptorClientListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorClientListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1657,9 +1657,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorClientListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1673,7 +1673,7 @@ } } -void CHIPDescriptorPartsListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorPartsListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1696,9 +1696,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorPartsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1712,7 +1712,7 @@ } } -void CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1735,9 +1735,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1751,7 +1751,7 @@ } } -void CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1774,9 +1774,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1790,7 +1790,7 @@ } } -void CHIPDescriptorAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRDescriptorAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1813,9 +1813,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDescriptorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1829,7 +1829,7 @@ } } -void CHIPBindingBindingListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRBindingBindingListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1838,8 +1838,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBindingClusterTargetStruct * newElement_0; - newElement_0 = [CHIPBindingClusterTargetStruct new]; + MTRBindingClusterTargetStruct * newElement_0; + newElement_0 = [MTRBindingClusterTargetStruct new]; if (entry_0.node.HasValue()) { newElement_0.node = [NSNumber numberWithUnsignedLongLong:entry_0.node.Value()]; } else { @@ -1873,9 +1873,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBindingBindingListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBindingBindingListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1889,7 +1889,7 @@ } } -void CHIPBindingGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBindingGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1912,9 +1912,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1928,7 +1928,7 @@ } } -void CHIPBindingAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBindingAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1951,9 +1951,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -1967,7 +1967,7 @@ } } -void CHIPBindingAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBindingAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -1990,9 +1990,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBindingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2006,7 +2006,7 @@ } } -void CHIPAccessControlAclListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRAccessControlAclListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -2016,8 +2016,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAccessControlClusterAccessControlEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterAccessControlEntry new]; + MTRAccessControlClusterAccessControlEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterAccessControlEntry new]; newElement_0.privilege = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.privilege)]; newElement_0.authMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.authMode)]; if (entry_0.subjects.IsNull()) { @@ -2048,8 +2048,8 @@ auto iter_3 = entry_0.targets.Value().begin(); while (iter_3.Next()) { auto & entry_3 = iter_3.GetValue(); - CHIPAccessControlClusterTarget * newElement_3; - newElement_3 = [CHIPAccessControlClusterTarget new]; + MTRAccessControlClusterTarget * newElement_3; + newElement_3 = [MTRAccessControlClusterTarget new]; if (entry_3.cluster.IsNull()) { newElement_3.cluster = nil; } else { @@ -2088,9 +2088,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlAclListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlAclListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2104,7 +2104,7 @@ } } -void CHIPAccessControlExtensionListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRAccessControlExtensionListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2113,8 +2113,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAccessControlClusterExtensionEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterExtensionEntry new]; + MTRAccessControlClusterExtensionEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterExtensionEntry new]; newElement_0.data = [NSData dataWithBytes:entry_0.data.data() length:entry_0.data.size()]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; [array_0 addObject:newElement_0]; @@ -2129,9 +2129,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlExtensionListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2145,7 +2145,7 @@ } } -void CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2168,9 +2168,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2184,7 +2184,7 @@ } } -void CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2207,9 +2207,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2223,7 +2223,7 @@ } } -void CHIPAccessControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2246,9 +2246,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2262,7 +2262,7 @@ } } -void CHIPBridgedActionsActionListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRBridgedActionsActionListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2271,8 +2271,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBridgedActionsClusterActionStruct * newElement_0; - newElement_0 = [CHIPBridgedActionsClusterActionStruct new]; + MTRBridgedActionsClusterActionStruct * newElement_0; + newElement_0 = [MTRBridgedActionsClusterActionStruct new]; newElement_0.actionID = [NSNumber numberWithUnsignedShort:entry_0.actionID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -2293,9 +2293,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsActionListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2309,7 +2309,7 @@ } } -void CHIPBridgedActionsEndpointListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRBridgedActionsEndpointListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -2319,8 +2319,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPBridgedActionsClusterEndpointListStruct * newElement_0; - newElement_0 = [CHIPBridgedActionsClusterEndpointListStruct new]; + MTRBridgedActionsClusterEndpointListStruct * newElement_0; + newElement_0 = [MTRBridgedActionsClusterEndpointListStruct new]; newElement_0.endpointListID = [NSNumber numberWithUnsignedShort:entry_0.endpointListID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -2354,9 +2354,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2370,7 +2370,7 @@ } } -void CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2393,9 +2393,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2409,7 +2409,7 @@ } } -void CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2432,9 +2432,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2448,7 +2448,7 @@ } } -void CHIPBridgedActionsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2471,9 +2471,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2487,19 +2487,19 @@ } } -void CHIPBasicCapabilityMinimaStructAttributeCallbackBridge::OnSuccessFn( +void MTRBasicCapabilityMinimaStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Basic::Structs::CapabilityMinimaStruct::DecodableType & value) { - CHIPBasicClusterCapabilityMinimaStruct * _Nonnull objCValue; - objCValue = [CHIPBasicClusterCapabilityMinimaStruct new]; + MTRBasicClusterCapabilityMinimaStruct * _Nonnull objCValue; + objCValue = [MTRBasicClusterCapabilityMinimaStruct new]; objCValue.caseSessionsPerFabric = [NSNumber numberWithUnsignedShort:value.caseSessionsPerFabric]; objCValue.subscriptionsPerFabric = [NSNumber numberWithUnsignedShort:value.subscriptionsPerFabric]; DispatchSuccess(context, objCValue); }; -void CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2513,7 +2513,7 @@ } } -void CHIPBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2536,9 +2536,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2552,7 +2552,7 @@ } } -void CHIPBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2575,9 +2575,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2591,7 +2591,7 @@ } } -void CHIPBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2614,9 +2614,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2630,7 +2630,7 @@ } } -void CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2653,10 +2653,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2670,7 +2670,7 @@ } } -void CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2693,10 +2693,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2710,7 +2710,7 @@ } } -void CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2733,9 +2733,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2749,7 +2749,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::OtaSoftwareUpdateRequestor::Structs::ProviderLocation::DecodableType> & value) { @@ -2759,8 +2759,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; - newElement_0 = [CHIPOtaSoftwareUpdateRequestorClusterProviderLocation new]; + MTROtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; + newElement_0 = [MTROtaSoftwareUpdateRequestorClusterProviderLocation new]; newElement_0.providerNodeID = [NSNumber numberWithUnsignedLongLong:entry_0.providerNodeID]; newElement_0.endpoint = [NSNumber numberWithUnsignedShort:entry_0.endpoint]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -2776,10 +2776,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2793,7 +2793,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2816,10 +2816,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2833,7 +2833,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2856,10 +2856,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2873,7 +2873,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2896,9 +2896,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2912,7 +2912,7 @@ } } -void CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge::OnSuccessFn( +void MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2935,9 +2935,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2951,7 +2951,7 @@ } } -void CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -2974,10 +2974,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -2991,7 +2991,7 @@ } } -void CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3014,10 +3014,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3031,7 +3031,7 @@ } } -void CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3054,9 +3054,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3070,7 +3070,7 @@ } } -void CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3093,10 +3093,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3110,7 +3110,7 @@ } } -void CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3133,10 +3133,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3150,7 +3149,7 @@ } } -void CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3173,9 +3172,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3189,7 +3188,7 @@ } } -void CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3212,9 +3211,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3228,7 +3227,7 @@ } } -void CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3251,9 +3250,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3267,7 +3266,7 @@ } } -void CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3290,9 +3289,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3306,7 +3305,7 @@ } } -void CHIPUnitLocalizationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRUnitLocalizationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3329,9 +3328,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3345,7 +3344,7 @@ } } -void CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3368,9 +3367,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3384,7 +3383,7 @@ } } -void CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3407,10 +3406,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3424,7 +3423,7 @@ } } -void CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3447,10 +3446,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3464,7 +3463,7 @@ } } -void CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3487,9 +3486,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3503,7 +3502,7 @@ } } -void CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3526,9 +3525,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3542,7 +3541,7 @@ } } -void CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3565,9 +3564,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3581,7 +3580,7 @@ } } -void CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3604,9 +3603,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3620,7 +3619,7 @@ } } -void CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3643,9 +3642,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3659,7 +3658,7 @@ } } -void CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3682,9 +3681,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3698,7 +3697,7 @@ } } -void CHIPPowerSourceAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3721,9 +3720,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3737,20 +3736,20 @@ } } -void CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfo::DecodableType & value) { - CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull objCValue; - objCValue = [CHIPGeneralCommissioningClusterBasicCommissioningInfo new]; + MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull objCValue; + objCValue = [MTRGeneralCommissioningClusterBasicCommissioningInfo new]; objCValue.failSafeExpiryLengthSeconds = [NSNumber numberWithUnsignedShort:value.failSafeExpiryLengthSeconds]; objCValue.maxCumulativeFailsafeSeconds = [NSNumber numberWithUnsignedShort:value.maxCumulativeFailsafeSeconds]; DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3764,7 +3763,7 @@ } } -void CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3787,9 +3786,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3803,7 +3802,7 @@ } } -void CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3826,9 +3825,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3842,7 +3841,7 @@ } } -void CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3865,9 +3864,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3881,7 +3880,7 @@ } } -void CHIPNetworkCommissioningNetworksListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNetworkCommissioningNetworksListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -3891,8 +3890,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPNetworkCommissioningClusterNetworkInfo * newElement_0; - newElement_0 = [CHIPNetworkCommissioningClusterNetworkInfo new]; + MTRNetworkCommissioningClusterNetworkInfo * newElement_0; + newElement_0 = [MTRNetworkCommissioningClusterNetworkInfo new]; newElement_0.networkID = [NSData dataWithBytes:entry_0.networkID.data() length:entry_0.networkID.size()]; newElement_0.connected = [NSNumber numberWithBool:entry_0.connected]; [array_0 addObject:newElement_0]; @@ -3907,9 +3906,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3923,7 +3922,7 @@ } } -void CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3946,9 +3945,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -3962,7 +3961,7 @@ } } -void CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -3985,9 +3984,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4001,7 +4000,7 @@ } } -void CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4024,9 +4023,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4040,7 +4039,7 @@ } } -void CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4063,9 +4062,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4079,7 +4078,7 @@ } } -void CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4102,9 +4101,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4118,7 +4117,7 @@ } } -void CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4141,9 +4140,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4157,7 +4156,7 @@ } } -void CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & value) { @@ -4167,8 +4166,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGeneralDiagnosticsClusterNetworkInterfaceType * newElement_0; - newElement_0 = [CHIPGeneralDiagnosticsClusterNetworkInterfaceType new]; + MTRGeneralDiagnosticsClusterNetworkInterfaceType * newElement_0; + newElement_0 = [MTRGeneralDiagnosticsClusterNetworkInterfaceType new]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() encoding:NSUTF8StringEncoding]; @@ -4232,9 +4231,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4248,7 +4247,7 @@ } } -void CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4271,9 +4270,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4287,7 +4286,7 @@ } } -void CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4310,9 +4309,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4326,7 +4325,7 @@ } } -void CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4349,9 +4348,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4365,7 +4364,7 @@ } } -void CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4388,9 +4387,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4404,7 +4403,7 @@ } } -void CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4427,9 +4426,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4443,7 +4442,7 @@ } } -void CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4466,9 +4465,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4482,7 +4481,7 @@ } } -void CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -4492,8 +4491,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPSoftwareDiagnosticsClusterThreadMetrics * newElement_0; - newElement_0 = [CHIPSoftwareDiagnosticsClusterThreadMetrics new]; + MTRSoftwareDiagnosticsClusterThreadMetrics * newElement_0; + newElement_0 = [MTRSoftwareDiagnosticsClusterThreadMetrics new]; newElement_0.id = [NSNumber numberWithUnsignedLongLong:entry_0.id]; if (entry_0.name.HasValue()) { newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().data() @@ -4529,9 +4528,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4545,7 +4544,7 @@ } } -void CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4568,9 +4567,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4584,7 +4583,7 @@ } } -void CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4607,9 +4606,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4623,7 +4622,7 @@ } } -void CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4646,9 +4645,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4662,7 +4661,7 @@ } } -void CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & value) { @@ -4672,8 +4671,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPThreadNetworkDiagnosticsClusterNeighborTable * newElement_0; - newElement_0 = [CHIPThreadNetworkDiagnosticsClusterNeighborTable new]; + MTRThreadNetworkDiagnosticsClusterNeighborTable * newElement_0; + newElement_0 = [MTRThreadNetworkDiagnosticsClusterNeighborTable new]; newElement_0.extAddress = [NSNumber numberWithUnsignedLongLong:entry_0.extAddress]; newElement_0.age = [NSNumber numberWithUnsignedInt:entry_0.age]; newElement_0.rloc16 = [NSNumber numberWithUnsignedShort:entry_0.rloc16]; @@ -4708,9 +4707,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4724,7 +4723,7 @@ } } -void CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -4734,8 +4733,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPThreadNetworkDiagnosticsClusterRouteTable * newElement_0; - newElement_0 = [CHIPThreadNetworkDiagnosticsClusterRouteTable new]; + MTRThreadNetworkDiagnosticsClusterRouteTable * newElement_0; + newElement_0 = [MTRThreadNetworkDiagnosticsClusterRouteTable new]; newElement_0.extAddress = [NSNumber numberWithUnsignedLongLong:entry_0.extAddress]; newElement_0.rloc16 = [NSNumber numberWithUnsignedShort:entry_0.rloc16]; newElement_0.routerId = [NSNumber numberWithUnsignedChar:entry_0.routerId]; @@ -4758,9 +4757,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4774,24 +4773,24 @@ } } -void CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { - CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable objCValue; + MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPThreadNetworkDiagnosticsClusterSecurityPolicy new]; + objCValue = [MTRThreadNetworkDiagnosticsClusterSecurityPolicy new]; objCValue.rotationTime = [NSNumber numberWithUnsignedShort:value.Value().rotationTime]; objCValue.flags = [NSNumber numberWithUnsignedShort:value.Value().flags]; } DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4805,15 +4804,15 @@ } } -void CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & value) { - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable objCValue; + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents new]; + objCValue = [MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents new]; objCValue.activeTimestampPresent = [NSNumber numberWithBool:value.Value().activeTimestampPresent]; objCValue.pendingTimestampPresent = [NSNumber numberWithBool:value.Value().pendingTimestampPresent]; objCValue.masterKeyPresent = [NSNumber numberWithBool:value.Value().masterKeyPresent]; @@ -4830,11 +4829,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -4848,7 +4847,7 @@ } } -void CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4871,11 +4870,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4889,7 +4887,7 @@ } } -void CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4912,10 +4910,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4929,7 +4927,7 @@ } } -void CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4952,10 +4950,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -4969,7 +4967,7 @@ } } -void CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -4992,9 +4990,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5008,7 +5006,7 @@ } } -void CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5031,10 +5029,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5048,7 +5045,7 @@ } } -void CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5071,9 +5068,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5087,7 +5084,7 @@ } } -void CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5110,9 +5107,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5126,7 +5123,7 @@ } } -void CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5149,10 +5146,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5166,7 +5163,7 @@ } } -void CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5189,10 +5186,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5206,7 +5203,7 @@ } } -void CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5229,9 +5226,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5245,7 +5242,7 @@ } } -void CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5268,9 +5265,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5284,7 +5281,7 @@ } } -void CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5307,9 +5304,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5323,7 +5320,7 @@ } } -void CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5346,9 +5343,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5362,7 +5359,7 @@ } } -void CHIPSwitchGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRSwitchGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5385,9 +5382,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5401,7 +5398,7 @@ } } -void CHIPSwitchAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRSwitchAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5424,9 +5421,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5440,7 +5437,7 @@ } } -void CHIPSwitchAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRSwitchAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5463,9 +5460,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRSwitchAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5479,7 +5476,7 @@ } } -void CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5502,10 +5499,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5519,7 +5516,7 @@ } } -void CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5542,10 +5539,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5559,7 +5556,7 @@ } } -void CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5582,9 +5579,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5598,7 +5595,7 @@ } } -void CHIPOperationalCredentialsNOCsListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTROperationalCredentialsNOCsListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -5608,8 +5605,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOperationalCredentialsClusterNOCStruct * newElement_0; - newElement_0 = [CHIPOperationalCredentialsClusterNOCStruct new]; + MTROperationalCredentialsClusterNOCStruct * newElement_0; + newElement_0 = [MTROperationalCredentialsClusterNOCStruct new]; newElement_0.noc = [NSData dataWithBytes:entry_0.noc.data() length:entry_0.noc.size()]; if (entry_0.icac.IsNull()) { newElement_0.icac = nil; @@ -5629,9 +5626,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5645,7 +5642,7 @@ } } -void CHIPOperationalCredentialsFabricsListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTROperationalCredentialsFabricsListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & value) { @@ -5655,8 +5652,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPOperationalCredentialsClusterFabricDescriptor * newElement_0; - newElement_0 = [CHIPOperationalCredentialsClusterFabricDescriptor new]; + MTROperationalCredentialsClusterFabricDescriptor * newElement_0; + newElement_0 = [MTROperationalCredentialsClusterFabricDescriptor new]; newElement_0.rootPublicKey = [NSData dataWithBytes:entry_0.rootPublicKey.data() length:entry_0.rootPublicKey.size()]; newElement_0.vendorId = [NSNumber numberWithUnsignedShort:chip::to_underlying(entry_0.vendorId)]; newElement_0.fabricId = [NSNumber numberWithUnsignedLongLong:entry_0.fabricId]; @@ -5677,9 +5674,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5693,7 +5690,7 @@ } } -void CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5716,10 +5713,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5733,7 +5730,7 @@ } } -void CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5756,10 +5753,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTROperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5773,7 +5769,7 @@ } } -void CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5796,9 +5792,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5812,7 +5808,7 @@ } } -void CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5835,9 +5831,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5851,7 +5847,7 @@ } } -void CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -5861,8 +5857,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; - newElement_0 = [CHIPGroupKeyManagementClusterGroupKeyMapStruct new]; + MTRGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; + newElement_0 = [MTRGroupKeyManagementClusterGroupKeyMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; newElement_0.groupKeySetID = [NSNumber numberWithUnsignedShort:entry_0.groupKeySetID]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -5878,9 +5874,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5894,7 +5890,7 @@ } } -void CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRGroupKeyManagementGroupTableListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -5904,8 +5900,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPGroupKeyManagementClusterGroupInfoMapStruct * newElement_0; - newElement_0 = [CHIPGroupKeyManagementClusterGroupInfoMapStruct new]; + MTRGroupKeyManagementClusterGroupInfoMapStruct * newElement_0; + newElement_0 = [MTRGroupKeyManagementClusterGroupInfoMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; @@ -5943,9 +5939,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5959,7 +5955,7 @@ } } -void CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -5982,9 +5978,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -5998,7 +5994,7 @@ } } -void CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6021,9 +6017,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6037,7 +6033,7 @@ } } -void CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6060,9 +6056,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6076,7 +6072,7 @@ } } -void CHIPFixedLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRFixedLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6085,8 +6081,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPFixedLabelClusterLabelStruct * newElement_0; - newElement_0 = [CHIPFixedLabelClusterLabelStruct new]; + MTRFixedLabelClusterLabelStruct * newElement_0; + newElement_0 = [MTRFixedLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -6105,9 +6101,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFixedLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6121,7 +6117,7 @@ } } -void CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6144,9 +6140,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6160,7 +6156,7 @@ } } -void CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6183,9 +6179,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6199,7 +6195,7 @@ } } -void CHIPFixedLabelAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRFixedLabelAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6222,9 +6218,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFixedLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6238,7 +6234,7 @@ } } -void CHIPUserLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRUserLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6247,8 +6243,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPUserLabelClusterLabelStruct * newElement_0; - newElement_0 = [CHIPUserLabelClusterLabelStruct new]; + MTRUserLabelClusterLabelStruct * newElement_0; + newElement_0 = [MTRUserLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -6267,9 +6263,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUserLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6283,7 +6279,7 @@ } } -void CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRUserLabelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6306,9 +6302,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6322,7 +6318,7 @@ } } -void CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRUserLabelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6345,9 +6341,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6361,7 +6357,7 @@ } } -void CHIPUserLabelAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRUserLabelAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6384,9 +6380,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUserLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6400,7 +6396,7 @@ } } -void CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6423,9 +6419,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6439,7 +6435,7 @@ } } -void CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6462,9 +6458,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6478,7 +6474,7 @@ } } -void CHIPBooleanStateAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBooleanStateAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6501,9 +6497,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBooleanStateAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6517,7 +6513,7 @@ } } -void CHIPModeSelectSupportedModesListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRModeSelectSupportedModesListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6526,8 +6522,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPModeSelectClusterModeOptionStruct * newElement_0; - newElement_0 = [CHIPModeSelectClusterModeOptionStruct new]; + MTRModeSelectClusterModeOptionStruct * newElement_0; + newElement_0 = [MTRModeSelectClusterModeOptionStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -6537,8 +6533,8 @@ auto iter_2 = entry_0.semanticTags.begin(); while (iter_2.Next()) { auto & entry_2 = iter_2.GetValue(); - CHIPModeSelectClusterSemanticTag * newElement_2; - newElement_2 = [CHIPModeSelectClusterSemanticTag new]; + MTRModeSelectClusterSemanticTag * newElement_2; + newElement_2 = [MTRModeSelectClusterSemanticTag new]; newElement_2.mfgCode = [NSNumber numberWithUnsignedShort:entry_2.mfgCode]; newElement_2.value = [NSNumber numberWithUnsignedShort:entry_2.value]; [array_2 addObject:newElement_2]; @@ -6562,9 +6558,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRModeSelectSupportedModesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6578,7 +6574,7 @@ } } -void CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRModeSelectGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6601,9 +6597,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6617,7 +6613,7 @@ } } -void CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRModeSelectAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6640,9 +6636,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6656,7 +6652,7 @@ } } -void CHIPModeSelectAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRModeSelectAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6679,9 +6675,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRModeSelectAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6695,7 +6691,7 @@ } } -void CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockCredentialRulesSupportAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6703,9 +6699,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6719,7 +6715,7 @@ } } -void CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockSupportedOperatingModesAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6727,9 +6723,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6743,7 +6739,7 @@ } } -void CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6751,9 +6747,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6767,7 +6763,7 @@ } } -void CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6775,9 +6771,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6791,7 +6787,7 @@ } } -void CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6814,9 +6810,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6830,7 +6826,7 @@ } } -void CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6853,9 +6849,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6869,7 +6865,7 @@ } } -void CHIPDoorLockAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -6892,9 +6888,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6908,7 +6904,7 @@ } } -void CHIPWindowCoveringConfigStatusAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringConfigStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6916,9 +6912,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6932,7 +6928,7 @@ } } -void CHIPWindowCoveringOperationalStatusAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringOperationalStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6940,9 +6936,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6956,7 +6952,7 @@ } } -void CHIPWindowCoveringModeAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6964,9 +6960,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -6980,7 +6976,7 @@ } } -void CHIPWindowCoveringSafetyStatusAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringSafetyStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -6988,9 +6984,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7004,7 +7000,7 @@ } } -void CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7027,9 +7023,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7043,7 +7039,7 @@ } } -void CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7066,9 +7062,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7082,7 +7078,7 @@ } } -void CHIPWindowCoveringAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7105,9 +7101,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7121,7 +7117,7 @@ } } -void CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7144,9 +7140,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7160,7 +7156,7 @@ } } -void CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7183,9 +7179,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7199,7 +7195,7 @@ } } -void CHIPBarrierControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRBarrierControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7222,9 +7218,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBarrierControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7238,7 +7234,7 @@ } } -void CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -7246,9 +7242,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7262,7 +7258,7 @@ } } -void CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7285,11 +7281,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7303,7 +7298,7 @@ } } -void CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7326,10 +7321,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7343,7 +7338,7 @@ } } -void CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7366,9 +7361,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7382,7 +7377,7 @@ } } -void CHIPThermostatGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7405,9 +7400,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7421,7 +7416,7 @@ } } -void CHIPThermostatAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7444,9 +7439,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7460,7 +7455,7 @@ } } -void CHIPThermostatAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7483,9 +7478,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7499,7 +7494,7 @@ } } -void CHIPFanControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFanControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7522,9 +7517,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7538,7 +7533,7 @@ } } -void CHIPFanControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFanControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7561,9 +7556,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7577,7 +7572,7 @@ } } -void CHIPFanControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRFanControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7600,9 +7595,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFanControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7616,7 +7611,7 @@ } } -void CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7639,12 +7634,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast( - context); + auto * self = static_cast( + context); if (!self->mQueue) { return; } @@ -7658,7 +7652,7 @@ } } -void CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7681,11 +7675,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast( - context); + auto * self + = static_cast(context); if (!self->mQueue) { return; } @@ -7699,7 +7693,7 @@ } } -void CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7722,11 +7716,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -7740,7 +7734,7 @@ } } -void CHIPColorControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7763,9 +7757,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7779,7 +7773,7 @@ } } -void CHIPColorControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7802,9 +7796,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7818,7 +7812,7 @@ } } -void CHIPColorControlAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7841,9 +7835,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7857,7 +7851,7 @@ } } -void CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7880,10 +7874,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7897,7 +7890,7 @@ } } -void CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7920,9 +7913,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7936,7 +7929,7 @@ } } -void CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7959,9 +7952,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -7975,7 +7968,7 @@ } } -void CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -7998,10 +7991,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8015,7 +8007,7 @@ } } -void CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8038,9 +8030,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8054,7 +8046,7 @@ } } -void CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8077,9 +8069,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8093,7 +8085,7 @@ } } -void CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8116,9 +8108,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8132,7 +8124,7 @@ } } -void CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8155,9 +8147,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8171,7 +8163,7 @@ } } -void CHIPPressureMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRPressureMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8194,9 +8186,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8210,7 +8202,7 @@ } } -void CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8233,9 +8225,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8249,7 +8241,7 @@ } } -void CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8272,9 +8264,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8288,7 +8280,7 @@ } } -void CHIPFlowMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRFlowMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8311,9 +8303,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8327,7 +8319,7 @@ } } -void CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8350,11 +8342,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8368,7 +8359,7 @@ } } -void CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8391,10 +8382,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8408,7 +8399,7 @@ } } -void CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8431,9 +8422,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8447,7 +8438,7 @@ } } -void CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8470,9 +8461,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8486,7 +8477,7 @@ } } -void CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8509,9 +8500,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8525,7 +8516,7 @@ } } -void CHIPOccupancySensingAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTROccupancySensingAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8548,9 +8539,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROccupancySensingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8564,7 +8555,7 @@ } } -void CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8587,9 +8578,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8603,7 +8594,7 @@ } } -void CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8626,9 +8617,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8642,7 +8633,7 @@ } } -void CHIPWakeOnLanAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRWakeOnLanAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8665,9 +8656,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8681,7 +8672,7 @@ } } -void CHIPChannelChannelListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRChannelChannelListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8690,8 +8681,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPChannelClusterChannelInfo * newElement_0; - newElement_0 = [CHIPChannelClusterChannelInfo new]; + MTRChannelClusterChannelInfo * newElement_0; + newElement_0 = [MTRChannelClusterChannelInfo new]; newElement_0.majorNumber = [NSNumber numberWithUnsignedShort:entry_0.majorNumber]; newElement_0.minorNumber = [NSNumber numberWithUnsignedShort:entry_0.minorNumber]; if (entry_0.name.HasValue()) { @@ -8727,9 +8718,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelChannelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelChannelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8743,14 +8734,14 @@ } } -void CHIPChannelLineupStructAttributeCallbackBridge::OnSuccessFn( +void MTRChannelLineupStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { - CHIPChannelClusterLineupInfo * _Nullable objCValue; + MTRChannelClusterLineupInfo * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPChannelClusterLineupInfo new]; + objCValue = [MTRChannelClusterLineupInfo new]; objCValue.operatorName = [[NSString alloc] initWithBytes:value.Value().operatorName.data() length:value.Value().operatorName.size() encoding:NSUTF8StringEncoding]; @@ -8773,9 +8764,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelLineupStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelLineupStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8789,14 +8780,14 @@ } } -void CHIPChannelCurrentChannelStructAttributeCallbackBridge::OnSuccessFn( +void MTRChannelCurrentChannelStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { - CHIPChannelClusterChannelInfo * _Nullable objCValue; + MTRChannelClusterChannelInfo * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPChannelClusterChannelInfo new]; + objCValue = [MTRChannelClusterChannelInfo new]; objCValue.majorNumber = [NSNumber numberWithUnsignedShort:value.Value().majorNumber]; objCValue.minorNumber = [NSNumber numberWithUnsignedShort:value.Value().minorNumber]; if (value.Value().name.HasValue()) { @@ -8824,9 +8815,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelCurrentChannelStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8840,7 +8831,7 @@ } } -void CHIPChannelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRChannelGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8863,9 +8854,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8879,7 +8870,7 @@ } } -void CHIPChannelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRChannelAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8902,9 +8893,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8918,7 +8909,7 @@ } } -void CHIPChannelAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRChannelAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8941,9 +8932,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -8957,7 +8948,7 @@ } } -void CHIPTargetNavigatorTargetListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRTargetNavigatorTargetListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -8966,8 +8957,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTargetNavigatorClusterTargetInfo * newElement_0; - newElement_0 = [CHIPTargetNavigatorClusterTargetInfo new]; + MTRTargetNavigatorClusterTargetInfo * newElement_0; + newElement_0 = [MTRTargetNavigatorClusterTargetInfo new]; newElement_0.identifier = [NSNumber numberWithUnsignedChar:entry_0.identifier]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() length:entry_0.name.size() @@ -8984,9 +8975,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9000,7 +8991,7 @@ } } -void CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9023,9 +9014,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9039,7 +9030,7 @@ } } -void CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9062,9 +9053,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9078,7 +9069,7 @@ } } -void CHIPTargetNavigatorAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRTargetNavigatorAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9101,9 +9092,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9117,14 +9108,14 @@ } } -void CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable objCValue; + MTRMediaPlaybackClusterPlaybackPosition * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPMediaPlaybackClusterPlaybackPosition new]; + objCValue = [MTRMediaPlaybackClusterPlaybackPosition new]; objCValue.updatedAt = [NSNumber numberWithUnsignedLongLong:value.Value().updatedAt]; if (value.Value().position.IsNull()) { objCValue.position = nil; @@ -9135,9 +9126,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9151,7 +9142,7 @@ } } -void CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9174,9 +9165,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9190,7 +9181,7 @@ } } -void CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9213,9 +9204,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9229,7 +9220,7 @@ } } -void CHIPMediaPlaybackAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9252,9 +9243,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9268,7 +9259,7 @@ } } -void CHIPMediaInputInputListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRMediaInputInputListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9277,8 +9268,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPMediaInputClusterInputInfo * newElement_0; - newElement_0 = [CHIPMediaInputClusterInputInfo new]; + MTRMediaInputClusterInputInfo * newElement_0; + newElement_0 = [MTRMediaInputClusterInputInfo new]; newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.inputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.inputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() @@ -9299,9 +9290,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaInputInputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9315,7 +9306,7 @@ } } -void CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaInputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9338,9 +9329,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9354,7 +9345,7 @@ } } -void CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaInputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9377,9 +9368,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9393,7 +9384,7 @@ } } -void CHIPMediaInputAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRMediaInputAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9416,9 +9407,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9432,7 +9423,7 @@ } } -void CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLowPowerGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9455,9 +9446,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9471,7 +9462,7 @@ } } -void CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRLowPowerAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9494,9 +9485,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9510,7 +9501,7 @@ } } -void CHIPLowPowerAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRLowPowerAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9533,9 +9524,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLowPowerAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9549,7 +9540,7 @@ } } -void CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9572,9 +9563,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9588,7 +9579,7 @@ } } -void CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9611,9 +9602,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9627,7 +9618,7 @@ } } -void CHIPKeypadInputAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRKeypadInputAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9650,9 +9641,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRKeypadInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9666,7 +9657,7 @@ } } -void CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherAcceptHeaderListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9689,9 +9680,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9705,7 +9696,7 @@ } } -void CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9728,9 +9719,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9744,7 +9735,7 @@ } } -void CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9767,9 +9758,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9783,7 +9774,7 @@ } } -void CHIPContentLauncherAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9806,9 +9797,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9822,7 +9813,7 @@ } } -void CHIPAudioOutputOutputListListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRAudioOutputOutputListListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9831,8 +9822,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPAudioOutputClusterOutputInfo * newElement_0; - newElement_0 = [CHIPAudioOutputClusterOutputInfo new]; + MTRAudioOutputClusterOutputInfo * newElement_0; + newElement_0 = [MTRAudioOutputClusterOutputInfo new]; newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.outputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.outputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() @@ -9850,9 +9841,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAudioOutputOutputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9866,7 +9857,7 @@ } } -void CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9889,9 +9880,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9905,7 +9896,7 @@ } } -void CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9928,9 +9919,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9944,7 +9935,7 @@ } } -void CHIPAudioOutputAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRAudioOutputAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -9967,9 +9958,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAudioOutputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -9983,7 +9974,7 @@ } } -void CHIPApplicationLauncherCatalogListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherCatalogListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10006,9 +9997,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10022,15 +10013,15 @@ } } -void CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { - CHIPApplicationLauncherClusterApplicationEP * _Nullable objCValue; + MTRApplicationLauncherClusterApplicationEP * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPApplicationLauncherClusterApplicationEP new]; - objCValue.application = [CHIPApplicationLauncherClusterApplication new]; + objCValue = [MTRApplicationLauncherClusterApplicationEP new]; + objCValue.application = [MTRApplicationLauncherClusterApplication new]; objCValue.application.catalogVendorId = [NSNumber numberWithUnsignedShort:value.Value().application.catalogVendorId]; objCValue.application.applicationId = [[NSString alloc] initWithBytes:value.Value().application.applicationId.data() length:value.Value().application.applicationId.size() @@ -10044,9 +10035,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10060,7 +10051,7 @@ } } -void CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10083,9 +10074,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10099,7 +10090,7 @@ } } -void CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10122,9 +10113,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10138,7 +10129,7 @@ } } -void CHIPApplicationLauncherAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10161,9 +10152,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10177,11 +10168,11 @@ } } -void CHIPApplicationBasicApplicationStructAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicApplicationStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::ApplicationBasic::Structs::ApplicationBasicApplication::DecodableType & value) { - CHIPApplicationBasicClusterApplicationBasicApplication * _Nonnull objCValue; - objCValue = [CHIPApplicationBasicClusterApplicationBasicApplication new]; + MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull objCValue; + objCValue = [MTRApplicationBasicClusterApplicationBasicApplication new]; objCValue.catalogVendorId = [NSNumber numberWithUnsignedShort:value.catalogVendorId]; objCValue.applicationId = [[NSString alloc] initWithBytes:value.applicationId.data() length:value.applicationId.size() @@ -10189,9 +10180,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10205,7 +10196,7 @@ } } -void CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10228,9 +10219,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10244,7 +10235,7 @@ } } -void CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10267,9 +10258,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10283,7 +10274,7 @@ } } -void CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10306,9 +10297,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10322,7 +10313,7 @@ } } -void CHIPApplicationBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10345,9 +10336,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10361,7 +10352,7 @@ } } -void CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10384,9 +10375,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10400,7 +10391,7 @@ } } -void CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10423,9 +10414,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10439,7 +10430,7 @@ } } -void CHIPAccountLoginAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRAccountLoginAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10462,9 +10453,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccountLoginAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10478,7 +10469,7 @@ } } -void CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10501,9 +10492,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10517,7 +10508,7 @@ } } -void CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10540,9 +10531,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10556,7 +10547,7 @@ } } -void CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRElectricalMeasurementAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10579,9 +10570,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10595,7 +10586,7 @@ } } -void CHIPTestClusterBitmap8AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterBitmap8AttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -10603,9 +10594,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10619,7 +10610,7 @@ } } -void CHIPTestClusterBitmap16AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterBitmap16AttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -10627,9 +10618,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10643,7 +10634,7 @@ } } -void CHIPTestClusterBitmap32AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterBitmap32AttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -10651,9 +10642,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10667,7 +10658,7 @@ } } -void CHIPTestClusterBitmap64AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterBitmap64AttributeCallbackBridge::OnSuccessFn( void * context, chip::BitMask value) { NSNumber * _Nonnull objCValue; @@ -10675,9 +10666,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10691,7 +10682,7 @@ } } -void CHIPTestClusterListInt8uListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterListInt8uListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10714,9 +10705,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterListInt8uListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10730,7 +10721,7 @@ } } -void CHIPTestClusterListOctetStringListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterListOctetStringListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -10753,9 +10744,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterListOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10769,7 +10760,7 @@ } } -void CHIPTestClusterListStructOctetStringListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRTestClusterListStructOctetStringListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { @@ -10779,8 +10770,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterTestListStructOctet * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestListStructOctet new]; + MTRTestClusterClusterTestListStructOctet * newElement_0; + newElement_0 = [MTRTestClusterClusterTestListStructOctet new]; newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1]; newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()]; [array_0 addObject:newElement_0]; @@ -10795,9 +10786,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -10811,7 +10802,7 @@ } } -void CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & value) { @@ -10821,8 +10812,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterNullablesAndOptionalsStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterNullablesAndOptionalsStruct new]; + MTRTestClusterClusterNullablesAndOptionalsStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterNullablesAndOptionalsStruct new]; if (entry_0.nullableInt.IsNull()) { newElement_0.nullableInt = nil; } else { @@ -10872,7 +10863,7 @@ if (entry_0.nullableStruct.IsNull()) { newElement_0.nullableStruct = nil; } else { - newElement_0.nullableStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableStruct.Value().a]; newElement_0.nullableStruct.b = [NSNumber numberWithBool:entry_0.nullableStruct.Value().b]; newElement_0.nullableStruct.c = @@ -10887,7 +10878,7 @@ newElement_0.nullableStruct.h = [NSNumber numberWithDouble:entry_0.nullableStruct.Value().h]; } if (entry_0.optionalStruct.HasValue()) { - newElement_0.optionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.optionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.optionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.optionalStruct.Value().a]; newElement_0.optionalStruct.b = [NSNumber numberWithBool:entry_0.optionalStruct.Value().b]; newElement_0.optionalStruct.c = @@ -10907,7 +10898,7 @@ if (entry_0.nullableOptionalStruct.Value().IsNull()) { newElement_0.nullableOptionalStruct = nil; } else { - newElement_0.nullableOptionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableOptionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableOptionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableOptionalStruct.Value().Value().a]; newElement_0.nullableOptionalStruct.b = @@ -11007,10 +10998,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11024,11 +11014,11 @@ } } -void CHIPTestClusterStructAttrStructAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterStructAttrStructAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & value) { - CHIPTestClusterClusterSimpleStruct * _Nonnull objCValue; - objCValue = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * _Nonnull objCValue; + objCValue = [MTRTestClusterClusterSimpleStruct new]; objCValue.a = [NSNumber numberWithUnsignedChar:value.a]; objCValue.b = [NSNumber numberWithBool:value.b]; objCValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(value.c)]; @@ -11040,9 +11030,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterStructAttrStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11056,7 +11046,7 @@ } } -void CHIPTestClusterListLongOctetStringListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterListLongOctetStringListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -11079,9 +11069,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11095,7 +11085,7 @@ } } -void CHIPTestClusterListFabricScopedListAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRTestClusterListFabricScopedListAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -11104,8 +11094,8 @@ auto iter_0 = value.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterTestFabricScoped * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestFabricScoped new]; + MTRTestClusterClusterTestFabricScoped * newElement_0; + newElement_0 = [MTRTestClusterClusterTestFabricScoped new]; newElement_0.fabricSensitiveInt8u = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveInt8u]; if (entry_0.optionalFabricSensitiveInt8u.HasValue()) { newElement_0.optionalFabricSensitiveInt8u = @@ -11132,7 +11122,7 @@ newElement_0.fabricSensitiveCharString = [[NSString alloc] initWithBytes:entry_0.fabricSensitiveCharString.data() length:entry_0.fabricSensitiveCharString.size() encoding:NSUTF8StringEncoding]; - newElement_0.fabricSensitiveStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.fabricSensitiveStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.fabricSensitiveStruct.a = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveStruct.a]; newElement_0.fabricSensitiveStruct.b = [NSNumber numberWithBool:entry_0.fabricSensitiveStruct.b]; newElement_0.fabricSensitiveStruct.c = @@ -11174,9 +11164,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11190,7 +11180,7 @@ } } -void CHIPTestClusterNullableBitmap8AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterNullableBitmap8AttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable> & value) { NSNumber * _Nullable objCValue; @@ -11202,9 +11192,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11218,7 +11208,7 @@ } } -void CHIPTestClusterNullableBitmap16AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterNullableBitmap16AttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable> & value) { NSNumber * _Nullable objCValue; @@ -11230,9 +11220,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11246,7 +11236,7 @@ } } -void CHIPTestClusterNullableBitmap32AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterNullableBitmap32AttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable> & value) { NSNumber * _Nullable objCValue; @@ -11258,9 +11248,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11274,7 +11264,7 @@ } } -void CHIPTestClusterNullableBitmap64AttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterNullableBitmap64AttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable> & value) { NSNumber * _Nullable objCValue; @@ -11286,9 +11276,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11302,14 +11292,14 @@ } } -void CHIPTestClusterNullableStructStructAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRTestClusterNullableStructStructAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { - CHIPTestClusterClusterSimpleStruct * _Nullable objCValue; + MTRTestClusterClusterSimpleStruct * _Nullable objCValue; if (value.IsNull()) { objCValue = nil; } else { - objCValue = [CHIPTestClusterClusterSimpleStruct new]; + objCValue = [MTRTestClusterClusterSimpleStruct new]; objCValue.a = [NSNumber numberWithUnsignedChar:value.Value().a]; objCValue.b = [NSNumber numberWithBool:value.Value().b]; objCValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(value.Value().c)]; @@ -11324,9 +11314,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterNullableStructStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11340,7 +11330,7 @@ } } -void CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -11363,9 +11353,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11379,7 +11369,7 @@ } } -void CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterAcceptedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -11402,9 +11392,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11418,7 +11408,7 @@ } } -void CHIPTestClusterAttributeListListAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterAttributeListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; @@ -11441,9 +11431,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -11457,10 +11447,10 @@ } } -void CHIPGroupsClusterAddGroupResponseCallbackBridge::OnSuccessFn( +void MTRGroupsClusterAddGroupResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType & data) { - auto * response = [CHIPGroupsClusterAddGroupResponseParams new]; + auto * response = [MTRGroupsClusterAddGroupResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11470,10 +11460,10 @@ DispatchSuccess(context, response); }; -void CHIPGroupsClusterViewGroupResponseCallbackBridge::OnSuccessFn( +void MTRGroupsClusterViewGroupResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Groups::Commands::ViewGroupResponse::DecodableType & data) { - auto * response = [CHIPGroupsClusterViewGroupResponseParams new]; + auto * response = [MTRGroupsClusterViewGroupResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11488,10 +11478,10 @@ DispatchSuccess(context, response); }; -void CHIPGroupsClusterGetGroupMembershipResponseCallbackBridge::OnSuccessFn( +void MTRGroupsClusterGetGroupMembershipResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Groups::Commands::GetGroupMembershipResponse::DecodableType & data) { - auto * response = [CHIPGroupsClusterGetGroupMembershipResponseParams new]; + auto * response = [MTRGroupsClusterGetGroupMembershipResponseParams new]; { if (data.capacity.IsNull()) { response.capacity = nil; @@ -11520,10 +11510,10 @@ DispatchSuccess(context, response); }; -void CHIPGroupsClusterRemoveGroupResponseCallbackBridge::OnSuccessFn( +void MTRGroupsClusterRemoveGroupResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Groups::Commands::RemoveGroupResponse::DecodableType & data) { - auto * response = [CHIPGroupsClusterRemoveGroupResponseParams new]; + auto * response = [MTRGroupsClusterRemoveGroupResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11533,10 +11523,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterAddSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterAddSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::AddSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterAddSceneResponseParams new]; + auto * response = [MTRScenesClusterAddSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11549,10 +11539,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterViewSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterViewSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::ViewSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterViewSceneResponseParams new]; + auto * response = [MTRScenesClusterViewSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11585,16 +11575,16 @@ auto iter_1 = data.extensionFieldSets.Value().begin(); while (iter_1.Next()) { auto & entry_1 = iter_1.GetValue(); - CHIPScenesClusterExtensionFieldSet * newElement_1; - newElement_1 = [CHIPScenesClusterExtensionFieldSet new]; + MTRScenesClusterExtensionFieldSet * newElement_1; + newElement_1 = [MTRScenesClusterExtensionFieldSet new]; newElement_1.clusterId = [NSNumber numberWithUnsignedInt:entry_1.clusterId]; { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_1.attributeValueList.begin(); while (iter_3.Next()) { auto & entry_3 = iter_3.GetValue(); - CHIPScenesClusterAttributeValuePair * newElement_3; - newElement_3 = [CHIPScenesClusterAttributeValuePair new]; + MTRScenesClusterAttributeValuePair * newElement_3; + newElement_3 = [MTRScenesClusterAttributeValuePair new]; if (entry_3.attributeId.HasValue()) { newElement_3.attributeId = [NSNumber numberWithUnsignedInt:entry_3.attributeId.Value()]; } else { @@ -11641,10 +11631,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterRemoveSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterRemoveSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::RemoveSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterRemoveSceneResponseParams new]; + auto * response = [MTRScenesClusterRemoveSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11657,10 +11647,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterRemoveAllScenesResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterRemoveAllScenesResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterRemoveAllScenesResponseParams new]; + auto * response = [MTRScenesClusterRemoveAllScenesResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11670,10 +11660,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterStoreSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterStoreSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::StoreSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterStoreSceneResponseParams new]; + auto * response = [MTRScenesClusterStoreSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11686,10 +11676,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterGetSceneMembershipResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterGetSceneMembershipResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterGetSceneMembershipResponseParams new]; + auto * response = [MTRScenesClusterGetSceneMembershipResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11728,10 +11718,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterEnhancedAddSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterEnhancedAddSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::EnhancedAddSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterEnhancedAddSceneResponseParams new]; + auto * response = [MTRScenesClusterEnhancedAddSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11744,10 +11734,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterEnhancedViewSceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterEnhancedViewSceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::EnhancedViewSceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterEnhancedViewSceneResponseParams new]; + auto * response = [MTRScenesClusterEnhancedViewSceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11780,16 +11770,16 @@ auto iter_1 = data.extensionFieldSets.Value().begin(); while (iter_1.Next()) { auto & entry_1 = iter_1.GetValue(); - CHIPScenesClusterExtensionFieldSet * newElement_1; - newElement_1 = [CHIPScenesClusterExtensionFieldSet new]; + MTRScenesClusterExtensionFieldSet * newElement_1; + newElement_1 = [MTRScenesClusterExtensionFieldSet new]; newElement_1.clusterId = [NSNumber numberWithUnsignedInt:entry_1.clusterId]; { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_1.attributeValueList.begin(); while (iter_3.Next()) { auto & entry_3 = iter_3.GetValue(); - CHIPScenesClusterAttributeValuePair * newElement_3; - newElement_3 = [CHIPScenesClusterAttributeValuePair new]; + MTRScenesClusterAttributeValuePair * newElement_3; + newElement_3 = [MTRScenesClusterAttributeValuePair new]; if (entry_3.attributeId.HasValue()) { newElement_3.attributeId = [NSNumber numberWithUnsignedInt:entry_3.attributeId.Value()]; } else { @@ -11836,10 +11826,10 @@ DispatchSuccess(context, response); }; -void CHIPScenesClusterCopySceneResponseCallbackBridge::OnSuccessFn( +void MTRScenesClusterCopySceneResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Scenes::Commands::CopySceneResponse::DecodableType & data) { - auto * response = [CHIPScenesClusterCopySceneResponseParams new]; + auto * response = [MTRScenesClusterCopySceneResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:data.status]; } @@ -11852,10 +11842,10 @@ DispatchSuccess(context, response); }; -void CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType & data) { - auto * response = [CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams new]; + auto * response = [MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -11916,10 +11906,10 @@ DispatchSuccess(context, response); }; -void CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & data) { - auto * response = [CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams new]; + auto * response = [MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams new]; { response.action = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.action)]; } @@ -11929,10 +11919,10 @@ DispatchSuccess(context, response); }; -void CHIPGeneralCommissioningClusterArmFailSafeResponseCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningClusterArmFailSafeResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & data) { - auto * response = [CHIPGeneralCommissioningClusterArmFailSafeResponseParams new]; + auto * response = [MTRGeneralCommissioningClusterArmFailSafeResponseParams new]; { response.errorCode = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.errorCode)]; } @@ -11944,10 +11934,10 @@ DispatchSuccess(context, response); }; -void CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType & data) { - auto * response = [CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams new]; + auto * response = [MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams new]; { response.errorCode = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.errorCode)]; } @@ -11959,10 +11949,10 @@ DispatchSuccess(context, response); }; -void CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & data) { - auto * response = [CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams new]; + auto * response = [MTRGeneralCommissioningClusterCommissioningCompleteResponseParams new]; { response.errorCode = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.errorCode)]; } @@ -11974,10 +11964,10 @@ DispatchSuccess(context, response); }; -void CHIPNetworkCommissioningClusterScanNetworksResponseCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningClusterScanNetworksResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType & data) { - auto * response = [CHIPNetworkCommissioningClusterScanNetworksResponseParams new]; + auto * response = [MTRNetworkCommissioningClusterScanNetworksResponseParams new]; { response.networkingStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.networkingStatus)]; } @@ -11997,8 +11987,8 @@ auto iter_1 = data.wiFiScanResults.Value().begin(); while (iter_1.Next()) { auto & entry_1 = iter_1.GetValue(); - CHIPNetworkCommissioningClusterWiFiInterfaceScanResult * newElement_1; - newElement_1 = [CHIPNetworkCommissioningClusterWiFiInterfaceScanResult new]; + MTRNetworkCommissioningClusterWiFiInterfaceScanResult * newElement_1; + newElement_1 = [MTRNetworkCommissioningClusterWiFiInterfaceScanResult new]; newElement_1.security = [NSNumber numberWithUnsignedChar:entry_1.security.Raw()]; newElement_1.ssid = [NSData dataWithBytes:entry_1.ssid.data() length:entry_1.ssid.size()]; newElement_1.bssid = [NSData dataWithBytes:entry_1.bssid.data() length:entry_1.bssid.size()]; @@ -12025,8 +12015,8 @@ auto iter_1 = data.threadScanResults.Value().begin(); while (iter_1.Next()) { auto & entry_1 = iter_1.GetValue(); - CHIPNetworkCommissioningClusterThreadInterfaceScanResult * newElement_1; - newElement_1 = [CHIPNetworkCommissioningClusterThreadInterfaceScanResult new]; + MTRNetworkCommissioningClusterThreadInterfaceScanResult * newElement_1; + newElement_1 = [MTRNetworkCommissioningClusterThreadInterfaceScanResult new]; newElement_1.panId = [NSNumber numberWithUnsignedShort:entry_1.panId]; newElement_1.extendedPanId = [NSNumber numberWithUnsignedLongLong:entry_1.extendedPanId]; newElement_1.networkName = [[NSString alloc] initWithBytes:entry_1.networkName.data() @@ -12054,10 +12044,10 @@ DispatchSuccess(context, response); }; -void CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType & data) { - auto * response = [CHIPNetworkCommissioningClusterNetworkConfigResponseParams new]; + auto * response = [MTRNetworkCommissioningClusterNetworkConfigResponseParams new]; { response.networkingStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.networkingStatus)]; } @@ -12080,10 +12070,10 @@ DispatchSuccess(context, response); }; -void CHIPNetworkCommissioningClusterConnectNetworkResponseCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningClusterConnectNetworkResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & data) { - auto * response = [CHIPNetworkCommissioningClusterConnectNetworkResponseParams new]; + auto * response = [MTRNetworkCommissioningClusterConnectNetworkResponseParams new]; { response.networkingStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.networkingStatus)]; } @@ -12106,10 +12096,10 @@ DispatchSuccess(context, response); }; -void CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType & data) { - auto * response = [CHIPDiagnosticLogsClusterRetrieveLogsResponseParams new]; + auto * response = [MTRDiagnosticLogsClusterRetrieveLogsResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12125,10 +12115,10 @@ DispatchSuccess(context, response); }; -void CHIPOperationalCredentialsClusterAttestationResponseCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsClusterAttestationResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OperationalCredentials::Commands::AttestationResponse::DecodableType & data) { - auto * response = [CHIPOperationalCredentialsClusterAttestationResponseParams new]; + auto * response = [MTROperationalCredentialsClusterAttestationResponseParams new]; { response.attestationElements = [NSData dataWithBytes:data.attestationElements.data() length:data.attestationElements.size()]; @@ -12139,20 +12129,20 @@ DispatchSuccess(context, response); }; -void CHIPOperationalCredentialsClusterCertificateChainResponseCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsClusterCertificateChainResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainResponse::DecodableType & data) { - auto * response = [CHIPOperationalCredentialsClusterCertificateChainResponseParams new]; + auto * response = [MTROperationalCredentialsClusterCertificateChainResponseParams new]; { response.certificate = [NSData dataWithBytes:data.certificate.data() length:data.certificate.size()]; } DispatchSuccess(context, response); }; -void CHIPOperationalCredentialsClusterCSRResponseCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsClusterCSRResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OperationalCredentials::Commands::CSRResponse::DecodableType & data) { - auto * response = [CHIPOperationalCredentialsClusterCSRResponseParams new]; + auto * response = [MTROperationalCredentialsClusterCSRResponseParams new]; { response.nocsrElements = [NSData dataWithBytes:data.NOCSRElements.data() length:data.NOCSRElements.size()]; } @@ -12163,10 +12153,10 @@ DispatchSuccess(context, response); }; -void CHIPOperationalCredentialsClusterNOCResponseCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsClusterNOCResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType & data) { - auto * response = [CHIPOperationalCredentialsClusterNOCResponseParams new]; + auto * response = [MTROperationalCredentialsClusterNOCResponseParams new]; { response.statusCode = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.statusCode)]; } @@ -12189,12 +12179,12 @@ DispatchSuccess(context, response); }; -void CHIPGroupKeyManagementClusterKeySetReadResponseCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementClusterKeySetReadResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadResponse::DecodableType & data) { - auto * response = [CHIPGroupKeyManagementClusterKeySetReadResponseParams new]; + auto * response = [MTRGroupKeyManagementClusterKeySetReadResponseParams new]; { - response.groupKeySet = [CHIPGroupKeyManagementClusterGroupKeySetStruct new]; + response.groupKeySet = [MTRGroupKeyManagementClusterGroupKeySetStruct new]; response.groupKeySet.groupKeySetID = [NSNumber numberWithUnsignedShort:data.groupKeySet.groupKeySetID]; response.groupKeySet.groupKeySecurityPolicy = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.groupKeySet.groupKeySecurityPolicy)]; @@ -12235,10 +12225,10 @@ DispatchSuccess(context, response); }; -void CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & data) { - auto * response = [CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams new]; + auto * response = [MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams new]; { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; @@ -12260,10 +12250,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterGetWeekDayScheduleResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterGetWeekDayScheduleResponseParams new]; + auto * response = [MTRDoorLockClusterGetWeekDayScheduleResponseParams new]; { response.weekDayIndex = [NSNumber numberWithUnsignedChar:data.weekDayIndex]; } @@ -12311,10 +12301,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetYearDayScheduleResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterGetYearDayScheduleResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterGetYearDayScheduleResponseParams new]; + auto * response = [MTRDoorLockClusterGetYearDayScheduleResponseParams new]; { response.yearDayIndex = [NSNumber numberWithUnsignedChar:data.yearDayIndex]; } @@ -12341,10 +12331,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetHolidayScheduleResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterGetHolidayScheduleResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterGetHolidayScheduleResponseParams new]; + auto * response = [MTRDoorLockClusterGetHolidayScheduleResponseParams new]; { response.holidayIndex = [NSNumber numberWithUnsignedChar:data.holidayIndex]; } @@ -12375,10 +12365,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetUserResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterGetUserResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterGetUserResponseParams new]; + auto * response = [MTRDoorLockClusterGetUserResponseParams new]; { response.userIndex = [NSNumber numberWithUnsignedShort:data.userIndex]; } @@ -12428,8 +12418,8 @@ auto iter_1 = data.credentials.Value().begin(); while (iter_1.Next()) { auto & entry_1 = iter_1.GetValue(); - CHIPDoorLockClusterDlCredential * newElement_1; - newElement_1 = [CHIPDoorLockClusterDlCredential new]; + MTRDoorLockClusterDlCredential * newElement_1; + newElement_1 = [MTRDoorLockClusterDlCredential new]; newElement_1.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_1.credentialType)]; newElement_1.credentialIndex = [NSNumber numberWithUnsignedShort:entry_1.credentialIndex]; [array_1 addObject:newElement_1]; @@ -12467,10 +12457,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterSetCredentialResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterSetCredentialResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::SetCredentialResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterSetCredentialResponseParams new]; + auto * response = [MTRDoorLockClusterSetCredentialResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12491,10 +12481,10 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetCredentialStatusResponseCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterGetCredentialStatusResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType & data) { - auto * response = [CHIPDoorLockClusterGetCredentialStatusResponseParams new]; + auto * response = [MTRDoorLockClusterGetCredentialStatusResponseParams new]; { response.credentialExists = [NSNumber numberWithBool:data.credentialExists]; } @@ -12529,10 +12519,10 @@ DispatchSuccess(context, response); }; -void CHIPThermostatClusterGetWeeklyScheduleResponseCallbackBridge::OnSuccessFn( +void MTRThermostatClusterGetWeeklyScheduleResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & data) { - auto * response = [CHIPThermostatClusterGetWeeklyScheduleResponseParams new]; + auto * response = [MTRThermostatClusterGetWeeklyScheduleResponseParams new]; { response.numberOfTransitionsForSequence = [NSNumber numberWithUnsignedChar:data.numberOfTransitionsForSequence]; } @@ -12548,8 +12538,8 @@ auto iter_0 = data.transitions.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPThermostatClusterThermostatScheduleTransition * newElement_0; - newElement_0 = [CHIPThermostatClusterThermostatScheduleTransition new]; + MTRThermostatClusterThermostatScheduleTransition * newElement_0; + newElement_0 = [MTRThermostatClusterThermostatScheduleTransition new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; if (entry_0.heatSetpoint.IsNull()) { newElement_0.heatSetpoint = nil; @@ -12574,10 +12564,10 @@ DispatchSuccess(context, response); }; -void CHIPChannelClusterChangeChannelResponseCallbackBridge::OnSuccessFn( +void MTRChannelClusterChangeChannelResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::Channel::Commands::ChangeChannelResponse::DecodableType & data) { - auto * response = [CHIPChannelClusterChangeChannelResponseParams new]; + auto * response = [MTRChannelClusterChangeChannelResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12593,10 +12583,10 @@ DispatchSuccess(context, response); }; -void CHIPTargetNavigatorClusterNavigateTargetResponseCallbackBridge::OnSuccessFn( +void MTRTargetNavigatorClusterNavigateTargetResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType & data) { - auto * response = [CHIPTargetNavigatorClusterNavigateTargetResponseParams new]; + auto * response = [MTRTargetNavigatorClusterNavigateTargetResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12612,10 +12602,10 @@ DispatchSuccess(context, response); }; -void CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackClusterPlaybackResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType & data) { - auto * response = [CHIPMediaPlaybackClusterPlaybackResponseParams new]; + auto * response = [MTRMediaPlaybackClusterPlaybackResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12631,20 +12621,20 @@ DispatchSuccess(context, response); }; -void CHIPKeypadInputClusterSendKeyResponseCallbackBridge::OnSuccessFn( +void MTRKeypadInputClusterSendKeyResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType & data) { - auto * response = [CHIPKeypadInputClusterSendKeyResponseParams new]; + auto * response = [MTRKeypadInputClusterSendKeyResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } DispatchSuccess(context, response); }; -void CHIPContentLauncherClusterLaunchResponseCallbackBridge::OnSuccessFn( +void MTRContentLauncherClusterLaunchResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType & data) { - auto * response = [CHIPContentLauncherClusterLaunchResponseParams new]; + auto * response = [MTRContentLauncherClusterLaunchResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12660,10 +12650,10 @@ DispatchSuccess(context, response); }; -void CHIPApplicationLauncherClusterLauncherResponseCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherClusterLauncherResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::ApplicationLauncher::Commands::LauncherResponse::DecodableType & data) { - auto * response = [CHIPApplicationLauncherClusterLauncherResponseParams new]; + auto * response = [MTRApplicationLauncherClusterLauncherResponseParams new]; { response.status = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.status)]; } @@ -12673,10 +12663,10 @@ DispatchSuccess(context, response); }; -void CHIPAccountLoginClusterGetSetupPINResponseCallbackBridge::OnSuccessFn( +void MTRAccountLoginClusterGetSetupPINResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::AccountLogin::Commands::GetSetupPINResponse::DecodableType & data) { - auto * response = [CHIPAccountLoginClusterGetSetupPINResponseParams new]; + auto * response = [MTRAccountLoginClusterGetSetupPINResponseParams new]; { response.setupPIN = [[NSString alloc] initWithBytes:data.setupPIN.data() length:data.setupPIN.size() @@ -12685,50 +12675,50 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestSpecificResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestSpecificResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestSpecificResponseParams new]; + auto * response = [MTRTestClusterClusterTestSpecificResponseParams new]; { response.returnValue = [NSNumber numberWithUnsignedChar:data.returnValue]; } DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestAddArgumentsResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestAddArgumentsResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestAddArgumentsResponseParams new]; + auto * response = [MTRTestClusterClusterTestAddArgumentsResponseParams new]; { response.returnValue = [NSNumber numberWithUnsignedChar:data.returnValue]; } DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestSimpleArgumentResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestSimpleArgumentResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestSimpleArgumentResponseParams new]; + auto * response = [MTRTestClusterClusterTestSimpleArgumentResponseParams new]; { response.returnValue = [NSNumber numberWithBool:data.returnValue]; } DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestStructArrayArgumentResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestStructArrayArgumentResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestStructArrayArgumentResponseParams new]; + auto * response = [MTRTestClusterClusterTestStructArrayArgumentResponseParams new]; { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg1.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterNestedStructList * newElement_0; - newElement_0 = [CHIPTestClusterClusterNestedStructList new]; + MTRTestClusterClusterNestedStructList * newElement_0; + newElement_0 = [MTRTestClusterClusterNestedStructList new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; - newElement_0.c = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.c = [MTRTestClusterClusterSimpleStruct new]; newElement_0.c.a = [NSNumber numberWithUnsignedChar:entry_0.c.a]; newElement_0.c.b = [NSNumber numberWithBool:entry_0.c.b]; newElement_0.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c.c)]; @@ -12744,8 +12734,8 @@ auto iter_2 = entry_0.d.begin(); while (iter_2.Next()) { auto & entry_2 = iter_2.GetValue(); - CHIPTestClusterClusterSimpleStruct * newElement_2; - newElement_2 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_2; + newElement_2 = [MTRTestClusterClusterSimpleStruct new]; newElement_2.a = [NSNumber numberWithUnsignedChar:entry_2.a]; newElement_2.b = [NSNumber numberWithBool:entry_2.b]; newElement_2.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.c)]; @@ -12828,8 +12818,8 @@ auto iter_0 = data.arg2.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterSimpleStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterSimpleStruct new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; newElement_0.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c)]; @@ -12892,10 +12882,10 @@ } ; -void CHIPTestClusterClusterTestListInt8UReverseResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestListInt8UReverseResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestListInt8UReverseResponseParams new]; + auto * response = [MTRTestClusterClusterTestListInt8UReverseResponseParams new]; { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; @@ -12917,10 +12907,10 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestEnumsResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestEnumsResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestEnumsResponseParams new]; + auto * response = [MTRTestClusterClusterTestEnumsResponseParams new]; { response.arg1 = [NSNumber numberWithUnsignedShort:chip::to_underlying(data.arg1)]; } @@ -12930,10 +12920,10 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestNullableOptionalResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestNullableOptionalResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestNullableOptionalResponseParams new]; + auto * response = [MTRTestClusterClusterTestNullableOptionalResponseParams new]; { response.wasPresent = [NSNumber numberWithBool:data.wasPresent]; } @@ -12965,10 +12955,10 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestComplexNullableOptionalResponseParams new]; + auto * response = [MTRTestClusterClusterTestComplexNullableOptionalResponseParams new]; { response.nullableIntWasNull = [NSNumber numberWithBool:data.nullableIntWasNull]; } @@ -13054,7 +13044,7 @@ } { if (data.nullableStructValue.HasValue()) { - response.nullableStructValue = [CHIPTestClusterClusterSimpleStruct new]; + response.nullableStructValue = [MTRTestClusterClusterSimpleStruct new]; response.nullableStructValue.a = [NSNumber numberWithUnsignedChar:data.nullableStructValue.Value().a]; response.nullableStructValue.b = [NSNumber numberWithBool:data.nullableStructValue.Value().b]; response.nullableStructValue.c = @@ -13076,7 +13066,7 @@ } { if (data.optionalStructValue.HasValue()) { - response.optionalStructValue = [CHIPTestClusterClusterSimpleStruct new]; + response.optionalStructValue = [MTRTestClusterClusterSimpleStruct new]; response.optionalStructValue.a = [NSNumber numberWithUnsignedChar:data.optionalStructValue.Value().a]; response.optionalStructValue.b = [NSNumber numberWithBool:data.optionalStructValue.Value().b]; response.optionalStructValue.c = @@ -13105,7 +13095,7 @@ } { if (data.nullableOptionalStructValue.HasValue()) { - response.nullableOptionalStructValue = [CHIPTestClusterClusterSimpleStruct new]; + response.nullableOptionalStructValue = [MTRTestClusterClusterSimpleStruct new]; response.nullableOptionalStructValue.a = [NSNumber numberWithUnsignedChar:data.nullableOptionalStructValue.Value().a]; response.nullableOptionalStructValue.b = [NSNumber numberWithBool:data.nullableOptionalStructValue.Value().b]; response.nullableOptionalStructValue.c = @@ -13209,22 +13199,22 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterBooleanResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterBooleanResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterBooleanResponseParams new]; + auto * response = [MTRTestClusterClusterBooleanResponseParams new]; { response.value = [NSNumber numberWithBool:data.value]; } DispatchSuccess(context, response); }; -void CHIPTestClusterClusterSimpleStructResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterSimpleStructResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterSimpleStructResponseParams new]; + auto * response = [MTRTestClusterClusterSimpleStructResponseParams new]; { - response.arg1 = [CHIPTestClusterClusterSimpleStruct new]; + response.arg1 = [MTRTestClusterClusterSimpleStruct new]; response.arg1.a = [NSNumber numberWithUnsignedChar:data.arg1.a]; response.arg1.b = [NSNumber numberWithBool:data.arg1.b]; response.arg1.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.arg1.c)]; @@ -13239,27 +13229,27 @@ DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestEmitTestEventResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestEmitTestEventResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestEmitTestEventResponseParams new]; + auto * response = [MTRTestClusterClusterTestEmitTestEventResponseParams new]; { response.value = [NSNumber numberWithUnsignedLongLong:data.value]; } DispatchSuccess(context, response); }; -void CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType & data) { - auto * response = [CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams new]; + auto * response = [MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams new]; { response.value = [NSNumber numberWithUnsignedLongLong:data.value]; } DispatchSuccess(context, response); }; -void CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Identify::IdentifyEffectIdentifier value) { NSNumber * _Nonnull objCValue; @@ -13267,9 +13257,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13283,7 +13273,7 @@ } } -void CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn( +void MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13295,10 +13285,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13312,7 +13302,7 @@ } } -void CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Identify::IdentifyEffectVariant value) { NSNumber * _Nonnull objCValue; @@ -13320,9 +13310,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13336,7 +13326,7 @@ } } -void CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13348,9 +13338,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13364,7 +13354,7 @@ } } -void CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn( +void MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Identify::IdentifyIdentifyType value) { NSNumber * _Nonnull objCValue; @@ -13372,9 +13362,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13388,7 +13378,7 @@ } } -void CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13400,9 +13390,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13416,7 +13406,7 @@ } } -void CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OnOff::OnOffDelayedAllOffEffectVariant value) { NSNumber * _Nonnull objCValue; @@ -13424,9 +13414,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13440,7 +13430,7 @@ } } -void CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13452,11 +13442,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13470,7 +13459,7 @@ } } -void CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OnOff::OnOffDyingLightEffectVariant value) { NSNumber * _Nonnull objCValue; @@ -13478,9 +13467,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13494,7 +13483,7 @@ } } -void CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13506,10 +13495,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13523,7 +13512,7 @@ } } -void CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge::OnSuccessFn( +void MTROnOffClusterOnOffEffectIdentifierAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OnOff::OnOffEffectIdentifier value) { NSNumber * _Nonnull objCValue; @@ -13531,9 +13520,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13547,7 +13536,7 @@ } } -void CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13559,9 +13548,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13575,7 +13564,7 @@ } } -void CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge::OnSuccessFn( +void MTROnOffClusterOnOffStartUpOnOffAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OnOff::OnOffStartUpOnOff value) { NSNumber * _Nonnull objCValue; @@ -13583,9 +13572,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTROnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13599,7 +13588,7 @@ } } -void CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13611,9 +13600,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13627,7 +13616,7 @@ } } -void CHIPLevelControlClusterMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRLevelControlClusterMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::LevelControl::MoveMode value) { NSNumber * _Nonnull objCValue; @@ -13635,9 +13624,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13651,7 +13640,7 @@ } } -void CHIPNullableLevelControlClusterMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableLevelControlClusterMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13663,9 +13652,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13679,7 +13668,7 @@ } } -void CHIPLevelControlClusterStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRLevelControlClusterStepModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::LevelControl::StepMode value) { NSNumber * _Nonnull objCValue; @@ -13687,9 +13676,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPLevelControlClusterStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRLevelControlClusterStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13703,7 +13692,7 @@ } } -void CHIPNullableLevelControlClusterStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableLevelControlClusterStepModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13715,9 +13704,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13731,7 +13720,7 @@ } } -void CHIPApplianceControlClusterApplianceStatusAttributeCallbackBridge::OnSuccessFn( +void MTRApplianceControlClusterApplianceStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplianceControl::ApplianceStatus value) { NSNumber * _Nonnull objCValue; @@ -13739,9 +13728,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13755,7 +13744,7 @@ } } -void CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13767,10 +13756,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13784,7 +13772,7 @@ } } -void CHIPApplianceControlClusterCommandIdentificationAttributeCallbackBridge::OnSuccessFn( +void MTRApplianceControlClusterCommandIdentificationAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplianceControl::CommandIdentification value) { NSNumber * _Nonnull objCValue; @@ -13792,9 +13780,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13808,7 +13796,7 @@ } } -void CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge::OnSuccessFn( +void MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13820,11 +13808,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -13838,7 +13826,7 @@ } } -void CHIPApplianceControlClusterWarningEventAttributeCallbackBridge::OnSuccessFn( +void MTRApplianceControlClusterWarningEventAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplianceControl::WarningEvent value) { NSNumber * _Nonnull objCValue; @@ -13846,9 +13834,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13862,7 +13850,7 @@ } } -void CHIPNullableApplianceControlClusterWarningEventAttributeCallbackBridge::OnSuccessFn( +void MTRNullableApplianceControlClusterWarningEventAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13874,9 +13862,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13890,7 +13878,7 @@ } } -void CHIPAccessControlClusterAuthModeAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlClusterAuthModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AccessControl::AuthMode value) { NSNumber * _Nonnull objCValue; @@ -13898,9 +13886,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13914,7 +13902,7 @@ } } -void CHIPNullableAccessControlClusterAuthModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableAccessControlClusterAuthModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13926,9 +13914,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13942,7 +13930,7 @@ } } -void CHIPAccessControlClusterChangeTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlClusterChangeTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AccessControl::ChangeTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -13950,9 +13938,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13966,7 +13954,7 @@ } } -void CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -13978,9 +13966,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -13994,7 +13982,7 @@ } } -void CHIPAccessControlClusterPrivilegeAttributeCallbackBridge::OnSuccessFn( +void MTRAccessControlClusterPrivilegeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AccessControl::Privilege value) { NSNumber * _Nonnull objCValue; @@ -14002,9 +13990,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14018,7 +14006,7 @@ } } -void CHIPNullableAccessControlClusterPrivilegeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableAccessControlClusterPrivilegeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14030,9 +14018,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14046,7 +14034,7 @@ } } -void CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsClusterActionErrorEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::BridgedActions::ActionErrorEnum value) { NSNumber * _Nonnull objCValue; @@ -14054,9 +14042,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14070,7 +14058,7 @@ } } -void CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14082,9 +14070,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14098,7 +14086,7 @@ } } -void CHIPBridgedActionsClusterActionStateEnumAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsClusterActionStateEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::BridgedActions::ActionStateEnum value) { NSNumber * _Nonnull objCValue; @@ -14106,9 +14094,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14122,7 +14110,7 @@ } } -void CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14134,9 +14122,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14150,7 +14138,7 @@ } } -void CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsClusterActionTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::BridgedActions::ActionTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -14158,9 +14146,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14174,7 +14162,7 @@ } } -void CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14186,9 +14174,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14202,7 +14190,7 @@ } } -void CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::BridgedActions::EndpointListTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -14210,9 +14198,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14226,7 +14214,7 @@ } } -void CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14238,10 +14226,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14255,7 +14243,7 @@ } } -void CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTAApplyUpdateAction value) { NSNumber * _Nonnull objCValue; @@ -14263,11 +14251,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -14281,7 +14269,7 @@ } } -void CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14293,12 +14281,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast( - context); + auto * self = static_cast( + context); if (!self->mQueue) { return; } @@ -14312,7 +14299,7 @@ } } -void CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTADownloadProtocol value) { NSNumber * _Nonnull objCValue; @@ -14320,11 +14307,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14338,7 +14324,7 @@ } } -void CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14350,11 +14336,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast( - context); + auto * self + = static_cast(context); if (!self->mQueue) { return; } @@ -14368,7 +14354,7 @@ } } -void CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTAQueryStatus value) { NSNumber * _Nonnull objCValue; @@ -14376,10 +14362,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14393,7 +14378,7 @@ } } -void CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14405,11 +14390,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -14423,7 +14408,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAAnnouncementReason value) { NSNumber * _Nonnull objCValue; @@ -14431,11 +14416,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -14449,7 +14434,7 @@ } } -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14461,11 +14446,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge:: +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished(void * context) { auto * self - = static_cast( + = static_cast( context); if (!self->mQueue) { return; @@ -14480,7 +14465,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAChangeReasonEnum value) { NSNumber * _Nonnull objCValue; @@ -14488,11 +14473,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -14506,7 +14491,7 @@ } } -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14518,12 +14503,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast( - context); + auto * self = static_cast( + context); if (!self->mQueue) { return; } @@ -14537,7 +14521,7 @@ } } -void CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge::OnSuccessFn( +void MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAUpdateStateEnum value) { NSNumber * _Nonnull objCValue; @@ -14545,11 +14529,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14563,7 +14546,7 @@ } } -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14575,11 +14558,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast( - context); + auto * self + = static_cast(context); if (!self->mQueue) { return; } @@ -14593,7 +14576,7 @@ } } -void CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::TimeFormatLocalization::CalendarType value) { NSNumber * _Nonnull objCValue; @@ -14601,9 +14584,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14617,7 +14600,7 @@ } } -void CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14629,10 +14612,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14646,7 +14629,7 @@ } } -void CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge::OnSuccessFn( +void MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::TimeFormatLocalization::HourFormat value) { NSNumber * _Nonnull objCValue; @@ -14654,9 +14637,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14670,7 +14653,7 @@ } } -void CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge::OnSuccessFn( +void MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14682,10 +14665,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14699,7 +14682,7 @@ } } -void CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge::OnSuccessFn( +void MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::UnitLocalization::TempUnit value) { NSNumber * _Nonnull objCValue; @@ -14707,9 +14690,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14723,7 +14706,7 @@ } } -void CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge::OnSuccessFn( +void MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14735,9 +14718,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14751,7 +14734,7 @@ } } -void CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::BatChargeFaultType value) { NSNumber * _Nonnull objCValue; @@ -14759,9 +14742,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14775,7 +14758,7 @@ } } -void CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14787,9 +14770,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14803,7 +14786,7 @@ } } -void CHIPPowerSourceClusterBatChargeLevelAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterBatChargeLevelAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::BatChargeLevel value) { NSNumber * _Nonnull objCValue; @@ -14811,9 +14794,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14827,7 +14810,7 @@ } } -void CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14839,9 +14822,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14855,7 +14838,7 @@ } } -void CHIPPowerSourceClusterBatChargeStateAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterBatChargeStateAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::BatChargeState value) { NSNumber * _Nonnull objCValue; @@ -14863,9 +14846,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14879,7 +14862,7 @@ } } -void CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14891,9 +14874,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14907,7 +14890,7 @@ } } -void CHIPPowerSourceClusterBatFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterBatFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::BatFaultType value) { NSNumber * _Nonnull objCValue; @@ -14915,9 +14898,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14931,7 +14914,7 @@ } } -void CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14943,9 +14926,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14959,7 +14942,7 @@ } } -void CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterBatReplaceabilityAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::BatReplaceability value) { NSNumber * _Nonnull objCValue; @@ -14967,9 +14950,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -14983,7 +14966,7 @@ } } -void CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -14995,9 +14978,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15011,7 +14994,7 @@ } } -void CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterPowerSourceStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::PowerSourceStatus value) { NSNumber * _Nonnull objCValue; @@ -15019,9 +15002,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15035,7 +15018,7 @@ } } -void CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15047,9 +15030,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15063,7 +15046,7 @@ } } -void CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::WiredCurrentType value) { NSNumber * _Nonnull objCValue; @@ -15071,9 +15054,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15087,7 +15070,7 @@ } } -void CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15099,9 +15082,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15115,7 +15098,7 @@ } } -void CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRPowerSourceClusterWiredFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PowerSource::WiredFaultType value) { NSNumber * _Nonnull objCValue; @@ -15123,9 +15106,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15139,7 +15122,7 @@ } } -void CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15151,9 +15134,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15167,7 +15150,7 @@ } } -void CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralCommissioning::CommissioningError value) { NSNumber * _Nonnull objCValue; @@ -15175,9 +15158,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15191,7 +15174,7 @@ } } -void CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15203,11 +15186,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -15221,7 +15204,7 @@ } } -void CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralCommissioning::RegulatoryLocationType value) { NSNumber * _Nonnull objCValue; @@ -15229,10 +15212,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15246,7 +15229,7 @@ } } -void CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15258,11 +15241,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -15276,7 +15259,7 @@ } } -void CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::NetworkCommissioning::NetworkCommissioningStatus value) { NSNumber * _Nonnull objCValue; @@ -15284,11 +15267,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -15302,7 +15285,7 @@ } } -void CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15314,11 +15297,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished(void * context) +void MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( + void * context) { auto * self - = static_cast( + = static_cast( context); if (!self->mQueue) { return; @@ -15333,7 +15316,7 @@ } } -void CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackBridge::OnSuccessFn( +void MTRNetworkCommissioningClusterWiFiBandAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::NetworkCommissioning::WiFiBand value) { NSNumber * _Nonnull objCValue; @@ -15341,9 +15324,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15357,7 +15340,7 @@ } } -void CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge::OnSuccessFn( +void MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15369,9 +15352,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15385,7 +15368,7 @@ } } -void CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsClusterLogsIntentAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DiagnosticLogs::LogsIntent value) { NSNumber * _Nonnull objCValue; @@ -15393,9 +15376,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15409,7 +15392,7 @@ } } -void CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15421,9 +15404,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15437,7 +15420,7 @@ } } -void CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsClusterLogsStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DiagnosticLogs::LogsStatus value) { NSNumber * _Nonnull objCValue; @@ -15445,9 +15428,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15461,7 +15444,7 @@ } } -void CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15473,9 +15456,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15489,7 +15472,7 @@ } } -void CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge::OnSuccessFn( +void MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DiagnosticLogs::LogsTransferProtocol value) { NSNumber * _Nonnull objCValue; @@ -15497,9 +15480,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15513,7 +15496,7 @@ } } -void CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15525,10 +15508,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15542,7 +15525,7 @@ } } -void CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralDiagnostics::BootReasonType value) { NSNumber * _Nonnull objCValue; @@ -15550,9 +15533,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15566,7 +15549,7 @@ } } -void CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15578,10 +15561,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15595,7 +15578,7 @@ } } -void CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralDiagnostics::HardwareFaultType value) { NSNumber * _Nonnull objCValue; @@ -15603,9 +15586,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15619,7 +15602,7 @@ } } -void CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15631,10 +15614,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15648,7 +15631,7 @@ } } -void CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralDiagnostics::InterfaceType value) { NSNumber * _Nonnull objCValue; @@ -15656,9 +15639,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15672,7 +15655,7 @@ } } -void CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15684,10 +15667,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15701,7 +15683,7 @@ } } -void CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralDiagnostics::NetworkFaultType value) { NSNumber * _Nonnull objCValue; @@ -15709,9 +15691,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15725,7 +15707,7 @@ } } -void CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15737,10 +15719,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15754,7 +15736,7 @@ } } -void CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GeneralDiagnostics::RadioFaultType value) { NSNumber * _Nonnull objCValue; @@ -15762,9 +15744,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15778,7 +15760,7 @@ } } -void CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15790,10 +15772,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15807,7 +15789,7 @@ } } -void CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ThreadNetworkDiagnostics::NetworkFault value) { NSNumber * _Nonnull objCValue; @@ -15815,9 +15797,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15831,7 +15813,7 @@ } } -void CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15843,11 +15825,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15861,7 +15842,7 @@ } } -void CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ThreadNetworkDiagnostics::RoutingRole value) { NSNumber * _Nonnull objCValue; @@ -15869,9 +15850,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15885,7 +15866,7 @@ } } -void CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15897,10 +15878,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -15914,7 +15895,7 @@ } } -void CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge::OnSuccessFn( +void MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ThreadNetworkDiagnostics::ThreadConnectionStatus value) { NSNumber * _Nonnull objCValue; @@ -15922,11 +15903,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -15940,7 +15921,7 @@ } } -void CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -15952,11 +15933,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished(void * context) +void MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( + void * context) { auto * self - = static_cast( + = static_cast( context); if (!self->mQueue) { return; @@ -15971,7 +15952,7 @@ } } -void CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WiFiNetworkDiagnostics::AssociationFailureCause value) { NSNumber * _Nonnull objCValue; @@ -15979,11 +15960,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -15997,7 +15978,7 @@ } } -void CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16009,12 +15990,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast( - context); + auto * self = static_cast( + context); if (!self->mQueue) { return; } @@ -16028,7 +16008,7 @@ } } -void CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WiFiNetworkDiagnostics::SecurityType value) { NSNumber * _Nonnull objCValue; @@ -16036,9 +16016,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16052,7 +16032,7 @@ } } -void CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16064,10 +16044,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16081,7 +16061,7 @@ } } -void CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WiFiNetworkDiagnostics::WiFiConnectionStatus value) { NSNumber * _Nonnull objCValue; @@ -16089,10 +16069,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16106,7 +16086,7 @@ } } -void CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16118,11 +16098,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16136,7 +16116,7 @@ } } -void CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge::OnSuccessFn( +void MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WiFiNetworkDiagnostics::WiFiVersionType value) { NSNumber * _Nonnull objCValue; @@ -16144,9 +16124,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16160,7 +16140,7 @@ } } -void CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16172,11 +16152,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16190,7 +16170,7 @@ } } -void CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge::OnSuccessFn( +void MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::EthernetNetworkDiagnostics::PHYRateType value) { NSNumber * _Nonnull objCValue; @@ -16198,9 +16178,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16214,7 +16194,7 @@ } } -void CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16226,11 +16206,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16244,7 +16224,7 @@ } } -void CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge::OnSuccessFn( +void MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AdministratorCommissioning::CommissioningWindowStatus value) { NSNumber * _Nonnull objCValue; @@ -16252,11 +16232,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16270,7 +16250,7 @@ } } -void CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16282,11 +16262,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge:: +void MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished(void * context) { auto * self - = static_cast( + = static_cast( context); if (!self->mQueue) { return; @@ -16301,7 +16281,7 @@ } } -void CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge::OnSuccessFn( +void MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AdministratorCommissioning::StatusCode value) { NSNumber * _Nonnull objCValue; @@ -16309,9 +16289,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16325,7 +16305,7 @@ } } -void CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16337,11 +16317,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16355,7 +16334,7 @@ } } -void CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge::OnSuccessFn( +void MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::OperationalCredentials::OperationalCertStatus value) { NSNumber * _Nonnull objCValue; @@ -16363,10 +16342,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16380,7 +16359,7 @@ } } -void CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16392,11 +16371,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16410,7 +16389,7 @@ } } -void CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge::OnSuccessFn( +void MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::GroupKeyManagement::GroupKeySecurityPolicy value) { NSNumber * _Nonnull objCValue; @@ -16418,10 +16397,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16435,7 +16414,7 @@ } } -void CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge::OnSuccessFn( +void MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16447,11 +16426,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -16465,7 +16444,7 @@ } } -void CHIPDoorLockClusterDlAlarmCodeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlAlarmCodeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlAlarmCode value) { NSNumber * _Nonnull objCValue; @@ -16473,9 +16452,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16489,7 +16468,7 @@ } } -void CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16501,9 +16480,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16517,7 +16496,7 @@ } } -void CHIPDoorLockClusterDlCredentialRuleAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlCredentialRuleAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlCredentialRule value) { NSNumber * _Nonnull objCValue; @@ -16525,9 +16504,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16541,7 +16520,7 @@ } } -void CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16553,9 +16532,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16569,7 +16548,7 @@ } } -void CHIPDoorLockClusterDlCredentialTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlCredentialTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlCredentialType value) { NSNumber * _Nonnull objCValue; @@ -16577,9 +16556,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16593,7 +16572,7 @@ } } -void CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16605,9 +16584,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16621,7 +16600,7 @@ } } -void CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlDataOperationTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlDataOperationType value) { NSNumber * _Nonnull objCValue; @@ -16629,9 +16608,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16645,7 +16624,7 @@ } } -void CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16657,9 +16636,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16673,7 +16652,7 @@ } } -void CHIPDoorLockClusterDlDoorStateAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlDoorStateAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlDoorState value) { NSNumber * _Nonnull objCValue; @@ -16681,9 +16660,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16697,7 +16676,7 @@ } } -void CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16709,9 +16688,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16725,7 +16704,7 @@ } } -void CHIPDoorLockClusterDlLockDataTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlLockDataTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlLockDataType value) { NSNumber * _Nonnull objCValue; @@ -16733,9 +16712,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16749,7 +16728,7 @@ } } -void CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16761,9 +16740,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16777,7 +16756,7 @@ } } -void CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlLockOperationTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlLockOperationType value) { NSNumber * _Nonnull objCValue; @@ -16785,9 +16764,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16801,7 +16780,7 @@ } } -void CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16813,9 +16792,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16829,7 +16808,7 @@ } } -void CHIPDoorLockClusterDlLockStateAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlLockStateAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlLockState value) { NSNumber * _Nonnull objCValue; @@ -16837,9 +16816,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16853,7 +16832,7 @@ } } -void CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16865,9 +16844,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16881,7 +16860,7 @@ } } -void CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlLockTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlLockType value) { NSNumber * _Nonnull objCValue; @@ -16889,9 +16868,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16905,7 +16884,7 @@ } } -void CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlLockTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16917,9 +16896,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16933,7 +16912,7 @@ } } -void CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlOperatingMode value) { NSNumber * _Nonnull objCValue; @@ -16941,9 +16920,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16957,7 +16936,7 @@ } } -void CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -16969,9 +16948,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -16985,7 +16964,7 @@ } } -void CHIPDoorLockClusterDlOperationErrorAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlOperationErrorAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlOperationError value) { NSNumber * _Nonnull objCValue; @@ -16993,9 +16972,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17009,7 +16988,7 @@ } } -void CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17021,9 +17000,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17037,7 +17016,7 @@ } } -void CHIPDoorLockClusterDlOperationSourceAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlOperationSourceAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlOperationSource value) { NSNumber * _Nonnull objCValue; @@ -17045,9 +17024,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17061,7 +17040,7 @@ } } -void CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17073,9 +17052,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17089,16 +17068,16 @@ } } -void CHIPDoorLockClusterDlStatusAttributeCallbackBridge::OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlStatus value) +void MTRDoorLockClusterDlStatusAttributeCallbackBridge::OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlStatus value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)]; DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17112,7 +17091,7 @@ } } -void CHIPNullableDoorLockClusterDlStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17124,9 +17103,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17140,7 +17119,7 @@ } } -void CHIPDoorLockClusterDlUserStatusAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlUserStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlUserStatus value) { NSNumber * _Nonnull objCValue; @@ -17148,9 +17127,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17164,7 +17143,7 @@ } } -void CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlUserStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17176,9 +17155,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17192,7 +17171,7 @@ } } -void CHIPDoorLockClusterDlUserTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDlUserTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DlUserType value) { NSNumber * _Nonnull objCValue; @@ -17200,9 +17179,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17216,7 +17195,7 @@ } } -void CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDlUserTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17228,9 +17207,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17244,7 +17223,7 @@ } } -void CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DoorLockOperationEventCode value) { NSNumber * _Nonnull objCValue; @@ -17252,9 +17231,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17268,7 +17247,7 @@ } } -void CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17280,10 +17259,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17297,7 +17276,7 @@ } } -void CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DoorLockProgrammingEventCode value) { NSNumber * _Nonnull objCValue; @@ -17305,9 +17284,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17321,7 +17300,7 @@ } } -void CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17333,11 +17312,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17351,7 +17329,7 @@ } } -void CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DoorLockSetPinOrIdStatus value) { NSNumber * _Nonnull objCValue; @@ -17359,9 +17337,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17375,7 +17353,7 @@ } } -void CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17387,10 +17365,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17404,7 +17382,7 @@ } } -void CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDoorLockUserStatusAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DoorLockUserStatus value) { NSNumber * _Nonnull objCValue; @@ -17412,9 +17390,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17428,7 +17406,7 @@ } } -void CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17440,9 +17418,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17456,7 +17434,7 @@ } } -void CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackBridge::OnSuccessFn( +void MTRDoorLockClusterDoorLockUserTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::DoorLock::DoorLockUserType value) { NSNumber * _Nonnull objCValue; @@ -17464,9 +17442,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17480,7 +17458,7 @@ } } -void CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17492,9 +17470,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17508,7 +17486,7 @@ } } -void CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WindowCovering::EndProductType value) { NSNumber * _Nonnull objCValue; @@ -17516,9 +17494,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17532,7 +17510,7 @@ } } -void CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17544,9 +17522,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17560,7 +17538,7 @@ } } -void CHIPWindowCoveringClusterTypeAttributeCallbackBridge::OnSuccessFn( +void MTRWindowCoveringClusterTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::WindowCovering::Type value) { NSNumber * _Nonnull objCValue; @@ -17568,9 +17546,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17584,7 +17562,7 @@ } } -void CHIPNullableWindowCoveringClusterTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableWindowCoveringClusterTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17596,9 +17574,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17612,7 +17590,7 @@ } } -void CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PumpConfigurationAndControl::PumpControlMode value) { NSNumber * _Nonnull objCValue; @@ -17620,10 +17598,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17637,7 +17615,7 @@ } } -void CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17649,11 +17627,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -17667,7 +17645,7 @@ } } -void CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge::OnSuccessFn( +void MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::PumpConfigurationAndControl::PumpOperationMode value) { NSNumber * _Nonnull objCValue; @@ -17675,11 +17653,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17693,7 +17670,7 @@ } } -void CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17705,11 +17682,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast( - context); + auto * self + = static_cast(context); if (!self->mQueue) { return; } @@ -17723,7 +17700,7 @@ } } -void CHIPThermostatClusterSetpointAdjustModeAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatClusterSetpointAdjustModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Thermostat::SetpointAdjustMode value) { NSNumber * _Nonnull objCValue; @@ -17731,9 +17708,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17747,7 +17724,7 @@ } } -void CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17759,9 +17736,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17775,7 +17752,7 @@ } } -void CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Thermostat::ThermostatControlSequence value) { NSNumber * _Nonnull objCValue; @@ -17783,9 +17760,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17799,7 +17776,7 @@ } } -void CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17811,10 +17788,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17828,7 +17805,7 @@ } } -void CHIPThermostatClusterThermostatRunningModeAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatClusterThermostatRunningModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Thermostat::ThermostatRunningMode value) { NSNumber * _Nonnull objCValue; @@ -17836,9 +17813,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17852,7 +17829,7 @@ } } -void CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17864,10 +17841,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( - void * context) +void MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17881,7 +17857,7 @@ } } -void CHIPThermostatClusterThermostatSystemModeAttributeCallbackBridge::OnSuccessFn( +void MTRThermostatClusterThermostatSystemModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Thermostat::ThermostatSystemMode value) { NSNumber * _Nonnull objCValue; @@ -17889,9 +17865,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17905,7 +17881,7 @@ } } -void CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17917,9 +17893,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17933,7 +17909,7 @@ } } -void CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge::OnSuccessFn( +void MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::FanControl::FanModeSequenceType value) { NSNumber * _Nonnull objCValue; @@ -17941,9 +17917,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17957,7 +17933,7 @@ } } -void CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -17969,9 +17945,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -17985,7 +17961,7 @@ } } -void CHIPFanControlClusterFanModeTypeAttributeCallbackBridge::OnSuccessFn( +void MTRFanControlClusterFanModeTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::FanControl::FanModeType value) { NSNumber * _Nonnull objCValue; @@ -17993,9 +17969,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18009,7 +17985,7 @@ } } -void CHIPNullableFanControlClusterFanModeTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableFanControlClusterFanModeTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18021,9 +17997,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18037,7 +18013,7 @@ } } -void CHIPColorControlClusterColorLoopActionAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterColorLoopActionAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::ColorLoopAction value) { NSNumber * _Nonnull objCValue; @@ -18045,9 +18021,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18061,7 +18037,7 @@ } } -void CHIPNullableColorControlClusterColorLoopActionAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterColorLoopActionAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18073,9 +18049,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18089,7 +18065,7 @@ } } -void CHIPColorControlClusterColorLoopDirectionAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterColorLoopDirectionAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::ColorLoopDirection value) { NSNumber * _Nonnull objCValue; @@ -18097,9 +18073,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18113,7 +18089,7 @@ } } -void CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18125,9 +18101,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18141,7 +18117,7 @@ } } -void CHIPColorControlClusterColorModeAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterColorModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::ColorMode value) { NSNumber * _Nonnull objCValue; @@ -18149,9 +18125,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterColorModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterColorModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18165,7 +18141,7 @@ } } -void CHIPNullableColorControlClusterColorModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterColorModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18177,9 +18153,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18193,7 +18169,7 @@ } } -void CHIPColorControlClusterHueDirectionAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterHueDirectionAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::HueDirection value) { NSNumber * _Nonnull objCValue; @@ -18201,9 +18177,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18217,7 +18193,7 @@ } } -void CHIPNullableColorControlClusterHueDirectionAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterHueDirectionAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18229,9 +18205,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18245,7 +18221,7 @@ } } -void CHIPColorControlClusterHueMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterHueMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::HueMoveMode value) { NSNumber * _Nonnull objCValue; @@ -18253,9 +18229,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18269,7 +18245,7 @@ } } -void CHIPNullableColorControlClusterHueMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterHueMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18281,9 +18257,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18297,7 +18273,7 @@ } } -void CHIPColorControlClusterHueStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterHueStepModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::HueStepMode value) { NSNumber * _Nonnull objCValue; @@ -18305,9 +18281,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18321,7 +18297,7 @@ } } -void CHIPNullableColorControlClusterHueStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterHueStepModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18333,9 +18309,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18349,7 +18325,7 @@ } } -void CHIPColorControlClusterSaturationMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterSaturationMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::SaturationMoveMode value) { NSNumber * _Nonnull objCValue; @@ -18357,9 +18333,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18373,7 +18349,7 @@ } } -void CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18385,9 +18361,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18401,7 +18377,7 @@ } } -void CHIPColorControlClusterSaturationStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRColorControlClusterSaturationStepModeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ColorControl::SaturationStepMode value) { NSNumber * _Nonnull objCValue; @@ -18409,9 +18385,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18425,7 +18401,7 @@ } } -void CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableColorControlClusterSaturationStepModeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18437,9 +18413,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18453,7 +18429,7 @@ } } -void CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge::OnSuccessFn( +void MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::IlluminanceMeasurement::LightSensorType value) { NSNumber * _Nonnull objCValue; @@ -18461,9 +18437,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18477,7 +18453,7 @@ } } -void CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18489,11 +18465,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -18507,7 +18483,7 @@ } } -void CHIPChannelClusterChannelStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRChannelClusterChannelStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Channel::ChannelStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -18515,9 +18491,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18531,7 +18507,7 @@ } } -void CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableChannelClusterChannelStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18543,9 +18519,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18559,7 +18535,7 @@ } } -void CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRChannelClusterLineupInfoTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Channel::LineupInfoTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -18567,9 +18543,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18583,7 +18559,7 @@ } } -void CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18595,9 +18571,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18611,7 +18587,7 @@ } } -void CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::TargetNavigator::TargetNavigatorStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -18619,10 +18595,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18636,7 +18612,7 @@ } } -void CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18648,11 +18624,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -18666,7 +18642,7 @@ } } -void CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::MediaPlayback::MediaPlaybackStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -18674,9 +18650,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18690,7 +18666,7 @@ } } -void CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18702,11 +18678,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18720,7 +18695,7 @@ } } -void CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge::OnSuccessFn( +void MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum value) { NSNumber * _Nonnull objCValue; @@ -18728,9 +18703,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18744,7 +18719,7 @@ } } -void CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18756,9 +18731,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18772,7 +18747,7 @@ } } -void CHIPMediaInputClusterInputTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRMediaInputClusterInputTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::MediaInput::InputTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -18780,9 +18755,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18796,7 +18771,7 @@ } } -void CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18808,9 +18783,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18824,7 +18799,7 @@ } } -void CHIPKeypadInputClusterCecKeyCodeAttributeCallbackBridge::OnSuccessFn( +void MTRKeypadInputClusterCecKeyCodeAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::KeypadInput::CecKeyCode value) { NSNumber * _Nonnull objCValue; @@ -18832,9 +18807,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18848,7 +18823,7 @@ } } -void CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge::OnSuccessFn( +void MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18860,9 +18835,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18876,7 +18851,7 @@ } } -void CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::KeypadInput::KeypadInputStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -18884,9 +18859,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18900,7 +18875,7 @@ } } -void CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18912,10 +18887,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18929,7 +18904,7 @@ } } -void CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ContentLauncher::ContentLaunchStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -18937,9 +18912,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -18953,7 +18928,7 @@ } } -void CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -18965,11 +18940,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -18983,7 +18958,7 @@ } } -void CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherClusterMetricTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ContentLauncher::MetricTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -18991,9 +18966,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19007,7 +18982,7 @@ } } -void CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19019,9 +18994,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19035,7 +19010,7 @@ } } -void CHIPContentLauncherClusterParameterEnumAttributeCallbackBridge::OnSuccessFn( +void MTRContentLauncherClusterParameterEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ContentLauncher::ParameterEnum value) { NSNumber * _Nonnull objCValue; @@ -19043,9 +19018,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19059,7 +19034,7 @@ } } -void CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableContentLauncherClusterParameterEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19071,9 +19046,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19087,7 +19062,7 @@ } } -void CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRAudioOutputClusterOutputTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::AudioOutput::OutputTypeEnum value) { NSNumber * _Nonnull objCValue; @@ -19095,9 +19070,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19111,7 +19086,7 @@ } } -void CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19123,9 +19098,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19139,7 +19114,7 @@ } } -void CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplicationLauncher::ApplicationLauncherStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -19147,11 +19122,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19165,7 +19140,7 @@ } } -void CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19177,11 +19152,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge:: +void MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished(void * context) { auto * self - = static_cast( + = static_cast( context); if (!self->mQueue) { return; @@ -19196,7 +19171,7 @@ } } -void CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum value) { NSNumber * _Nonnull objCValue; @@ -19204,9 +19179,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19220,7 +19195,7 @@ } } -void CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19232,11 +19207,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19250,16 +19225,16 @@ } } -void CHIPMessagingClusterEventIdAttributeCallbackBridge::OnSuccessFn(void * context, chip::app::Clusters::Messaging::EventId value) +void MTRMessagingClusterEventIdAttributeCallbackBridge::OnSuccessFn(void * context, chip::app::Clusters::Messaging::EventId value) { NSNumber * _Nonnull objCValue; objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)]; DispatchSuccess(context, objCValue); }; -void CHIPMessagingClusterEventIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMessagingClusterEventIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19273,7 +19248,7 @@ } } -void CHIPNullableMessagingClusterEventIdAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMessagingClusterEventIdAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19285,9 +19260,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19301,7 +19276,7 @@ } } -void CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackBridge::OnSuccessFn( +void MTRMessagingClusterMessagingControlConfirmationAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Messaging::MessagingControlConfirmation value) { NSNumber * _Nonnull objCValue; @@ -19309,9 +19284,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19325,7 +19300,7 @@ } } -void CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19337,11 +19312,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19355,7 +19330,7 @@ } } -void CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge::OnSuccessFn( +void MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Messaging::MessagingControlEnhancedConfirmation value) { NSNumber * _Nonnull objCValue; @@ -19363,11 +19338,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19381,7 +19356,7 @@ } } -void CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge::OnSuccessFn(void * context, +void MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19393,12 +19368,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self - = static_cast( - context); + auto * self = static_cast( + context); if (!self->mQueue) { return; } @@ -19412,7 +19386,7 @@ } } -void CHIPMessagingClusterMessagingControlImportanceAttributeCallbackBridge::OnSuccessFn( +void MTRMessagingClusterMessagingControlImportanceAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Messaging::MessagingControlImportance value) { NSNumber * _Nonnull objCValue; @@ -19420,9 +19394,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19436,7 +19410,7 @@ } } -void CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19448,10 +19422,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19465,7 +19439,7 @@ } } -void CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackBridge::OnSuccessFn( +void MTRMessagingClusterMessagingControlTransmissionAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::Messaging::MessagingControlTransmission value) { NSNumber * _Nonnull objCValue; @@ -19473,9 +19447,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19489,7 +19463,7 @@ } } -void CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge::OnSuccessFn( +void MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19501,11 +19475,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19519,7 +19493,7 @@ } } -void CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge::OnSuccessFn( +void MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::ApplianceEventsAndAlert::EventIdentification value) { NSNumber * _Nonnull objCValue; @@ -19527,10 +19501,10 @@ DispatchSuccess(context, objCValue); }; -void CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19544,7 +19518,7 @@ } } -void CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge::OnSuccessFn( +void MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19556,11 +19530,11 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( +void MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished( void * context) { auto * self - = static_cast(context); + = static_cast(context); if (!self->mQueue) { return; } @@ -19574,7 +19548,7 @@ } } -void CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( +void MTRTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( void * context, chip::app::Clusters::TestCluster::SimpleEnum value) { NSNumber * _Nonnull objCValue; @@ -19582,9 +19556,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } @@ -19598,7 +19572,7 @@ } } -void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( +void MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; @@ -19610,9 +19584,9 @@ DispatchSuccess(context, objCValue); }; -void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +void MTRNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) { - auto * self = static_cast(context); + auto * self = static_cast(context); if (!self->mQueue) { return; } diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h similarity index 54% rename from src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h rename to src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h index 703727acaafea9..642459958bfce6 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h @@ -17,7 +17,7 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPCallbackBridgeBase_internal.h" +#import "MTRCallbackBridgeBase_internal.h" #import #include @@ -25,119 +25,119 @@ #include typedef void (*CommandSuccessCallback)(void *, const chip::app::DataModel::NullObjectType &); -using CHIPCommandSuccessCallbackType = CommandSuccessCallback; -typedef void (*CHIPDefaultSuccessCallbackType)(void *); +using CommandSuccessCallbackType = CommandSuccessCallback; +typedef void (*DefaultSuccessCallbackType)(void *); typedef void (*VendorIdAttributeCallback)(void *, chip::VendorId); typedef void (*NullableVendorIdAttributeCallback)(void *, const chip::app::DataModel::Nullable &); -typedef void (*CHIPGroupsClusterAddGroupResponseCallbackType)( +typedef void (*GroupsClusterAddGroupResponseCallbackType)( void *, const chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType &); -typedef void (*CHIPGroupsClusterViewGroupResponseCallbackType)( +typedef void (*GroupsClusterViewGroupResponseCallbackType)( void *, const chip::app::Clusters::Groups::Commands::ViewGroupResponse::DecodableType &); -typedef void (*CHIPGroupsClusterGetGroupMembershipResponseCallbackType)( +typedef void (*GroupsClusterGetGroupMembershipResponseCallbackType)( void *, const chip::app::Clusters::Groups::Commands::GetGroupMembershipResponse::DecodableType &); -typedef void (*CHIPGroupsClusterRemoveGroupResponseCallbackType)( +typedef void (*GroupsClusterRemoveGroupResponseCallbackType)( void *, const chip::app::Clusters::Groups::Commands::RemoveGroupResponse::DecodableType &); -typedef void (*CHIPScenesClusterAddSceneResponseCallbackType)( +typedef void (*ScenesClusterAddSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::AddSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterViewSceneResponseCallbackType)( +typedef void (*ScenesClusterViewSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::ViewSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterRemoveSceneResponseCallbackType)( +typedef void (*ScenesClusterRemoveSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::RemoveSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterRemoveAllScenesResponseCallbackType)( +typedef void (*ScenesClusterRemoveAllScenesResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType &); -typedef void (*CHIPScenesClusterStoreSceneResponseCallbackType)( +typedef void (*ScenesClusterStoreSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::StoreSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterGetSceneMembershipResponseCallbackType)( +typedef void (*ScenesClusterGetSceneMembershipResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType &); -typedef void (*CHIPScenesClusterEnhancedAddSceneResponseCallbackType)( +typedef void (*ScenesClusterEnhancedAddSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::EnhancedAddSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterEnhancedViewSceneResponseCallbackType)( +typedef void (*ScenesClusterEnhancedViewSceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::EnhancedViewSceneResponse::DecodableType &); -typedef void (*CHIPScenesClusterCopySceneResponseCallbackType)( +typedef void (*ScenesClusterCopySceneResponseCallbackType)( void *, const chip::app::Clusters::Scenes::Commands::CopySceneResponse::DecodableType &); -typedef void (*CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackType)( +typedef void (*OtaSoftwareUpdateProviderClusterQueryImageResponseCallbackType)( void *, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType &); -typedef void (*CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackType)( +typedef void (*OtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackType)( void *, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType &); -typedef void (*CHIPGeneralCommissioningClusterArmFailSafeResponseCallbackType)( +typedef void (*GeneralCommissioningClusterArmFailSafeResponseCallbackType)( void *, const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType &); -typedef void (*CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackType)( +typedef void (*GeneralCommissioningClusterSetRegulatoryConfigResponseCallbackType)( void *, const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType &); -typedef void (*CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackType)( +typedef void (*GeneralCommissioningClusterCommissioningCompleteResponseCallbackType)( void *, const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType &); -typedef void (*CHIPNetworkCommissioningClusterScanNetworksResponseCallbackType)( +typedef void (*NetworkCommissioningClusterScanNetworksResponseCallbackType)( void *, const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType &); -typedef void (*CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackType)( +typedef void (*NetworkCommissioningClusterNetworkConfigResponseCallbackType)( void *, const chip::app::Clusters::NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType &); -typedef void (*CHIPNetworkCommissioningClusterConnectNetworkResponseCallbackType)( +typedef void (*NetworkCommissioningClusterConnectNetworkResponseCallbackType)( void *, const chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType &); -typedef void (*CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackType)( +typedef void (*DiagnosticLogsClusterRetrieveLogsResponseCallbackType)( void *, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType &); -typedef void (*CHIPOperationalCredentialsClusterAttestationResponseCallbackType)( +typedef void (*OperationalCredentialsClusterAttestationResponseCallbackType)( void *, const chip::app::Clusters::OperationalCredentials::Commands::AttestationResponse::DecodableType &); -typedef void (*CHIPOperationalCredentialsClusterCertificateChainResponseCallbackType)( +typedef void (*OperationalCredentialsClusterCertificateChainResponseCallbackType)( void *, const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainResponse::DecodableType &); -typedef void (*CHIPOperationalCredentialsClusterCSRResponseCallbackType)( +typedef void (*OperationalCredentialsClusterCSRResponseCallbackType)( void *, const chip::app::Clusters::OperationalCredentials::Commands::CSRResponse::DecodableType &); -typedef void (*CHIPOperationalCredentialsClusterNOCResponseCallbackType)( +typedef void (*OperationalCredentialsClusterNOCResponseCallbackType)( void *, const chip::app::Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType &); -typedef void (*CHIPGroupKeyManagementClusterKeySetReadResponseCallbackType)( +typedef void (*GroupKeyManagementClusterKeySetReadResponseCallbackType)( void *, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadResponse::DecodableType &); -typedef void (*CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackType)( +typedef void (*GroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackType)( void *, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackType)( +typedef void (*DoorLockClusterGetWeekDayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetYearDayScheduleResponseCallbackType)( +typedef void (*DoorLockClusterGetYearDayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetHolidayScheduleResponseCallbackType)( +typedef void (*DoorLockClusterGetHolidayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetUserResponseCallbackType)( +typedef void (*DoorLockClusterGetUserResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterSetCredentialResponseCallbackType)( +typedef void (*DoorLockClusterSetCredentialResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::SetCredentialResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetCredentialStatusResponseCallbackType)( +typedef void (*DoorLockClusterGetCredentialStatusResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType &); -typedef void (*CHIPThermostatClusterGetWeeklyScheduleResponseCallbackType)( +typedef void (*ThermostatClusterGetWeeklyScheduleResponseCallbackType)( void *, const chip::app::Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType &); -typedef void (*CHIPChannelClusterChangeChannelResponseCallbackType)( +typedef void (*ChannelClusterChangeChannelResponseCallbackType)( void *, const chip::app::Clusters::Channel::Commands::ChangeChannelResponse::DecodableType &); -typedef void (*CHIPTargetNavigatorClusterNavigateTargetResponseCallbackType)( +typedef void (*TargetNavigatorClusterNavigateTargetResponseCallbackType)( void *, const chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType &); -typedef void (*CHIPMediaPlaybackClusterPlaybackResponseCallbackType)( +typedef void (*MediaPlaybackClusterPlaybackResponseCallbackType)( void *, const chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType &); -typedef void (*CHIPKeypadInputClusterSendKeyResponseCallbackType)( +typedef void (*KeypadInputClusterSendKeyResponseCallbackType)( void *, const chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType &); -typedef void (*CHIPContentLauncherClusterLaunchResponseCallbackType)( +typedef void (*ContentLauncherClusterLaunchResponseCallbackType)( void *, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType &); -typedef void (*CHIPApplicationLauncherClusterLauncherResponseCallbackType)( +typedef void (*ApplicationLauncherClusterLauncherResponseCallbackType)( void *, const chip::app::Clusters::ApplicationLauncher::Commands::LauncherResponse::DecodableType &); -typedef void (*CHIPAccountLoginClusterGetSetupPINResponseCallbackType)( +typedef void (*AccountLoginClusterGetSetupPINResponseCallbackType)( void *, const chip::app::Clusters::AccountLogin::Commands::GetSetupPINResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestSpecificResponseCallbackType)( +typedef void (*TestClusterClusterTestSpecificResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestAddArgumentsResponseCallbackType)( +typedef void (*TestClusterClusterTestAddArgumentsResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestSimpleArgumentResponseCallbackType)( +typedef void (*TestClusterClusterTestSimpleArgumentResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestStructArrayArgumentResponseCallbackType)( +typedef void (*TestClusterClusterTestStructArrayArgumentResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestListInt8UReverseResponseCallbackType)( +typedef void (*TestClusterClusterTestListInt8UReverseResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestEnumsResponseCallbackType)( +typedef void (*TestClusterClusterTestEnumsResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestNullableOptionalResponseCallbackType)( +typedef void (*TestClusterClusterTestNullableOptionalResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestComplexNullableOptionalResponseCallbackType)( +typedef void (*TestClusterClusterTestComplexNullableOptionalResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterBooleanResponseCallbackType)( +typedef void (*TestClusterClusterBooleanResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterSimpleStructResponseCallbackType)( +typedef void (*TestClusterClusterSimpleStructResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestEmitTestEventResponseCallbackType)( +typedef void (*TestClusterClusterTestEmitTestEventResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType &); -typedef void (*CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackType)( +typedef void (*TestClusterClusterTestEmitTestFabricScopedEventResponseCallbackType)( void *, const chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType &); typedef void (*IdentifyClusterIdentifyEffectIdentifierAttributeCallback)(void *, @@ -1132,42 +1132,42 @@ typedef void (*TestClusterAcceptedCommandListListAttributeCallback)( typedef void (*TestClusterAttributeListListAttributeCallback)(void * context, const chip::app::DataModel::DecodableList & data); -class CHIPDefaultSuccessCallbackBridge : public CHIPCallbackBridge +class MTRDefaultSuccessCallbackBridge : public MTRCallbackBridge { public: - CHIPDefaultSuccessCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDefaultSuccessCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context); }; -class CHIPCommandSuccessCallbackBridge : public CHIPCallbackBridge +class MTRCommandSuccessCallbackBridge : public MTRCallbackBridge { public: - CHIPCommandSuccessCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRCommandSuccessCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::NullObjectType &); }; -class CHIPOctetStringAttributeCallbackBridge : public CHIPCallbackBridge +class MTROctetStringAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPOctetStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROctetStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::ByteSpan value); }; -class CHIPOctetStringAttributeCallbackSubscriptionBridge : public CHIPOctetStringAttributeCallbackBridge +class MTROctetStringAttributeCallbackSubscriptionBridge : public MTROctetStringAttributeCallbackBridge { public: - CHIPOctetStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOctetStringAttributeCallbackBridge(queue, handler, action, true), + MTROctetStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROctetStringAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1177,23 +1177,23 @@ class CHIPOctetStringAttributeCallbackSubscriptionBridge : public CHIPOctetStrin SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOctetStringAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableOctetStringAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableOctetStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableOctetStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOctetStringAttributeCallbackSubscriptionBridge : public CHIPNullableOctetStringAttributeCallbackBridge +class MTRNullableOctetStringAttributeCallbackSubscriptionBridge : public MTRNullableOctetStringAttributeCallbackBridge { public: - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOctetStringAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOctetStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOctetStringAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1203,22 +1203,22 @@ class CHIPNullableOctetStringAttributeCallbackSubscriptionBridge : public CHIPNu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPCharStringAttributeCallbackBridge : public CHIPCallbackBridge +class MTRCharStringAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPCharStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRCharStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::CharSpan value); }; -class CHIPCharStringAttributeCallbackSubscriptionBridge : public CHIPCharStringAttributeCallbackBridge +class MTRCharStringAttributeCallbackSubscriptionBridge : public MTRCharStringAttributeCallbackBridge { public: - CHIPCharStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPCharStringAttributeCallbackBridge(queue, handler, action, true), + MTRCharStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRCharStringAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1228,23 +1228,22 @@ class CHIPCharStringAttributeCallbackSubscriptionBridge : public CHIPCharStringA SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableCharStringAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableCharStringAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableCharStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableCharStringAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableCharStringAttributeCallbackSubscriptionBridge : public CHIPNullableCharStringAttributeCallbackBridge +class MTRNullableCharStringAttributeCallbackSubscriptionBridge : public MTRNullableCharStringAttributeCallbackBridge { public: - CHIPNullableCharStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableCharStringAttributeCallbackBridge(queue, handler, action, true), + MTRNullableCharStringAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableCharStringAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1254,22 +1253,22 @@ class CHIPNullableCharStringAttributeCallbackSubscriptionBridge : public CHIPNul SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBooleanAttributeCallbackBridge : public CHIPCallbackBridge +class MTRBooleanAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPBooleanAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBooleanAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, bool value); }; -class CHIPBooleanAttributeCallbackSubscriptionBridge : public CHIPBooleanAttributeCallbackBridge +class MTRBooleanAttributeCallbackSubscriptionBridge : public MTRBooleanAttributeCallbackBridge { public: - CHIPBooleanAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBooleanAttributeCallbackBridge(queue, handler, action, true), + MTRBooleanAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBooleanAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1279,22 +1278,22 @@ class CHIPBooleanAttributeCallbackSubscriptionBridge : public CHIPBooleanAttribu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableBooleanAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableBooleanAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableBooleanAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableBooleanAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableBooleanAttributeCallbackSubscriptionBridge : public CHIPNullableBooleanAttributeCallbackBridge +class MTRNullableBooleanAttributeCallbackSubscriptionBridge : public MTRNullableBooleanAttributeCallbackBridge { public: - CHIPNullableBooleanAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableBooleanAttributeCallbackBridge(queue, handler, action, true), + MTRNullableBooleanAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableBooleanAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1304,22 +1303,22 @@ class CHIPNullableBooleanAttributeCallbackSubscriptionBridge : public CHIPNullab SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt8uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt8uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt8uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt8uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, uint8_t value); }; -class CHIPInt8uAttributeCallbackSubscriptionBridge : public CHIPInt8uAttributeCallbackBridge +class MTRInt8uAttributeCallbackSubscriptionBridge : public MTRInt8uAttributeCallbackBridge { public: - CHIPInt8uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt8uAttributeCallbackBridge(queue, handler, action, true), + MTRInt8uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt8uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1329,22 +1328,22 @@ class CHIPInt8uAttributeCallbackSubscriptionBridge : public CHIPInt8uAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt8uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt8uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt8uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt8uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt8uAttributeCallbackSubscriptionBridge : public CHIPNullableInt8uAttributeCallbackBridge +class MTRNullableInt8uAttributeCallbackSubscriptionBridge : public MTRNullableInt8uAttributeCallbackBridge { public: - CHIPNullableInt8uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt8uAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt8uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt8uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1354,22 +1353,22 @@ class CHIPNullableInt8uAttributeCallbackSubscriptionBridge : public CHIPNullable SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt8sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt8sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt8sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt8sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, int8_t value); }; -class CHIPInt8sAttributeCallbackSubscriptionBridge : public CHIPInt8sAttributeCallbackBridge +class MTRInt8sAttributeCallbackSubscriptionBridge : public MTRInt8sAttributeCallbackBridge { public: - CHIPInt8sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt8sAttributeCallbackBridge(queue, handler, action, true), + MTRInt8sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt8sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1379,22 +1378,22 @@ class CHIPInt8sAttributeCallbackSubscriptionBridge : public CHIPInt8sAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt8sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt8sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt8sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt8sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt8sAttributeCallbackSubscriptionBridge : public CHIPNullableInt8sAttributeCallbackBridge +class MTRNullableInt8sAttributeCallbackSubscriptionBridge : public MTRNullableInt8sAttributeCallbackBridge { public: - CHIPNullableInt8sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt8sAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt8sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt8sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1404,22 +1403,22 @@ class CHIPNullableInt8sAttributeCallbackSubscriptionBridge : public CHIPNullable SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt16uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt16uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt16uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt16uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, uint16_t value); }; -class CHIPInt16uAttributeCallbackSubscriptionBridge : public CHIPInt16uAttributeCallbackBridge +class MTRInt16uAttributeCallbackSubscriptionBridge : public MTRInt16uAttributeCallbackBridge { public: - CHIPInt16uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt16uAttributeCallbackBridge(queue, handler, action, true), + MTRInt16uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt16uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1429,22 +1428,22 @@ class CHIPInt16uAttributeCallbackSubscriptionBridge : public CHIPInt16uAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt16uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt16uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt16uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt16uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt16uAttributeCallbackSubscriptionBridge : public CHIPNullableInt16uAttributeCallbackBridge +class MTRNullableInt16uAttributeCallbackSubscriptionBridge : public MTRNullableInt16uAttributeCallbackBridge { public: - CHIPNullableInt16uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt16uAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt16uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt16uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1454,22 +1453,22 @@ class CHIPNullableInt16uAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt16sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt16sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt16sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt16sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, int16_t value); }; -class CHIPInt16sAttributeCallbackSubscriptionBridge : public CHIPInt16sAttributeCallbackBridge +class MTRInt16sAttributeCallbackSubscriptionBridge : public MTRInt16sAttributeCallbackBridge { public: - CHIPInt16sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt16sAttributeCallbackBridge(queue, handler, action, true), + MTRInt16sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt16sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1479,22 +1478,22 @@ class CHIPInt16sAttributeCallbackSubscriptionBridge : public CHIPInt16sAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt16sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt16sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt16sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt16sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt16sAttributeCallbackSubscriptionBridge : public CHIPNullableInt16sAttributeCallbackBridge +class MTRNullableInt16sAttributeCallbackSubscriptionBridge : public MTRNullableInt16sAttributeCallbackBridge { public: - CHIPNullableInt16sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt16sAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt16sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt16sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1504,22 +1503,22 @@ class CHIPNullableInt16sAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt32uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt32uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt32uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt32uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, uint32_t value); }; -class CHIPInt32uAttributeCallbackSubscriptionBridge : public CHIPInt32uAttributeCallbackBridge +class MTRInt32uAttributeCallbackSubscriptionBridge : public MTRInt32uAttributeCallbackBridge { public: - CHIPInt32uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt32uAttributeCallbackBridge(queue, handler, action, true), + MTRInt32uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt32uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1529,22 +1528,22 @@ class CHIPInt32uAttributeCallbackSubscriptionBridge : public CHIPInt32uAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt32uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt32uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt32uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt32uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt32uAttributeCallbackSubscriptionBridge : public CHIPNullableInt32uAttributeCallbackBridge +class MTRNullableInt32uAttributeCallbackSubscriptionBridge : public MTRNullableInt32uAttributeCallbackBridge { public: - CHIPNullableInt32uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt32uAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt32uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt32uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1554,22 +1553,22 @@ class CHIPNullableInt32uAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt32sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt32sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt32sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt32sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, int32_t value); }; -class CHIPInt32sAttributeCallbackSubscriptionBridge : public CHIPInt32sAttributeCallbackBridge +class MTRInt32sAttributeCallbackSubscriptionBridge : public MTRInt32sAttributeCallbackBridge { public: - CHIPInt32sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt32sAttributeCallbackBridge(queue, handler, action, true), + MTRInt32sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt32sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1579,22 +1578,22 @@ class CHIPInt32sAttributeCallbackSubscriptionBridge : public CHIPInt32sAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt32sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt32sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt32sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt32sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt32sAttributeCallbackSubscriptionBridge : public CHIPNullableInt32sAttributeCallbackBridge +class MTRNullableInt32sAttributeCallbackSubscriptionBridge : public MTRNullableInt32sAttributeCallbackBridge { public: - CHIPNullableInt32sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt32sAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt32sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt32sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1604,22 +1603,22 @@ class CHIPNullableInt32sAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt64uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt64uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt64uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt64uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, uint64_t value); }; -class CHIPInt64uAttributeCallbackSubscriptionBridge : public CHIPInt64uAttributeCallbackBridge +class MTRInt64uAttributeCallbackSubscriptionBridge : public MTRInt64uAttributeCallbackBridge { public: - CHIPInt64uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt64uAttributeCallbackBridge(queue, handler, action, true), + MTRInt64uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt64uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1629,22 +1628,22 @@ class CHIPInt64uAttributeCallbackSubscriptionBridge : public CHIPInt64uAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt64uAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt64uAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt64uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt64uAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt64uAttributeCallbackSubscriptionBridge : public CHIPNullableInt64uAttributeCallbackBridge +class MTRNullableInt64uAttributeCallbackSubscriptionBridge : public MTRNullableInt64uAttributeCallbackBridge { public: - CHIPNullableInt64uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt64uAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt64uAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt64uAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1654,22 +1653,22 @@ class CHIPNullableInt64uAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPInt64sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRInt64sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPInt64sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRInt64sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, int64_t value); }; -class CHIPInt64sAttributeCallbackSubscriptionBridge : public CHIPInt64sAttributeCallbackBridge +class MTRInt64sAttributeCallbackSubscriptionBridge : public MTRInt64sAttributeCallbackBridge { public: - CHIPInt64sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPInt64sAttributeCallbackBridge(queue, handler, action, true), + MTRInt64sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRInt64sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1679,22 +1678,22 @@ class CHIPInt64sAttributeCallbackSubscriptionBridge : public CHIPInt64sAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableInt64sAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableInt64sAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableInt64sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableInt64sAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableInt64sAttributeCallbackSubscriptionBridge : public CHIPNullableInt64sAttributeCallbackBridge +class MTRNullableInt64sAttributeCallbackSubscriptionBridge : public MTRNullableInt64sAttributeCallbackBridge { public: - CHIPNullableInt64sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableInt64sAttributeCallbackBridge(queue, handler, action, true), + MTRNullableInt64sAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableInt64sAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1704,22 +1703,22 @@ class CHIPNullableInt64sAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFloatAttributeCallbackBridge : public CHIPCallbackBridge +class MTRFloatAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPFloatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFloatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, float value); }; -class CHIPFloatAttributeCallbackSubscriptionBridge : public CHIPFloatAttributeCallbackBridge +class MTRFloatAttributeCallbackSubscriptionBridge : public MTRFloatAttributeCallbackBridge { public: - CHIPFloatAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFloatAttributeCallbackBridge(queue, handler, action, true), + MTRFloatAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFloatAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1729,22 +1728,22 @@ class CHIPFloatAttributeCallbackSubscriptionBridge : public CHIPFloatAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableFloatAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableFloatAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableFloatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableFloatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableFloatAttributeCallbackSubscriptionBridge : public CHIPNullableFloatAttributeCallbackBridge +class MTRNullableFloatAttributeCallbackSubscriptionBridge : public MTRNullableFloatAttributeCallbackBridge { public: - CHIPNullableFloatAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableFloatAttributeCallbackBridge(queue, handler, action, true), + MTRNullableFloatAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableFloatAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1754,22 +1753,22 @@ class CHIPNullableFloatAttributeCallbackSubscriptionBridge : public CHIPNullable SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoubleAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoubleAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoubleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoubleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, double value); }; -class CHIPDoubleAttributeCallbackSubscriptionBridge : public CHIPDoubleAttributeCallbackBridge +class MTRDoubleAttributeCallbackSubscriptionBridge : public MTRDoubleAttributeCallbackBridge { public: - CHIPDoubleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoubleAttributeCallbackBridge(queue, handler, action, true), + MTRDoubleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoubleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1779,22 +1778,22 @@ class CHIPDoubleAttributeCallbackSubscriptionBridge : public CHIPDoubleAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoubleAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableDoubleAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableDoubleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoubleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoubleAttributeCallbackSubscriptionBridge : public CHIPNullableDoubleAttributeCallbackBridge +class MTRNullableDoubleAttributeCallbackSubscriptionBridge : public MTRNullableDoubleAttributeCallbackBridge { public: - CHIPNullableDoubleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoubleAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoubleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoubleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1804,22 +1803,22 @@ class CHIPNullableDoubleAttributeCallbackSubscriptionBridge : public CHIPNullabl SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPVendorIdAttributeCallbackBridge : public CHIPCallbackBridge +class MTRVendorIdAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPVendorIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRVendorIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::VendorId value); }; -class CHIPVendorIdAttributeCallbackSubscriptionBridge : public CHIPVendorIdAttributeCallbackBridge +class MTRVendorIdAttributeCallbackSubscriptionBridge : public MTRVendorIdAttributeCallbackBridge { public: - CHIPVendorIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPVendorIdAttributeCallbackBridge(queue, handler, action, true), + MTRVendorIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRVendorIdAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1829,22 +1828,22 @@ class CHIPVendorIdAttributeCallbackSubscriptionBridge : public CHIPVendorIdAttri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableVendorIdAttributeCallbackBridge : public CHIPCallbackBridge +class MTRNullableVendorIdAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPNullableVendorIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableVendorIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableVendorIdAttributeCallbackSubscriptionBridge : public CHIPNullableVendorIdAttributeCallbackBridge +class MTRNullableVendorIdAttributeCallbackSubscriptionBridge : public MTRNullableVendorIdAttributeCallbackBridge { public: - CHIPNullableVendorIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableVendorIdAttributeCallbackBridge(queue, handler, action, true), + MTRNullableVendorIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableVendorIdAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1854,25 +1853,25 @@ class CHIPNullableVendorIdAttributeCallbackSubscriptionBridge : public CHIPNulla SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIdentifyGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRIdentifyGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge +class MTRIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRIdentifyGeneratedCommandListListAttributeCallbackBridge { public: - CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1882,25 +1881,25 @@ class CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIdentifyAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRIdentifyAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge +class MTRIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRIdentifyAcceptedCommandListListAttributeCallbackBridge { public: - CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1910,23 +1909,23 @@ class CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIdentifyAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRIdentifyAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPIdentifyAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRIdentifyAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge : public CHIPIdentifyAttributeListListAttributeCallbackBridge +class MTRIdentifyAttributeListListAttributeCallbackSubscriptionBridge : public MTRIdentifyAttributeListListAttributeCallbackBridge { public: - CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1936,25 +1935,25 @@ class CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGroupsGeneratedCommandListListAttributeCallbackBridge +class MTRGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGroupsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1964,25 +1963,25 @@ class CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGroupsAcceptedCommandListListAttributeCallbackBridge +class MTRGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGroupsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -1992,23 +1991,23 @@ class CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupsAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRGroupsAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPGroupsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge : public CHIPGroupsAttributeListListAttributeCallbackBridge +class MTRGroupsAttributeListListAttributeCallbackSubscriptionBridge : public MTRGroupsAttributeListListAttributeCallbackBridge { public: - CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2018,25 +2017,25 @@ class CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPScenesGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRScenesGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPScenesGeneratedCommandListListAttributeCallbackBridge +class MTRScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRScenesGeneratedCommandListListAttributeCallbackBridge { public: - CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPScenesGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRScenesGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2046,25 +2045,25 @@ class CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPScenesAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRScenesAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPScenesAcceptedCommandListListAttributeCallbackBridge +class MTRScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRScenesAcceptedCommandListListAttributeCallbackBridge { public: - CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPScenesAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRScenesAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2074,23 +2073,23 @@ class CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPScenesAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRScenesAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge : public CHIPScenesAttributeListListAttributeCallbackBridge +class MTRScenesAttributeListListAttributeCallbackSubscriptionBridge : public MTRScenesAttributeListListAttributeCallbackBridge { public: - CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPScenesAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRScenesAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRScenesAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2100,25 +2099,25 @@ class CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROnOffGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOnOffGeneratedCommandListListAttributeCallbackBridge +class MTROnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROnOffGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROnOffGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2128,25 +2127,25 @@ class CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROnOffAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOnOffAcceptedCommandListListAttributeCallbackBridge +class MTROnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROnOffAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROnOffAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2156,23 +2155,23 @@ class CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTROnOffAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPOnOffAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROnOffAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge : public CHIPOnOffAttributeListListAttributeCallbackBridge +class MTROnOffAttributeListListAttributeCallbackSubscriptionBridge : public MTROnOffAttributeListListAttributeCallbackBridge { public: - CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROnOffAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2182,26 +2181,25 @@ class CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge : public CHI SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge +class MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2211,26 +2209,25 @@ class CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge +class MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2240,26 +2237,25 @@ class CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge +class MTROnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge + : public MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge { public: - CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2269,25 +2265,25 @@ class CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLevelControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLevelControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge +class MTRLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLevelControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLevelControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2297,25 +2293,25 @@ class CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLevelControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLevelControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge +class MTRLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLevelControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLevelControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2325,25 +2321,25 @@ class CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLevelControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLevelControlAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLevelControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLevelControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPLevelControlAttributeListListAttributeCallbackBridge +class MTRLevelControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRLevelControlAttributeListListAttributeCallbackBridge { public: - CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLevelControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRLevelControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLevelControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2353,26 +2349,25 @@ class CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge +class MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2382,26 +2377,25 @@ class CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge +class MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2411,25 +2405,25 @@ class CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBinaryInputBasicAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBinaryInputBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge +class MTRBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge + : public MTRBinaryInputBasicAttributeListListAttributeCallbackBridge { public: - CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBinaryInputBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2439,25 +2433,25 @@ class CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorDeviceListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDescriptorDeviceListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDescriptorDeviceListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorDeviceListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge : public CHIPDescriptorDeviceListListAttributeCallbackBridge +class MTRDescriptorDeviceListListAttributeCallbackSubscriptionBridge : public MTRDescriptorDeviceListListAttributeCallbackBridge { public: - CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorDeviceListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorDeviceListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorDeviceListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2467,23 +2461,23 @@ class CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorServerListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDescriptorServerListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDescriptorServerListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorServerListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge : public CHIPDescriptorServerListListAttributeCallbackBridge +class MTRDescriptorServerListListAttributeCallbackSubscriptionBridge : public MTRDescriptorServerListListAttributeCallbackBridge { public: - CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorServerListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorServerListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorServerListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2493,23 +2487,23 @@ class CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorClientListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDescriptorClientListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDescriptorClientListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorClientListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge : public CHIPDescriptorClientListListAttributeCallbackBridge +class MTRDescriptorClientListListAttributeCallbackSubscriptionBridge : public MTRDescriptorClientListListAttributeCallbackBridge { public: - CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorClientListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorClientListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorClientListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2519,23 +2513,23 @@ class CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorPartsListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDescriptorPartsListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDescriptorPartsListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorPartsListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge : public CHIPDescriptorPartsListListAttributeCallbackBridge +class MTRDescriptorPartsListListAttributeCallbackSubscriptionBridge : public MTRDescriptorPartsListListAttributeCallbackBridge { public: - CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorPartsListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorPartsListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorPartsListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2545,25 +2539,25 @@ class CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDescriptorGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge +class MTRDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDescriptorGeneratedCommandListListAttributeCallbackBridge { public: - CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2573,25 +2567,25 @@ class CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDescriptorAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge +class MTRDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDescriptorAcceptedCommandListListAttributeCallbackBridge { public: - CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2601,25 +2595,24 @@ class CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDescriptorAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDescriptorAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDescriptorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDescriptorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPDescriptorAttributeListListAttributeCallbackBridge +class MTRDescriptorAttributeListListAttributeCallbackSubscriptionBridge + : public MTRDescriptorAttributeListListAttributeCallbackBridge { public: - CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDescriptorAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRDescriptorAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDescriptorAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2629,25 +2622,24 @@ class CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBindingBindingListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRBindingBindingListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPBindingBindingListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBindingBindingListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBindingBindingListAttributeCallbackSubscriptionBridge : public CHIPBindingBindingListAttributeCallbackBridge +class MTRBindingBindingListAttributeCallbackSubscriptionBridge : public MTRBindingBindingListAttributeCallbackBridge { public: - CHIPBindingBindingListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBindingBindingListAttributeCallbackBridge(queue, handler, action, true), + MTRBindingBindingListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBindingBindingListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2657,25 +2649,25 @@ class CHIPBindingBindingListAttributeCallbackSubscriptionBridge : public CHIPBin SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBindingGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBindingGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBindingGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBindingGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBindingGeneratedCommandListListAttributeCallbackBridge +class MTRBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBindingGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBindingGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBindingGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2685,25 +2677,25 @@ class CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBindingAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBindingAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBindingAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBindingAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBindingAcceptedCommandListListAttributeCallbackBridge +class MTRBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBindingAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBindingAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBindingAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2713,23 +2705,23 @@ class CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBindingAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRBindingAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPBindingAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBindingAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge : public CHIPBindingAttributeListListAttributeCallbackBridge +class MTRBindingAttributeListListAttributeCallbackSubscriptionBridge : public MTRBindingAttributeListListAttributeCallbackBridge { public: - CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBindingAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBindingAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBindingAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2739,12 +2731,12 @@ class CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlAclListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRAccessControlAclListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPAccessControlAclListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlAclListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -2752,13 +2744,13 @@ class CHIPAccessControlAclListAttributeCallbackBridge : public CHIPCallbackBridg value); }; -class CHIPAccessControlAclListAttributeCallbackSubscriptionBridge : public CHIPAccessControlAclListAttributeCallbackBridge +class MTRAccessControlAclListAttributeCallbackSubscriptionBridge : public MTRAccessControlAclListAttributeCallbackBridge { public: - CHIPAccessControlAclListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlAclListAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlAclListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlAclListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2768,12 +2760,12 @@ class CHIPAccessControlAclListAttributeCallbackSubscriptionBridge : public CHIPA SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlExtensionListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRAccessControlExtensionListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPAccessControlExtensionListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlExtensionListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -2781,14 +2773,13 @@ class CHIPAccessControlExtensionListAttributeCallbackBridge : public CHIPCallbac value); }; -class CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge - : public CHIPAccessControlExtensionListAttributeCallbackBridge +class MTRAccessControlExtensionListAttributeCallbackSubscriptionBridge : public MTRAccessControlExtensionListAttributeCallbackBridge { public: - CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlExtensionListAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlExtensionListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlExtensionListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2798,26 +2789,25 @@ class CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAccessControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge +class MTRAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAccessControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2827,25 +2817,25 @@ class CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge +class MTRAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAccessControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2855,25 +2845,25 @@ class CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPAccessControlAttributeListListAttributeCallbackBridge +class MTRAccessControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRAccessControlAttributeListListAttributeCallbackBridge { public: - CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2883,13 +2873,13 @@ class CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsActionListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsActionListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsActionListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsActionListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -2897,14 +2887,14 @@ class CHIPBridgedActionsActionListListAttributeCallbackBridge value); }; -class CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsActionListListAttributeCallbackBridge +class MTRBridgedActionsActionListListAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsActionListListAttributeCallbackBridge { public: - CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsActionListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsActionListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsActionListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2914,13 +2904,13 @@ class CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsEndpointListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsEndpointListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsEndpointListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsEndpointListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -2928,14 +2918,14 @@ class CHIPBridgedActionsEndpointListListAttributeCallbackBridge value); }; -class CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsEndpointListListAttributeCallbackBridge +class MTRBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsEndpointListListAttributeCallbackBridge { public: - CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsEndpointListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsEndpointListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2945,26 +2935,25 @@ class CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge +class MTRBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -2974,26 +2963,25 @@ class CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge +class MTRBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3003,25 +2991,25 @@ class CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsAttributeListListAttributeCallbackBridge +class MTRBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsAttributeListListAttributeCallbackBridge { public: - CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3031,26 +3019,25 @@ class CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBasicCapabilityMinimaStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBasicCapabilityMinimaStructAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPBasicCapabilityMinimaStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBasicCapabilityMinimaStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Basic::Structs::CapabilityMinimaStruct::DecodableType & value); }; -class CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge - : public CHIPBasicCapabilityMinimaStructAttributeCallbackBridge +class MTRBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge + : public MTRBasicCapabilityMinimaStructAttributeCallbackBridge { public: - CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBasicCapabilityMinimaStructAttributeCallbackBridge(queue, handler, action, true), + MTRBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBasicCapabilityMinimaStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3060,25 +3047,25 @@ class CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBasicGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBasicGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBasicGeneratedCommandListListAttributeCallbackBridge +class MTRBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBasicGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3088,25 +3075,25 @@ class CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBasicAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBasicAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBasicAcceptedCommandListListAttributeCallbackBridge +class MTRBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBasicAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3116,23 +3103,23 @@ class CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBasicAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRBasicAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge : public CHIPBasicAttributeListListAttributeCallbackBridge +class MTRBasicAttributeListListAttributeCallbackSubscriptionBridge : public MTRBasicAttributeListListAttributeCallbackBridge { public: - CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3142,26 +3129,25 @@ class CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge : public CHI SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3171,26 +3157,25 @@ class CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3200,26 +3185,25 @@ class CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3229,28 +3213,27 @@ class CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::OtaSoftwareUpdateRequestor::Structs::ProviderLocation::DecodableType> & value); }; -class CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3260,26 +3243,25 @@ class CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3289,26 +3271,25 @@ class CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3318,26 +3299,25 @@ class CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3347,26 +3327,25 @@ class CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge - : public CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge +class MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge + : public MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge { public: - CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge(queue, handler, action, true), + MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3376,26 +3355,25 @@ class CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge +class MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3405,26 +3383,25 @@ class CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge +class MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3434,26 +3411,25 @@ class CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge +class MTRLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge + : public MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge { public: - CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3463,28 +3439,27 @@ class CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge +class MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3494,26 +3469,25 @@ class CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge +class MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3523,26 +3497,25 @@ class CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge +class MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3552,26 +3525,25 @@ class CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge +class MTRTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3581,26 +3553,25 @@ class CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge +class MTRUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3610,26 +3581,25 @@ class CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge +class MTRUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3639,25 +3609,25 @@ class CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUnitLocalizationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUnitLocalizationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUnitLocalizationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUnitLocalizationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPUnitLocalizationAttributeListListAttributeCallbackBridge +class MTRUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge + : public MTRUnitLocalizationAttributeListListAttributeCallbackBridge { public: - CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUnitLocalizationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUnitLocalizationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3667,25 +3637,25 @@ class CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge +class MTRPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge { public: - CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3695,26 +3665,25 @@ class CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge +class MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3724,26 +3693,25 @@ class CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge +class MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3753,26 +3721,25 @@ class CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge +class MTRPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge { public: - CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3782,25 +3749,25 @@ class CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge +class MTRPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge { public: - CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3810,25 +3777,25 @@ class CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge +class MTRPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge { public: - CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3838,26 +3805,25 @@ class CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge +class MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge { public: - CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3867,25 +3833,25 @@ class CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge +class MTRPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge { public: - CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3895,25 +3861,25 @@ class CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge +class MTRPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge { public: - CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3923,25 +3889,25 @@ class CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceAttributeListListAttributeCallbackBridge +class MTRPowerSourceAttributeListListAttributeCallbackSubscriptionBridge + : public MTRPowerSourceAttributeListListAttributeCallbackBridge { public: - CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3951,28 +3917,27 @@ class CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfo::DecodableType & value); }; -class CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge +class MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge { public: - CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -3982,26 +3947,25 @@ class CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge +class MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge { public: - CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4011,26 +3975,25 @@ class CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge +class MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge { public: - CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4040,26 +4003,25 @@ class CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge +class MTRGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningAttributeListListAttributeCallbackBridge { public: - CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4069,13 +4031,13 @@ class CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningNetworksListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningNetworksListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningNetworksListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNetworkCommissioningNetworksListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -4083,14 +4045,14 @@ class CHIPNetworkCommissioningNetworksListAttributeCallbackBridge value); }; -class CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningNetworksListAttributeCallbackBridge +class MTRNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningNetworksListAttributeCallbackBridge { public: - CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningNetworksListAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningNetworksListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4100,26 +4062,25 @@ class CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge +class MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge { public: - CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4129,26 +4090,25 @@ class CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge +class MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge { public: - CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4158,26 +4118,25 @@ class CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge +class MTRNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningAttributeListListAttributeCallbackBridge { public: - CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4187,26 +4146,25 @@ class CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge +class MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4216,26 +4174,25 @@ class CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge +class MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4245,25 +4202,25 @@ class CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDiagnosticLogsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge +class MTRDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsAttributeListListAttributeCallbackBridge { public: - CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4273,28 +4230,27 @@ class CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & value); }; -class CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge +class MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4304,26 +4260,25 @@ class CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge +class MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4333,26 +4288,25 @@ class CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge +class MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4362,26 +4316,25 @@ class CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge +class MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4391,26 +4344,25 @@ class CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge +class MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4420,26 +4372,25 @@ class CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge +class MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4449,25 +4400,25 @@ class CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge +class MTRGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4477,13 +4428,13 @@ class CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -4491,14 +4442,14 @@ class CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge value); }; -class CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge - : public CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge +class MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge + : public MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge { public: - CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge(queue, handler, action, true), + MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4508,26 +4459,25 @@ class CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge +class MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4537,26 +4487,25 @@ class CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge +class MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4566,25 +4515,25 @@ class CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge +class MTRSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge { public: - CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4594,28 +4543,27 @@ class CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & value); }; -class CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4625,28 +4573,27 @@ class CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::RouteTable::DecodableType> & value); }; -class CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4656,28 +4603,27 @@ class CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::SecurityPolicy::DecodableType> & value); }; -class CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4687,16 +4633,16 @@ class CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, @@ -4704,14 +4650,13 @@ class CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCal chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & value); }; -class CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4721,28 +4666,27 @@ class CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCal SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4752,26 +4696,25 @@ class CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4781,26 +4724,25 @@ class CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4810,26 +4752,25 @@ class CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4839,26 +4780,25 @@ class CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4868,26 +4808,25 @@ class CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4897,26 +4836,25 @@ class CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4926,26 +4864,25 @@ class CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge +class MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4955,26 +4892,25 @@ class CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge +class MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -4984,26 +4920,25 @@ class CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge +class MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge + : public MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5013,26 +4948,25 @@ class CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge +class MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5042,26 +4976,25 @@ class CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge +class MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5071,25 +5004,25 @@ class CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge +class MTRBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge + : public MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge { public: - CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5099,25 +5032,25 @@ class CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSwitchGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSwitchGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSwitchGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRSwitchGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPSwitchGeneratedCommandListListAttributeCallbackBridge +class MTRSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRSwitchGeneratedCommandListListAttributeCallbackBridge { public: - CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSwitchGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRSwitchGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5127,25 +5060,25 @@ class CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSwitchAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRSwitchAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPSwitchAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRSwitchAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPSwitchAcceptedCommandListListAttributeCallbackBridge +class MTRSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRSwitchAcceptedCommandListListAttributeCallbackBridge { public: - CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSwitchAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRSwitchAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5155,23 +5088,23 @@ class CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPSwitchAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRSwitchAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPSwitchAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRSwitchAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge : public CHIPSwitchAttributeListListAttributeCallbackBridge +class MTRSwitchAttributeListListAttributeCallbackSubscriptionBridge : public MTRSwitchAttributeListListAttributeCallbackBridge { public: - CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPSwitchAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRSwitchAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRSwitchAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5181,26 +5114,25 @@ class CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge +class MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge { public: - CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5210,26 +5142,25 @@ class CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge +class MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge { public: - CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5239,26 +5170,25 @@ class CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge +class MTRAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge + : public MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge { public: - CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5268,13 +5198,13 @@ class CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsNOCsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsNOCsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsNOCsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROperationalCredentialsNOCsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -5282,14 +5212,14 @@ class CHIPOperationalCredentialsNOCsListAttributeCallbackBridge value); }; -class CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsNOCsListAttributeCallbackBridge +class MTROperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsNOCsListAttributeCallbackBridge { public: - CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsNOCsListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsNOCsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5299,27 +5229,27 @@ class CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsFabricsListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsFabricsListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsFabricsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROperationalCredentialsFabricsListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & value); }; -class CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsFabricsListAttributeCallbackBridge +class MTROperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsFabricsListAttributeCallbackBridge { public: - CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsFabricsListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsFabricsListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5329,26 +5259,25 @@ class CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge +class MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge { public: - CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5358,26 +5287,25 @@ class CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge +class MTROperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5387,26 +5315,25 @@ class CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge +class MTROperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5416,26 +5343,25 @@ class CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge +class MTROperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsAttributeListListAttributeCallbackBridge { public: - CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5445,27 +5371,27 @@ class CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::GroupKeyManagement::Structs::GroupKeyMapStruct::DecodableType> & value); }; -class CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge +class MTRGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge { public: - CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5475,27 +5401,27 @@ class CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementGroupTableListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupKeyManagementGroupTableListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::GroupKeyManagement::Structs::GroupInfoMapStruct::DecodableType> & value); }; -class CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge +class MTRGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementGroupTableListAttributeCallbackBridge { public: - CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementGroupTableListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5505,26 +5431,25 @@ class CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge +class MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5534,26 +5459,25 @@ class CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge +class MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5563,25 +5487,25 @@ class CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupKeyManagementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge +class MTRGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementAttributeListListAttributeCallbackBridge { public: - CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5591,25 +5515,25 @@ class CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFixedLabelLabelListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRFixedLabelLabelListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPFixedLabelLabelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFixedLabelLabelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge : public CHIPFixedLabelLabelListListAttributeCallbackBridge +class MTRFixedLabelLabelListListAttributeCallbackSubscriptionBridge : public MTRFixedLabelLabelListListAttributeCallbackBridge { public: - CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFixedLabelLabelListListAttributeCallbackBridge(queue, handler, action, true), + MTRFixedLabelLabelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFixedLabelLabelListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5619,25 +5543,25 @@ class CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge +class MTRFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge { public: - CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5647,25 +5571,25 @@ class CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge +class MTRFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge { public: - CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5675,25 +5599,24 @@ class CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFixedLabelAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFixedLabelAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPFixedLabelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFixedLabelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPFixedLabelAttributeListListAttributeCallbackBridge +class MTRFixedLabelAttributeListListAttributeCallbackSubscriptionBridge + : public MTRFixedLabelAttributeListListAttributeCallbackBridge { public: - CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFixedLabelAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRFixedLabelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFixedLabelAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5703,25 +5626,25 @@ class CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUserLabelLabelListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRUserLabelLabelListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPUserLabelLabelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUserLabelLabelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge : public CHIPUserLabelLabelListListAttributeCallbackBridge +class MTRUserLabelLabelListListAttributeCallbackSubscriptionBridge : public MTRUserLabelLabelListListAttributeCallbackBridge { public: - CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUserLabelLabelListListAttributeCallbackBridge(queue, handler, action, true), + MTRUserLabelLabelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUserLabelLabelListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5731,25 +5654,25 @@ class CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge : public CHI SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUserLabelGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUserLabelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge +class MTRUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRUserLabelGeneratedCommandListListAttributeCallbackBridge { public: - CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUserLabelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5759,25 +5682,25 @@ class CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUserLabelAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUserLabelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge +class MTRUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRUserLabelAcceptedCommandListListAttributeCallbackBridge { public: - CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUserLabelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5787,24 +5710,23 @@ class CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUserLabelAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRUserLabelAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPUserLabelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUserLabelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPUserLabelAttributeListListAttributeCallbackBridge +class MTRUserLabelAttributeListListAttributeCallbackSubscriptionBridge : public MTRUserLabelAttributeListListAttributeCallbackBridge { public: - CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUserLabelAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRUserLabelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUserLabelAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5814,25 +5736,25 @@ class CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge +class MTRBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5842,25 +5764,25 @@ class CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge +class MTRBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5870,25 +5792,25 @@ class CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBooleanStateAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBooleanStateAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBooleanStateAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBooleanStateAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPBooleanStateAttributeListListAttributeCallbackBridge +class MTRBooleanStateAttributeListListAttributeCallbackSubscriptionBridge + : public MTRBooleanStateAttributeListListAttributeCallbackBridge { public: - CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBooleanStateAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBooleanStateAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBooleanStateAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5898,13 +5820,13 @@ class CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPModeSelectSupportedModesListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRModeSelectSupportedModesListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPModeSelectSupportedModesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRModeSelectSupportedModesListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -5912,14 +5834,14 @@ class CHIPModeSelectSupportedModesListAttributeCallbackBridge value); }; -class CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge - : public CHIPModeSelectSupportedModesListAttributeCallbackBridge +class MTRModeSelectSupportedModesListAttributeCallbackSubscriptionBridge + : public MTRModeSelectSupportedModesListAttributeCallbackBridge { public: - CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPModeSelectSupportedModesListAttributeCallbackBridge(queue, handler, action, true), + MTRModeSelectSupportedModesListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRModeSelectSupportedModesListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5929,25 +5851,25 @@ class CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRModeSelectGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRModeSelectGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge +class MTRModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRModeSelectGeneratedCommandListListAttributeCallbackBridge { public: - CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRModeSelectGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5957,25 +5879,25 @@ class CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRModeSelectAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRModeSelectAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge +class MTRModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRModeSelectAcceptedCommandListListAttributeCallbackBridge { public: - CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRModeSelectAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -5985,25 +5907,24 @@ class CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPModeSelectAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRModeSelectAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPModeSelectAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRModeSelectAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPModeSelectAttributeListListAttributeCallbackBridge +class MTRModeSelectAttributeListListAttributeCallbackSubscriptionBridge + : public MTRModeSelectAttributeListListAttributeCallbackBridge { public: - CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPModeSelectAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRModeSelectAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRModeSelectAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6013,25 +5934,25 @@ class CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockCredentialRulesSupportAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockCredentialRulesSupportAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge - : public CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge +class MTRDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge + : public MTRDoorLockCredentialRulesSupportAttributeCallbackBridge { public: - CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockCredentialRulesSupportAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6041,25 +5962,25 @@ class CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockSupportedOperatingModesAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockSupportedOperatingModesAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge - : public CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge +class MTRDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge + : public MTRDoorLockSupportedOperatingModesAttributeCallbackBridge { public: - CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockSupportedOperatingModesAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6069,25 +5990,25 @@ class CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge - : public CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge +class MTRDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge + : public MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge { public: - CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6097,25 +6018,25 @@ class CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge - : public CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge +class MTRDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge + : public MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge { public: - CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6125,25 +6046,25 @@ class CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge +class MTRDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDoorLockGeneratedCommandListListAttributeCallbackBridge { public: - CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6153,25 +6074,25 @@ class CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge +class MTRDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRDoorLockAcceptedCommandListListAttributeCallbackBridge { public: - CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6181,23 +6102,23 @@ class CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge : public CHIPDoorLockAttributeListListAttributeCallbackBridge +class MTRDoorLockAttributeListListAttributeCallbackSubscriptionBridge : public MTRDoorLockAttributeListListAttributeCallbackBridge { public: - CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6207,24 +6128,23 @@ class CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringConfigStatusAttributeCallbackBridge : public CHIPCallbackBridge +class MTRWindowCoveringConfigStatusAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPWindowCoveringConfigStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringConfigStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringConfigStatusAttributeCallbackBridge +class MTRWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge : public MTRWindowCoveringConfigStatusAttributeCallbackBridge { public: - CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringConfigStatusAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringConfigStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6234,25 +6154,25 @@ class CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringOperationalStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWindowCoveringOperationalStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWindowCoveringOperationalStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringOperationalStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringOperationalStatusAttributeCallbackBridge +class MTRWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge + : public MTRWindowCoveringOperationalStatusAttributeCallbackBridge { public: - CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringOperationalStatusAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringOperationalStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6262,23 +6182,22 @@ class CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringModeAttributeCallbackBridge : public CHIPCallbackBridge +class MTRWindowCoveringModeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPWindowCoveringModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge : public CHIPWindowCoveringModeAttributeCallbackBridge +class MTRWindowCoveringModeAttributeCallbackSubscriptionBridge : public MTRWindowCoveringModeAttributeCallbackBridge { public: - CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringModeAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6288,24 +6207,23 @@ class CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge : public CHIPWin SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringSafetyStatusAttributeCallbackBridge : public CHIPCallbackBridge +class MTRWindowCoveringSafetyStatusAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPWindowCoveringSafetyStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringSafetyStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringSafetyStatusAttributeCallbackBridge +class MTRWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge : public MTRWindowCoveringSafetyStatusAttributeCallbackBridge { public: - CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringSafetyStatusAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringSafetyStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6315,26 +6233,25 @@ class CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge +class MTRWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge { public: - CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6344,26 +6261,25 @@ class CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge +class MTRWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge { public: - CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6373,25 +6289,25 @@ class CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWindowCoveringAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWindowCoveringAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringAttributeListListAttributeCallbackBridge +class MTRWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge + : public MTRWindowCoveringAttributeListListAttributeCallbackBridge { public: - CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6401,26 +6317,25 @@ class CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge +class MTRBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6430,26 +6345,25 @@ class CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge +class MTRBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6459,25 +6373,25 @@ class CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBarrierControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBarrierControlAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBarrierControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBarrierControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPBarrierControlAttributeListListAttributeCallbackBridge +class MTRBarrierControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRBarrierControlAttributeListListAttributeCallbackBridge { public: - CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBarrierControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRBarrierControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBarrierControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6487,26 +6401,25 @@ class CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge +class MTRPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6516,26 +6429,25 @@ class CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge +class MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6545,26 +6457,25 @@ class CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge +class MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6574,26 +6485,25 @@ class CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge +class MTRPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6603,25 +6513,25 @@ class CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRThermostatGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatGeneratedCommandListListAttributeCallbackBridge +class MTRThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThermostatGeneratedCommandListListAttributeCallbackBridge { public: - CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6631,25 +6541,25 @@ class CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRThermostatAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatAcceptedCommandListListAttributeCallbackBridge +class MTRThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThermostatAcceptedCommandListListAttributeCallbackBridge { public: - CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6659,25 +6569,24 @@ class CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPThermostatAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRThermostatAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatAttributeListListAttributeCallbackBridge +class MTRThermostatAttributeListListAttributeCallbackSubscriptionBridge + : public MTRThermostatAttributeListListAttributeCallbackBridge { public: - CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6687,25 +6596,25 @@ class CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFanControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFanControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFanControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFanControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFanControlGeneratedCommandListListAttributeCallbackBridge +class MTRFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFanControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFanControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFanControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6715,25 +6624,25 @@ class CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFanControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFanControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFanControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFanControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFanControlAcceptedCommandListListAttributeCallbackBridge +class MTRFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFanControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFanControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFanControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6743,25 +6652,24 @@ class CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFanControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFanControlAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPFanControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFanControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPFanControlAttributeListListAttributeCallbackBridge +class MTRFanControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRFanControlAttributeListListAttributeCallbackBridge { public: - CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFanControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRFanControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFanControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6771,28 +6679,27 @@ class CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge +class MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6802,28 +6709,27 @@ class CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeC SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge +class MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6833,28 +6739,25 @@ class CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge +class MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge + : public MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge { public: - CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6864,25 +6767,25 @@ class CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallback SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPColorControlGeneratedCommandListListAttributeCallbackBridge +class MTRColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRColorControlGeneratedCommandListListAttributeCallbackBridge { public: - CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6892,25 +6795,25 @@ class CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPColorControlAcceptedCommandListListAttributeCallbackBridge +class MTRColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRColorControlAcceptedCommandListListAttributeCallbackBridge { public: - CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6920,25 +6823,25 @@ class CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPColorControlAttributeListListAttributeCallbackBridge +class MTRColorControlAttributeListListAttributeCallbackSubscriptionBridge + : public MTRColorControlAttributeListListAttributeCallbackBridge { public: - CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6948,26 +6851,25 @@ class CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -6977,26 +6879,25 @@ class CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7006,26 +6907,25 @@ class CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge +class MTRIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7035,26 +6935,25 @@ class CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7064,26 +6963,25 @@ class CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7093,26 +6991,25 @@ class CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge +class MTRTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7122,26 +7019,25 @@ class CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7151,26 +7047,25 @@ class CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7180,25 +7075,25 @@ class CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPressureMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPressureMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPressureMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPressureMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPPressureMeasurementAttributeListListAttributeCallbackBridge +class MTRPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRPressureMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPressureMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPressureMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7208,26 +7103,25 @@ class CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7237,26 +7131,25 @@ class CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7266,25 +7159,25 @@ class CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFlowMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFlowMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFlowMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFlowMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPFlowMeasurementAttributeListListAttributeCallbackBridge +class MTRFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRFlowMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFlowMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFlowMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7294,26 +7187,25 @@ class CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7323,26 +7215,25 @@ class CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7352,26 +7243,25 @@ class CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge +class MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7381,26 +7271,25 @@ class CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge +class MTROccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge { public: - CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7410,26 +7299,25 @@ class CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge +class MTROccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge { public: - CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTROccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7439,25 +7327,25 @@ class CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOccupancySensingAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROccupancySensingAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOccupancySensingAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROccupancySensingAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPOccupancySensingAttributeListListAttributeCallbackBridge +class MTROccupancySensingAttributeListListAttributeCallbackSubscriptionBridge + : public MTROccupancySensingAttributeListListAttributeCallbackBridge { public: - CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOccupancySensingAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTROccupancySensingAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROccupancySensingAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7467,25 +7355,25 @@ class CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge +class MTRWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge { public: - CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7495,25 +7383,25 @@ class CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge +class MTRWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge { public: - CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7523,24 +7411,23 @@ class CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWakeOnLanAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRWakeOnLanAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPWakeOnLanAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWakeOnLanAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPWakeOnLanAttributeListListAttributeCallbackBridge +class MTRWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge : public MTRWakeOnLanAttributeListListAttributeCallbackBridge { public: - CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWakeOnLanAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWakeOnLanAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7550,25 +7437,25 @@ class CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelChannelListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRChannelChannelListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPChannelChannelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelChannelListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPChannelChannelListListAttributeCallbackSubscriptionBridge : public CHIPChannelChannelListListAttributeCallbackBridge +class MTRChannelChannelListListAttributeCallbackSubscriptionBridge : public MTRChannelChannelListListAttributeCallbackBridge { public: - CHIPChannelChannelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelChannelListListAttributeCallbackBridge(queue, handler, action, true), + MTRChannelChannelListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelChannelListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7578,25 +7465,25 @@ class CHIPChannelChannelListListAttributeCallbackSubscriptionBridge : public CHI SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelLineupStructAttributeCallbackBridge : public CHIPCallbackBridge +class MTRChannelLineupStructAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPChannelLineupStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelLineupStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPChannelLineupStructAttributeCallbackSubscriptionBridge : public CHIPChannelLineupStructAttributeCallbackBridge +class MTRChannelLineupStructAttributeCallbackSubscriptionBridge : public MTRChannelLineupStructAttributeCallbackBridge { public: - CHIPChannelLineupStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelLineupStructAttributeCallbackBridge(queue, handler, action, true), + MTRChannelLineupStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelLineupStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7606,27 +7493,26 @@ class CHIPChannelLineupStructAttributeCallbackSubscriptionBridge : public CHIPCh SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelCurrentChannelStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRChannelCurrentChannelStructAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPChannelCurrentChannelStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelCurrentChannelStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge - : public CHIPChannelCurrentChannelStructAttributeCallbackBridge +class MTRChannelCurrentChannelStructAttributeCallbackSubscriptionBridge + : public MTRChannelCurrentChannelStructAttributeCallbackBridge { public: - CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelCurrentChannelStructAttributeCallbackBridge(queue, handler, action, true), + MTRChannelCurrentChannelStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelCurrentChannelStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7636,25 +7522,25 @@ class CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRChannelGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPChannelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPChannelGeneratedCommandListListAttributeCallbackBridge +class MTRChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRChannelGeneratedCommandListListAttributeCallbackBridge { public: - CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7664,25 +7550,25 @@ class CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRChannelAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPChannelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPChannelAcceptedCommandListListAttributeCallbackBridge +class MTRChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRChannelAcceptedCommandListListAttributeCallbackBridge { public: - CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7692,23 +7578,23 @@ class CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRChannelAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPChannelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge : public CHIPChannelAttributeListListAttributeCallbackBridge +class MTRChannelAttributeListListAttributeCallbackSubscriptionBridge : public MTRChannelAttributeListListAttributeCallbackBridge { public: - CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRChannelAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7718,13 +7604,13 @@ class CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTargetNavigatorTargetListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorTargetListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorTargetListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTargetNavigatorTargetListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -7732,14 +7618,14 @@ class CHIPTargetNavigatorTargetListListAttributeCallbackBridge value); }; -class CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge - : public CHIPTargetNavigatorTargetListListAttributeCallbackBridge +class MTRTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge + : public MTRTargetNavigatorTargetListListAttributeCallbackBridge { public: - CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTargetNavigatorTargetListListAttributeCallbackBridge(queue, handler, action, true), + MTRTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTargetNavigatorTargetListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7749,26 +7635,25 @@ class CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge +class MTRTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge { public: - CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7778,26 +7663,25 @@ class CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge +class MTRTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge { public: - CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7807,25 +7691,25 @@ class CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTargetNavigatorAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTargetNavigatorAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPTargetNavigatorAttributeListListAttributeCallbackBridge +class MTRTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge + : public MTRTargetNavigatorAttributeListListAttributeCallbackBridge { public: - CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTargetNavigatorAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTargetNavigatorAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7835,27 +7719,27 @@ class CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge +class MTRMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge { public: - CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7865,26 +7749,25 @@ class CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge +class MTRMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge { public: - CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7894,25 +7777,25 @@ class CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge +class MTRMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge { public: - CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7922,25 +7805,25 @@ class CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaPlaybackAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackAttributeListListAttributeCallbackBridge +class MTRMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackAttributeListListAttributeCallbackBridge { public: - CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7950,25 +7833,25 @@ class CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaInputInputListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRMediaInputInputListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPMediaInputInputListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaInputInputListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge : public CHIPMediaInputInputListListAttributeCallbackBridge +class MTRMediaInputInputListListAttributeCallbackSubscriptionBridge : public MTRMediaInputInputListListAttributeCallbackBridge { public: - CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaInputInputListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaInputInputListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaInputInputListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -7978,25 +7861,25 @@ class CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaInputGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaInputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge +class MTRMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRMediaInputGeneratedCommandListListAttributeCallbackBridge { public: - CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaInputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8006,25 +7889,25 @@ class CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaInputAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaInputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge +class MTRMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRMediaInputAcceptedCommandListListAttributeCallbackBridge { public: - CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaInputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8034,25 +7917,24 @@ class CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaInputAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaInputAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPMediaInputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaInputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPMediaInputAttributeListListAttributeCallbackBridge +class MTRMediaInputAttributeListListAttributeCallbackSubscriptionBridge + : public MTRMediaInputAttributeListListAttributeCallbackBridge { public: - CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaInputAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRMediaInputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaInputAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8062,25 +7944,25 @@ class CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLowPowerGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLowPowerGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge +class MTRLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLowPowerGeneratedCommandListListAttributeCallbackBridge { public: - CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLowPowerGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8090,25 +7972,25 @@ class CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLowPowerAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLowPowerAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge +class MTRLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRLowPowerAcceptedCommandListListAttributeCallbackBridge { public: - CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLowPowerAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8118,23 +8000,23 @@ class CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLowPowerAttributeListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRLowPowerAttributeListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPLowPowerAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLowPowerAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge : public CHIPLowPowerAttributeListListAttributeCallbackBridge +class MTRLowPowerAttributeListListAttributeCallbackSubscriptionBridge : public MTRLowPowerAttributeListListAttributeCallbackBridge { public: - CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLowPowerAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRLowPowerAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLowPowerAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8144,25 +8026,25 @@ class CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge +class MTRKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge { public: - CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8172,25 +8054,25 @@ class CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge +class MTRKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge { public: - CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8200,25 +8082,25 @@ class CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPKeypadInputAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPKeypadInputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRKeypadInputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPKeypadInputAttributeListListAttributeCallbackBridge +class MTRKeypadInputAttributeListListAttributeCallbackSubscriptionBridge + : public MTRKeypadInputAttributeListListAttributeCallbackBridge { public: - CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPKeypadInputAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRKeypadInputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRKeypadInputAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8228,25 +8110,25 @@ class CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherAcceptHeaderListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRContentLauncherAcceptHeaderListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge +class MTRContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge + : public MTRContentLauncherAcceptHeaderListAttributeCallbackBridge { public: - CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherAcceptHeaderListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8256,26 +8138,25 @@ class CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge +class MTRContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge { public: - CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8285,26 +8166,25 @@ class CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge +class MTRContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge { public: - CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8314,25 +8194,25 @@ class CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRContentLauncherAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherAttributeListListAttributeCallbackBridge +class MTRContentLauncherAttributeListListAttributeCallbackSubscriptionBridge + : public MTRContentLauncherAttributeListListAttributeCallbackBridge { public: - CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8342,25 +8222,25 @@ class CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAudioOutputOutputListListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRAudioOutputOutputListListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPAudioOutputOutputListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAudioOutputOutputListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge : public CHIPAudioOutputOutputListListAttributeCallbackBridge +class MTRAudioOutputOutputListListAttributeCallbackSubscriptionBridge : public MTRAudioOutputOutputListListAttributeCallbackBridge { public: - CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAudioOutputOutputListListAttributeCallbackBridge(queue, handler, action, true), + MTRAudioOutputOutputListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAudioOutputOutputListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8370,25 +8250,25 @@ class CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge +class MTRAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge { public: - CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8398,25 +8278,25 @@ class CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge +class MTRAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge { public: - CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8426,25 +8306,25 @@ class CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAudioOutputAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAudioOutputAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAudioOutputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAudioOutputAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPAudioOutputAttributeListListAttributeCallbackBridge +class MTRAudioOutputAttributeListListAttributeCallbackSubscriptionBridge + : public MTRAudioOutputAttributeListListAttributeCallbackBridge { public: - CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAudioOutputAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRAudioOutputAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAudioOutputAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8454,25 +8334,25 @@ class CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherCatalogListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherCatalogListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherCatalogListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplicationLauncherCatalogListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherCatalogListListAttributeCallbackBridge +class MTRApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherCatalogListListAttributeCallbackBridge { public: - CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherCatalogListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherCatalogListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8482,13 +8362,13 @@ class CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -8496,14 +8376,14 @@ class CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge value); }; -class CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge +class MTRApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge { public: - CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8513,26 +8393,25 @@ class CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge +class MTRApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge { public: - CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8542,26 +8421,25 @@ class CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge +class MTRApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge { public: - CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8571,25 +8449,25 @@ class CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplicationLauncherAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherAttributeListListAttributeCallbackBridge +class MTRApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherAttributeListListAttributeCallbackBridge { public: - CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8599,27 +8477,27 @@ class CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicApplicationStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicApplicationStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicApplicationStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplicationBasicApplicationStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::ApplicationBasic::Structs::ApplicationBasicApplication::DecodableType & value); }; -class CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicApplicationStructAttributeCallbackBridge +class MTRApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicApplicationStructAttributeCallbackBridge { public: - CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicApplicationStructAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicApplicationStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8629,26 +8507,25 @@ class CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge +class MTRApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge { public: - CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8658,26 +8535,25 @@ class CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge +class MTRApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge { public: - CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8687,26 +8563,25 @@ class CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge +class MTRApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge { public: - CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8716,25 +8591,25 @@ class CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplicationBasicAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicAttributeListListAttributeCallbackBridge +class MTRApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicAttributeListListAttributeCallbackBridge { public: - CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8744,25 +8619,25 @@ class CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge +class MTRAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge { public: - CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8772,25 +8647,25 @@ class CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge +class MTRAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge { public: - CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8800,25 +8675,25 @@ class CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccountLoginAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccountLoginAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccountLoginAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccountLoginAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPAccountLoginAttributeListListAttributeCallbackBridge +class MTRAccountLoginAttributeListListAttributeCallbackSubscriptionBridge + : public MTRAccountLoginAttributeListListAttributeCallbackBridge { public: - CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccountLoginAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRAccountLoginAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccountLoginAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8828,26 +8703,25 @@ class CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge +class MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge { public: - CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8857,26 +8731,25 @@ class CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge +class MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge { public: - CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8886,26 +8759,25 @@ class CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRElectricalMeasurementAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRElectricalMeasurementAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge +class MTRElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge + : public MTRElectricalMeasurementAttributeListListAttributeCallbackBridge { public: - CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRElectricalMeasurementAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8915,23 +8787,22 @@ class CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterBitmap8AttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterBitmap8AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterBitmap8AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterBitmap8AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge : public CHIPTestClusterBitmap8AttributeCallbackBridge +class MTRTestClusterBitmap8AttributeCallbackSubscriptionBridge : public MTRTestClusterBitmap8AttributeCallbackBridge { public: - CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterBitmap8AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterBitmap8AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterBitmap8AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8941,23 +8812,23 @@ class CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge : public CHIPTes SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterBitmap16AttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterBitmap16AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterBitmap16AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterBitmap16AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge : public CHIPTestClusterBitmap16AttributeCallbackBridge +class MTRTestClusterBitmap16AttributeCallbackSubscriptionBridge : public MTRTestClusterBitmap16AttributeCallbackBridge { public: - CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterBitmap16AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterBitmap16AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterBitmap16AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8967,23 +8838,23 @@ class CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge : public CHIPTe SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterBitmap32AttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterBitmap32AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterBitmap32AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterBitmap32AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge : public CHIPTestClusterBitmap32AttributeCallbackBridge +class MTRTestClusterBitmap32AttributeCallbackSubscriptionBridge : public MTRTestClusterBitmap32AttributeCallbackBridge { public: - CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterBitmap32AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterBitmap32AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterBitmap32AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -8993,23 +8864,23 @@ class CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge : public CHIPTe SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterBitmap64AttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterBitmap64AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterBitmap64AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterBitmap64AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::BitMask value); }; -class CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge : public CHIPTestClusterBitmap64AttributeCallbackBridge +class MTRTestClusterBitmap64AttributeCallbackSubscriptionBridge : public MTRTestClusterBitmap64AttributeCallbackBridge { public: - CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterBitmap64AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterBitmap64AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterBitmap64AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9019,23 +8890,23 @@ class CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge : public CHIPTe SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListInt8uListAttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterListInt8uListAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterListInt8uListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterListInt8uListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge : public CHIPTestClusterListInt8uListAttributeCallbackBridge +class MTRTestClusterListInt8uListAttributeCallbackSubscriptionBridge : public MTRTestClusterListInt8uListAttributeCallbackBridge { public: - CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListInt8uListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListInt8uListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListInt8uListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9045,25 +8916,25 @@ class CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge : public C SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListOctetStringListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterListOctetStringListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterListOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterListOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterListOctetStringListAttributeCallbackBridge +class MTRTestClusterListOctetStringListAttributeCallbackSubscriptionBridge + : public MTRTestClusterListOctetStringListAttributeCallbackBridge { public: - CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListOctetStringListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListOctetStringListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9073,13 +8944,13 @@ class CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListStructOctetStringListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterListStructOctetStringListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterListStructOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterListStructOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -9087,14 +8958,14 @@ class CHIPTestClusterListStructOctetStringListAttributeCallbackBridge value); }; -class CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterListStructOctetStringListAttributeCallbackBridge +class MTRTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge + : public MTRTestClusterListStructOctetStringListAttributeCallbackBridge { public: - CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListStructOctetStringListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListStructOctetStringListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9104,28 +8975,27 @@ class CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & value); }; -class CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge +class MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge + : public MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge { public: - CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9135,25 +9005,24 @@ class CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterStructAttrStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterStructAttrStructAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterStructAttrStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterStructAttrStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & value); }; -class CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge - : public CHIPTestClusterStructAttrStructAttributeCallbackBridge +class MTRTestClusterStructAttrStructAttributeCallbackSubscriptionBridge + : public MTRTestClusterStructAttrStructAttributeCallbackBridge { public: - CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterStructAttrStructAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterStructAttrStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterStructAttrStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9163,25 +9032,25 @@ class CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListLongOctetStringListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterListLongOctetStringListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterListLongOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterListLongOctetStringListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterListLongOctetStringListAttributeCallbackBridge +class MTRTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge + : public MTRTestClusterListLongOctetStringListAttributeCallbackBridge { public: - CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListLongOctetStringListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListLongOctetStringListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9191,13 +9060,13 @@ class CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterListFabricScopedListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterListFabricScopedListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterListFabricScopedListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterListFabricScopedListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, @@ -9205,14 +9074,14 @@ class CHIPTestClusterListFabricScopedListAttributeCallbackBridge value); }; -class CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterListFabricScopedListAttributeCallbackBridge +class MTRTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge + : public MTRTestClusterListFabricScopedListAttributeCallbackBridge { public: - CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterListFabricScopedListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterListFabricScopedListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9222,26 +9091,25 @@ class CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterNullableBitmap8AttributeCallbackBridge : public CHIPCallbackBridge +class MTRTestClusterNullableBitmap8AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterNullableBitmap8AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterNullableBitmap8AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable> & value); }; -class CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge - : public CHIPTestClusterNullableBitmap8AttributeCallbackBridge +class MTRTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge : public MTRTestClusterNullableBitmap8AttributeCallbackBridge { public: - CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterNullableBitmap8AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterNullableBitmap8AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9251,27 +9119,26 @@ class CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterNullableBitmap16AttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterNullableBitmap16AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterNullableBitmap16AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterNullableBitmap16AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable> & value); }; -class CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge - : public CHIPTestClusterNullableBitmap16AttributeCallbackBridge +class MTRTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge + : public MTRTestClusterNullableBitmap16AttributeCallbackBridge { public: - CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterNullableBitmap16AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterNullableBitmap16AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9281,27 +9148,26 @@ class CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterNullableBitmap32AttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterNullableBitmap32AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterNullableBitmap32AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterNullableBitmap32AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable> & value); }; -class CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge - : public CHIPTestClusterNullableBitmap32AttributeCallbackBridge +class MTRTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge + : public MTRTestClusterNullableBitmap32AttributeCallbackBridge { public: - CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterNullableBitmap32AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterNullableBitmap32AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9311,27 +9177,26 @@ class CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterNullableBitmap64AttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterNullableBitmap64AttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterNullableBitmap64AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterNullableBitmap64AttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable> & value); }; -class CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge - : public CHIPTestClusterNullableBitmap64AttributeCallbackBridge +class MTRTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge + : public MTRTestClusterNullableBitmap64AttributeCallbackBridge { public: - CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterNullableBitmap64AttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterNullableBitmap64AttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9341,27 +9206,27 @@ class CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterNullableStructStructAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterNullableStructStructAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterNullableStructStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterNullableStructStructAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge - : public CHIPTestClusterNullableStructStructAttributeCallbackBridge +class MTRTestClusterNullableStructStructAttributeCallbackSubscriptionBridge + : public MTRTestClusterNullableStructStructAttributeCallbackBridge { public: - CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterNullableStructStructAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterNullableStructStructAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterNullableStructStructAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9371,25 +9236,25 @@ class CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterGeneratedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterGeneratedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge +class MTRTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTestClusterGeneratedCommandListListAttributeCallbackBridge { public: - CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterGeneratedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9399,25 +9264,25 @@ class CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterAcceptedCommandListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterAcceptedCommandListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge +class MTRTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge + : public MTRTestClusterAcceptedCommandListListAttributeCallbackBridge { public: - CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterAcceptedCommandListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9427,25 +9292,25 @@ class CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterAttributeListListAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterAttributeListListAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterAttributeListListAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::DecodableList & value); }; -class CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge - : public CHIPTestClusterAttributeListListAttributeCallbackBridge +class MTRTestClusterAttributeListListAttributeCallbackSubscriptionBridge + : public MTRTestClusterAttributeListListAttributeCallbackBridge { public: - CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterAttributeListListAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterAttributeListListAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterAttributeListListAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -9455,704 +9320,683 @@ class CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupsClusterAddGroupResponseCallbackBridge : public CHIPCallbackBridge +class MTRGroupsClusterAddGroupResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPGroupsClusterAddGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsClusterAddGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType & data); }; -class CHIPGroupsClusterViewGroupResponseCallbackBridge : public CHIPCallbackBridge +class MTRGroupsClusterViewGroupResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPGroupsClusterViewGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsClusterViewGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Groups::Commands::ViewGroupResponse::DecodableType & data); }; -class CHIPGroupsClusterGetGroupMembershipResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGroupsClusterGetGroupMembershipResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupsClusterGetGroupMembershipResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGroupsClusterGetGroupMembershipResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Groups::Commands::GetGroupMembershipResponse::DecodableType & data); }; -class CHIPGroupsClusterRemoveGroupResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGroupsClusterRemoveGroupResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPGroupsClusterRemoveGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRGroupsClusterRemoveGroupResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Groups::Commands::RemoveGroupResponse::DecodableType & data); }; -class CHIPScenesClusterAddSceneResponseCallbackBridge : public CHIPCallbackBridge +class MTRScenesClusterAddSceneResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesClusterAddSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterAddSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::AddSceneResponse::DecodableType & data); }; -class CHIPScenesClusterViewSceneResponseCallbackBridge : public CHIPCallbackBridge +class MTRScenesClusterViewSceneResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesClusterViewSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterViewSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::ViewSceneResponse::DecodableType & data); }; -class CHIPScenesClusterRemoveSceneResponseCallbackBridge - : public CHIPCallbackBridge +class MTRScenesClusterRemoveSceneResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesClusterRemoveSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterRemoveSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::RemoveSceneResponse::DecodableType & data); }; -class CHIPScenesClusterRemoveAllScenesResponseCallbackBridge - : public CHIPCallbackBridge +class MTRScenesClusterRemoveAllScenesResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesClusterRemoveAllScenesResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterRemoveAllScenesResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType & data); }; -class CHIPScenesClusterStoreSceneResponseCallbackBridge : public CHIPCallbackBridge +class MTRScenesClusterStoreSceneResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesClusterStoreSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterStoreSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::StoreSceneResponse::DecodableType & data); }; -class CHIPScenesClusterGetSceneMembershipResponseCallbackBridge - : public CHIPCallbackBridge +class MTRScenesClusterGetSceneMembershipResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesClusterGetSceneMembershipResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRScenesClusterGetSceneMembershipResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType & data); }; -class CHIPScenesClusterEnhancedAddSceneResponseCallbackBridge - : public CHIPCallbackBridge +class MTRScenesClusterEnhancedAddSceneResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesClusterEnhancedAddSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterEnhancedAddSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::EnhancedAddSceneResponse::DecodableType & data); }; -class CHIPScenesClusterEnhancedViewSceneResponseCallbackBridge - : public CHIPCallbackBridge +class MTRScenesClusterEnhancedViewSceneResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPScenesClusterEnhancedViewSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRScenesClusterEnhancedViewSceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::EnhancedViewSceneResponse::DecodableType & data); }; -class CHIPScenesClusterCopySceneResponseCallbackBridge : public CHIPCallbackBridge +class MTRScenesClusterCopySceneResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPScenesClusterCopySceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRScenesClusterCopySceneResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Scenes::Commands::CopySceneResponse::DecodableType & data); }; -class CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType & data); }; -class CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & data); }; -class CHIPGeneralCommissioningClusterArmFailSafeResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningClusterArmFailSafeResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningClusterArmFailSafeResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningClusterArmFailSafeResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & data); }; -class CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType & data); }; -class CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & data); }; -class CHIPNetworkCommissioningClusterScanNetworksResponseCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningClusterScanNetworksResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningClusterScanNetworksResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningClusterScanNetworksResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType & data); }; -class CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType & data); }; -class CHIPNetworkCommissioningClusterConnectNetworkResponseCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningClusterConnectNetworkResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningClusterConnectNetworkResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNetworkCommissioningClusterConnectNetworkResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & data); }; -class CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType & data); }; -class CHIPOperationalCredentialsClusterAttestationResponseCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsClusterAttestationResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsClusterAttestationResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsClusterAttestationResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OperationalCredentials::Commands::AttestationResponse::DecodableType & data); }; -class CHIPOperationalCredentialsClusterCertificateChainResponseCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsClusterCertificateChainResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsClusterCertificateChainResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROperationalCredentialsClusterCertificateChainResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainResponse::DecodableType & data); }; -class CHIPOperationalCredentialsClusterCSRResponseCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsClusterCSRResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsClusterCSRResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsClusterCSRResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OperationalCredentials::Commands::CSRResponse::DecodableType & data); }; -class CHIPOperationalCredentialsClusterNOCResponseCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsClusterNOCResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsClusterNOCResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsClusterNOCResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType & data); }; -class CHIPGroupKeyManagementClusterKeySetReadResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementClusterKeySetReadResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementClusterKeySetReadResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGroupKeyManagementClusterKeySetReadResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadResponse::DecodableType & data); }; -class CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterGetWeekDayScheduleResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterGetWeekDayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetYearDayScheduleResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterGetYearDayScheduleResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterGetYearDayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterGetYearDayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetHolidayScheduleResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterGetHolidayScheduleResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterGetHolidayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterGetHolidayScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetUserResponseCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterGetUserResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterGetUserResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterGetUserResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & data); }; -class CHIPDoorLockClusterSetCredentialResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterSetCredentialResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterSetCredentialResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterSetCredentialResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::SetCredentialResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetCredentialStatusResponseCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterGetCredentialStatusResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterGetCredentialStatusResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterGetCredentialStatusResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType & data); }; -class CHIPThermostatClusterGetWeeklyScheduleResponseCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatClusterGetWeeklyScheduleResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatClusterGetWeeklyScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThermostatClusterGetWeeklyScheduleResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & data); }; -class CHIPChannelClusterChangeChannelResponseCallbackBridge - : public CHIPCallbackBridge +class MTRChannelClusterChangeChannelResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPChannelClusterChangeChannelResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelClusterChangeChannelResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::Channel::Commands::ChangeChannelResponse::DecodableType & data); }; -class CHIPTargetNavigatorClusterNavigateTargetResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorClusterNavigateTargetResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorClusterNavigateTargetResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTargetNavigatorClusterNavigateTargetResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType & data); }; -class CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackClusterPlaybackResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaPlaybackClusterPlaybackResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType & data); }; -class CHIPKeypadInputClusterSendKeyResponseCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputClusterSendKeyResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPKeypadInputClusterSendKeyResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRKeypadInputClusterSendKeyResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType & data); }; -class CHIPContentLauncherClusterLaunchResponseCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherClusterLaunchResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherClusterLaunchResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRContentLauncherClusterLaunchResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType & data); }; -class CHIPApplicationLauncherClusterLauncherResponseCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherClusterLauncherResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherClusterLauncherResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationLauncherClusterLauncherResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::ApplicationLauncher::Commands::LauncherResponse::DecodableType & data); }; -class CHIPAccountLoginClusterGetSetupPINResponseCallbackBridge - : public CHIPCallbackBridge +class MTRAccountLoginClusterGetSetupPINResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccountLoginClusterGetSetupPINResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAccountLoginClusterGetSetupPINResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::AccountLogin::Commands::GetSetupPINResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestSpecificResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestSpecificResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestSpecificResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestSpecificResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestAddArgumentsResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestAddArgumentsResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestAddArgumentsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestAddArgumentsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestSimpleArgumentResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestSimpleArgumentResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestSimpleArgumentResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestSimpleArgumentResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestStructArrayArgumentResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestStructArrayArgumentResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestStructArrayArgumentResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestStructArrayArgumentResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestListInt8UReverseResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestListInt8UReverseResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestListInt8UReverseResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestListInt8UReverseResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestEnumsResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestEnumsResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestEnumsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterClusterTestEnumsResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestNullableOptionalResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestNullableOptionalResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestNullableOptionalResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestNullableOptionalResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType & data); }; -class CHIPTestClusterClusterBooleanResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterBooleanResponseCallbackBridge : public MTRCallbackBridge { public: - CHIPTestClusterClusterBooleanResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterClusterBooleanResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType & data); }; -class CHIPTestClusterClusterSimpleStructResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterSimpleStructResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterSimpleStructResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterSimpleStructResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestEmitTestEventResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestEmitTestEventResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestEmitTestEventResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTestClusterClusterTestEmitTestEventResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType & data); }; -class CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType & data); }; -class CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyEffectIdentifier value); }; -class CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge - : public CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge +class MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge + : public MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge { public: - CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10162,27 +10006,26 @@ class CHIPIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge - : public CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge +class MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge + : public MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), + MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10192,25 +10035,25 @@ class CHIPNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyEffectVariant value); }; -class CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge +class MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge + : public MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge { public: - CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10220,27 +10063,26 @@ class CHIPIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge +class MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge + : public MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10250,25 +10092,25 @@ class CHIPNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyIdentifyType value); }; -class CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge - : public CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge +class MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge + : public MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge { public: - CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action, true), + MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10278,27 +10120,26 @@ class CHIPIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge +class MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge + : public MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge { public: - CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10308,26 +10149,25 @@ class CHIPNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OnOff::OnOffDelayedAllOffEffectVariant value); }; -class CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge +class MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge + : public MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge { public: - CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10337,28 +10177,27 @@ class CHIPOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge +class MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge + : public MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge { public: - CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10368,26 +10207,25 @@ class CHIPNullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OnOff::OnOffDyingLightEffectVariant value); }; -class CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge +class MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge + : public MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge { public: - CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10397,27 +10235,26 @@ class CHIPOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge - : public CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge +class MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge + : public MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge { public: - CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10427,25 +10264,25 @@ class CHIPNullableOnOffClusterOnOffDyingLightEffectVariantAttributeCallbackSubsc SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffClusterOnOffEffectIdentifierAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OnOff::OnOffEffectIdentifier value); }; -class CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge - : public CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge +class MTROnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge + : public MTROnOffClusterOnOffEffectIdentifierAttributeCallbackBridge { public: - CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), + MTROnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10455,27 +10292,26 @@ class CHIPOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge - : public CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge +class MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge + : public MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge { public: - CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10485,25 +10321,25 @@ class CHIPNullableOnOffClusterOnOffEffectIdentifierAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROnOffClusterOnOffStartUpOnOffAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTROnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OnOff::OnOffStartUpOnOff value); }; -class CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge - : public CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge +class MTROnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge + : public MTROnOffClusterOnOffStartUpOnOffAttributeCallbackBridge { public: - CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(queue, handler, action, true), + MTROnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTROnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10513,27 +10349,26 @@ class CHIPOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge - : public CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge +class MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge + : public MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge { public: - CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10543,25 +10378,24 @@ class CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLevelControlClusterMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLevelControlClusterMoveModeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPLevelControlClusterMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLevelControlClusterMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::LevelControl::MoveMode value); }; -class CHIPLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge - : public CHIPLevelControlClusterMoveModeAttributeCallbackBridge +class MTRLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge + : public MTRLevelControlClusterMoveModeAttributeCallbackBridge { public: - CHIPLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLevelControlClusterMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLevelControlClusterMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10571,26 +10405,26 @@ class CHIPLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableLevelControlClusterMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableLevelControlClusterMoveModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableLevelControlClusterMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableLevelControlClusterMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge - : public CHIPNullableLevelControlClusterMoveModeAttributeCallbackBridge +class MTRNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge + : public MTRNullableLevelControlClusterMoveModeAttributeCallbackBridge { public: - CHIPNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableLevelControlClusterMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableLevelControlClusterMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10600,25 +10434,24 @@ class CHIPNullableLevelControlClusterMoveModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPLevelControlClusterStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRLevelControlClusterStepModeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPLevelControlClusterStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRLevelControlClusterStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::LevelControl::StepMode value); }; -class CHIPLevelControlClusterStepModeAttributeCallbackSubscriptionBridge - : public CHIPLevelControlClusterStepModeAttributeCallbackBridge +class MTRLevelControlClusterStepModeAttributeCallbackSubscriptionBridge + : public MTRLevelControlClusterStepModeAttributeCallbackBridge { public: - CHIPLevelControlClusterStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPLevelControlClusterStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRLevelControlClusterStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRLevelControlClusterStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10628,26 +10461,26 @@ class CHIPLevelControlClusterStepModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableLevelControlClusterStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableLevelControlClusterStepModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableLevelControlClusterStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableLevelControlClusterStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge - : public CHIPNullableLevelControlClusterStepModeAttributeCallbackBridge +class MTRNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge + : public MTRNullableLevelControlClusterStepModeAttributeCallbackBridge { public: - CHIPNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableLevelControlClusterStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableLevelControlClusterStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10657,26 +10490,25 @@ class CHIPNullableLevelControlClusterStepModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplianceControlClusterApplianceStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplianceControlClusterApplianceStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplianceControlClusterApplianceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplianceControlClusterApplianceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplianceControl::ApplianceStatus value); }; -class CHIPApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge - : public CHIPApplianceControlClusterApplianceStatusAttributeCallbackBridge +class MTRApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge + : public MTRApplianceControlClusterApplianceStatusAttributeCallbackBridge { public: - CHIPApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplianceControlClusterApplianceStatusAttributeCallbackBridge(queue, handler, action, true), + MTRApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplianceControlClusterApplianceStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10686,27 +10518,26 @@ class CHIPApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge +class MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge + : public MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge { public: - CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplianceControlClusterApplianceStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10716,26 +10547,25 @@ class CHIPNullableApplianceControlClusterApplianceStatusAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplianceControlClusterCommandIdentificationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplianceControlClusterCommandIdentificationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplianceControlClusterCommandIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplianceControlClusterCommandIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplianceControl::CommandIdentification value); }; -class CHIPApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge - : public CHIPApplianceControlClusterCommandIdentificationAttributeCallbackBridge +class MTRApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge + : public MTRApplianceControlClusterCommandIdentificationAttributeCallbackBridge { public: - CHIPApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplianceControlClusterCommandIdentificationAttributeCallbackBridge(queue, handler, action, true), + MTRApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplianceControlClusterCommandIdentificationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10745,29 +10575,27 @@ class CHIPApplianceControlClusterCommandIdentificationAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge - : public CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge +class MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge + : public MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge { public: - CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplianceControlClusterCommandIdentificationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10777,25 +10605,25 @@ class CHIPNullableApplianceControlClusterCommandIdentificationAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplianceControlClusterWarningEventAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplianceControlClusterWarningEventAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplianceControlClusterWarningEventAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRApplianceControlClusterWarningEventAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplianceControl::WarningEvent value); }; -class CHIPApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge - : public CHIPApplianceControlClusterWarningEventAttributeCallbackBridge +class MTRApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge + : public MTRApplianceControlClusterWarningEventAttributeCallbackBridge { public: - CHIPApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplianceControlClusterWarningEventAttributeCallbackBridge(queue, handler, action, true), + MTRApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRApplianceControlClusterWarningEventAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10805,27 +10633,26 @@ class CHIPApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplianceControlClusterWarningEventAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplianceControlClusterWarningEventAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplianceControlClusterWarningEventAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableApplianceControlClusterWarningEventAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge - : public CHIPNullableApplianceControlClusterWarningEventAttributeCallbackBridge +class MTRNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge + : public MTRNullableApplianceControlClusterWarningEventAttributeCallbackBridge { public: - CHIPNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplianceControlClusterWarningEventAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplianceControlClusterWarningEventAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplianceControlClusterWarningEventAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10835,25 +10662,25 @@ class CHIPNullableApplianceControlClusterWarningEventAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlClusterAuthModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlClusterAuthModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlClusterAuthModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlClusterAuthModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AccessControl::AuthMode value); }; -class CHIPAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge - : public CHIPAccessControlClusterAuthModeAttributeCallbackBridge +class MTRAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge + : public MTRAccessControlClusterAuthModeAttributeCallbackBridge { public: - CHIPAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlClusterAuthModeAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlClusterAuthModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10863,26 +10690,26 @@ class CHIPAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAccessControlClusterAuthModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAccessControlClusterAuthModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAccessControlClusterAuthModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableAccessControlClusterAuthModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge - : public CHIPNullableAccessControlClusterAuthModeAttributeCallbackBridge +class MTRNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge + : public MTRNullableAccessControlClusterAuthModeAttributeCallbackBridge { public: - CHIPNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAccessControlClusterAuthModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAccessControlClusterAuthModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10892,25 +10719,25 @@ class CHIPNullableAccessControlClusterAuthModeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlClusterChangeTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlClusterChangeTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlClusterChangeTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlClusterChangeTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AccessControl::ChangeTypeEnum value); }; -class CHIPAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPAccessControlClusterChangeTypeEnumAttributeCallbackBridge +class MTRAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge + : public MTRAccessControlClusterChangeTypeEnumAttributeCallbackBridge { public: - CHIPAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlClusterChangeTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlClusterChangeTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10920,27 +10747,26 @@ class CHIPAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge +class MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge { public: - CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAccessControlClusterChangeTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10950,25 +10776,25 @@ class CHIPNullableAccessControlClusterChangeTypeEnumAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAccessControlClusterPrivilegeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAccessControlClusterPrivilegeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAccessControlClusterPrivilegeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAccessControlClusterPrivilegeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AccessControl::Privilege value); }; -class CHIPAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge - : public CHIPAccessControlClusterPrivilegeAttributeCallbackBridge +class MTRAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge + : public MTRAccessControlClusterPrivilegeAttributeCallbackBridge { public: - CHIPAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAccessControlClusterPrivilegeAttributeCallbackBridge(queue, handler, action, true), + MTRAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAccessControlClusterPrivilegeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -10978,27 +10804,26 @@ class CHIPAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAccessControlClusterPrivilegeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAccessControlClusterPrivilegeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAccessControlClusterPrivilegeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableAccessControlClusterPrivilegeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge - : public CHIPNullableAccessControlClusterPrivilegeAttributeCallbackBridge +class MTRNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge + : public MTRNullableAccessControlClusterPrivilegeAttributeCallbackBridge { public: - CHIPNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAccessControlClusterPrivilegeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAccessControlClusterPrivilegeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11008,25 +10833,25 @@ class CHIPNullableAccessControlClusterPrivilegeAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsClusterActionErrorEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::BridgedActions::ActionErrorEnum value); }; -class CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackBridge +class MTRBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsClusterActionErrorEnumAttributeCallbackBridge { public: - CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11036,27 +10861,26 @@ class CHIPBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge +class MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge + : public MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableBridgedActionsClusterActionErrorEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11066,25 +10890,25 @@ class CHIPNullableBridgedActionsClusterActionErrorEnumAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsClusterActionStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsClusterActionStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsClusterActionStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsClusterActionStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::BridgedActions::ActionStateEnum value); }; -class CHIPBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsClusterActionStateEnumAttributeCallbackBridge +class MTRBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsClusterActionStateEnumAttributeCallbackBridge { public: - CHIPBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsClusterActionStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsClusterActionStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11094,27 +10918,26 @@ class CHIPBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge +class MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge + : public MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableBridgedActionsClusterActionStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11124,25 +10947,25 @@ class CHIPNullableBridgedActionsClusterActionStateEnumAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsClusterActionTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::BridgedActions::ActionTypeEnum value); }; -class CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackBridge +class MTRBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsClusterActionTypeEnumAttributeCallbackBridge { public: - CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11152,27 +10975,26 @@ class CHIPBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge +class MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge { public: - CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableBridgedActionsClusterActionTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11182,26 +11004,25 @@ class CHIPNullableBridgedActionsClusterActionTypeEnumAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::BridgedActions::EndpointListTypeEnum value); }; -class CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge +class MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge + : public MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge { public: - CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11211,28 +11032,27 @@ class CHIPBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge +class MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge { public: - CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11242,27 +11062,25 @@ class CHIPNullableBridgedActionsClusterEndpointListTypeEnumAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTAApplyUpdateAction value); }; -class CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11272,30 +11090,29 @@ class CHIPOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11305,26 +11122,25 @@ class CHIPNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeC SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTADownloadProtocol value); }; -class CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11334,30 +11150,29 @@ class CHIPOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11367,26 +11182,25 @@ class CHIPNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateProvider::OTAQueryStatus value); }; -class CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge +class MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11396,30 +11210,28 @@ class CHIPOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11429,28 +11241,26 @@ class CHIPNullableOtaSoftwareUpdateProviderClusterOTAQueryStatusAttributeCallbac SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAAnnouncementReason value); }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11460,15 +11270,15 @@ class CHIPOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbac SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge( + MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge( queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( @@ -11476,14 +11286,13 @@ class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttribut const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11493,27 +11302,25 @@ class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttribut SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAChangeReasonEnum value); }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11523,30 +11330,29 @@ class CHIPOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11556,26 +11362,25 @@ class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeC SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAUpdateStateEnum value); }; -class CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge - : public CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge +class MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge + : public MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge { public: - CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11585,30 +11390,29 @@ class CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge +class MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge + : public MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge { public: - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11618,26 +11422,25 @@ class CHIPNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::TimeFormatLocalization::CalendarType value); }; -class CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge +class MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11647,28 +11450,27 @@ class CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge +class MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge + : public MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge { public: - CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11678,26 +11480,25 @@ class CHIPNullableTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::TimeFormatLocalization::HourFormat value); }; -class CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge - : public CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge +class MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge + : public MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge { public: - CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(queue, handler, action, true), + MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11707,27 +11508,26 @@ class CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge - : public CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge +class MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge + : public MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge { public: - CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(queue, handler, action, true), + MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11737,25 +11537,25 @@ class CHIPNullableTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::UnitLocalization::TempUnit value); }; -class CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge - : public CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge +class MTRUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge + : public MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge { public: - CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge(queue, handler, action, true), + MTRUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11765,27 +11565,26 @@ class CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge - : public CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge +class MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge + : public MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge { public: - CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge(queue, handler, action, true), + MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableUnitLocalizationClusterTempUnitAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11795,25 +11594,25 @@ class CHIPNullableUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::BatChargeFaultType value); }; -class CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge +class MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge { public: - CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11823,27 +11622,26 @@ class CHIPPowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge +class MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11853,25 +11651,25 @@ class CHIPNullablePowerSourceClusterBatChargeFaultTypeAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterBatChargeLevelAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterBatChargeLevelAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterBatChargeLevelAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterBatChargeLevelAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::BatChargeLevel value); }; -class CHIPPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterBatChargeLevelAttributeCallbackBridge +class MTRPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterBatChargeLevelAttributeCallbackBridge { public: - CHIPPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterBatChargeLevelAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterBatChargeLevelAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11881,27 +11679,26 @@ class CHIPPowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge +class MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterBatChargeLevelAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11911,25 +11708,25 @@ class CHIPNullablePowerSourceClusterBatChargeLevelAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterBatChargeStateAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterBatChargeStateAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterBatChargeStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterBatChargeStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::BatChargeState value); }; -class CHIPPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterBatChargeStateAttributeCallbackBridge +class MTRPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterBatChargeStateAttributeCallbackBridge { public: - CHIPPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterBatChargeStateAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterBatChargeStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11939,27 +11736,26 @@ class CHIPPowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge +class MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterBatChargeStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11969,25 +11765,25 @@ class CHIPNullablePowerSourceClusterBatChargeStateAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterBatFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterBatFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterBatFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterBatFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::BatFaultType value); }; -class CHIPPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterBatFaultTypeAttributeCallbackBridge +class MTRPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterBatFaultTypeAttributeCallbackBridge { public: - CHIPPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterBatFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterBatFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -11997,27 +11793,26 @@ class CHIPPowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge +class MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterBatFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12027,25 +11822,25 @@ class CHIPNullablePowerSourceClusterBatFaultTypeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterBatReplaceabilityAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterBatReplaceabilityAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::BatReplaceability value); }; -class CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackBridge +class MTRPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterBatReplaceabilityAttributeCallbackBridge { public: - CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterBatReplaceabilityAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12055,27 +11850,26 @@ class CHIPPowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge +class MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterBatReplaceabilityAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12085,25 +11879,25 @@ class CHIPNullablePowerSourceClusterBatReplaceabilityAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterPowerSourceStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterPowerSourceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::PowerSourceStatus value); }; -class CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackBridge +class MTRPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterPowerSourceStatusAttributeCallbackBridge { public: - CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterPowerSourceStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12113,27 +11907,26 @@ class CHIPPowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge +class MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterPowerSourceStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12143,25 +11936,25 @@ class CHIPNullablePowerSourceClusterPowerSourceStatusAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::WiredCurrentType value); }; -class CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge +class MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge { public: - CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12171,27 +11964,26 @@ class CHIPPowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge +class MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12201,25 +11993,25 @@ class CHIPNullablePowerSourceClusterWiredCurrentTypeAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPowerSourceClusterWiredFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRPowerSourceClusterWiredFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PowerSource::WiredFaultType value); }; -class CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackBridge +class MTRPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge + : public MTRPowerSourceClusterWiredFaultTypeAttributeCallbackBridge { public: - CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRPowerSourceClusterWiredFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12229,27 +12021,26 @@ class CHIPPowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge +class MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge { public: - CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePowerSourceClusterWiredFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12259,26 +12050,25 @@ class CHIPNullablePowerSourceClusterWiredFaultTypeAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralCommissioning::CommissioningError value); }; -class CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge +class MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge { public: - CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12288,30 +12078,27 @@ class CHIPGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge +class MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge { public: - CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralCommissioningClusterCommissioningErrorAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12321,26 +12108,25 @@ class CHIPNullableGeneralCommissioningClusterCommissioningErrorAttributeCallback SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralCommissioning::RegulatoryLocationType value); }; -class CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge +class MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge { public: - CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12350,30 +12136,29 @@ class CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge +class MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge { public: - CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12383,28 +12168,25 @@ class CHIPNullableGeneralCommissioningClusterRegulatoryLocationTypeAttributeCall SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::NetworkCommissioning::NetworkCommissioningStatus value); }; -class CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge +class MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge { public: - CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12414,30 +12196,29 @@ class CHIPNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallback SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge( - queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge +class MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge + : public MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge { public: - CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12447,25 +12228,25 @@ class CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNetworkCommissioningClusterWiFiBandAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::NetworkCommissioning::WiFiBand value); }; -class CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge - : public CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackBridge +class MTRNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge + : public MTRNetworkCommissioningClusterWiFiBandAttributeCallbackBridge { public: - CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(queue, handler, action, true), + MTRNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12475,27 +12256,26 @@ class CHIPNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge - : public CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge +class MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge + : public MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge { public: - CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(queue, handler, action, true), + MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableNetworkCommissioningClusterWiFiBandAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12505,25 +12285,25 @@ class CHIPNullableNetworkCommissioningClusterWiFiBandAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsClusterLogsIntentAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DiagnosticLogs::LogsIntent value); }; -class CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackBridge +class MTRDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsClusterLogsIntentAttributeCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12533,27 +12313,26 @@ class CHIPDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge - : public CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge + : public MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDiagnosticLogsClusterLogsIntentAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12563,25 +12342,25 @@ class CHIPNullableDiagnosticLogsClusterLogsIntentAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsClusterLogsStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DiagnosticLogs::LogsStatus value); }; -class CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackBridge +class MTRDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsClusterLogsStatusAttributeCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12591,27 +12370,26 @@ class CHIPDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge + : public MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDiagnosticLogsClusterLogsStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12621,26 +12399,25 @@ class CHIPNullableDiagnosticLogsClusterLogsStatusAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DiagnosticLogs::LogsTransferProtocol value); }; -class CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge - : public CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge +class MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge + : public MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge { public: - CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(queue, handler, action, true), + MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12650,28 +12427,27 @@ class CHIPDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge - : public CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge +class MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge + : public MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge { public: - CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12681,26 +12457,25 @@ class CHIPNullableDiagnosticLogsClusterLogsTransferProtocolAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralDiagnostics::BootReasonType value); }; -class CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge +class MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12710,27 +12485,26 @@ class CHIPGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge +class MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12740,26 +12514,25 @@ class CHIPNullableGeneralDiagnosticsClusterBootReasonTypeAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralDiagnostics::HardwareFaultType value); }; -class CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge +class MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12769,28 +12542,27 @@ class CHIPGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge +class MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12800,26 +12572,25 @@ class CHIPNullableGeneralDiagnosticsClusterHardwareFaultTypeAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralDiagnostics::InterfaceType value); }; -class CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge +class MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12829,27 +12600,26 @@ class CHIPGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge +class MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12859,26 +12629,25 @@ class CHIPNullableGeneralDiagnosticsClusterInterfaceTypeAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralDiagnostics::NetworkFaultType value); }; -class CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge +class MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12888,28 +12657,27 @@ class CHIPGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge +class MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12919,26 +12687,25 @@ class CHIPNullableGeneralDiagnosticsClusterNetworkFaultTypeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GeneralDiagnostics::RadioFaultType value); }; -class CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge +class MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge + : public MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge { public: - CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12948,27 +12715,26 @@ class CHIPGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge +class MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge + : public MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge { public: - CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -12978,26 +12744,25 @@ class CHIPNullableGeneralDiagnosticsClusterRadioFaultTypeAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ThreadNetworkDiagnostics::NetworkFault value); }; -class CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13007,28 +12772,27 @@ class CHIPThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge - : public CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge + : public MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13038,26 +12802,25 @@ class CHIPNullableThreadNetworkDiagnosticsClusterNetworkFaultAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ThreadNetworkDiagnostics::RoutingRole value); }; -class CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13067,28 +12830,27 @@ class CHIPThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge - : public CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge + : public MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13098,28 +12860,25 @@ class CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ThreadNetworkDiagnostics::ThreadConnectionStatus value); }; -class CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge - : public CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge +class MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge + : public MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge { public: - CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(queue, handler, action, true), + MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13129,30 +12888,29 @@ class CHIPThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallback SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge( - queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn( void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge +class MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge + : public MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge { public: - CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13162,27 +12920,25 @@ class CHIPNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttribute SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WiFiNetworkDiagnostics::AssociationFailureCause value); }; -class CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13192,30 +12948,29 @@ class CHIPWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge - : public CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge + : public MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13225,26 +12980,25 @@ class CHIPNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeC SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WiFiNetworkDiagnostics::SecurityType value); }; -class CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13254,28 +13008,27 @@ class CHIPWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge + : public MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13285,26 +13038,25 @@ class CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WiFiNetworkDiagnostics::WiFiConnectionStatus value); }; -class CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13314,30 +13066,29 @@ class CHIPWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge + : public MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13347,26 +13098,25 @@ class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiConnectionStatusAttributeCall SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WiFiNetworkDiagnostics::WiFiVersionType value); }; -class CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge - : public CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge +class MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge + : public MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge { public: - CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(queue, handler, action, true), + MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13376,29 +13126,27 @@ class CHIPWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge +class MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge + : public MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge { public: - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13408,26 +13156,25 @@ class CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::EthernetNetworkDiagnostics::PHYRateType value); }; -class CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge - : public CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge +class MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge + : public MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge { public: - CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(queue, handler, action, true), + MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTREthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13437,29 +13184,27 @@ class CHIPEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge +class MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge + : public MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge { public: - CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13469,28 +13214,27 @@ class CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AdministratorCommissioning::CommissioningWindowStatus value); }; -class CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge - : public CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge +class MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge + : public MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge { public: - CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(queue, handler, action, true), + MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13500,15 +13244,15 @@ class CHIPAdministratorCommissioningClusterCommissioningWindowStatusAttributeCal SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge( + MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge( queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( @@ -13516,14 +13260,13 @@ class CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttr const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge +class MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge + : public MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge { public: - CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13533,26 +13276,25 @@ class CHIPNullableAdministratorCommissioningClusterCommissioningWindowStatusAttr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AdministratorCommissioning::StatusCode value); }; -class CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge - : public CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge +class MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge + : public MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge { public: - CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(queue, handler, action, true), + MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13562,28 +13304,27 @@ class CHIPAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge - : public CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge +class MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge + : public MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge { public: - CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13593,26 +13334,25 @@ class CHIPNullableAdministratorCommissioningClusterStatusCodeAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::OperationalCredentials::OperationalCertStatus value); }; -class CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge - : public CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge +class MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge + : public MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge { public: - CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(queue, handler, action, true), + MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTROperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13622,30 +13362,29 @@ class CHIPOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge +class MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge + : public MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge { public: - CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13655,26 +13394,25 @@ class CHIPNullableOperationalCredentialsClusterOperationalCertStatusAttributeCal SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::GroupKeyManagement::GroupKeySecurityPolicy value); }; -class CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge - : public CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge +class MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge + : public MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge { public: - CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(queue, handler, action, true), + MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13684,30 +13422,29 @@ class CHIPGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge - : public CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge +class MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge + : public MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge { public: - CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(queue, handler, action, true), + MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13717,24 +13454,23 @@ class CHIPNullableGroupKeyManagementClusterGroupKeySecurityPolicyAttributeCallba SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlAlarmCodeAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlAlarmCodeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlAlarmCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlAlarmCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlAlarmCode value); }; -class CHIPDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlAlarmCodeAttributeCallbackBridge +class MTRDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlAlarmCodeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlAlarmCodeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlAlarmCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13744,26 +13480,26 @@ class CHIPDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlAlarmCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13773,25 +13509,25 @@ class CHIPNullableDoorLockClusterDlAlarmCodeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlCredentialRuleAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlCredentialRuleAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlCredentialRuleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlCredentialRuleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlCredentialRule value); }; -class CHIPDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlCredentialRuleAttributeCallbackBridge +class MTRDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlCredentialRuleAttributeCallbackBridge { public: - CHIPDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlCredentialRuleAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlCredentialRuleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13801,27 +13537,26 @@ class CHIPDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge +class MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlCredentialRuleAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13831,25 +13566,25 @@ class CHIPNullableDoorLockClusterDlCredentialRuleAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlCredentialTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlCredentialTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlCredentialTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlCredentialTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlCredentialType value); }; -class CHIPDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlCredentialTypeAttributeCallbackBridge +class MTRDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlCredentialTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlCredentialTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlCredentialTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13859,27 +13594,26 @@ class CHIPDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlCredentialTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13889,25 +13623,25 @@ class CHIPNullableDoorLockClusterDlCredentialTypeAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlDataOperationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlDataOperationType value); }; -class CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackBridge +class MTRDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlDataOperationTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13917,27 +13651,26 @@ class CHIPDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlDataOperationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13947,24 +13680,23 @@ class CHIPNullableDoorLockClusterDlDataOperationTypeAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlDoorStateAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlDoorStateAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlDoorStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlDoorStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlDoorState value); }; -class CHIPDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlDoorStateAttributeCallbackBridge +class MTRDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlDoorStateAttributeCallbackBridge { public: - CHIPDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlDoorStateAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlDoorStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -13974,26 +13706,26 @@ class CHIPDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge +class MTRNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14003,25 +13735,25 @@ class CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlLockDataTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlLockDataTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlLockDataTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlLockDataTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlLockDataType value); }; -class CHIPDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlLockDataTypeAttributeCallbackBridge +class MTRDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlLockDataTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlLockDataTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlLockDataTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14031,27 +13763,26 @@ class CHIPDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlLockDataTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14061,25 +13792,25 @@ class CHIPNullableDoorLockClusterDlLockDataTypeAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlLockOperationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlLockOperationType value); }; -class CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackBridge +class MTRDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlLockOperationTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14089,27 +13820,26 @@ class CHIPDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlLockOperationTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14119,24 +13849,23 @@ class CHIPNullableDoorLockClusterDlLockOperationTypeAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlLockStateAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlLockStateAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlLockStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlLockStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlLockState value); }; -class CHIPDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlLockStateAttributeCallbackBridge +class MTRDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlLockStateAttributeCallbackBridge { public: - CHIPDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlLockStateAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlLockStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14146,26 +13875,26 @@ class CHIPDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge +class MTRNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14175,23 +13904,23 @@ class CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlLockTypeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlLockTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlLockType value); }; -class CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge : public CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge +class MTRDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlLockTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlLockTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14201,26 +13930,26 @@ class CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlLockTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlLockTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlLockTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlLockTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14230,25 +13959,25 @@ class CHIPNullableDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlOperatingMode value); }; -class CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge +class MTRDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14258,27 +13987,26 @@ class CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlOperatingModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14288,25 +14016,25 @@ class CHIPNullableDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlOperationErrorAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlOperationErrorAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlOperationErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlOperationErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlOperationError value); }; -class CHIPDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlOperationErrorAttributeCallbackBridge +class MTRDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlOperationErrorAttributeCallbackBridge { public: - CHIPDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlOperationErrorAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlOperationErrorAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14316,27 +14044,26 @@ class CHIPDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge +class MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlOperationErrorAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14346,25 +14073,25 @@ class CHIPNullableDoorLockClusterDlOperationErrorAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlOperationSourceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlOperationSourceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlOperationSourceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlOperationSourceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlOperationSource value); }; -class CHIPDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlOperationSourceAttributeCallbackBridge +class MTRDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlOperationSourceAttributeCallbackBridge { public: - CHIPDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlOperationSourceAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlOperationSourceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14374,27 +14101,26 @@ class CHIPDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge +class MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlOperationSourceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14404,23 +14130,23 @@ class CHIPNullableDoorLockClusterDlOperationSourceAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlStatusAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlStatusAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlStatus value); }; -class CHIPDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge : public CHIPDoorLockClusterDlStatusAttributeCallbackBridge +class MTRDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlStatusAttributeCallbackBridge { public: - CHIPDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlStatusAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14430,25 +14156,25 @@ class CHIPDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlStatusAttributeCallbackBridge +class MTRNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlStatusAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14458,25 +14184,24 @@ class CHIPNullableDoorLockClusterDlStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlUserStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDlUserStatusAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlUserStatus value); }; -class CHIPDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDlUserStatusAttributeCallbackBridge +class MTRDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDlUserStatusAttributeCallbackBridge { public: - CHIPDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlUserStatusAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlUserStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14486,26 +14211,26 @@ class CHIPDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlUserStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackBridge +class MTRNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlUserStatusAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlUserStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14515,23 +14240,23 @@ class CHIPNullableDoorLockClusterDlUserStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDlUserTypeAttributeCallbackBridge : public CHIPCallbackBridge +class MTRDoorLockClusterDlUserTypeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPDoorLockClusterDlUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDlUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DlUserType value); }; -class CHIPDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge : public CHIPDoorLockClusterDlUserTypeAttributeCallbackBridge +class MTRDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge : public MTRDoorLockClusterDlUserTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDlUserTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDlUserTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14541,26 +14266,26 @@ class CHIPDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDlUserTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDlUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDlUserTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDlUserTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14570,26 +14295,25 @@ class CHIPNullableDoorLockClusterDlUserTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DoorLockOperationEventCode value); }; -class CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge +class MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge { public: - CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14599,28 +14323,27 @@ class CHIPDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge +class MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14630,26 +14353,25 @@ class CHIPNullableDoorLockClusterDoorLockOperationEventCodeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DoorLockProgrammingEventCode value); }; -class CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge +class MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge { public: - CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14659,28 +14381,27 @@ class CHIPDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge +class MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14690,26 +14411,25 @@ class CHIPNullableDoorLockClusterDoorLockProgrammingEventCodeAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DoorLockSetPinOrIdStatus value); }; -class CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge +class MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge { public: - CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14719,27 +14439,26 @@ class CHIPDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge +class MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14749,25 +14468,25 @@ class CHIPNullableDoorLockClusterDoorLockSetPinOrIdStatusAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDoorLockUserStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DoorLockUserStatus value); }; -class CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackBridge +class MTRDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDoorLockUserStatusAttributeCallbackBridge { public: - CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14777,27 +14496,26 @@ class CHIPDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge +class MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDoorLockUserStatusAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14807,25 +14525,25 @@ class CHIPNullableDoorLockClusterDoorLockUserStatusAttributeCallbackSubscription SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRDoorLockClusterDoorLockUserTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::DoorLock::DoorLockUserType value); }; -class CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge - : public CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackBridge +class MTRDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge + : public MTRDoorLockClusterDoorLockUserTypeAttributeCallbackBridge { public: - CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(queue, handler, action, true), + MTRDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14835,27 +14553,26 @@ class CHIPDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge +class MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge + : public MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge { public: - CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableDoorLockClusterDoorLockUserTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14865,25 +14582,25 @@ class CHIPNullableDoorLockClusterDoorLockUserTypeAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WindowCovering::EndProductType value); }; -class CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge - : public CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge +class MTRWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge + : public MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge { public: - CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14893,27 +14610,26 @@ class CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge +class MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge + : public MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge { public: - CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWindowCoveringClusterEndProductTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14923,23 +14639,23 @@ class CHIPNullableWindowCoveringClusterEndProductTypeAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPWindowCoveringClusterTypeAttributeCallbackBridge : public CHIPCallbackBridge +class MTRWindowCoveringClusterTypeAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPWindowCoveringClusterTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRWindowCoveringClusterTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::WindowCovering::Type value); }; -class CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge : public CHIPWindowCoveringClusterTypeAttributeCallbackBridge +class MTRWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge : public MTRWindowCoveringClusterTypeAttributeCallbackBridge { public: - CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPWindowCoveringClusterTypeAttributeCallbackBridge(queue, handler, action, true), + MTRWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRWindowCoveringClusterTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14949,26 +14665,26 @@ class CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge : public SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableWindowCoveringClusterTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableWindowCoveringClusterTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableWindowCoveringClusterTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableWindowCoveringClusterTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableWindowCoveringClusterTypeAttributeCallbackBridge +class MTRNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge + : public MTRNullableWindowCoveringClusterTypeAttributeCallbackBridge { public: - CHIPNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableWindowCoveringClusterTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableWindowCoveringClusterTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -14978,26 +14694,25 @@ class CHIPNullableWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PumpConfigurationAndControl::PumpControlMode value); }; -class CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge +class MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15007,30 +14722,29 @@ class CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge - : public CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge +class MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge + : public MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge { public: - CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15040,26 +14754,25 @@ class CHIPNullablePumpConfigurationAndControlClusterPumpControlModeAttributeCall SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::PumpConfigurationAndControl::PumpOperationMode value); }; -class CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge - : public CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge +class MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge + : public MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge { public: - CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(queue, handler, action, true), + MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15069,30 +14782,29 @@ class CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge - : public CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge +class MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge + : public MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge { public: - CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15102,25 +14814,25 @@ class CHIPNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCa SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatClusterSetpointAdjustModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatClusterSetpointAdjustModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatClusterSetpointAdjustModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRThermostatClusterSetpointAdjustModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Thermostat::SetpointAdjustMode value); }; -class CHIPThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge - : public CHIPThermostatClusterSetpointAdjustModeAttributeCallbackBridge +class MTRThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge + : public MTRThermostatClusterSetpointAdjustModeAttributeCallbackBridge { public: - CHIPThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatClusterSetpointAdjustModeAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatClusterSetpointAdjustModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15130,27 +14842,26 @@ class CHIPThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge - : public CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge +class MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge + : public MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge { public: - CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThermostatClusterSetpointAdjustModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15160,26 +14871,25 @@ class CHIPNullableThermostatClusterSetpointAdjustModeAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Thermostat::ThermostatControlSequence value); }; -class CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge - : public CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge +class MTRThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge + : public MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge { public: - CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15189,28 +14899,27 @@ class CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge - : public CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge +class MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge + : public MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge { public: - CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThermostatClusterThermostatControlSequenceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15220,26 +14929,25 @@ class CHIPNullableThermostatClusterThermostatControlSequenceAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatClusterThermostatRunningModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatClusterThermostatRunningModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatClusterThermostatRunningModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThermostatClusterThermostatRunningModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Thermostat::ThermostatRunningMode value); }; -class CHIPThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge - : public CHIPThermostatClusterThermostatRunningModeAttributeCallbackBridge +class MTRThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge + : public MTRThermostatClusterThermostatRunningModeAttributeCallbackBridge { public: - CHIPThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatClusterThermostatRunningModeAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatClusterThermostatRunningModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15249,27 +14957,26 @@ class CHIPThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge - : public CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge +class MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge + : public MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge { public: - CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThermostatClusterThermostatRunningModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15279,26 +14986,25 @@ class CHIPNullableThermostatClusterThermostatRunningModeAttributeCallbackSubscri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPThermostatClusterThermostatSystemModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRThermostatClusterThermostatSystemModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPThermostatClusterThermostatSystemModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRThermostatClusterThermostatSystemModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Thermostat::ThermostatSystemMode value); }; -class CHIPThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge - : public CHIPThermostatClusterThermostatSystemModeAttributeCallbackBridge +class MTRThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge + : public MTRThermostatClusterThermostatSystemModeAttributeCallbackBridge { public: - CHIPThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPThermostatClusterThermostatSystemModeAttributeCallbackBridge(queue, handler, action, true), + MTRThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRThermostatClusterThermostatSystemModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15308,27 +15014,26 @@ class CHIPThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge - : public CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge +class MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge + : public MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge { public: - CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableThermostatClusterThermostatSystemModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15338,25 +15043,25 @@ class CHIPNullableThermostatClusterThermostatSystemModeAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::FanControl::FanModeSequenceType value); }; -class CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge - : public CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge +class MTRFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge + : public MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge { public: - CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(queue, handler, action, true), + MTRFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15366,27 +15071,26 @@ class CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge +class MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge + : public MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge { public: - CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableFanControlClusterFanModeSequenceTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15396,25 +15100,25 @@ class CHIPNullableFanControlClusterFanModeSequenceTypeAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPFanControlClusterFanModeTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRFanControlClusterFanModeTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPFanControlClusterFanModeTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRFanControlClusterFanModeTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::FanControl::FanModeType value); }; -class CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge - : public CHIPFanControlClusterFanModeTypeAttributeCallbackBridge +class MTRFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge + : public MTRFanControlClusterFanModeTypeAttributeCallbackBridge { public: - CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPFanControlClusterFanModeTypeAttributeCallbackBridge(queue, handler, action, true), + MTRFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRFanControlClusterFanModeTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15424,26 +15128,26 @@ class CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableFanControlClusterFanModeTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableFanControlClusterFanModeTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableFanControlClusterFanModeTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableFanControlClusterFanModeTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableFanControlClusterFanModeTypeAttributeCallbackBridge +class MTRNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge + : public MTRNullableFanControlClusterFanModeTypeAttributeCallbackBridge { public: - CHIPNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableFanControlClusterFanModeTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableFanControlClusterFanModeTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15453,25 +15157,25 @@ class CHIPNullableFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterColorLoopActionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterColorLoopActionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterColorLoopActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlClusterColorLoopActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::ColorLoopAction value); }; -class CHIPColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterColorLoopActionAttributeCallbackBridge +class MTRColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterColorLoopActionAttributeCallbackBridge { public: - CHIPColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterColorLoopActionAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterColorLoopActionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15481,27 +15185,26 @@ class CHIPColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterColorLoopActionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterColorLoopActionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterColorLoopActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterColorLoopActionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterColorLoopActionAttributeCallbackBridge +class MTRNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterColorLoopActionAttributeCallbackBridge { public: - CHIPNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterColorLoopActionAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterColorLoopActionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15511,26 +15214,25 @@ class CHIPNullableColorControlClusterColorLoopActionAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterColorLoopDirectionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterColorLoopDirectionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterColorLoopDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRColorControlClusterColorLoopDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::ColorLoopDirection value); }; -class CHIPColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterColorLoopDirectionAttributeCallbackBridge +class MTRColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterColorLoopDirectionAttributeCallbackBridge { public: - CHIPColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterColorLoopDirectionAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterColorLoopDirectionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15540,27 +15242,26 @@ class CHIPColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge +class MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge { public: - CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterColorLoopDirectionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15570,25 +15271,25 @@ class CHIPNullableColorControlClusterColorLoopDirectionAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterColorModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterColorModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterColorModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlClusterColorModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::ColorMode value); }; -class CHIPColorControlClusterColorModeAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterColorModeAttributeCallbackBridge +class MTRColorControlClusterColorModeAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterColorModeAttributeCallbackBridge { public: - CHIPColorControlClusterColorModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterColorModeAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterColorModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterColorModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15598,26 +15299,26 @@ class CHIPColorControlClusterColorModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterColorModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterColorModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterColorModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableColorControlClusterColorModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterColorModeAttributeCallbackBridge +class MTRNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterColorModeAttributeCallbackBridge { public: - CHIPNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterColorModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterColorModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15627,25 +15328,25 @@ class CHIPNullableColorControlClusterColorModeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterHueDirectionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterHueDirectionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterHueDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlClusterHueDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::HueDirection value); }; -class CHIPColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterHueDirectionAttributeCallbackBridge +class MTRColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterHueDirectionAttributeCallbackBridge { public: - CHIPColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterHueDirectionAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterHueDirectionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15655,27 +15356,26 @@ class CHIPColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterHueDirectionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterHueDirectionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterHueDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterHueDirectionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterHueDirectionAttributeCallbackBridge +class MTRNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterHueDirectionAttributeCallbackBridge { public: - CHIPNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterHueDirectionAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterHueDirectionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15685,25 +15385,25 @@ class CHIPNullableColorControlClusterHueDirectionAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterHueMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterHueMoveModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterHueMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlClusterHueMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::HueMoveMode value); }; -class CHIPColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterHueMoveModeAttributeCallbackBridge +class MTRColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterHueMoveModeAttributeCallbackBridge { public: - CHIPColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterHueMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterHueMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15713,27 +15413,26 @@ class CHIPColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterHueMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterHueMoveModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterHueMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterHueMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterHueMoveModeAttributeCallbackBridge +class MTRNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterHueMoveModeAttributeCallbackBridge { public: - CHIPNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterHueMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterHueMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15743,25 +15442,25 @@ class CHIPNullableColorControlClusterHueMoveModeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterHueStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterHueStepModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterHueStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRColorControlClusterHueStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::HueStepMode value); }; -class CHIPColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterHueStepModeAttributeCallbackBridge +class MTRColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterHueStepModeAttributeCallbackBridge { public: - CHIPColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterHueStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterHueStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15771,27 +15470,26 @@ class CHIPColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterHueStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterHueStepModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterHueStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterHueStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterHueStepModeAttributeCallbackBridge +class MTRNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterHueStepModeAttributeCallbackBridge { public: - CHIPNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterHueStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterHueStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15801,26 +15499,25 @@ class CHIPNullableColorControlClusterHueStepModeAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterSaturationMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterSaturationMoveModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterSaturationMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRColorControlClusterSaturationMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::SaturationMoveMode value); }; -class CHIPColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterSaturationMoveModeAttributeCallbackBridge +class MTRColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterSaturationMoveModeAttributeCallbackBridge { public: - CHIPColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterSaturationMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterSaturationMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15830,27 +15527,26 @@ class CHIPColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge +class MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge { public: - CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterSaturationMoveModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15860,26 +15556,25 @@ class CHIPNullableColorControlClusterSaturationMoveModeAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPColorControlClusterSaturationStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRColorControlClusterSaturationStepModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPColorControlClusterSaturationStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRColorControlClusterSaturationStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ColorControl::SaturationStepMode value); }; -class CHIPColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge - : public CHIPColorControlClusterSaturationStepModeAttributeCallbackBridge +class MTRColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge + : public MTRColorControlClusterSaturationStepModeAttributeCallbackBridge { public: - CHIPColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPColorControlClusterSaturationStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRColorControlClusterSaturationStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15889,27 +15584,26 @@ class CHIPColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableColorControlClusterSaturationStepModeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableColorControlClusterSaturationStepModeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge - : public CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackBridge +class MTRNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge + : public MTRNullableColorControlClusterSaturationStepModeAttributeCallbackBridge { public: - CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableColorControlClusterSaturationStepModeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableColorControlClusterSaturationStepModeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15919,26 +15613,25 @@ class CHIPNullableColorControlClusterSaturationStepModeAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::IlluminanceMeasurement::LightSensorType value); }; -class CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge - : public CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge +class MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge + : public MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge { public: - CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(queue, handler, action, true), + MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15948,29 +15641,27 @@ class CHIPIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge - : public CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge +class MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge + : public MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge { public: - CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -15980,25 +15671,25 @@ class CHIPNullableIlluminanceMeasurementClusterLightSensorTypeAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelClusterChannelStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRChannelClusterChannelStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPChannelClusterChannelStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelClusterChannelStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Channel::ChannelStatusEnum value); }; -class CHIPChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPChannelClusterChannelStatusEnumAttributeCallbackBridge +class MTRChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge + : public MTRChannelClusterChannelStatusEnumAttributeCallbackBridge { public: - CHIPChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelClusterChannelStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelClusterChannelStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16008,27 +15699,26 @@ class CHIPChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableChannelClusterChannelStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableChannelClusterChannelStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackBridge +class MTRNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableChannelClusterChannelStatusEnumAttributeCallbackBridge { public: - CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableChannelClusterChannelStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16038,25 +15728,25 @@ class CHIPNullableChannelClusterChannelStatusEnumAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRChannelClusterLineupInfoTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Channel::LineupInfoTypeEnum value); }; -class CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackBridge +class MTRChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge + : public MTRChannelClusterLineupInfoTypeEnumAttributeCallbackBridge { public: - CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16066,27 +15756,26 @@ class CHIPChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge +class MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge { public: - CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableChannelClusterLineupInfoTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16096,26 +15785,25 @@ class CHIPNullableChannelClusterLineupInfoTypeEnumAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::TargetNavigator::TargetNavigatorStatusEnum value); }; -class CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge +class MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge + : public MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge { public: - CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16125,30 +15813,29 @@ class CHIPTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge +class MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge { public: - CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16158,26 +15845,25 @@ class CHIPNullableTargetNavigatorClusterTargetNavigatorStatusEnumAttributeCallba SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::MediaPlayback::MediaPlaybackStatusEnum value); }; -class CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge +class MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge { public: - CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16187,28 +15873,27 @@ class CHIPMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge +class MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge { public: - CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16218,26 +15903,25 @@ class CHIPNullableMediaPlaybackClusterMediaPlaybackStatusEnumAttributeCallbackSu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum value); }; -class CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge - : public CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge +class MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge + : public MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge { public: - CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16247,27 +15931,26 @@ class CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBrid SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge +class MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge + : public MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge { public: - CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16277,25 +15960,25 @@ class CHIPNullableMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMediaInputClusterInputTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMediaInputClusterInputTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMediaInputClusterInputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMediaInputClusterInputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::MediaInput::InputTypeEnum value); }; -class CHIPMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPMediaInputClusterInputTypeEnumAttributeCallbackBridge +class MTRMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge + : public MTRMediaInputClusterInputTypeEnumAttributeCallbackBridge { public: - CHIPMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMediaInputClusterInputTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMediaInputClusterInputTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16305,27 +15988,26 @@ class CHIPMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge +class MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge { public: - CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMediaInputClusterInputTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16335,25 +16017,25 @@ class CHIPNullableMediaInputClusterInputTypeEnumAttributeCallbackSubscriptionBri SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPKeypadInputClusterCecKeyCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputClusterCecKeyCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPKeypadInputClusterCecKeyCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRKeypadInputClusterCecKeyCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::KeypadInput::CecKeyCode value); }; -class CHIPKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge - : public CHIPKeypadInputClusterCecKeyCodeAttributeCallbackBridge +class MTRKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge + : public MTRKeypadInputClusterCecKeyCodeAttributeCallbackBridge { public: - CHIPKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPKeypadInputClusterCecKeyCodeAttributeCallbackBridge(queue, handler, action, true), + MTRKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRKeypadInputClusterCecKeyCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16363,26 +16045,26 @@ class CHIPKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge - : public CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge +class MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge + : public MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge { public: - CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge(queue, handler, action, true), + MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableKeypadInputClusterCecKeyCodeAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16392,26 +16074,25 @@ class CHIPNullableKeypadInputClusterCecKeyCodeAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::KeypadInput::KeypadInputStatusEnum value); }; -class CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge +class MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge + : public MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge { public: - CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16421,27 +16102,26 @@ class CHIPKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge +class MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge { public: - CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16451,26 +16131,25 @@ class CHIPNullableKeypadInputClusterKeypadInputStatusEnumAttributeCallbackSubscr SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ContentLauncher::ContentLaunchStatusEnum value); }; -class CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge +class MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge + : public MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge { public: - CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16480,30 +16159,27 @@ class CHIPContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscrip SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge +class MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge { public: - CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16513,25 +16189,25 @@ class CHIPNullableContentLauncherClusterContentLaunchStatusEnumAttributeCallback SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherClusterMetricTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ContentLauncher::MetricTypeEnum value); }; -class CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackBridge +class MTRContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge + : public MTRContentLauncherClusterMetricTypeEnumAttributeCallbackBridge { public: - CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16541,27 +16217,26 @@ class CHIPContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridg SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge +class MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge { public: - CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableContentLauncherClusterMetricTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16571,25 +16246,25 @@ class CHIPNullableContentLauncherClusterMetricTypeEnumAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPContentLauncherClusterParameterEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRContentLauncherClusterParameterEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPContentLauncherClusterParameterEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRContentLauncherClusterParameterEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ContentLauncher::ParameterEnum value); }; -class CHIPContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge - : public CHIPContentLauncherClusterParameterEnumAttributeCallbackBridge +class MTRContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge + : public MTRContentLauncherClusterParameterEnumAttributeCallbackBridge { public: - CHIPContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPContentLauncherClusterParameterEnumAttributeCallbackBridge(queue, handler, action, true), + MTRContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRContentLauncherClusterParameterEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16599,27 +16274,26 @@ class CHIPContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableContentLauncherClusterParameterEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableContentLauncherClusterParameterEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackBridge +class MTRNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge + : public MTRNullableContentLauncherClusterParameterEnumAttributeCallbackBridge { public: - CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableContentLauncherClusterParameterEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableContentLauncherClusterParameterEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16629,25 +16303,25 @@ class CHIPNullableContentLauncherClusterParameterEnumAttributeCallbackSubscripti SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRAudioOutputClusterOutputTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::AudioOutput::OutputTypeEnum value); }; -class CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackBridge +class MTRAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge + : public MTRAudioOutputClusterOutputTypeEnumAttributeCallbackBridge { public: - CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16657,27 +16331,26 @@ class CHIPAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge +class MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge + : public MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge { public: - CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableAudioOutputClusterOutputTypeEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16687,28 +16360,27 @@ class CHIPNullableAudioOutputClusterOutputTypeEnumAttributeCallbackSubscriptionB SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplicationLauncher::ApplicationLauncherStatusEnum value); }; -class CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge +class MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge + : public MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge { public: - CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16718,15 +16390,15 @@ class CHIPApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallba SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge( + MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge( queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn( @@ -16734,14 +16406,13 @@ class CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttribu const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge +class MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge { public: - CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16751,26 +16422,25 @@ class CHIPNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttribu SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum value); }; -class CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge +class MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge + : public MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge { public: - CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16780,29 +16450,27 @@ class CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge +class MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge + : public MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge { public: - CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16812,23 +16480,23 @@ class CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMessagingClusterEventIdAttributeCallbackBridge : public CHIPCallbackBridge +class MTRMessagingClusterEventIdAttributeCallbackBridge : public MTRCallbackBridge { public: - CHIPMessagingClusterEventIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRMessagingClusterEventIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Messaging::EventId value); }; -class CHIPMessagingClusterEventIdAttributeCallbackSubscriptionBridge : public CHIPMessagingClusterEventIdAttributeCallbackBridge +class MTRMessagingClusterEventIdAttributeCallbackSubscriptionBridge : public MTRMessagingClusterEventIdAttributeCallbackBridge { public: - CHIPMessagingClusterEventIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMessagingClusterEventIdAttributeCallbackBridge(queue, handler, action, true), + MTRMessagingClusterEventIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRMessagingClusterEventIdAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16838,25 +16506,25 @@ class CHIPMessagingClusterEventIdAttributeCallbackSubscriptionBridge : public CH SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMessagingClusterEventIdAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMessagingClusterEventIdAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMessagingClusterEventIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableMessagingClusterEventIdAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge - : public CHIPNullableMessagingClusterEventIdAttributeCallbackBridge +class MTRNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge + : public MTRNullableMessagingClusterEventIdAttributeCallbackBridge { public: - CHIPNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMessagingClusterEventIdAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMessagingClusterEventIdAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16866,26 +16534,25 @@ class CHIPNullableMessagingClusterEventIdAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMessagingClusterMessagingControlConfirmationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Messaging::MessagingControlConfirmation value); }; -class CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge - : public CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackBridge +class MTRMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge + : public MTRMessagingClusterMessagingControlConfirmationAttributeCallbackBridge { public: - CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(queue, handler, action, true), + MTRMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16895,29 +16562,27 @@ class CHIPMessagingClusterMessagingControlConfirmationAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge - : public CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge +class MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge + : public MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMessagingClusterMessagingControlConfirmationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16927,27 +16592,25 @@ class CHIPNullableMessagingClusterMessagingControlConfirmationAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Messaging::MessagingControlEnhancedConfirmation value); }; -class CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge - : public CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge +class MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge + : public MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge { public: - CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(queue, handler, action, true), + MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16957,30 +16620,29 @@ class CHIPMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge - : public CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge +class MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge + : public MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -16990,26 +16652,25 @@ class CHIPNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeC SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMessagingClusterMessagingControlImportanceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMessagingClusterMessagingControlImportanceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMessagingClusterMessagingControlImportanceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMessagingClusterMessagingControlImportanceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Messaging::MessagingControlImportance value); }; -class CHIPMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge - : public CHIPMessagingClusterMessagingControlImportanceAttributeCallbackBridge +class MTRMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge + : public MTRMessagingClusterMessagingControlImportanceAttributeCallbackBridge { public: - CHIPMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMessagingClusterMessagingControlImportanceAttributeCallbackBridge(queue, handler, action, true), + MTRMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRMessagingClusterMessagingControlImportanceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17019,28 +16680,27 @@ class CHIPMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptio SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge - : public CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge +class MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge + : public MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMessagingClusterMessagingControlImportanceAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17050,26 +16710,25 @@ class CHIPNullableMessagingClusterMessagingControlImportanceAttributeCallbackSub SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRMessagingClusterMessagingControlTransmissionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::Messaging::MessagingControlTransmission value); }; -class CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge - : public CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackBridge +class MTRMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge + : public MTRMessagingClusterMessagingControlTransmissionAttributeCallbackBridge { public: - CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(queue, handler, action, true), + MTRMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17079,29 +16738,27 @@ class CHIPMessagingClusterMessagingControlTransmissionAttributeCallbackSubscript SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge - : public CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge +class MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge + : public MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge { public: - CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(queue, handler, action, true), + MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableMessagingClusterMessagingControlTransmissionAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17111,26 +16768,25 @@ class CHIPNullableMessagingClusterMessagingControlTransmissionAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, - keepAlive){}; + MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, + keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::ApplianceEventsAndAlert::EventIdentification value); }; -class CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge - : public CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge +class MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge + : public MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge { public: - CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(queue, handler, action, true), + MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17140,30 +16796,29 @@ class CHIPApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubs SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(dispatch_queue_t queue, - ResponseHandler handler, - CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, - OnSuccessFn, keepAlive){}; + MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(dispatch_queue_t queue, + ResponseHandler handler, + MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, + OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge - : public CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge +class MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge + : public MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge { public: - CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge( - dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(queue, handler, action, true), + MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackSubscriptionBridge( + dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, SubscriptionEstablishedHandler establishedHandler) : + MTRNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17173,25 +16828,25 @@ class CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCall SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRTestClusterClusterSimpleEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action, + bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, chip::app::Clusters::TestCluster::SimpleEnum value); }; -class CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge - : public CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge +class MTRTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge + : public MTRTestClusterClusterSimpleEnumAttributeCallbackBridge { public: - CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), + MTRTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} @@ -17201,26 +16856,26 @@ class CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge - : public CHIPCallbackBridge +class MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge + : public MTRCallbackBridge { public: - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, bool keepAlive = false) : + MTRCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; static void OnSuccessFn(void * context, const chip::app::DataModel::Nullable & value); }; -class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge +class MTRNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge + : public MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge { public: - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), + MTRNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + MTRActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), mEstablishedHandler(establishedHandler) {} diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h new file mode 100644 index 00000000000000..96d1a3263c56df --- /dev/null +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h @@ -0,0 +1,2469 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// THIS FILE IS GENERATED BY ZAP + +#import +#import + +#pragma mark - Clusters IDs + +typedef NS_ENUM(uint32_t, MTRClusterIDType) { + MTRClusterPowerConfigurationID = 0x00000001, + MTRClusterDeviceTemperatureConfigurationID = 0x00000002, + MTRClusterIdentifyID = 0x00000003, + MTRClusterGroupsID = 0x00000004, + MTRClusterScenesID = 0x00000005, + MTRClusterOnOffID = 0x00000006, + MTRClusterOnOffSwitchConfigurationID = 0x00000007, + MTRClusterLevelControlID = 0x00000008, + MTRClusterAlarmsID = 0x00000009, + MTRClusterTimeID = 0x0000000A, + MTRClusterBinaryInputBasicID = 0x0000000F, + MTRClusterPowerProfileID = 0x0000001A, + MTRClusterApplianceControlID = 0x0000001B, + MTRClusterPulseWidthModulationID = 0x0000001C, + MTRClusterDescriptorID = 0x0000001D, + MTRClusterBindingID = 0x0000001E, + MTRClusterAccessControlID = 0x0000001F, + MTRClusterPollControlID = 0x00000020, + MTRClusterBridgedActionsID = 0x00000025, + MTRClusterBasicID = 0x00000028, + MTRClusterOtaSoftwareUpdateProviderID = 0x00000029, + MTRClusterOtaSoftwareUpdateRequestorID = 0x0000002A, + MTRClusterLocalizationConfigurationID = 0x0000002B, + MTRClusterTimeFormatLocalizationID = 0x0000002C, + MTRClusterUnitLocalizationID = 0x0000002D, + MTRClusterPowerSourceConfigurationID = 0x0000002E, + MTRClusterPowerSourceID = 0x0000002F, + MTRClusterGeneralCommissioningID = 0x00000030, + MTRClusterNetworkCommissioningID = 0x00000031, + MTRClusterDiagnosticLogsID = 0x00000032, + MTRClusterGeneralDiagnosticsID = 0x00000033, + MTRClusterSoftwareDiagnosticsID = 0x00000034, + MTRClusterThreadNetworkDiagnosticsID = 0x00000035, + MTRClusterWiFiNetworkDiagnosticsID = 0x00000036, + MTRClusterEthernetNetworkDiagnosticsID = 0x00000037, + MTRClusterTimeSynchronizationID = 0x00000038, + MTRClusterBridgedDeviceBasicID = 0x00000039, + MTRClusterSwitchID = 0x0000003B, + MTRClusterAdministratorCommissioningID = 0x0000003C, + MTRClusterOperationalCredentialsID = 0x0000003E, + MTRClusterGroupKeyManagementID = 0x0000003F, + MTRClusterFixedLabelID = 0x00000040, + MTRClusterUserLabelID = 0x00000041, + MTRClusterProxyConfigurationID = 0x00000042, + MTRClusterProxyDiscoveryID = 0x00000043, + MTRClusterProxyValidID = 0x00000044, + MTRClusterBooleanStateID = 0x00000045, + MTRClusterModeSelectID = 0x00000050, + MTRClusterShadeConfigurationID = 0x00000100, + MTRClusterDoorLockID = 0x00000101, + MTRClusterWindowCoveringID = 0x00000102, + MTRClusterBarrierControlID = 0x00000103, + MTRClusterPumpConfigurationAndControlID = 0x00000200, + MTRClusterThermostatID = 0x00000201, + MTRClusterFanControlID = 0x00000202, + MTRClusterDehumidificationControlID = 0x00000203, + MTRClusterThermostatUserInterfaceConfigurationID = 0x00000204, + MTRClusterColorControlID = 0x00000300, + MTRClusterBallastConfigurationID = 0x00000301, + MTRClusterIlluminanceMeasurementID = 0x00000400, + MTRClusterTemperatureMeasurementID = 0x00000402, + MTRClusterPressureMeasurementID = 0x00000403, + MTRClusterFlowMeasurementID = 0x00000404, + MTRClusterRelativeHumidityMeasurementID = 0x00000405, + MTRClusterOccupancySensingID = 0x00000406, + MTRClusterCarbonMonoxideConcentrationMeasurementID = 0x0000040C, + MTRClusterCarbonDioxideConcentrationMeasurementID = 0x0000040D, + MTRClusterEthyleneConcentrationMeasurementID = 0x0000040E, + MTRClusterEthyleneOxideConcentrationMeasurementID = 0x0000040F, + MTRClusterHydrogenConcentrationMeasurementID = 0x00000410, + MTRClusterHydrogenSulphideConcentrationMeasurementID = 0x00000411, + MTRClusterNitricOxideConcentrationMeasurementID = 0x00000412, + MTRClusterNitrogenDioxideConcentrationMeasurementID = 0x00000413, + MTRClusterOxygenConcentrationMeasurementID = 0x00000414, + MTRClusterOzoneConcentrationMeasurementID = 0x00000415, + MTRClusterSulfurDioxideConcentrationMeasurementID = 0x00000416, + MTRClusterDissolvedOxygenConcentrationMeasurementID = 0x00000417, + MTRClusterBromateConcentrationMeasurementID = 0x00000418, + MTRClusterChloraminesConcentrationMeasurementID = 0x00000419, + MTRClusterChlorineConcentrationMeasurementID = 0x0000041A, + MTRClusterFecalColiformAndEColiConcentrationMeasurementID = 0x0000041B, + MTRClusterFluorideConcentrationMeasurementID = 0x0000041C, + MTRClusterHaloaceticAcidsConcentrationMeasurementID = 0x0000041D, + MTRClusterTotalTrihalomethanesConcentrationMeasurementID = 0x0000041E, + MTRClusterTotalColiformBacteriaConcentrationMeasurementID = 0x0000041F, + MTRClusterTurbidityConcentrationMeasurementID = 0x00000420, + MTRClusterCopperConcentrationMeasurementID = 0x00000421, + MTRClusterLeadConcentrationMeasurementID = 0x00000422, + MTRClusterManganeseConcentrationMeasurementID = 0x00000423, + MTRClusterSulfateConcentrationMeasurementID = 0x00000424, + MTRClusterBromodichloromethaneConcentrationMeasurementID = 0x00000425, + MTRClusterBromoformConcentrationMeasurementID = 0x00000426, + MTRClusterChlorodibromomethaneConcentrationMeasurementID = 0x00000427, + MTRClusterChloroformConcentrationMeasurementID = 0x00000428, + MTRClusterSodiumConcentrationMeasurementID = 0x00000429, + MTRClusterWakeOnLanID = 0x00000503, + MTRClusterChannelID = 0x00000504, + MTRClusterTargetNavigatorID = 0x00000505, + MTRClusterMediaPlaybackID = 0x00000506, + MTRClusterMediaInputID = 0x00000507, + MTRClusterLowPowerID = 0x00000508, + MTRClusterKeypadInputID = 0x00000509, + MTRClusterContentLauncherID = 0x0000050A, + MTRClusterAudioOutputID = 0x0000050B, + MTRClusterApplicationLauncherID = 0x0000050C, + MTRClusterApplicationBasicID = 0x0000050D, + MTRClusterAccountLoginID = 0x0000050E, + MTRClusterMessagingID = 0x00000703, + MTRClusterApplianceIdentificationID = 0x00000B00, + MTRClusterMeterIdentificationID = 0x00000B01, + MTRClusterApplianceEventsAndAlertID = 0x00000B02, + MTRClusterApplianceStatisticsID = 0x00000B03, + MTRClusterElectricalMeasurementID = 0x00000B04, + MTRClusterTestClusterID = 0xFFF1FC05, +}; + +#pragma mark - Attributes IDs + +typedef NS_ENUM(uint32_t, MTRClusterAttributeIDType) { + // Global attributes + MTRClusterGlobalAttributeGeneratedCommandListID = 0x0000FFF8, + MTRClusterGlobalAttributeAcceptedCommandListID = 0x0000FFF9, + MTRClusterGlobalAttributeAttributeListID = 0x0000FFFB, + MTRClusterGlobalAttributeFeatureMapID = 0x0000FFFC, + MTRClusterGlobalAttributeClusterRevisionID = 0x0000FFFD, + + // Cluster PowerConfiguration attributes + MTRClusterPowerConfigurationAttributeMainsVoltageID = 0x00000000, + MTRClusterPowerConfigurationAttributeMainsFrequencyID = 0x00000001, + MTRClusterPowerConfigurationAttributeMainsAlarmMaskID = 0x00000010, + MTRClusterPowerConfigurationAttributeMainsVoltageMinThresholdID = 0x00000011, + MTRClusterPowerConfigurationAttributeMainsVoltageMaxThresholdID = 0x00000012, + MTRClusterPowerConfigurationAttributeMainsVoltageDwellTripID = 0x00000013, + MTRClusterPowerConfigurationAttributeBatteryVoltageID = 0x00000020, + MTRClusterPowerConfigurationAttributeBatteryPercentageRemainingID = 0x00000021, + MTRClusterPowerConfigurationAttributeBatteryManufacturerID = 0x00000030, + MTRClusterPowerConfigurationAttributeBatterySizeID = 0x00000031, + MTRClusterPowerConfigurationAttributeBatteryAhrRatingID = 0x00000032, + MTRClusterPowerConfigurationAttributeBatteryQuantityID = 0x00000033, + MTRClusterPowerConfigurationAttributeBatteryRatedVoltageID = 0x00000034, + MTRClusterPowerConfigurationAttributeBatteryAlarmMaskID = 0x00000035, + MTRClusterPowerConfigurationAttributeBatteryVoltageMinThresholdID = 0x00000036, + MTRClusterPowerConfigurationAttributeBatteryVoltageThreshold1ID = 0x00000037, + MTRClusterPowerConfigurationAttributeBatteryVoltageThreshold2ID = 0x00000038, + MTRClusterPowerConfigurationAttributeBatteryVoltageThreshold3ID = 0x00000039, + MTRClusterPowerConfigurationAttributeBatteryPercentageMinThresholdID = 0x0000003A, + MTRClusterPowerConfigurationAttributeBatteryPercentageThreshold1ID = 0x0000003B, + MTRClusterPowerConfigurationAttributeBatteryPercentageThreshold2ID = 0x0000003C, + MTRClusterPowerConfigurationAttributeBatteryPercentageThreshold3ID = 0x0000003D, + MTRClusterPowerConfigurationAttributeBatteryAlarmStateID = 0x0000003E, + MTRClusterPowerConfigurationAttributeBattery2VoltageID = 0x00000040, + MTRClusterPowerConfigurationAttributeBattery2PercentageRemainingID = 0x00000041, + MTRClusterPowerConfigurationAttributeBattery2ManufacturerID = 0x00000050, + MTRClusterPowerConfigurationAttributeBattery2SizeID = 0x00000051, + MTRClusterPowerConfigurationAttributeBattery2AhrRatingID = 0x00000052, + MTRClusterPowerConfigurationAttributeBattery2QuantityID = 0x00000053, + MTRClusterPowerConfigurationAttributeBattery2RatedVoltageID = 0x00000054, + MTRClusterPowerConfigurationAttributeBattery2AlarmMaskID = 0x00000055, + MTRClusterPowerConfigurationAttributeBattery2VoltageMinThresholdID = 0x00000056, + MTRClusterPowerConfigurationAttributeBattery2VoltageThreshold1ID = 0x00000057, + MTRClusterPowerConfigurationAttributeBattery2VoltageThreshold2ID = 0x00000058, + MTRClusterPowerConfigurationAttributeBattery2VoltageThreshold3ID = 0x00000059, + MTRClusterPowerConfigurationAttributeBattery2PercentageMinThresholdID = 0x0000005A, + MTRClusterPowerConfigurationAttributeBattery2PercentageThreshold1ID = 0x0000005B, + MTRClusterPowerConfigurationAttributeBattery2PercentageThreshold2ID = 0x0000005C, + MTRClusterPowerConfigurationAttributeBattery2PercentageThreshold3ID = 0x0000005D, + MTRClusterPowerConfigurationAttributeBattery2AlarmStateID = 0x0000005E, + MTRClusterPowerConfigurationAttributeBattery3VoltageID = 0x00000060, + MTRClusterPowerConfigurationAttributeBattery3PercentageRemainingID = 0x00000061, + MTRClusterPowerConfigurationAttributeBattery3ManufacturerID = 0x00000070, + MTRClusterPowerConfigurationAttributeBattery3SizeID = 0x00000071, + MTRClusterPowerConfigurationAttributeBattery3AhrRatingID = 0x00000072, + MTRClusterPowerConfigurationAttributeBattery3QuantityID = 0x00000073, + MTRClusterPowerConfigurationAttributeBattery3RatedVoltageID = 0x00000074, + MTRClusterPowerConfigurationAttributeBattery3AlarmMaskID = 0x00000075, + MTRClusterPowerConfigurationAttributeBattery3VoltageMinThresholdID = 0x00000076, + MTRClusterPowerConfigurationAttributeBattery3VoltageThreshold1ID = 0x00000077, + MTRClusterPowerConfigurationAttributeBattery3VoltageThreshold2ID = 0x00000078, + MTRClusterPowerConfigurationAttributeBattery3VoltageThreshold3ID = 0x00000079, + MTRClusterPowerConfigurationAttributeBattery3PercentageMinThresholdID = 0x0000007A, + MTRClusterPowerConfigurationAttributeBattery3PercentageThreshold1ID = 0x0000007B, + MTRClusterPowerConfigurationAttributeBattery3PercentageThreshold2ID = 0x0000007C, + MTRClusterPowerConfigurationAttributeBattery3PercentageThreshold3ID = 0x0000007D, + MTRClusterPowerConfigurationAttributeBattery3AlarmStateID = 0x0000007E, + MTRClusterPowerConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPowerConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPowerConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPowerConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPowerConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster DeviceTemperatureConfiguration attributes + MTRClusterDeviceTemperatureConfigurationAttributeCurrentTemperatureID = 0x00000000, + MTRClusterDeviceTemperatureConfigurationAttributeMinTempExperiencedID = 0x00000001, + MTRClusterDeviceTemperatureConfigurationAttributeMaxTempExperiencedID = 0x00000002, + MTRClusterDeviceTemperatureConfigurationAttributeOverTempTotalDwellID = 0x00000003, + MTRClusterDeviceTemperatureConfigurationAttributeDeviceTempAlarmMaskID = 0x00000010, + MTRClusterDeviceTemperatureConfigurationAttributeLowTempThresholdID = 0x00000011, + MTRClusterDeviceTemperatureConfigurationAttributeHighTempThresholdID = 0x00000012, + MTRClusterDeviceTemperatureConfigurationAttributeLowTempDwellTripPointID = 0x00000013, + MTRClusterDeviceTemperatureConfigurationAttributeHighTempDwellTripPointID = 0x00000014, + MTRClusterDeviceTemperatureConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDeviceTemperatureConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDeviceTemperatureConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDeviceTemperatureConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDeviceTemperatureConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Identify attributes + MTRClusterIdentifyAttributeIdentifyTimeID = 0x00000000, + MTRClusterIdentifyAttributeIdentifyTypeID = 0x00000001, + MTRClusterIdentifyAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterIdentifyAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterIdentifyAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterIdentifyAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterIdentifyAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Groups attributes + MTRClusterGroupsAttributeNameSupportID = 0x00000000, + MTRClusterGroupsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterGroupsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterGroupsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterGroupsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterGroupsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Scenes attributes + MTRClusterScenesAttributeSceneCountID = 0x00000000, + MTRClusterScenesAttributeCurrentSceneID = 0x00000001, + MTRClusterScenesAttributeCurrentGroupID = 0x00000002, + MTRClusterScenesAttributeSceneValidID = 0x00000003, + MTRClusterScenesAttributeNameSupportID = 0x00000004, + MTRClusterScenesAttributeLastConfiguredByID = 0x00000005, + MTRClusterScenesAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterScenesAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterScenesAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterScenesAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterScenesAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OnOff attributes + MTRClusterOnOffAttributeOnOffID = 0x00000000, + MTRClusterOnOffAttributeGlobalSceneControlID = 0x00004000, + MTRClusterOnOffAttributeOnTimeID = 0x00004001, + MTRClusterOnOffAttributeOffWaitTimeID = 0x00004002, + MTRClusterOnOffAttributeStartUpOnOffID = 0x00004003, + MTRClusterOnOffAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOnOffAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOnOffAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOnOffAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOnOffAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OnOffSwitchConfiguration attributes + MTRClusterOnOffSwitchConfigurationAttributeSwitchTypeID = 0x00000000, + MTRClusterOnOffSwitchConfigurationAttributeSwitchActionsID = 0x00000010, + MTRClusterOnOffSwitchConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOnOffSwitchConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOnOffSwitchConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOnOffSwitchConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOnOffSwitchConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster LevelControl attributes + MTRClusterLevelControlAttributeCurrentLevelID = 0x00000000, + MTRClusterLevelControlAttributeRemainingTimeID = 0x00000001, + MTRClusterLevelControlAttributeMinLevelID = 0x00000002, + MTRClusterLevelControlAttributeMaxLevelID = 0x00000003, + MTRClusterLevelControlAttributeCurrentFrequencyID = 0x00000004, + MTRClusterLevelControlAttributeMinFrequencyID = 0x00000005, + MTRClusterLevelControlAttributeMaxFrequencyID = 0x00000006, + MTRClusterLevelControlAttributeOptionsID = 0x0000000F, + MTRClusterLevelControlAttributeOnOffTransitionTimeID = 0x00000010, + MTRClusterLevelControlAttributeOnLevelID = 0x00000011, + MTRClusterLevelControlAttributeOnTransitionTimeID = 0x00000012, + MTRClusterLevelControlAttributeOffTransitionTimeID = 0x00000013, + MTRClusterLevelControlAttributeDefaultMoveRateID = 0x00000014, + MTRClusterLevelControlAttributeStartUpCurrentLevelID = 0x00004000, + MTRClusterLevelControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterLevelControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterLevelControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterLevelControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterLevelControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Alarms attributes + MTRClusterAlarmsAttributeAlarmCountID = 0x00000000, + MTRClusterAlarmsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterAlarmsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterAlarmsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterAlarmsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterAlarmsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Time attributes + MTRClusterTimeAttributeTimeID = 0x00000000, + MTRClusterTimeAttributeTimeStatusID = 0x00000001, + MTRClusterTimeAttributeTimeZoneID = 0x00000002, + MTRClusterTimeAttributeDstStartID = 0x00000003, + MTRClusterTimeAttributeDstEndID = 0x00000004, + MTRClusterTimeAttributeDstShiftID = 0x00000005, + MTRClusterTimeAttributeStandardTimeID = 0x00000006, + MTRClusterTimeAttributeLocalTimeID = 0x00000007, + MTRClusterTimeAttributeLastSetTimeID = 0x00000008, + MTRClusterTimeAttributeValidUntilTimeID = 0x00000009, + MTRClusterTimeAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTimeAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTimeAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTimeAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTimeAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BinaryInputBasic attributes + MTRClusterBinaryInputBasicAttributeActiveTextID = 0x00000004, + MTRClusterBinaryInputBasicAttributeDescriptionID = 0x0000001C, + MTRClusterBinaryInputBasicAttributeInactiveTextID = 0x0000002E, + MTRClusterBinaryInputBasicAttributeOutOfServiceID = 0x00000051, + MTRClusterBinaryInputBasicAttributePolarityID = 0x00000054, + MTRClusterBinaryInputBasicAttributePresentValueID = 0x00000055, + MTRClusterBinaryInputBasicAttributeReliabilityID = 0x00000067, + MTRClusterBinaryInputBasicAttributeStatusFlagsID = 0x0000006F, + MTRClusterBinaryInputBasicAttributeApplicationTypeID = 0x00000100, + MTRClusterBinaryInputBasicAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBinaryInputBasicAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBinaryInputBasicAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBinaryInputBasicAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBinaryInputBasicAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PowerProfile attributes + MTRClusterPowerProfileAttributeTotalProfileNumID = 0x00000000, + MTRClusterPowerProfileAttributeMultipleSchedulingID = 0x00000001, + MTRClusterPowerProfileAttributeEnergyFormattingID = 0x00000002, + MTRClusterPowerProfileAttributeEnergyRemoteID = 0x00000003, + MTRClusterPowerProfileAttributeScheduleModeID = 0x00000004, + MTRClusterPowerProfileAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPowerProfileAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPowerProfileAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPowerProfileAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPowerProfileAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplianceControl attributes + MTRClusterApplianceControlAttributeStartTimeID = 0x00000000, + MTRClusterApplianceControlAttributeFinishTimeID = 0x00000001, + MTRClusterApplianceControlAttributeRemainingTimeID = 0x00000002, + MTRClusterApplianceControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplianceControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplianceControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplianceControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplianceControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PulseWidthModulation attributes + MTRClusterPulseWidthModulationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPulseWidthModulationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPulseWidthModulationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPulseWidthModulationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPulseWidthModulationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Descriptor attributes + MTRClusterDescriptorAttributeDeviceListID = 0x00000000, + MTRClusterDescriptorAttributeServerListID = 0x00000001, + MTRClusterDescriptorAttributeClientListID = 0x00000002, + MTRClusterDescriptorAttributePartsListID = 0x00000003, + MTRClusterDescriptorAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDescriptorAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDescriptorAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDescriptorAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDescriptorAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Binding attributes + MTRClusterBindingAttributeBindingID = 0x00000000, + MTRClusterBindingAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBindingAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBindingAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBindingAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBindingAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster AccessControl attributes + MTRClusterAccessControlAttributeAclID = 0x00000000, + MTRClusterAccessControlAttributeExtensionID = 0x00000001, + MTRClusterAccessControlAttributeSubjectsPerAccessControlEntryID = 0x00000002, + MTRClusterAccessControlAttributeTargetsPerAccessControlEntryID = 0x00000003, + MTRClusterAccessControlAttributeAccessControlEntriesPerFabricID = 0x00000004, + MTRClusterAccessControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterAccessControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterAccessControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterAccessControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterAccessControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PollControl attributes + MTRClusterPollControlAttributeCheckInIntervalID = 0x00000000, + MTRClusterPollControlAttributeLongPollIntervalID = 0x00000001, + MTRClusterPollControlAttributeShortPollIntervalID = 0x00000002, + MTRClusterPollControlAttributeFastPollTimeoutID = 0x00000003, + MTRClusterPollControlAttributeCheckInIntervalMinID = 0x00000004, + MTRClusterPollControlAttributeLongPollIntervalMinID = 0x00000005, + MTRClusterPollControlAttributeFastPollTimeoutMaxID = 0x00000006, + MTRClusterPollControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPollControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPollControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPollControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPollControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BridgedActions attributes + MTRClusterBridgedActionsAttributeActionListID = 0x00000000, + MTRClusterBridgedActionsAttributeEndpointListID = 0x00000001, + MTRClusterBridgedActionsAttributeSetupUrlID = 0x00000002, + MTRClusterBridgedActionsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBridgedActionsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBridgedActionsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBridgedActionsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBridgedActionsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Basic attributes + MTRClusterBasicAttributeDataModelRevisionID = 0x00000000, + MTRClusterBasicAttributeVendorNameID = 0x00000001, + MTRClusterBasicAttributeVendorIDID = 0x00000002, + MTRClusterBasicAttributeProductNameID = 0x00000003, + MTRClusterBasicAttributeProductIDID = 0x00000004, + MTRClusterBasicAttributeNodeLabelID = 0x00000005, + MTRClusterBasicAttributeLocationID = 0x00000006, + MTRClusterBasicAttributeHardwareVersionID = 0x00000007, + MTRClusterBasicAttributeHardwareVersionStringID = 0x00000008, + MTRClusterBasicAttributeSoftwareVersionID = 0x00000009, + MTRClusterBasicAttributeSoftwareVersionStringID = 0x0000000A, + MTRClusterBasicAttributeManufacturingDateID = 0x0000000B, + MTRClusterBasicAttributePartNumberID = 0x0000000C, + MTRClusterBasicAttributeProductURLID = 0x0000000D, + MTRClusterBasicAttributeProductLabelID = 0x0000000E, + MTRClusterBasicAttributeSerialNumberID = 0x0000000F, + MTRClusterBasicAttributeLocalConfigDisabledID = 0x00000010, + MTRClusterBasicAttributeReachableID = 0x00000011, + MTRClusterBasicAttributeUniqueIDID = 0x00000012, + MTRClusterBasicAttributeCapabilityMinimaID = 0x00000013, + MTRClusterBasicAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBasicAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBasicAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBasicAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBasicAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OtaSoftwareUpdateProvider attributes + MTRClusterOtaSoftwareUpdateProviderAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOtaSoftwareUpdateProviderAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOtaSoftwareUpdateProviderAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOtaSoftwareUpdateProviderAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOtaSoftwareUpdateProviderAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OtaSoftwareUpdateRequestor attributes + MTRClusterOtaSoftwareUpdateRequestorAttributeDefaultOtaProvidersID = 0x00000000, + MTRClusterOtaSoftwareUpdateRequestorAttributeUpdatePossibleID = 0x00000001, + MTRClusterOtaSoftwareUpdateRequestorAttributeUpdateStateID = 0x00000002, + MTRClusterOtaSoftwareUpdateRequestorAttributeUpdateStateProgressID = 0x00000003, + MTRClusterOtaSoftwareUpdateRequestorAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOtaSoftwareUpdateRequestorAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOtaSoftwareUpdateRequestorAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOtaSoftwareUpdateRequestorAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOtaSoftwareUpdateRequestorAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster LocalizationConfiguration attributes + MTRClusterLocalizationConfigurationAttributeActiveLocaleID = 0x00000000, + MTRClusterLocalizationConfigurationAttributeSupportedLocalesID = 0x00000001, + MTRClusterLocalizationConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterLocalizationConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterLocalizationConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterLocalizationConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterLocalizationConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TimeFormatLocalization attributes + MTRClusterTimeFormatLocalizationAttributeHourFormatID = 0x00000000, + MTRClusterTimeFormatLocalizationAttributeActiveCalendarTypeID = 0x00000001, + MTRClusterTimeFormatLocalizationAttributeSupportedCalendarTypesID = 0x00000002, + MTRClusterTimeFormatLocalizationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTimeFormatLocalizationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTimeFormatLocalizationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTimeFormatLocalizationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTimeFormatLocalizationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster UnitLocalization attributes + MTRClusterUnitLocalizationAttributeTemperatureUnitID = 0x00000000, + MTRClusterUnitLocalizationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterUnitLocalizationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterUnitLocalizationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterUnitLocalizationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterUnitLocalizationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PowerSourceConfiguration attributes + MTRClusterPowerSourceConfigurationAttributeSourcesID = 0x00000000, + MTRClusterPowerSourceConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPowerSourceConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPowerSourceConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPowerSourceConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPowerSourceConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PowerSource attributes + MTRClusterPowerSourceAttributeStatusID = 0x00000000, + MTRClusterPowerSourceAttributeOrderID = 0x00000001, + MTRClusterPowerSourceAttributeDescriptionID = 0x00000002, + MTRClusterPowerSourceAttributeWiredAssessedInputVoltageID = 0x00000003, + MTRClusterPowerSourceAttributeWiredAssessedInputFrequencyID = 0x00000004, + MTRClusterPowerSourceAttributeWiredCurrentTypeID = 0x00000005, + MTRClusterPowerSourceAttributeWiredAssessedCurrentID = 0x00000006, + MTRClusterPowerSourceAttributeWiredNominalVoltageID = 0x00000007, + MTRClusterPowerSourceAttributeWiredMaximumCurrentID = 0x00000008, + MTRClusterPowerSourceAttributeWiredPresentID = 0x00000009, + MTRClusterPowerSourceAttributeActiveWiredFaultsID = 0x0000000A, + MTRClusterPowerSourceAttributeBatteryVoltageID = 0x0000000B, + MTRClusterPowerSourceAttributeBatteryPercentRemainingID = 0x0000000C, + MTRClusterPowerSourceAttributeBatteryTimeRemainingID = 0x0000000D, + MTRClusterPowerSourceAttributeBatteryChargeLevelID = 0x0000000E, + MTRClusterPowerSourceAttributeBatteryReplacementNeededID = 0x0000000F, + MTRClusterPowerSourceAttributeBatteryReplaceabilityID = 0x00000010, + MTRClusterPowerSourceAttributeBatteryPresentID = 0x00000011, + MTRClusterPowerSourceAttributeActiveBatteryFaultsID = 0x00000012, + MTRClusterPowerSourceAttributeBatteryReplacementDescriptionID = 0x00000013, + MTRClusterPowerSourceAttributeBatteryCommonDesignationID = 0x00000014, + MTRClusterPowerSourceAttributeBatteryANSIDesignationID = 0x00000015, + MTRClusterPowerSourceAttributeBatteryIECDesignationID = 0x00000016, + MTRClusterPowerSourceAttributeBatteryApprovedChemistryID = 0x00000017, + MTRClusterPowerSourceAttributeBatteryCapacityID = 0x00000018, + MTRClusterPowerSourceAttributeBatteryQuantityID = 0x00000019, + MTRClusterPowerSourceAttributeBatteryChargeStateID = 0x0000001A, + MTRClusterPowerSourceAttributeBatteryTimeToFullChargeID = 0x0000001B, + MTRClusterPowerSourceAttributeBatteryFunctionalWhileChargingID = 0x0000001C, + MTRClusterPowerSourceAttributeBatteryChargingCurrentID = 0x0000001D, + MTRClusterPowerSourceAttributeActiveBatteryChargeFaultsID = 0x0000001E, + MTRClusterPowerSourceAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPowerSourceAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPowerSourceAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPowerSourceAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPowerSourceAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster GeneralCommissioning attributes + MTRClusterGeneralCommissioningAttributeBreadcrumbID = 0x00000000, + MTRClusterGeneralCommissioningAttributeBasicCommissioningInfoID = 0x00000001, + MTRClusterGeneralCommissioningAttributeRegulatoryConfigID = 0x00000002, + MTRClusterGeneralCommissioningAttributeLocationCapabilityID = 0x00000003, + MTRClusterGeneralCommissioningAttributeSupportsConcurrentConnectionID = 0x00000004, + MTRClusterGeneralCommissioningAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterGeneralCommissioningAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterGeneralCommissioningAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterGeneralCommissioningAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterGeneralCommissioningAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster NetworkCommissioning attributes + MTRClusterNetworkCommissioningAttributeMaxNetworksID = 0x00000000, + MTRClusterNetworkCommissioningAttributeNetworksID = 0x00000001, + MTRClusterNetworkCommissioningAttributeScanMaxTimeSecondsID = 0x00000002, + MTRClusterNetworkCommissioningAttributeConnectMaxTimeSecondsID = 0x00000003, + MTRClusterNetworkCommissioningAttributeInterfaceEnabledID = 0x00000004, + MTRClusterNetworkCommissioningAttributeLastNetworkingStatusID = 0x00000005, + MTRClusterNetworkCommissioningAttributeLastNetworkIDID = 0x00000006, + MTRClusterNetworkCommissioningAttributeLastConnectErrorValueID = 0x00000007, + MTRClusterNetworkCommissioningAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterNetworkCommissioningAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterNetworkCommissioningAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterNetworkCommissioningAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterNetworkCommissioningAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster DiagnosticLogs attributes + MTRClusterDiagnosticLogsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDiagnosticLogsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDiagnosticLogsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDiagnosticLogsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDiagnosticLogsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster GeneralDiagnostics attributes + MTRClusterGeneralDiagnosticsAttributeNetworkInterfacesID = 0x00000000, + MTRClusterGeneralDiagnosticsAttributeRebootCountID = 0x00000001, + MTRClusterGeneralDiagnosticsAttributeUpTimeID = 0x00000002, + MTRClusterGeneralDiagnosticsAttributeTotalOperationalHoursID = 0x00000003, + MTRClusterGeneralDiagnosticsAttributeBootReasonsID = 0x00000004, + MTRClusterGeneralDiagnosticsAttributeActiveHardwareFaultsID = 0x00000005, + MTRClusterGeneralDiagnosticsAttributeActiveRadioFaultsID = 0x00000006, + MTRClusterGeneralDiagnosticsAttributeActiveNetworkFaultsID = 0x00000007, + MTRClusterGeneralDiagnosticsAttributeTestEventTriggersEnabledID = 0x00000008, + MTRClusterGeneralDiagnosticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterGeneralDiagnosticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterGeneralDiagnosticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterGeneralDiagnosticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterGeneralDiagnosticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster SoftwareDiagnostics attributes + MTRClusterSoftwareDiagnosticsAttributeThreadMetricsID = 0x00000000, + MTRClusterSoftwareDiagnosticsAttributeCurrentHeapFreeID = 0x00000001, + MTRClusterSoftwareDiagnosticsAttributeCurrentHeapUsedID = 0x00000002, + MTRClusterSoftwareDiagnosticsAttributeCurrentHeapHighWatermarkID = 0x00000003, + MTRClusterSoftwareDiagnosticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterSoftwareDiagnosticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterSoftwareDiagnosticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterSoftwareDiagnosticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterSoftwareDiagnosticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ThreadNetworkDiagnostics attributes + MTRClusterThreadNetworkDiagnosticsAttributeChannelID = 0x00000000, + MTRClusterThreadNetworkDiagnosticsAttributeRoutingRoleID = 0x00000001, + MTRClusterThreadNetworkDiagnosticsAttributeNetworkNameID = 0x00000002, + MTRClusterThreadNetworkDiagnosticsAttributePanIdID = 0x00000003, + MTRClusterThreadNetworkDiagnosticsAttributeExtendedPanIdID = 0x00000004, + MTRClusterThreadNetworkDiagnosticsAttributeMeshLocalPrefixID = 0x00000005, + MTRClusterThreadNetworkDiagnosticsAttributeOverrunCountID = 0x00000006, + MTRClusterThreadNetworkDiagnosticsAttributeNeighborTableListID = 0x00000007, + MTRClusterThreadNetworkDiagnosticsAttributeRouteTableListID = 0x00000008, + MTRClusterThreadNetworkDiagnosticsAttributePartitionIdID = 0x00000009, + MTRClusterThreadNetworkDiagnosticsAttributeWeightingID = 0x0000000A, + MTRClusterThreadNetworkDiagnosticsAttributeDataVersionID = 0x0000000B, + MTRClusterThreadNetworkDiagnosticsAttributeStableDataVersionID = 0x0000000C, + MTRClusterThreadNetworkDiagnosticsAttributeLeaderRouterIdID = 0x0000000D, + MTRClusterThreadNetworkDiagnosticsAttributeDetachedRoleCountID = 0x0000000E, + MTRClusterThreadNetworkDiagnosticsAttributeChildRoleCountID = 0x0000000F, + MTRClusterThreadNetworkDiagnosticsAttributeRouterRoleCountID = 0x00000010, + MTRClusterThreadNetworkDiagnosticsAttributeLeaderRoleCountID = 0x00000011, + MTRClusterThreadNetworkDiagnosticsAttributeAttachAttemptCountID = 0x00000012, + MTRClusterThreadNetworkDiagnosticsAttributePartitionIdChangeCountID = 0x00000013, + MTRClusterThreadNetworkDiagnosticsAttributeBetterPartitionAttachAttemptCountID = 0x00000014, + MTRClusterThreadNetworkDiagnosticsAttributeParentChangeCountID = 0x00000015, + MTRClusterThreadNetworkDiagnosticsAttributeTxTotalCountID = 0x00000016, + MTRClusterThreadNetworkDiagnosticsAttributeTxUnicastCountID = 0x00000017, + MTRClusterThreadNetworkDiagnosticsAttributeTxBroadcastCountID = 0x00000018, + MTRClusterThreadNetworkDiagnosticsAttributeTxAckRequestedCountID = 0x00000019, + MTRClusterThreadNetworkDiagnosticsAttributeTxAckedCountID = 0x0000001A, + MTRClusterThreadNetworkDiagnosticsAttributeTxNoAckRequestedCountID = 0x0000001B, + MTRClusterThreadNetworkDiagnosticsAttributeTxDataCountID = 0x0000001C, + MTRClusterThreadNetworkDiagnosticsAttributeTxDataPollCountID = 0x0000001D, + MTRClusterThreadNetworkDiagnosticsAttributeTxBeaconCountID = 0x0000001E, + MTRClusterThreadNetworkDiagnosticsAttributeTxBeaconRequestCountID = 0x0000001F, + MTRClusterThreadNetworkDiagnosticsAttributeTxOtherCountID = 0x00000020, + MTRClusterThreadNetworkDiagnosticsAttributeTxRetryCountID = 0x00000021, + MTRClusterThreadNetworkDiagnosticsAttributeTxDirectMaxRetryExpiryCountID = 0x00000022, + MTRClusterThreadNetworkDiagnosticsAttributeTxIndirectMaxRetryExpiryCountID = 0x00000023, + MTRClusterThreadNetworkDiagnosticsAttributeTxErrCcaCountID = 0x00000024, + MTRClusterThreadNetworkDiagnosticsAttributeTxErrAbortCountID = 0x00000025, + MTRClusterThreadNetworkDiagnosticsAttributeTxErrBusyChannelCountID = 0x00000026, + MTRClusterThreadNetworkDiagnosticsAttributeRxTotalCountID = 0x00000027, + MTRClusterThreadNetworkDiagnosticsAttributeRxUnicastCountID = 0x00000028, + MTRClusterThreadNetworkDiagnosticsAttributeRxBroadcastCountID = 0x00000029, + MTRClusterThreadNetworkDiagnosticsAttributeRxDataCountID = 0x0000002A, + MTRClusterThreadNetworkDiagnosticsAttributeRxDataPollCountID = 0x0000002B, + MTRClusterThreadNetworkDiagnosticsAttributeRxBeaconCountID = 0x0000002C, + MTRClusterThreadNetworkDiagnosticsAttributeRxBeaconRequestCountID = 0x0000002D, + MTRClusterThreadNetworkDiagnosticsAttributeRxOtherCountID = 0x0000002E, + MTRClusterThreadNetworkDiagnosticsAttributeRxAddressFilteredCountID = 0x0000002F, + MTRClusterThreadNetworkDiagnosticsAttributeRxDestAddrFilteredCountID = 0x00000030, + MTRClusterThreadNetworkDiagnosticsAttributeRxDuplicatedCountID = 0x00000031, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrNoFrameCountID = 0x00000032, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrUnknownNeighborCountID = 0x00000033, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrInvalidSrcAddrCountID = 0x00000034, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrSecCountID = 0x00000035, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrFcsCountID = 0x00000036, + MTRClusterThreadNetworkDiagnosticsAttributeRxErrOtherCountID = 0x00000037, + MTRClusterThreadNetworkDiagnosticsAttributeActiveTimestampID = 0x00000038, + MTRClusterThreadNetworkDiagnosticsAttributePendingTimestampID = 0x00000039, + MTRClusterThreadNetworkDiagnosticsAttributeDelayID = 0x0000003A, + MTRClusterThreadNetworkDiagnosticsAttributeSecurityPolicyID = 0x0000003B, + MTRClusterThreadNetworkDiagnosticsAttributeChannelMaskID = 0x0000003C, + MTRClusterThreadNetworkDiagnosticsAttributeOperationalDatasetComponentsID = 0x0000003D, + MTRClusterThreadNetworkDiagnosticsAttributeActiveNetworkFaultsListID = 0x0000003E, + MTRClusterThreadNetworkDiagnosticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterThreadNetworkDiagnosticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterThreadNetworkDiagnosticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterThreadNetworkDiagnosticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterThreadNetworkDiagnosticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster WiFiNetworkDiagnostics attributes + MTRClusterWiFiNetworkDiagnosticsAttributeBssidID = 0x00000000, + MTRClusterWiFiNetworkDiagnosticsAttributeSecurityTypeID = 0x00000001, + MTRClusterWiFiNetworkDiagnosticsAttributeWiFiVersionID = 0x00000002, + MTRClusterWiFiNetworkDiagnosticsAttributeChannelNumberID = 0x00000003, + MTRClusterWiFiNetworkDiagnosticsAttributeRssiID = 0x00000004, + MTRClusterWiFiNetworkDiagnosticsAttributeBeaconLostCountID = 0x00000005, + MTRClusterWiFiNetworkDiagnosticsAttributeBeaconRxCountID = 0x00000006, + MTRClusterWiFiNetworkDiagnosticsAttributePacketMulticastRxCountID = 0x00000007, + MTRClusterWiFiNetworkDiagnosticsAttributePacketMulticastTxCountID = 0x00000008, + MTRClusterWiFiNetworkDiagnosticsAttributePacketUnicastRxCountID = 0x00000009, + MTRClusterWiFiNetworkDiagnosticsAttributePacketUnicastTxCountID = 0x0000000A, + MTRClusterWiFiNetworkDiagnosticsAttributeCurrentMaxRateID = 0x0000000B, + MTRClusterWiFiNetworkDiagnosticsAttributeOverrunCountID = 0x0000000C, + MTRClusterWiFiNetworkDiagnosticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterWiFiNetworkDiagnosticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterWiFiNetworkDiagnosticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterWiFiNetworkDiagnosticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterWiFiNetworkDiagnosticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster EthernetNetworkDiagnostics attributes + MTRClusterEthernetNetworkDiagnosticsAttributePHYRateID = 0x00000000, + MTRClusterEthernetNetworkDiagnosticsAttributeFullDuplexID = 0x00000001, + MTRClusterEthernetNetworkDiagnosticsAttributePacketRxCountID = 0x00000002, + MTRClusterEthernetNetworkDiagnosticsAttributePacketTxCountID = 0x00000003, + MTRClusterEthernetNetworkDiagnosticsAttributeTxErrCountID = 0x00000004, + MTRClusterEthernetNetworkDiagnosticsAttributeCollisionCountID = 0x00000005, + MTRClusterEthernetNetworkDiagnosticsAttributeOverrunCountID = 0x00000006, + MTRClusterEthernetNetworkDiagnosticsAttributeCarrierDetectID = 0x00000007, + MTRClusterEthernetNetworkDiagnosticsAttributeTimeSinceResetID = 0x00000008, + MTRClusterEthernetNetworkDiagnosticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterEthernetNetworkDiagnosticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterEthernetNetworkDiagnosticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterEthernetNetworkDiagnosticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterEthernetNetworkDiagnosticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TimeSynchronization attributes + MTRClusterTimeSynchronizationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTimeSynchronizationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTimeSynchronizationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTimeSynchronizationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTimeSynchronizationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BridgedDeviceBasic attributes + MTRClusterBridgedDeviceBasicAttributeVendorNameID = 0x00000001, + MTRClusterBridgedDeviceBasicAttributeVendorIDID = 0x00000002, + MTRClusterBridgedDeviceBasicAttributeProductNameID = 0x00000003, + MTRClusterBridgedDeviceBasicAttributeNodeLabelID = 0x00000005, + MTRClusterBridgedDeviceBasicAttributeHardwareVersionID = 0x00000007, + MTRClusterBridgedDeviceBasicAttributeHardwareVersionStringID = 0x00000008, + MTRClusterBridgedDeviceBasicAttributeSoftwareVersionID = 0x00000009, + MTRClusterBridgedDeviceBasicAttributeSoftwareVersionStringID = 0x0000000A, + MTRClusterBridgedDeviceBasicAttributeManufacturingDateID = 0x0000000B, + MTRClusterBridgedDeviceBasicAttributePartNumberID = 0x0000000C, + MTRClusterBridgedDeviceBasicAttributeProductURLID = 0x0000000D, + MTRClusterBridgedDeviceBasicAttributeProductLabelID = 0x0000000E, + MTRClusterBridgedDeviceBasicAttributeSerialNumberID = 0x0000000F, + MTRClusterBridgedDeviceBasicAttributeReachableID = 0x00000011, + MTRClusterBridgedDeviceBasicAttributeUniqueIDID = 0x00000012, + MTRClusterBridgedDeviceBasicAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBridgedDeviceBasicAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBridgedDeviceBasicAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBridgedDeviceBasicAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBridgedDeviceBasicAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Switch attributes + MTRClusterSwitchAttributeNumberOfPositionsID = 0x00000000, + MTRClusterSwitchAttributeCurrentPositionID = 0x00000001, + MTRClusterSwitchAttributeMultiPressMaxID = 0x00000002, + MTRClusterSwitchAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterSwitchAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterSwitchAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterSwitchAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterSwitchAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster AdministratorCommissioning attributes + MTRClusterAdministratorCommissioningAttributeWindowStatusID = 0x00000000, + MTRClusterAdministratorCommissioningAttributeAdminFabricIndexID = 0x00000001, + MTRClusterAdministratorCommissioningAttributeAdminVendorIdID = 0x00000002, + MTRClusterAdministratorCommissioningAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterAdministratorCommissioningAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterAdministratorCommissioningAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterAdministratorCommissioningAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterAdministratorCommissioningAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OperationalCredentials attributes + MTRClusterOperationalCredentialsAttributeNOCsID = 0x00000000, + MTRClusterOperationalCredentialsAttributeFabricsID = 0x00000001, + MTRClusterOperationalCredentialsAttributeSupportedFabricsID = 0x00000002, + MTRClusterOperationalCredentialsAttributeCommissionedFabricsID = 0x00000003, + MTRClusterOperationalCredentialsAttributeTrustedRootCertificatesID = 0x00000004, + MTRClusterOperationalCredentialsAttributeCurrentFabricIndexID = 0x00000005, + MTRClusterOperationalCredentialsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOperationalCredentialsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOperationalCredentialsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOperationalCredentialsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOperationalCredentialsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster GroupKeyManagement attributes + MTRClusterGroupKeyManagementAttributeGroupKeyMapID = 0x00000000, + MTRClusterGroupKeyManagementAttributeGroupTableID = 0x00000001, + MTRClusterGroupKeyManagementAttributeMaxGroupsPerFabricID = 0x00000002, + MTRClusterGroupKeyManagementAttributeMaxGroupKeysPerFabricID = 0x00000003, + MTRClusterGroupKeyManagementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterGroupKeyManagementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterGroupKeyManagementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterGroupKeyManagementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterGroupKeyManagementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster FixedLabel attributes + MTRClusterFixedLabelAttributeLabelListID = 0x00000000, + MTRClusterFixedLabelAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterFixedLabelAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterFixedLabelAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterFixedLabelAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterFixedLabelAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster UserLabel attributes + MTRClusterUserLabelAttributeLabelListID = 0x00000000, + MTRClusterUserLabelAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterUserLabelAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterUserLabelAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterUserLabelAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterUserLabelAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ProxyConfiguration attributes + MTRClusterProxyConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterProxyConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterProxyConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterProxyConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterProxyConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ProxyDiscovery attributes + MTRClusterProxyDiscoveryAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterProxyDiscoveryAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterProxyDiscoveryAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterProxyDiscoveryAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterProxyDiscoveryAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ProxyValid attributes + MTRClusterProxyValidAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterProxyValidAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterProxyValidAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterProxyValidAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterProxyValidAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BooleanState attributes + MTRClusterBooleanStateAttributeStateValueID = 0x00000000, + MTRClusterBooleanStateAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBooleanStateAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBooleanStateAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBooleanStateAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBooleanStateAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ModeSelect attributes + MTRClusterModeSelectAttributeDescriptionID = 0x00000000, + MTRClusterModeSelectAttributeStandardNamespaceID = 0x00000001, + MTRClusterModeSelectAttributeSupportedModesID = 0x00000002, + MTRClusterModeSelectAttributeCurrentModeID = 0x00000003, + MTRClusterModeSelectAttributeStartUpModeID = 0x00000004, + MTRClusterModeSelectAttributeOnModeID = 0x00000005, + MTRClusterModeSelectAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterModeSelectAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterModeSelectAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterModeSelectAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterModeSelectAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ShadeConfiguration attributes + MTRClusterShadeConfigurationAttributePhysicalClosedLimitID = 0x00000000, + MTRClusterShadeConfigurationAttributeMotorStepSizeID = 0x00000001, + MTRClusterShadeConfigurationAttributeStatusID = 0x00000002, + MTRClusterShadeConfigurationAttributeClosedLimitID = 0x00000010, + MTRClusterShadeConfigurationAttributeModeID = 0x00000011, + MTRClusterShadeConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterShadeConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterShadeConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterShadeConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterShadeConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster DoorLock attributes + MTRClusterDoorLockAttributeLockStateID = 0x00000000, + MTRClusterDoorLockAttributeLockTypeID = 0x00000001, + MTRClusterDoorLockAttributeActuatorEnabledID = 0x00000002, + MTRClusterDoorLockAttributeDoorStateID = 0x00000003, + MTRClusterDoorLockAttributeDoorOpenEventsID = 0x00000004, + MTRClusterDoorLockAttributeDoorClosedEventsID = 0x00000005, + MTRClusterDoorLockAttributeOpenPeriodID = 0x00000006, + MTRClusterDoorLockAttributeNumberOfTotalUsersSupportedID = 0x00000011, + MTRClusterDoorLockAttributeNumberOfPINUsersSupportedID = 0x00000012, + MTRClusterDoorLockAttributeNumberOfRFIDUsersSupportedID = 0x00000013, + MTRClusterDoorLockAttributeNumberOfWeekDaySchedulesSupportedPerUserID = 0x00000014, + MTRClusterDoorLockAttributeNumberOfYearDaySchedulesSupportedPerUserID = 0x00000015, + MTRClusterDoorLockAttributeNumberOfHolidaySchedulesSupportedID = 0x00000016, + MTRClusterDoorLockAttributeMaxPINCodeLengthID = 0x00000017, + MTRClusterDoorLockAttributeMinPINCodeLengthID = 0x00000018, + MTRClusterDoorLockAttributeMaxRFIDCodeLengthID = 0x00000019, + MTRClusterDoorLockAttributeMinRFIDCodeLengthID = 0x0000001A, + MTRClusterDoorLockAttributeCredentialRulesSupportID = 0x0000001B, + MTRClusterDoorLockAttributeNumberOfCredentialsSupportedPerUserID = 0x0000001C, + MTRClusterDoorLockAttributeLanguageID = 0x00000021, + MTRClusterDoorLockAttributeLEDSettingsID = 0x00000022, + MTRClusterDoorLockAttributeAutoRelockTimeID = 0x00000023, + MTRClusterDoorLockAttributeSoundVolumeID = 0x00000024, + MTRClusterDoorLockAttributeOperatingModeID = 0x00000025, + MTRClusterDoorLockAttributeSupportedOperatingModesID = 0x00000026, + MTRClusterDoorLockAttributeDefaultConfigurationRegisterID = 0x00000027, + MTRClusterDoorLockAttributeEnableLocalProgrammingID = 0x00000028, + MTRClusterDoorLockAttributeEnableOneTouchLockingID = 0x00000029, + MTRClusterDoorLockAttributeEnableInsideStatusLEDID = 0x0000002A, + MTRClusterDoorLockAttributeEnablePrivacyModeButtonID = 0x0000002B, + MTRClusterDoorLockAttributeLocalProgrammingFeaturesID = 0x0000002C, + MTRClusterDoorLockAttributeWrongCodeEntryLimitID = 0x00000030, + MTRClusterDoorLockAttributeUserCodeTemporaryDisableTimeID = 0x00000031, + MTRClusterDoorLockAttributeSendPINOverTheAirID = 0x00000032, + MTRClusterDoorLockAttributeRequirePINforRemoteOperationID = 0x00000033, + MTRClusterDoorLockAttributeExpiringUserTimeoutID = 0x00000035, + MTRClusterDoorLockAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDoorLockAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDoorLockAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDoorLockAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDoorLockAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster WindowCovering attributes + MTRClusterWindowCoveringAttributeTypeID = 0x00000000, + MTRClusterWindowCoveringAttributePhysicalClosedLimitLiftID = 0x00000001, + MTRClusterWindowCoveringAttributePhysicalClosedLimitTiltID = 0x00000002, + MTRClusterWindowCoveringAttributeCurrentPositionLiftID = 0x00000003, + MTRClusterWindowCoveringAttributeCurrentPositionTiltID = 0x00000004, + MTRClusterWindowCoveringAttributeNumberOfActuationsLiftID = 0x00000005, + MTRClusterWindowCoveringAttributeNumberOfActuationsTiltID = 0x00000006, + MTRClusterWindowCoveringAttributeConfigStatusID = 0x00000007, + MTRClusterWindowCoveringAttributeCurrentPositionLiftPercentageID = 0x00000008, + MTRClusterWindowCoveringAttributeCurrentPositionTiltPercentageID = 0x00000009, + MTRClusterWindowCoveringAttributeOperationalStatusID = 0x0000000A, + MTRClusterWindowCoveringAttributeTargetPositionLiftPercent100thsID = 0x0000000B, + MTRClusterWindowCoveringAttributeTargetPositionTiltPercent100thsID = 0x0000000C, + MTRClusterWindowCoveringAttributeEndProductTypeID = 0x0000000D, + MTRClusterWindowCoveringAttributeCurrentPositionLiftPercent100thsID = 0x0000000E, + MTRClusterWindowCoveringAttributeCurrentPositionTiltPercent100thsID = 0x0000000F, + MTRClusterWindowCoveringAttributeInstalledOpenLimitLiftID = 0x00000010, + MTRClusterWindowCoveringAttributeInstalledClosedLimitLiftID = 0x00000011, + MTRClusterWindowCoveringAttributeInstalledOpenLimitTiltID = 0x00000012, + MTRClusterWindowCoveringAttributeInstalledClosedLimitTiltID = 0x00000013, + MTRClusterWindowCoveringAttributeModeID = 0x00000017, + MTRClusterWindowCoveringAttributeSafetyStatusID = 0x0000001A, + MTRClusterWindowCoveringAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterWindowCoveringAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterWindowCoveringAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterWindowCoveringAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterWindowCoveringAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BarrierControl attributes + MTRClusterBarrierControlAttributeBarrierMovingStateID = 0x00000001, + MTRClusterBarrierControlAttributeBarrierSafetyStatusID = 0x00000002, + MTRClusterBarrierControlAttributeBarrierCapabilitiesID = 0x00000003, + MTRClusterBarrierControlAttributeBarrierOpenEventsID = 0x00000004, + MTRClusterBarrierControlAttributeBarrierCloseEventsID = 0x00000005, + MTRClusterBarrierControlAttributeBarrierCommandOpenEventsID = 0x00000006, + MTRClusterBarrierControlAttributeBarrierCommandCloseEventsID = 0x00000007, + MTRClusterBarrierControlAttributeBarrierOpenPeriodID = 0x00000008, + MTRClusterBarrierControlAttributeBarrierClosePeriodID = 0x00000009, + MTRClusterBarrierControlAttributeBarrierPositionID = 0x0000000A, + MTRClusterBarrierControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBarrierControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBarrierControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBarrierControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBarrierControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PumpConfigurationAndControl attributes + MTRClusterPumpConfigurationAndControlAttributeMaxPressureID = 0x00000000, + MTRClusterPumpConfigurationAndControlAttributeMaxSpeedID = 0x00000001, + MTRClusterPumpConfigurationAndControlAttributeMaxFlowID = 0x00000002, + MTRClusterPumpConfigurationAndControlAttributeMinConstPressureID = 0x00000003, + MTRClusterPumpConfigurationAndControlAttributeMaxConstPressureID = 0x00000004, + MTRClusterPumpConfigurationAndControlAttributeMinCompPressureID = 0x00000005, + MTRClusterPumpConfigurationAndControlAttributeMaxCompPressureID = 0x00000006, + MTRClusterPumpConfigurationAndControlAttributeMinConstSpeedID = 0x00000007, + MTRClusterPumpConfigurationAndControlAttributeMaxConstSpeedID = 0x00000008, + MTRClusterPumpConfigurationAndControlAttributeMinConstFlowID = 0x00000009, + MTRClusterPumpConfigurationAndControlAttributeMaxConstFlowID = 0x0000000A, + MTRClusterPumpConfigurationAndControlAttributeMinConstTempID = 0x0000000B, + MTRClusterPumpConfigurationAndControlAttributeMaxConstTempID = 0x0000000C, + MTRClusterPumpConfigurationAndControlAttributePumpStatusID = 0x00000010, + MTRClusterPumpConfigurationAndControlAttributeEffectiveOperationModeID = 0x00000011, + MTRClusterPumpConfigurationAndControlAttributeEffectiveControlModeID = 0x00000012, + MTRClusterPumpConfigurationAndControlAttributeCapacityID = 0x00000013, + MTRClusterPumpConfigurationAndControlAttributeSpeedID = 0x00000014, + MTRClusterPumpConfigurationAndControlAttributeLifetimeRunningHoursID = 0x00000015, + MTRClusterPumpConfigurationAndControlAttributePowerID = 0x00000016, + MTRClusterPumpConfigurationAndControlAttributeLifetimeEnergyConsumedID = 0x00000017, + MTRClusterPumpConfigurationAndControlAttributeOperationModeID = 0x00000020, + MTRClusterPumpConfigurationAndControlAttributeControlModeID = 0x00000021, + MTRClusterPumpConfigurationAndControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPumpConfigurationAndControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPumpConfigurationAndControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPumpConfigurationAndControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPumpConfigurationAndControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Thermostat attributes + MTRClusterThermostatAttributeLocalTemperatureID = 0x00000000, + MTRClusterThermostatAttributeOutdoorTemperatureID = 0x00000001, + MTRClusterThermostatAttributeOccupancyID = 0x00000002, + MTRClusterThermostatAttributeAbsMinHeatSetpointLimitID = 0x00000003, + MTRClusterThermostatAttributeAbsMaxHeatSetpointLimitID = 0x00000004, + MTRClusterThermostatAttributeAbsMinCoolSetpointLimitID = 0x00000005, + MTRClusterThermostatAttributeAbsMaxCoolSetpointLimitID = 0x00000006, + MTRClusterThermostatAttributePICoolingDemandID = 0x00000007, + MTRClusterThermostatAttributePIHeatingDemandID = 0x00000008, + MTRClusterThermostatAttributeHVACSystemTypeConfigurationID = 0x00000009, + MTRClusterThermostatAttributeLocalTemperatureCalibrationID = 0x00000010, + MTRClusterThermostatAttributeOccupiedCoolingSetpointID = 0x00000011, + MTRClusterThermostatAttributeOccupiedHeatingSetpointID = 0x00000012, + MTRClusterThermostatAttributeUnoccupiedCoolingSetpointID = 0x00000013, + MTRClusterThermostatAttributeUnoccupiedHeatingSetpointID = 0x00000014, + MTRClusterThermostatAttributeMinHeatSetpointLimitID = 0x00000015, + MTRClusterThermostatAttributeMaxHeatSetpointLimitID = 0x00000016, + MTRClusterThermostatAttributeMinCoolSetpointLimitID = 0x00000017, + MTRClusterThermostatAttributeMaxCoolSetpointLimitID = 0x00000018, + MTRClusterThermostatAttributeMinSetpointDeadBandID = 0x00000019, + MTRClusterThermostatAttributeRemoteSensingID = 0x0000001A, + MTRClusterThermostatAttributeControlSequenceOfOperationID = 0x0000001B, + MTRClusterThermostatAttributeSystemModeID = 0x0000001C, + MTRClusterThermostatAttributeThermostatRunningModeID = 0x0000001E, + MTRClusterThermostatAttributeStartOfWeekID = 0x00000020, + MTRClusterThermostatAttributeNumberOfWeeklyTransitionsID = 0x00000021, + MTRClusterThermostatAttributeNumberOfDailyTransitionsID = 0x00000022, + MTRClusterThermostatAttributeTemperatureSetpointHoldID = 0x00000023, + MTRClusterThermostatAttributeTemperatureSetpointHoldDurationID = 0x00000024, + MTRClusterThermostatAttributeThermostatProgrammingOperationModeID = 0x00000025, + MTRClusterThermostatAttributeThermostatRunningStateID = 0x00000029, + MTRClusterThermostatAttributeSetpointChangeSourceID = 0x00000030, + MTRClusterThermostatAttributeSetpointChangeAmountID = 0x00000031, + MTRClusterThermostatAttributeSetpointChangeSourceTimestampID = 0x00000032, + MTRClusterThermostatAttributeOccupiedSetbackID = 0x00000034, + MTRClusterThermostatAttributeOccupiedSetbackMinID = 0x00000035, + MTRClusterThermostatAttributeOccupiedSetbackMaxID = 0x00000036, + MTRClusterThermostatAttributeUnoccupiedSetbackID = 0x00000037, + MTRClusterThermostatAttributeUnoccupiedSetbackMinID = 0x00000038, + MTRClusterThermostatAttributeUnoccupiedSetbackMaxID = 0x00000039, + MTRClusterThermostatAttributeEmergencyHeatDeltaID = 0x0000003A, + MTRClusterThermostatAttributeACTypeID = 0x00000040, + MTRClusterThermostatAttributeACCapacityID = 0x00000041, + MTRClusterThermostatAttributeACRefrigerantTypeID = 0x00000042, + MTRClusterThermostatAttributeACCompressorTypeID = 0x00000043, + MTRClusterThermostatAttributeACErrorCodeID = 0x00000044, + MTRClusterThermostatAttributeACLouverPositionID = 0x00000045, + MTRClusterThermostatAttributeACCoilTemperatureID = 0x00000046, + MTRClusterThermostatAttributeACCapacityformatID = 0x00000047, + MTRClusterThermostatAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterThermostatAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterThermostatAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterThermostatAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterThermostatAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster FanControl attributes + MTRClusterFanControlAttributeFanModeID = 0x00000000, + MTRClusterFanControlAttributeFanModeSequenceID = 0x00000001, + MTRClusterFanControlAttributePercentSettingID = 0x00000002, + MTRClusterFanControlAttributePercentCurrentID = 0x00000003, + MTRClusterFanControlAttributeSpeedMaxID = 0x00000004, + MTRClusterFanControlAttributeSpeedSettingID = 0x00000005, + MTRClusterFanControlAttributeSpeedCurrentID = 0x00000006, + MTRClusterFanControlAttributeRockSupportID = 0x00000007, + MTRClusterFanControlAttributeRockSettingID = 0x00000008, + MTRClusterFanControlAttributeWindSupportID = 0x00000009, + MTRClusterFanControlAttributeWindSettingID = 0x0000000A, + MTRClusterFanControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterFanControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterFanControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterFanControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterFanControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster DehumidificationControl attributes + MTRClusterDehumidificationControlAttributeRelativeHumidityID = 0x00000000, + MTRClusterDehumidificationControlAttributeDehumidificationCoolingID = 0x00000001, + MTRClusterDehumidificationControlAttributeRhDehumidificationSetpointID = 0x00000010, + MTRClusterDehumidificationControlAttributeRelativeHumidityModeID = 0x00000011, + MTRClusterDehumidificationControlAttributeDehumidificationLockoutID = 0x00000012, + MTRClusterDehumidificationControlAttributeDehumidificationHysteresisID = 0x00000013, + MTRClusterDehumidificationControlAttributeDehumidificationMaxCoolID = 0x00000014, + MTRClusterDehumidificationControlAttributeRelativeHumidityDisplayID = 0x00000015, + MTRClusterDehumidificationControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDehumidificationControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDehumidificationControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDehumidificationControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDehumidificationControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ThermostatUserInterfaceConfiguration attributes + MTRClusterThermostatUserInterfaceConfigurationAttributeTemperatureDisplayModeID = 0x00000000, + MTRClusterThermostatUserInterfaceConfigurationAttributeKeypadLockoutID = 0x00000001, + MTRClusterThermostatUserInterfaceConfigurationAttributeScheduleProgrammingVisibilityID = 0x00000002, + MTRClusterThermostatUserInterfaceConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterThermostatUserInterfaceConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterThermostatUserInterfaceConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterThermostatUserInterfaceConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterThermostatUserInterfaceConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ColorControl attributes + MTRClusterColorControlAttributeCurrentHueID = 0x00000000, + MTRClusterColorControlAttributeCurrentSaturationID = 0x00000001, + MTRClusterColorControlAttributeRemainingTimeID = 0x00000002, + MTRClusterColorControlAttributeCurrentXID = 0x00000003, + MTRClusterColorControlAttributeCurrentYID = 0x00000004, + MTRClusterColorControlAttributeDriftCompensationID = 0x00000005, + MTRClusterColorControlAttributeCompensationTextID = 0x00000006, + MTRClusterColorControlAttributeColorTemperatureID = 0x00000007, + MTRClusterColorControlAttributeColorModeID = 0x00000008, + MTRClusterColorControlAttributeOptionsID = 0x0000000F, + MTRClusterColorControlAttributeNumberOfPrimariesID = 0x00000010, + MTRClusterColorControlAttributePrimary1XID = 0x00000011, + MTRClusterColorControlAttributePrimary1YID = 0x00000012, + MTRClusterColorControlAttributePrimary1IntensityID = 0x00000013, + MTRClusterColorControlAttributePrimary2XID = 0x00000015, + MTRClusterColorControlAttributePrimary2YID = 0x00000016, + MTRClusterColorControlAttributePrimary2IntensityID = 0x00000017, + MTRClusterColorControlAttributePrimary3XID = 0x00000019, + MTRClusterColorControlAttributePrimary3YID = 0x0000001A, + MTRClusterColorControlAttributePrimary3IntensityID = 0x0000001B, + MTRClusterColorControlAttributePrimary4XID = 0x00000020, + MTRClusterColorControlAttributePrimary4YID = 0x00000021, + MTRClusterColorControlAttributePrimary4IntensityID = 0x00000022, + MTRClusterColorControlAttributePrimary5XID = 0x00000024, + MTRClusterColorControlAttributePrimary5YID = 0x00000025, + MTRClusterColorControlAttributePrimary5IntensityID = 0x00000026, + MTRClusterColorControlAttributePrimary6XID = 0x00000028, + MTRClusterColorControlAttributePrimary6YID = 0x00000029, + MTRClusterColorControlAttributePrimary6IntensityID = 0x0000002A, + MTRClusterColorControlAttributeWhitePointXID = 0x00000030, + MTRClusterColorControlAttributeWhitePointYID = 0x00000031, + MTRClusterColorControlAttributeColorPointRXID = 0x00000032, + MTRClusterColorControlAttributeColorPointRYID = 0x00000033, + MTRClusterColorControlAttributeColorPointRIntensityID = 0x00000034, + MTRClusterColorControlAttributeColorPointGXID = 0x00000036, + MTRClusterColorControlAttributeColorPointGYID = 0x00000037, + MTRClusterColorControlAttributeColorPointGIntensityID = 0x00000038, + MTRClusterColorControlAttributeColorPointBXID = 0x0000003A, + MTRClusterColorControlAttributeColorPointBYID = 0x0000003B, + MTRClusterColorControlAttributeColorPointBIntensityID = 0x0000003C, + MTRClusterColorControlAttributeEnhancedCurrentHueID = 0x00004000, + MTRClusterColorControlAttributeEnhancedColorModeID = 0x00004001, + MTRClusterColorControlAttributeColorLoopActiveID = 0x00004002, + MTRClusterColorControlAttributeColorLoopDirectionID = 0x00004003, + MTRClusterColorControlAttributeColorLoopTimeID = 0x00004004, + MTRClusterColorControlAttributeColorLoopStartEnhancedHueID = 0x00004005, + MTRClusterColorControlAttributeColorLoopStoredEnhancedHueID = 0x00004006, + MTRClusterColorControlAttributeColorCapabilitiesID = 0x0000400A, + MTRClusterColorControlAttributeColorTempPhysicalMinMiredsID = 0x0000400B, + MTRClusterColorControlAttributeColorTempPhysicalMaxMiredsID = 0x0000400C, + MTRClusterColorControlAttributeCoupleColorTempToLevelMinMiredsID = 0x0000400D, + MTRClusterColorControlAttributeStartUpColorTemperatureMiredsID = 0x00004010, + MTRClusterColorControlAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterColorControlAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterColorControlAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterColorControlAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterColorControlAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BallastConfiguration attributes + MTRClusterBallastConfigurationAttributePhysicalMinLevelID = 0x00000000, + MTRClusterBallastConfigurationAttributePhysicalMaxLevelID = 0x00000001, + MTRClusterBallastConfigurationAttributeBallastStatusID = 0x00000002, + MTRClusterBallastConfigurationAttributeMinLevelID = 0x00000010, + MTRClusterBallastConfigurationAttributeMaxLevelID = 0x00000011, + MTRClusterBallastConfigurationAttributePowerOnLevelID = 0x00000012, + MTRClusterBallastConfigurationAttributePowerOnFadeTimeID = 0x00000013, + MTRClusterBallastConfigurationAttributeIntrinsicBallastFactorID = 0x00000014, + MTRClusterBallastConfigurationAttributeBallastFactorAdjustmentID = 0x00000015, + MTRClusterBallastConfigurationAttributeLampQualityID = 0x00000020, + MTRClusterBallastConfigurationAttributeLampTypeID = 0x00000030, + MTRClusterBallastConfigurationAttributeLampManufacturerID = 0x00000031, + MTRClusterBallastConfigurationAttributeLampRatedHoursID = 0x00000032, + MTRClusterBallastConfigurationAttributeLampBurnHoursID = 0x00000033, + MTRClusterBallastConfigurationAttributeLampAlarmModeID = 0x00000034, + MTRClusterBallastConfigurationAttributeLampBurnHoursTripPointID = 0x00000035, + MTRClusterBallastConfigurationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBallastConfigurationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBallastConfigurationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBallastConfigurationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBallastConfigurationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster IlluminanceMeasurement attributes + MTRClusterIlluminanceMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterIlluminanceMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterIlluminanceMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterIlluminanceMeasurementAttributeToleranceID = 0x00000003, + MTRClusterIlluminanceMeasurementAttributeLightSensorTypeID = 0x00000004, + MTRClusterIlluminanceMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterIlluminanceMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterIlluminanceMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterIlluminanceMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterIlluminanceMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TemperatureMeasurement attributes + MTRClusterTemperatureMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterTemperatureMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterTemperatureMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterTemperatureMeasurementAttributeToleranceID = 0x00000003, + MTRClusterTemperatureMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTemperatureMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTemperatureMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTemperatureMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTemperatureMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster PressureMeasurement attributes + MTRClusterPressureMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterPressureMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterPressureMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterPressureMeasurementAttributeToleranceID = 0x00000003, + MTRClusterPressureMeasurementAttributeScaledValueID = 0x00000010, + MTRClusterPressureMeasurementAttributeMinScaledValueID = 0x00000011, + MTRClusterPressureMeasurementAttributeMaxScaledValueID = 0x00000012, + MTRClusterPressureMeasurementAttributeScaledToleranceID = 0x00000013, + MTRClusterPressureMeasurementAttributeScaleID = 0x00000014, + MTRClusterPressureMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterPressureMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterPressureMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterPressureMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterPressureMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster FlowMeasurement attributes + MTRClusterFlowMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterFlowMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterFlowMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterFlowMeasurementAttributeToleranceID = 0x00000003, + MTRClusterFlowMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterFlowMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterFlowMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterFlowMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterFlowMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster RelativeHumidityMeasurement attributes + MTRClusterRelativeHumidityMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterRelativeHumidityMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterRelativeHumidityMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterRelativeHumidityMeasurementAttributeToleranceID = 0x00000003, + MTRClusterRelativeHumidityMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterRelativeHumidityMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterRelativeHumidityMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterRelativeHumidityMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterRelativeHumidityMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OccupancySensing attributes + MTRClusterOccupancySensingAttributeOccupancyID = 0x00000000, + MTRClusterOccupancySensingAttributeOccupancySensorTypeID = 0x00000001, + MTRClusterOccupancySensingAttributeOccupancySensorTypeBitmapID = 0x00000002, + MTRClusterOccupancySensingAttributePirOccupiedToUnoccupiedDelayID = 0x00000010, + MTRClusterOccupancySensingAttributePirUnoccupiedToOccupiedDelayID = 0x00000011, + MTRClusterOccupancySensingAttributePirUnoccupiedToOccupiedThresholdID = 0x00000012, + MTRClusterOccupancySensingAttributeUltrasonicOccupiedToUnoccupiedDelayID = 0x00000020, + MTRClusterOccupancySensingAttributeUltrasonicUnoccupiedToOccupiedDelayID = 0x00000021, + MTRClusterOccupancySensingAttributeUltrasonicUnoccupiedToOccupiedThresholdID = 0x00000022, + MTRClusterOccupancySensingAttributePhysicalContactOccupiedToUnoccupiedDelayID = 0x00000030, + MTRClusterOccupancySensingAttributePhysicalContactUnoccupiedToOccupiedDelayID = 0x00000031, + MTRClusterOccupancySensingAttributePhysicalContactUnoccupiedToOccupiedThresholdID = 0x00000032, + MTRClusterOccupancySensingAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOccupancySensingAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOccupancySensingAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOccupancySensingAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOccupancySensingAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster CarbonMonoxideConcentrationMeasurement attributes + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterCarbonMonoxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster CarbonDioxideConcentrationMeasurement attributes + MTRClusterCarbonDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterCarbonDioxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster EthyleneConcentrationMeasurement attributes + MTRClusterEthyleneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterEthyleneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterEthyleneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterEthyleneConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterEthyleneConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterEthyleneConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterEthyleneConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterEthyleneConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterEthyleneConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster EthyleneOxideConcentrationMeasurement attributes + MTRClusterEthyleneOxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterEthyleneOxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster HydrogenConcentrationMeasurement attributes + MTRClusterHydrogenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterHydrogenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterHydrogenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterHydrogenConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterHydrogenConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterHydrogenConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterHydrogenConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterHydrogenConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterHydrogenConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster HydrogenSulphideConcentrationMeasurement attributes + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterHydrogenSulphideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster NitricOxideConcentrationMeasurement attributes + MTRClusterNitricOxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterNitricOxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterNitricOxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterNitricOxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterNitricOxideConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterNitricOxideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterNitricOxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterNitricOxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterNitricOxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster NitrogenDioxideConcentrationMeasurement attributes + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterNitrogenDioxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OxygenConcentrationMeasurement attributes + MTRClusterOxygenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterOxygenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterOxygenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterOxygenConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterOxygenConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOxygenConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOxygenConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOxygenConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOxygenConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster OzoneConcentrationMeasurement attributes + MTRClusterOzoneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterOzoneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterOzoneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterOzoneConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterOzoneConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterOzoneConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterOzoneConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterOzoneConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterOzoneConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster SulfurDioxideConcentrationMeasurement attributes + MTRClusterSulfurDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterSulfurDioxideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster DissolvedOxygenConcentrationMeasurement attributes + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterDissolvedOxygenConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BromateConcentrationMeasurement attributes + MTRClusterBromateConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterBromateConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterBromateConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterBromateConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterBromateConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBromateConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBromateConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBromateConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBromateConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ChloraminesConcentrationMeasurement attributes + MTRClusterChloraminesConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterChloraminesConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterChloraminesConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterChloraminesConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterChloraminesConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterChloraminesConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterChloraminesConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterChloraminesConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterChloraminesConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ChlorineConcentrationMeasurement attributes + MTRClusterChlorineConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterChlorineConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterChlorineConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterChlorineConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterChlorineConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterChlorineConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterChlorineConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterChlorineConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterChlorineConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster FecalColiformAndEColiConcentrationMeasurement attributes + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterFecalColiformAndEColiConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster FluorideConcentrationMeasurement attributes + MTRClusterFluorideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterFluorideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterFluorideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterFluorideConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterFluorideConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterFluorideConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterFluorideConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterFluorideConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterFluorideConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster HaloaceticAcidsConcentrationMeasurement attributes + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterHaloaceticAcidsConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TotalTrihalomethanesConcentrationMeasurement attributes + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTotalTrihalomethanesConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TotalColiformBacteriaConcentrationMeasurement attributes + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTotalColiformBacteriaConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TurbidityConcentrationMeasurement attributes + MTRClusterTurbidityConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterTurbidityConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterTurbidityConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterTurbidityConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterTurbidityConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTurbidityConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTurbidityConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTurbidityConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTurbidityConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster CopperConcentrationMeasurement attributes + MTRClusterCopperConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterCopperConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterCopperConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterCopperConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterCopperConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterCopperConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterCopperConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterCopperConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterCopperConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster LeadConcentrationMeasurement attributes + MTRClusterLeadConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterLeadConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterLeadConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterLeadConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterLeadConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterLeadConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterLeadConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterLeadConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterLeadConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ManganeseConcentrationMeasurement attributes + MTRClusterManganeseConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterManganeseConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterManganeseConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterManganeseConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterManganeseConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterManganeseConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterManganeseConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterManganeseConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterManganeseConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster SulfateConcentrationMeasurement attributes + MTRClusterSulfateConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterSulfateConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterSulfateConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterSulfateConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterSulfateConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterSulfateConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterSulfateConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterSulfateConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterSulfateConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BromodichloromethaneConcentrationMeasurement attributes + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBromodichloromethaneConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster BromoformConcentrationMeasurement attributes + MTRClusterBromoformConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterBromoformConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterBromoformConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterBromoformConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterBromoformConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterBromoformConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterBromoformConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterBromoformConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterBromoformConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ChlorodibromomethaneConcentrationMeasurement attributes + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeGeneratedCommandListID + = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeAcceptedCommandListID + = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterChlorodibromomethaneConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ChloroformConcentrationMeasurement attributes + MTRClusterChloroformConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterChloroformConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterChloroformConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterChloroformConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterChloroformConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterChloroformConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterChloroformConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterChloroformConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterChloroformConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster SodiumConcentrationMeasurement attributes + MTRClusterSodiumConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, + MTRClusterSodiumConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, + MTRClusterSodiumConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, + MTRClusterSodiumConcentrationMeasurementAttributeToleranceID = 0x00000003, + MTRClusterSodiumConcentrationMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterSodiumConcentrationMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterSodiumConcentrationMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterSodiumConcentrationMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterSodiumConcentrationMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster WakeOnLan attributes + MTRClusterWakeOnLanAttributeMACAddressID = 0x00000000, + MTRClusterWakeOnLanAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterWakeOnLanAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterWakeOnLanAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterWakeOnLanAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterWakeOnLanAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Channel attributes + MTRClusterChannelAttributeChannelListID = 0x00000000, + MTRClusterChannelAttributeLineupID = 0x00000001, + MTRClusterChannelAttributeCurrentChannelID = 0x00000002, + MTRClusterChannelAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterChannelAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterChannelAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterChannelAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterChannelAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TargetNavigator attributes + MTRClusterTargetNavigatorAttributeTargetListID = 0x00000000, + MTRClusterTargetNavigatorAttributeCurrentTargetID = 0x00000001, + MTRClusterTargetNavigatorAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTargetNavigatorAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTargetNavigatorAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTargetNavigatorAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTargetNavigatorAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster MediaPlayback attributes + MTRClusterMediaPlaybackAttributeCurrentStateID = 0x00000000, + MTRClusterMediaPlaybackAttributeStartTimeID = 0x00000001, + MTRClusterMediaPlaybackAttributeDurationID = 0x00000002, + MTRClusterMediaPlaybackAttributeSampledPositionID = 0x00000003, + MTRClusterMediaPlaybackAttributePlaybackSpeedID = 0x00000004, + MTRClusterMediaPlaybackAttributeSeekRangeEndID = 0x00000005, + MTRClusterMediaPlaybackAttributeSeekRangeStartID = 0x00000006, + MTRClusterMediaPlaybackAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterMediaPlaybackAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterMediaPlaybackAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterMediaPlaybackAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterMediaPlaybackAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster MediaInput attributes + MTRClusterMediaInputAttributeInputListID = 0x00000000, + MTRClusterMediaInputAttributeCurrentInputID = 0x00000001, + MTRClusterMediaInputAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterMediaInputAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterMediaInputAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterMediaInputAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterMediaInputAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster LowPower attributes + MTRClusterLowPowerAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterLowPowerAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterLowPowerAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterLowPowerAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterLowPowerAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster KeypadInput attributes + MTRClusterKeypadInputAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterKeypadInputAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterKeypadInputAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterKeypadInputAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterKeypadInputAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ContentLauncher attributes + MTRClusterContentLauncherAttributeAcceptHeaderID = 0x00000000, + MTRClusterContentLauncherAttributeSupportedStreamingProtocolsID = 0x00000001, + MTRClusterContentLauncherAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterContentLauncherAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterContentLauncherAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterContentLauncherAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterContentLauncherAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster AudioOutput attributes + MTRClusterAudioOutputAttributeOutputListID = 0x00000000, + MTRClusterAudioOutputAttributeCurrentOutputID = 0x00000001, + MTRClusterAudioOutputAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterAudioOutputAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterAudioOutputAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterAudioOutputAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterAudioOutputAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplicationLauncher attributes + MTRClusterApplicationLauncherAttributeCatalogListID = 0x00000000, + MTRClusterApplicationLauncherAttributeCurrentAppID = 0x00000001, + MTRClusterApplicationLauncherAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplicationLauncherAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplicationLauncherAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplicationLauncherAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplicationLauncherAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplicationBasic attributes + MTRClusterApplicationBasicAttributeVendorNameID = 0x00000000, + MTRClusterApplicationBasicAttributeVendorIDID = 0x00000001, + MTRClusterApplicationBasicAttributeApplicationNameID = 0x00000002, + MTRClusterApplicationBasicAttributeProductIDID = 0x00000003, + MTRClusterApplicationBasicAttributeApplicationID = 0x00000004, + MTRClusterApplicationBasicAttributeStatusID = 0x00000005, + MTRClusterApplicationBasicAttributeApplicationVersionID = 0x00000006, + MTRClusterApplicationBasicAttributeAllowedVendorListID = 0x00000007, + MTRClusterApplicationBasicAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplicationBasicAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplicationBasicAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplicationBasicAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplicationBasicAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster AccountLogin attributes + MTRClusterAccountLoginAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterAccountLoginAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterAccountLoginAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterAccountLoginAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterAccountLoginAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster Messaging attributes + MTRClusterMessagingAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterMessagingAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterMessagingAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterMessagingAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterMessagingAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplianceIdentification attributes + MTRClusterApplianceIdentificationAttributeBasicIdentificationID = 0x00000000, + MTRClusterApplianceIdentificationAttributeCompanyNameID = 0x00000010, + MTRClusterApplianceIdentificationAttributeCompanyIdID = 0x00000011, + MTRClusterApplianceIdentificationAttributeBrandNameID = 0x00000012, + MTRClusterApplianceIdentificationAttributeBrandIdID = 0x00000013, + MTRClusterApplianceIdentificationAttributeModelID = 0x00000014, + MTRClusterApplianceIdentificationAttributePartNumberID = 0x00000015, + MTRClusterApplianceIdentificationAttributeProductRevisionID = 0x00000016, + MTRClusterApplianceIdentificationAttributeSoftwareRevisionID = 0x00000017, + MTRClusterApplianceIdentificationAttributeProductTypeNameID = 0x00000018, + MTRClusterApplianceIdentificationAttributeProductTypeIdID = 0x00000019, + MTRClusterApplianceIdentificationAttributeCecedSpecificationVersionID = 0x0000001A, + MTRClusterApplianceIdentificationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplianceIdentificationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplianceIdentificationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplianceIdentificationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplianceIdentificationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster MeterIdentification attributes + MTRClusterMeterIdentificationAttributeCompanyNameID = 0x00000000, + MTRClusterMeterIdentificationAttributeMeterTypeIdID = 0x00000001, + MTRClusterMeterIdentificationAttributeDataQualityIdID = 0x00000004, + MTRClusterMeterIdentificationAttributeCustomerNameID = 0x00000005, + MTRClusterMeterIdentificationAttributeModelID = 0x00000006, + MTRClusterMeterIdentificationAttributePartNumberID = 0x00000007, + MTRClusterMeterIdentificationAttributeProductRevisionID = 0x00000008, + MTRClusterMeterIdentificationAttributeSoftwareRevisionID = 0x0000000A, + MTRClusterMeterIdentificationAttributeUtilityNameID = 0x0000000B, + MTRClusterMeterIdentificationAttributePodID = 0x0000000C, + MTRClusterMeterIdentificationAttributeAvailablePowerID = 0x0000000D, + MTRClusterMeterIdentificationAttributePowerThresholdID = 0x0000000E, + MTRClusterMeterIdentificationAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterMeterIdentificationAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterMeterIdentificationAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterMeterIdentificationAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterMeterIdentificationAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplianceEventsAndAlert attributes + MTRClusterApplianceEventsAndAlertAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplianceEventsAndAlertAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplianceEventsAndAlertAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplianceEventsAndAlertAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplianceEventsAndAlertAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ApplianceStatistics attributes + MTRClusterApplianceStatisticsAttributeLogMaxSizeID = 0x00000000, + MTRClusterApplianceStatisticsAttributeLogQueueMaxSizeID = 0x00000001, + MTRClusterApplianceStatisticsAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterApplianceStatisticsAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterApplianceStatisticsAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterApplianceStatisticsAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterApplianceStatisticsAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster ElectricalMeasurement attributes + MTRClusterElectricalMeasurementAttributeMeasurementTypeID = 0x00000000, + MTRClusterElectricalMeasurementAttributeDcVoltageID = 0x00000100, + MTRClusterElectricalMeasurementAttributeDcVoltageMinID = 0x00000101, + MTRClusterElectricalMeasurementAttributeDcVoltageMaxID = 0x00000102, + MTRClusterElectricalMeasurementAttributeDcCurrentID = 0x00000103, + MTRClusterElectricalMeasurementAttributeDcCurrentMinID = 0x00000104, + MTRClusterElectricalMeasurementAttributeDcCurrentMaxID = 0x00000105, + MTRClusterElectricalMeasurementAttributeDcPowerID = 0x00000106, + MTRClusterElectricalMeasurementAttributeDcPowerMinID = 0x00000107, + MTRClusterElectricalMeasurementAttributeDcPowerMaxID = 0x00000108, + MTRClusterElectricalMeasurementAttributeDcVoltageMultiplierID = 0x00000200, + MTRClusterElectricalMeasurementAttributeDcVoltageDivisorID = 0x00000201, + MTRClusterElectricalMeasurementAttributeDcCurrentMultiplierID = 0x00000202, + MTRClusterElectricalMeasurementAttributeDcCurrentDivisorID = 0x00000203, + MTRClusterElectricalMeasurementAttributeDcPowerMultiplierID = 0x00000204, + MTRClusterElectricalMeasurementAttributeDcPowerDivisorID = 0x00000205, + MTRClusterElectricalMeasurementAttributeAcFrequencyID = 0x00000300, + MTRClusterElectricalMeasurementAttributeAcFrequencyMinID = 0x00000301, + MTRClusterElectricalMeasurementAttributeAcFrequencyMaxID = 0x00000302, + MTRClusterElectricalMeasurementAttributeNeutralCurrentID = 0x00000303, + MTRClusterElectricalMeasurementAttributeTotalActivePowerID = 0x00000304, + MTRClusterElectricalMeasurementAttributeTotalReactivePowerID = 0x00000305, + MTRClusterElectricalMeasurementAttributeTotalApparentPowerID = 0x00000306, + MTRClusterElectricalMeasurementAttributeMeasured1stHarmonicCurrentID = 0x00000307, + MTRClusterElectricalMeasurementAttributeMeasured3rdHarmonicCurrentID = 0x00000308, + MTRClusterElectricalMeasurementAttributeMeasured5thHarmonicCurrentID = 0x00000309, + MTRClusterElectricalMeasurementAttributeMeasured7thHarmonicCurrentID = 0x0000030A, + MTRClusterElectricalMeasurementAttributeMeasured9thHarmonicCurrentID = 0x0000030B, + MTRClusterElectricalMeasurementAttributeMeasured11thHarmonicCurrentID = 0x0000030C, + MTRClusterElectricalMeasurementAttributeMeasuredPhase1stHarmonicCurrentID = 0x0000030D, + MTRClusterElectricalMeasurementAttributeMeasuredPhase3rdHarmonicCurrentID = 0x0000030E, + MTRClusterElectricalMeasurementAttributeMeasuredPhase5thHarmonicCurrentID = 0x0000030F, + MTRClusterElectricalMeasurementAttributeMeasuredPhase7thHarmonicCurrentID = 0x00000310, + MTRClusterElectricalMeasurementAttributeMeasuredPhase9thHarmonicCurrentID = 0x00000311, + MTRClusterElectricalMeasurementAttributeMeasuredPhase11thHarmonicCurrentID = 0x00000312, + MTRClusterElectricalMeasurementAttributeAcFrequencyMultiplierID = 0x00000400, + MTRClusterElectricalMeasurementAttributeAcFrequencyDivisorID = 0x00000401, + MTRClusterElectricalMeasurementAttributePowerMultiplierID = 0x00000402, + MTRClusterElectricalMeasurementAttributePowerDivisorID = 0x00000403, + MTRClusterElectricalMeasurementAttributeHarmonicCurrentMultiplierID = 0x00000404, + MTRClusterElectricalMeasurementAttributePhaseHarmonicCurrentMultiplierID = 0x00000405, + MTRClusterElectricalMeasurementAttributeInstantaneousVoltageID = 0x00000500, + MTRClusterElectricalMeasurementAttributeInstantaneousLineCurrentID = 0x00000501, + MTRClusterElectricalMeasurementAttributeInstantaneousActiveCurrentID = 0x00000502, + MTRClusterElectricalMeasurementAttributeInstantaneousReactiveCurrentID = 0x00000503, + MTRClusterElectricalMeasurementAttributeInstantaneousPowerID = 0x00000504, + MTRClusterElectricalMeasurementAttributeRmsVoltageID = 0x00000505, + MTRClusterElectricalMeasurementAttributeRmsVoltageMinID = 0x00000506, + MTRClusterElectricalMeasurementAttributeRmsVoltageMaxID = 0x00000507, + MTRClusterElectricalMeasurementAttributeRmsCurrentID = 0x00000508, + MTRClusterElectricalMeasurementAttributeRmsCurrentMinID = 0x00000509, + MTRClusterElectricalMeasurementAttributeRmsCurrentMaxID = 0x0000050A, + MTRClusterElectricalMeasurementAttributeActivePowerID = 0x0000050B, + MTRClusterElectricalMeasurementAttributeActivePowerMinID = 0x0000050C, + MTRClusterElectricalMeasurementAttributeActivePowerMaxID = 0x0000050D, + MTRClusterElectricalMeasurementAttributeReactivePowerID = 0x0000050E, + MTRClusterElectricalMeasurementAttributeApparentPowerID = 0x0000050F, + MTRClusterElectricalMeasurementAttributePowerFactorID = 0x00000510, + MTRClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodID = 0x00000511, + MTRClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterID = 0x00000513, + MTRClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodID = 0x00000514, + MTRClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodID = 0x00000515, + MTRClusterElectricalMeasurementAttributeRmsVoltageSagPeriodID = 0x00000516, + MTRClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodID = 0x00000517, + MTRClusterElectricalMeasurementAttributeAcVoltageMultiplierID = 0x00000600, + MTRClusterElectricalMeasurementAttributeAcVoltageDivisorID = 0x00000601, + MTRClusterElectricalMeasurementAttributeAcCurrentMultiplierID = 0x00000602, + MTRClusterElectricalMeasurementAttributeAcCurrentDivisorID = 0x00000603, + MTRClusterElectricalMeasurementAttributeAcPowerMultiplierID = 0x00000604, + MTRClusterElectricalMeasurementAttributeAcPowerDivisorID = 0x00000605, + MTRClusterElectricalMeasurementAttributeOverloadAlarmsMaskID = 0x00000700, + MTRClusterElectricalMeasurementAttributeVoltageOverloadID = 0x00000701, + MTRClusterElectricalMeasurementAttributeCurrentOverloadID = 0x00000702, + MTRClusterElectricalMeasurementAttributeAcOverloadAlarmsMaskID = 0x00000800, + MTRClusterElectricalMeasurementAttributeAcVoltageOverloadID = 0x00000801, + MTRClusterElectricalMeasurementAttributeAcCurrentOverloadID = 0x00000802, + MTRClusterElectricalMeasurementAttributeAcActivePowerOverloadID = 0x00000803, + MTRClusterElectricalMeasurementAttributeAcReactivePowerOverloadID = 0x00000804, + MTRClusterElectricalMeasurementAttributeAverageRmsOverVoltageID = 0x00000805, + MTRClusterElectricalMeasurementAttributeAverageRmsUnderVoltageID = 0x00000806, + MTRClusterElectricalMeasurementAttributeRmsExtremeOverVoltageID = 0x00000807, + MTRClusterElectricalMeasurementAttributeRmsExtremeUnderVoltageID = 0x00000808, + MTRClusterElectricalMeasurementAttributeRmsVoltageSagID = 0x00000809, + MTRClusterElectricalMeasurementAttributeRmsVoltageSwellID = 0x0000080A, + MTRClusterElectricalMeasurementAttributeLineCurrentPhaseBID = 0x00000901, + MTRClusterElectricalMeasurementAttributeActiveCurrentPhaseBID = 0x00000902, + MTRClusterElectricalMeasurementAttributeReactiveCurrentPhaseBID = 0x00000903, + MTRClusterElectricalMeasurementAttributeRmsVoltagePhaseBID = 0x00000905, + MTRClusterElectricalMeasurementAttributeRmsVoltageMinPhaseBID = 0x00000906, + MTRClusterElectricalMeasurementAttributeRmsVoltageMaxPhaseBID = 0x00000907, + MTRClusterElectricalMeasurementAttributeRmsCurrentPhaseBID = 0x00000908, + MTRClusterElectricalMeasurementAttributeRmsCurrentMinPhaseBID = 0x00000909, + MTRClusterElectricalMeasurementAttributeRmsCurrentMaxPhaseBID = 0x0000090A, + MTRClusterElectricalMeasurementAttributeActivePowerPhaseBID = 0x0000090B, + MTRClusterElectricalMeasurementAttributeActivePowerMinPhaseBID = 0x0000090C, + MTRClusterElectricalMeasurementAttributeActivePowerMaxPhaseBID = 0x0000090D, + MTRClusterElectricalMeasurementAttributeReactivePowerPhaseBID = 0x0000090E, + MTRClusterElectricalMeasurementAttributeApparentPowerPhaseBID = 0x0000090F, + MTRClusterElectricalMeasurementAttributePowerFactorPhaseBID = 0x00000910, + MTRClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodPhaseBID = 0x00000911, + MTRClusterElectricalMeasurementAttributeAverageRmsOverVoltageCounterPhaseBID = 0x00000912, + MTRClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterPhaseBID = 0x00000913, + MTRClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodPhaseBID = 0x00000914, + MTRClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodPhaseBID = 0x00000915, + MTRClusterElectricalMeasurementAttributeRmsVoltageSagPeriodPhaseBID = 0x00000916, + MTRClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodPhaseBID = 0x00000917, + MTRClusterElectricalMeasurementAttributeLineCurrentPhaseCID = 0x00000A01, + MTRClusterElectricalMeasurementAttributeActiveCurrentPhaseCID = 0x00000A02, + MTRClusterElectricalMeasurementAttributeReactiveCurrentPhaseCID = 0x00000A03, + MTRClusterElectricalMeasurementAttributeRmsVoltagePhaseCID = 0x00000A05, + MTRClusterElectricalMeasurementAttributeRmsVoltageMinPhaseCID = 0x00000A06, + MTRClusterElectricalMeasurementAttributeRmsVoltageMaxPhaseCID = 0x00000A07, + MTRClusterElectricalMeasurementAttributeRmsCurrentPhaseCID = 0x00000A08, + MTRClusterElectricalMeasurementAttributeRmsCurrentMinPhaseCID = 0x00000A09, + MTRClusterElectricalMeasurementAttributeRmsCurrentMaxPhaseCID = 0x00000A0A, + MTRClusterElectricalMeasurementAttributeActivePowerPhaseCID = 0x00000A0B, + MTRClusterElectricalMeasurementAttributeActivePowerMinPhaseCID = 0x00000A0C, + MTRClusterElectricalMeasurementAttributeActivePowerMaxPhaseCID = 0x00000A0D, + MTRClusterElectricalMeasurementAttributeReactivePowerPhaseCID = 0x00000A0E, + MTRClusterElectricalMeasurementAttributeApparentPowerPhaseCID = 0x00000A0F, + MTRClusterElectricalMeasurementAttributePowerFactorPhaseCID = 0x00000A10, + MTRClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodPhaseCID = 0x00000A11, + MTRClusterElectricalMeasurementAttributeAverageRmsOverVoltageCounterPhaseCID = 0x00000A12, + MTRClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterPhaseCID = 0x00000A13, + MTRClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodPhaseCID = 0x00000A14, + MTRClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodPhaseCID = 0x00000A15, + MTRClusterElectricalMeasurementAttributeRmsVoltageSagPeriodPhaseCID = 0x00000A16, + MTRClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodPhaseCID = 0x00000A17, + MTRClusterElectricalMeasurementAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterElectricalMeasurementAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterElectricalMeasurementAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterElectricalMeasurementAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterElectricalMeasurementAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + + // Cluster TestCluster attributes + MTRClusterTestClusterAttributeBooleanID = 0x00000000, + MTRClusterTestClusterAttributeBitmap8ID = 0x00000001, + MTRClusterTestClusterAttributeBitmap16ID = 0x00000002, + MTRClusterTestClusterAttributeBitmap32ID = 0x00000003, + MTRClusterTestClusterAttributeBitmap64ID = 0x00000004, + MTRClusterTestClusterAttributeInt8uID = 0x00000005, + MTRClusterTestClusterAttributeInt16uID = 0x00000006, + MTRClusterTestClusterAttributeInt24uID = 0x00000007, + MTRClusterTestClusterAttributeInt32uID = 0x00000008, + MTRClusterTestClusterAttributeInt40uID = 0x00000009, + MTRClusterTestClusterAttributeInt48uID = 0x0000000A, + MTRClusterTestClusterAttributeInt56uID = 0x0000000B, + MTRClusterTestClusterAttributeInt64uID = 0x0000000C, + MTRClusterTestClusterAttributeInt8sID = 0x0000000D, + MTRClusterTestClusterAttributeInt16sID = 0x0000000E, + MTRClusterTestClusterAttributeInt24sID = 0x0000000F, + MTRClusterTestClusterAttributeInt32sID = 0x00000010, + MTRClusterTestClusterAttributeInt40sID = 0x00000011, + MTRClusterTestClusterAttributeInt48sID = 0x00000012, + MTRClusterTestClusterAttributeInt56sID = 0x00000013, + MTRClusterTestClusterAttributeInt64sID = 0x00000014, + MTRClusterTestClusterAttributeEnum8ID = 0x00000015, + MTRClusterTestClusterAttributeEnum16ID = 0x00000016, + MTRClusterTestClusterAttributeFloatSingleID = 0x00000017, + MTRClusterTestClusterAttributeFloatDoubleID = 0x00000018, + MTRClusterTestClusterAttributeOctetStringID = 0x00000019, + MTRClusterTestClusterAttributeListInt8uID = 0x0000001A, + MTRClusterTestClusterAttributeListOctetStringID = 0x0000001B, + MTRClusterTestClusterAttributeListStructOctetStringID = 0x0000001C, + MTRClusterTestClusterAttributeLongOctetStringID = 0x0000001D, + MTRClusterTestClusterAttributeCharStringID = 0x0000001E, + MTRClusterTestClusterAttributeLongCharStringID = 0x0000001F, + MTRClusterTestClusterAttributeEpochUsID = 0x00000020, + MTRClusterTestClusterAttributeEpochSID = 0x00000021, + MTRClusterTestClusterAttributeVendorIdID = 0x00000022, + MTRClusterTestClusterAttributeListNullablesAndOptionalsStructID = 0x00000023, + MTRClusterTestClusterAttributeEnumAttrID = 0x00000024, + MTRClusterTestClusterAttributeStructAttrID = 0x00000025, + MTRClusterTestClusterAttributeRangeRestrictedInt8uID = 0x00000026, + MTRClusterTestClusterAttributeRangeRestrictedInt8sID = 0x00000027, + MTRClusterTestClusterAttributeRangeRestrictedInt16uID = 0x00000028, + MTRClusterTestClusterAttributeRangeRestrictedInt16sID = 0x00000029, + MTRClusterTestClusterAttributeListLongOctetStringID = 0x0000002A, + MTRClusterTestClusterAttributeListFabricScopedID = 0x0000002B, + MTRClusterTestClusterAttributeTimedWriteBooleanID = 0x00000030, + MTRClusterTestClusterAttributeGeneralErrorBooleanID = 0x00000031, + MTRClusterTestClusterAttributeClusterErrorBooleanID = 0x00000032, + MTRClusterTestClusterAttributeUnsupportedID = 0x000000FF, + MTRClusterTestClusterAttributeNullableBooleanID = 0x00004000, + MTRClusterTestClusterAttributeNullableBitmap8ID = 0x00004001, + MTRClusterTestClusterAttributeNullableBitmap16ID = 0x00004002, + MTRClusterTestClusterAttributeNullableBitmap32ID = 0x00004003, + MTRClusterTestClusterAttributeNullableBitmap64ID = 0x00004004, + MTRClusterTestClusterAttributeNullableInt8uID = 0x00004005, + MTRClusterTestClusterAttributeNullableInt16uID = 0x00004006, + MTRClusterTestClusterAttributeNullableInt24uID = 0x00004007, + MTRClusterTestClusterAttributeNullableInt32uID = 0x00004008, + MTRClusterTestClusterAttributeNullableInt40uID = 0x00004009, + MTRClusterTestClusterAttributeNullableInt48uID = 0x0000400A, + MTRClusterTestClusterAttributeNullableInt56uID = 0x0000400B, + MTRClusterTestClusterAttributeNullableInt64uID = 0x0000400C, + MTRClusterTestClusterAttributeNullableInt8sID = 0x0000400D, + MTRClusterTestClusterAttributeNullableInt16sID = 0x0000400E, + MTRClusterTestClusterAttributeNullableInt24sID = 0x0000400F, + MTRClusterTestClusterAttributeNullableInt32sID = 0x00004010, + MTRClusterTestClusterAttributeNullableInt40sID = 0x00004011, + MTRClusterTestClusterAttributeNullableInt48sID = 0x00004012, + MTRClusterTestClusterAttributeNullableInt56sID = 0x00004013, + MTRClusterTestClusterAttributeNullableInt64sID = 0x00004014, + MTRClusterTestClusterAttributeNullableEnum8ID = 0x00004015, + MTRClusterTestClusterAttributeNullableEnum16ID = 0x00004016, + MTRClusterTestClusterAttributeNullableFloatSingleID = 0x00004017, + MTRClusterTestClusterAttributeNullableFloatDoubleID = 0x00004018, + MTRClusterTestClusterAttributeNullableOctetStringID = 0x00004019, + MTRClusterTestClusterAttributeNullableCharStringID = 0x0000401E, + MTRClusterTestClusterAttributeNullableEnumAttrID = 0x00004024, + MTRClusterTestClusterAttributeNullableStructID = 0x00004025, + MTRClusterTestClusterAttributeNullableRangeRestrictedInt8uID = 0x00004026, + MTRClusterTestClusterAttributeNullableRangeRestrictedInt8sID = 0x00004027, + MTRClusterTestClusterAttributeNullableRangeRestrictedInt16uID = 0x00004028, + MTRClusterTestClusterAttributeNullableRangeRestrictedInt16sID = 0x00004029, + MTRClusterTestClusterAttributeGeneratedCommandListID = MTRClusterGlobalAttributeGeneratedCommandListID, + MTRClusterTestClusterAttributeAcceptedCommandListID = MTRClusterGlobalAttributeAcceptedCommandListID, + MTRClusterTestClusterAttributeAttributeListID = MTRClusterGlobalAttributeAttributeListID, + MTRClusterTestClusterAttributeFeatureMapID = MTRClusterGlobalAttributeFeatureMapID, + MTRClusterTestClusterAttributeClusterRevisionID = MTRClusterGlobalAttributeClusterRevisionID, + +}; + +#pragma mark - Commands IDs + +typedef NS_ENUM(uint32_t, MTRClusterCommandIDType) { + // Cluster Identify commands + MTRClusterIdentifyCommandIdentifyID = 0x00000000, + MTRClusterIdentifyCommandTriggerEffectID = 0x00000040, + + // Cluster Groups commands + MTRClusterGroupsCommandAddGroupID = 0x00000000, + MTRClusterGroupsCommandAddGroupResponseID = 0x00000000, + MTRClusterGroupsCommandViewGroupID = 0x00000001, + MTRClusterGroupsCommandViewGroupResponseID = 0x00000001, + MTRClusterGroupsCommandGetGroupMembershipID = 0x00000002, + MTRClusterGroupsCommandGetGroupMembershipResponseID = 0x00000002, + MTRClusterGroupsCommandRemoveGroupID = 0x00000003, + MTRClusterGroupsCommandRemoveGroupResponseID = 0x00000003, + MTRClusterGroupsCommandRemoveAllGroupsID = 0x00000004, + MTRClusterGroupsCommandAddGroupIfIdentifyingID = 0x00000005, + + // Cluster Scenes commands + MTRClusterScenesCommandAddSceneID = 0x00000000, + MTRClusterScenesCommandAddSceneResponseID = 0x00000000, + MTRClusterScenesCommandViewSceneID = 0x00000001, + MTRClusterScenesCommandViewSceneResponseID = 0x00000001, + MTRClusterScenesCommandRemoveSceneID = 0x00000002, + MTRClusterScenesCommandRemoveSceneResponseID = 0x00000002, + MTRClusterScenesCommandRemoveAllScenesID = 0x00000003, + MTRClusterScenesCommandRemoveAllScenesResponseID = 0x00000003, + MTRClusterScenesCommandStoreSceneID = 0x00000004, + MTRClusterScenesCommandStoreSceneResponseID = 0x00000004, + MTRClusterScenesCommandRecallSceneID = 0x00000005, + MTRClusterScenesCommandGetSceneMembershipID = 0x00000006, + MTRClusterScenesCommandGetSceneMembershipResponseID = 0x00000006, + MTRClusterScenesCommandEnhancedAddSceneID = 0x00000040, + MTRClusterScenesCommandEnhancedAddSceneResponseID = 0x00000040, + MTRClusterScenesCommandEnhancedViewSceneID = 0x00000041, + MTRClusterScenesCommandEnhancedViewSceneResponseID = 0x00000041, + MTRClusterScenesCommandCopySceneID = 0x00000042, + MTRClusterScenesCommandCopySceneResponseID = 0x00000042, + + // Cluster OnOff commands + MTRClusterOnOffCommandOffID = 0x00000000, + MTRClusterOnOffCommandOnID = 0x00000001, + MTRClusterOnOffCommandToggleID = 0x00000002, + MTRClusterOnOffCommandOffWithEffectID = 0x00000040, + MTRClusterOnOffCommandOnWithRecallGlobalSceneID = 0x00000041, + MTRClusterOnOffCommandOnWithTimedOffID = 0x00000042, + + // Cluster LevelControl commands + MTRClusterLevelControlCommandMoveToLevelID = 0x00000000, + MTRClusterLevelControlCommandMoveID = 0x00000001, + MTRClusterLevelControlCommandStepID = 0x00000002, + MTRClusterLevelControlCommandStopID = 0x00000003, + MTRClusterLevelControlCommandMoveToLevelWithOnOffID = 0x00000004, + MTRClusterLevelControlCommandMoveWithOnOffID = 0x00000005, + MTRClusterLevelControlCommandStepWithOnOffID = 0x00000006, + MTRClusterLevelControlCommandStopWithOnOffID = 0x00000007, + MTRClusterLevelControlCommandMoveToClosestFrequencyID = 0x00000008, + + // Cluster Alarms commands + MTRClusterAlarmsCommandResetAlarmID = 0x00000000, + MTRClusterAlarmsCommandAlarmID = 0x00000000, + MTRClusterAlarmsCommandResetAllAlarmsID = 0x00000001, + MTRClusterAlarmsCommandGetAlarmResponseID = 0x00000001, + MTRClusterAlarmsCommandGetAlarmID = 0x00000002, + MTRClusterAlarmsCommandResetAlarmLogID = 0x00000003, + + // Cluster PowerProfile commands + MTRClusterPowerProfileCommandPowerProfileRequestID = 0x00000000, + MTRClusterPowerProfileCommandPowerProfileNotificationID = 0x00000000, + MTRClusterPowerProfileCommandPowerProfileStateRequestID = 0x00000001, + MTRClusterPowerProfileCommandPowerProfileResponseID = 0x00000001, + MTRClusterPowerProfileCommandGetPowerProfilePriceResponseID = 0x00000002, + MTRClusterPowerProfileCommandPowerProfileStateResponseID = 0x00000002, + MTRClusterPowerProfileCommandGetOverallSchedulePriceResponseID = 0x00000003, + MTRClusterPowerProfileCommandGetPowerProfilePriceID = 0x00000003, + MTRClusterPowerProfileCommandEnergyPhasesScheduleNotificationID = 0x00000004, + MTRClusterPowerProfileCommandPowerProfilesStateNotificationID = 0x00000004, + MTRClusterPowerProfileCommandEnergyPhasesScheduleResponseID = 0x00000005, + MTRClusterPowerProfileCommandGetOverallSchedulePriceID = 0x00000005, + MTRClusterPowerProfileCommandPowerProfileScheduleConstraintsRequestID = 0x00000006, + MTRClusterPowerProfileCommandEnergyPhasesScheduleRequestID = 0x00000006, + MTRClusterPowerProfileCommandEnergyPhasesScheduleStateRequestID = 0x00000007, + MTRClusterPowerProfileCommandEnergyPhasesScheduleStateResponseID = 0x00000007, + MTRClusterPowerProfileCommandGetPowerProfilePriceExtendedResponseID = 0x00000008, + MTRClusterPowerProfileCommandEnergyPhasesScheduleStateNotificationID = 0x00000008, + MTRClusterPowerProfileCommandPowerProfileScheduleConstraintsNotificationID = 0x00000009, + MTRClusterPowerProfileCommandPowerProfileScheduleConstraintsResponseID = 0x0000000A, + MTRClusterPowerProfileCommandGetPowerProfilePriceExtendedID = 0x0000000B, + + // Cluster ApplianceControl commands + MTRClusterApplianceControlCommandExecutionOfACommandID = 0x00000000, + MTRClusterApplianceControlCommandSignalStateResponseID = 0x00000000, + MTRClusterApplianceControlCommandSignalStateID = 0x00000001, + MTRClusterApplianceControlCommandSignalStateNotificationID = 0x00000001, + MTRClusterApplianceControlCommandWriteFunctionsID = 0x00000002, + MTRClusterApplianceControlCommandOverloadPauseResumeID = 0x00000003, + MTRClusterApplianceControlCommandOverloadPauseID = 0x00000004, + MTRClusterApplianceControlCommandOverloadWarningID = 0x00000005, + + // Cluster PollControl commands + MTRClusterPollControlCommandCheckInID = 0x00000000, + MTRClusterPollControlCommandCheckInResponseID = 0x00000000, + MTRClusterPollControlCommandFastPollStopID = 0x00000001, + MTRClusterPollControlCommandSetLongPollIntervalID = 0x00000002, + MTRClusterPollControlCommandSetShortPollIntervalID = 0x00000003, + + // Cluster BridgedActions commands + MTRClusterBridgedActionsCommandInstantActionID = 0x00000000, + MTRClusterBridgedActionsCommandInstantActionWithTransitionID = 0x00000001, + MTRClusterBridgedActionsCommandStartActionID = 0x00000002, + MTRClusterBridgedActionsCommandStartActionWithDurationID = 0x00000003, + MTRClusterBridgedActionsCommandStopActionID = 0x00000004, + MTRClusterBridgedActionsCommandPauseActionID = 0x00000005, + MTRClusterBridgedActionsCommandPauseActionWithDurationID = 0x00000006, + MTRClusterBridgedActionsCommandResumeActionID = 0x00000007, + MTRClusterBridgedActionsCommandEnableActionID = 0x00000008, + MTRClusterBridgedActionsCommandEnableActionWithDurationID = 0x00000009, + MTRClusterBridgedActionsCommandDisableActionID = 0x0000000A, + MTRClusterBridgedActionsCommandDisableActionWithDurationID = 0x0000000B, + + // Cluster Basic commands + MTRClusterBasicCommandMfgSpecificPingID = 0x10020000, + + // Cluster OtaSoftwareUpdateProvider commands + MTRClusterOtaSoftwareUpdateProviderCommandQueryImageID = 0x00000000, + MTRClusterOtaSoftwareUpdateProviderCommandQueryImageResponseID = 0x00000001, + MTRClusterOtaSoftwareUpdateProviderCommandApplyUpdateRequestID = 0x00000002, + MTRClusterOtaSoftwareUpdateProviderCommandApplyUpdateResponseID = 0x00000003, + MTRClusterOtaSoftwareUpdateProviderCommandNotifyUpdateAppliedID = 0x00000004, + + // Cluster OtaSoftwareUpdateRequestor commands + MTRClusterOtaSoftwareUpdateRequestorCommandAnnounceOtaProviderID = 0x00000000, + + // Cluster GeneralCommissioning commands + MTRClusterGeneralCommissioningCommandArmFailSafeID = 0x00000000, + MTRClusterGeneralCommissioningCommandArmFailSafeResponseID = 0x00000001, + MTRClusterGeneralCommissioningCommandSetRegulatoryConfigID = 0x00000002, + MTRClusterGeneralCommissioningCommandSetRegulatoryConfigResponseID = 0x00000003, + MTRClusterGeneralCommissioningCommandCommissioningCompleteID = 0x00000004, + MTRClusterGeneralCommissioningCommandCommissioningCompleteResponseID = 0x00000005, + + // Cluster NetworkCommissioning commands + MTRClusterNetworkCommissioningCommandScanNetworksID = 0x00000000, + MTRClusterNetworkCommissioningCommandScanNetworksResponseID = 0x00000001, + MTRClusterNetworkCommissioningCommandAddOrUpdateWiFiNetworkID = 0x00000002, + MTRClusterNetworkCommissioningCommandAddOrUpdateThreadNetworkID = 0x00000003, + MTRClusterNetworkCommissioningCommandRemoveNetworkID = 0x00000004, + MTRClusterNetworkCommissioningCommandNetworkConfigResponseID = 0x00000005, + MTRClusterNetworkCommissioningCommandConnectNetworkID = 0x00000006, + MTRClusterNetworkCommissioningCommandConnectNetworkResponseID = 0x00000007, + MTRClusterNetworkCommissioningCommandReorderNetworkID = 0x00000008, + + // Cluster DiagnosticLogs commands + MTRClusterDiagnosticLogsCommandRetrieveLogsRequestID = 0x00000000, + MTRClusterDiagnosticLogsCommandRetrieveLogsResponseID = 0x00000001, + + // Cluster GeneralDiagnostics commands + MTRClusterGeneralDiagnosticsCommandTestEventTriggerID = 0x00000000, + + // Cluster SoftwareDiagnostics commands + MTRClusterSoftwareDiagnosticsCommandResetWatermarksID = 0x00000000, + + // Cluster ThreadNetworkDiagnostics commands + MTRClusterThreadNetworkDiagnosticsCommandResetCountsID = 0x00000000, + + // Cluster WiFiNetworkDiagnostics commands + MTRClusterWiFiNetworkDiagnosticsCommandResetCountsID = 0x00000000, + + // Cluster EthernetNetworkDiagnostics commands + MTRClusterEthernetNetworkDiagnosticsCommandResetCountsID = 0x00000000, + + // Cluster AdministratorCommissioning commands + MTRClusterAdministratorCommissioningCommandOpenCommissioningWindowID = 0x00000000, + MTRClusterAdministratorCommissioningCommandOpenBasicCommissioningWindowID = 0x00000001, + MTRClusterAdministratorCommissioningCommandRevokeCommissioningID = 0x00000002, + + // Cluster OperationalCredentials commands + MTRClusterOperationalCredentialsCommandAttestationRequestID = 0x00000000, + MTRClusterOperationalCredentialsCommandAttestationResponseID = 0x00000001, + MTRClusterOperationalCredentialsCommandCertificateChainRequestID = 0x00000002, + MTRClusterOperationalCredentialsCommandCertificateChainResponseID = 0x00000003, + MTRClusterOperationalCredentialsCommandCSRRequestID = 0x00000004, + MTRClusterOperationalCredentialsCommandCSRResponseID = 0x00000005, + MTRClusterOperationalCredentialsCommandAddNOCID = 0x00000006, + MTRClusterOperationalCredentialsCommandUpdateNOCID = 0x00000007, + MTRClusterOperationalCredentialsCommandNOCResponseID = 0x00000008, + MTRClusterOperationalCredentialsCommandUpdateFabricLabelID = 0x00000009, + MTRClusterOperationalCredentialsCommandRemoveFabricID = 0x0000000A, + MTRClusterOperationalCredentialsCommandAddTrustedRootCertificateID = 0x0000000B, + + // Cluster GroupKeyManagement commands + MTRClusterGroupKeyManagementCommandKeySetWriteID = 0x00000000, + MTRClusterGroupKeyManagementCommandKeySetReadID = 0x00000001, + MTRClusterGroupKeyManagementCommandKeySetReadResponseID = 0x00000002, + MTRClusterGroupKeyManagementCommandKeySetRemoveID = 0x00000003, + MTRClusterGroupKeyManagementCommandKeySetReadAllIndicesID = 0x00000004, + MTRClusterGroupKeyManagementCommandKeySetReadAllIndicesResponseID = 0x00000005, + + // Cluster ModeSelect commands + MTRClusterModeSelectCommandChangeToModeID = 0x00000000, + + // Cluster DoorLock commands + MTRClusterDoorLockCommandLockDoorID = 0x00000000, + MTRClusterDoorLockCommandUnlockDoorID = 0x00000001, + MTRClusterDoorLockCommandUnlockWithTimeoutID = 0x00000003, + MTRClusterDoorLockCommandSetWeekDayScheduleID = 0x0000000B, + MTRClusterDoorLockCommandGetWeekDayScheduleID = 0x0000000C, + MTRClusterDoorLockCommandGetWeekDayScheduleResponseID = 0x0000000C, + MTRClusterDoorLockCommandClearWeekDayScheduleID = 0x0000000D, + MTRClusterDoorLockCommandSetYearDayScheduleID = 0x0000000E, + MTRClusterDoorLockCommandGetYearDayScheduleID = 0x0000000F, + MTRClusterDoorLockCommandGetYearDayScheduleResponseID = 0x0000000F, + MTRClusterDoorLockCommandClearYearDayScheduleID = 0x00000010, + MTRClusterDoorLockCommandSetHolidayScheduleID = 0x00000011, + MTRClusterDoorLockCommandGetHolidayScheduleID = 0x00000012, + MTRClusterDoorLockCommandGetHolidayScheduleResponseID = 0x00000012, + MTRClusterDoorLockCommandClearHolidayScheduleID = 0x00000013, + MTRClusterDoorLockCommandSetUserID = 0x0000001A, + MTRClusterDoorLockCommandGetUserID = 0x0000001B, + MTRClusterDoorLockCommandGetUserResponseID = 0x0000001C, + MTRClusterDoorLockCommandClearUserID = 0x0000001D, + MTRClusterDoorLockCommandSetCredentialID = 0x00000022, + MTRClusterDoorLockCommandSetCredentialResponseID = 0x00000023, + MTRClusterDoorLockCommandGetCredentialStatusID = 0x00000024, + MTRClusterDoorLockCommandGetCredentialStatusResponseID = 0x00000025, + MTRClusterDoorLockCommandClearCredentialID = 0x00000026, + + // Cluster WindowCovering commands + MTRClusterWindowCoveringCommandUpOrOpenID = 0x00000000, + MTRClusterWindowCoveringCommandDownOrCloseID = 0x00000001, + MTRClusterWindowCoveringCommandStopMotionID = 0x00000002, + MTRClusterWindowCoveringCommandGoToLiftValueID = 0x00000004, + MTRClusterWindowCoveringCommandGoToLiftPercentageID = 0x00000005, + MTRClusterWindowCoveringCommandGoToTiltValueID = 0x00000007, + MTRClusterWindowCoveringCommandGoToTiltPercentageID = 0x00000008, + + // Cluster BarrierControl commands + MTRClusterBarrierControlCommandBarrierControlGoToPercentID = 0x00000000, + MTRClusterBarrierControlCommandBarrierControlStopID = 0x00000001, + + // Cluster Thermostat commands + MTRClusterThermostatCommandSetpointRaiseLowerID = 0x00000000, + MTRClusterThermostatCommandGetWeeklyScheduleResponseID = 0x00000000, + MTRClusterThermostatCommandSetWeeklyScheduleID = 0x00000001, + MTRClusterThermostatCommandGetWeeklyScheduleID = 0x00000002, + MTRClusterThermostatCommandClearWeeklyScheduleID = 0x00000003, + + // Cluster ColorControl commands + MTRClusterColorControlCommandMoveToHueID = 0x00000000, + MTRClusterColorControlCommandMoveHueID = 0x00000001, + MTRClusterColorControlCommandStepHueID = 0x00000002, + MTRClusterColorControlCommandMoveToSaturationID = 0x00000003, + MTRClusterColorControlCommandMoveSaturationID = 0x00000004, + MTRClusterColorControlCommandStepSaturationID = 0x00000005, + MTRClusterColorControlCommandMoveToHueAndSaturationID = 0x00000006, + MTRClusterColorControlCommandMoveToColorID = 0x00000007, + MTRClusterColorControlCommandMoveColorID = 0x00000008, + MTRClusterColorControlCommandStepColorID = 0x00000009, + MTRClusterColorControlCommandMoveToColorTemperatureID = 0x0000000A, + MTRClusterColorControlCommandEnhancedMoveToHueID = 0x00000040, + MTRClusterColorControlCommandEnhancedMoveHueID = 0x00000041, + MTRClusterColorControlCommandEnhancedStepHueID = 0x00000042, + MTRClusterColorControlCommandEnhancedMoveToHueAndSaturationID = 0x00000043, + MTRClusterColorControlCommandColorLoopSetID = 0x00000044, + MTRClusterColorControlCommandStopMoveStepID = 0x00000047, + MTRClusterColorControlCommandMoveColorTemperatureID = 0x0000004B, + MTRClusterColorControlCommandStepColorTemperatureID = 0x0000004C, + + // Cluster Channel commands + MTRClusterChannelCommandChangeChannelID = 0x00000000, + MTRClusterChannelCommandChangeChannelResponseID = 0x00000001, + MTRClusterChannelCommandChangeChannelByNumberID = 0x00000002, + MTRClusterChannelCommandSkipChannelID = 0x00000003, + + // Cluster TargetNavigator commands + MTRClusterTargetNavigatorCommandNavigateTargetID = 0x00000000, + MTRClusterTargetNavigatorCommandNavigateTargetResponseID = 0x00000001, + + // Cluster MediaPlayback commands + MTRClusterMediaPlaybackCommandPlayID = 0x00000000, + MTRClusterMediaPlaybackCommandPauseID = 0x00000001, + MTRClusterMediaPlaybackCommandStopPlaybackID = 0x00000002, + MTRClusterMediaPlaybackCommandStartOverID = 0x00000003, + MTRClusterMediaPlaybackCommandPreviousID = 0x00000004, + MTRClusterMediaPlaybackCommandNextID = 0x00000005, + MTRClusterMediaPlaybackCommandRewindID = 0x00000006, + MTRClusterMediaPlaybackCommandFastForwardID = 0x00000007, + MTRClusterMediaPlaybackCommandSkipForwardID = 0x00000008, + MTRClusterMediaPlaybackCommandSkipBackwardID = 0x00000009, + MTRClusterMediaPlaybackCommandPlaybackResponseID = 0x0000000A, + MTRClusterMediaPlaybackCommandSeekID = 0x0000000B, + + // Cluster MediaInput commands + MTRClusterMediaInputCommandSelectInputID = 0x00000000, + MTRClusterMediaInputCommandShowInputStatusID = 0x00000001, + MTRClusterMediaInputCommandHideInputStatusID = 0x00000002, + MTRClusterMediaInputCommandRenameInputID = 0x00000003, + + // Cluster LowPower commands + MTRClusterLowPowerCommandSleepID = 0x00000000, + + // Cluster KeypadInput commands + MTRClusterKeypadInputCommandSendKeyID = 0x00000000, + MTRClusterKeypadInputCommandSendKeyResponseID = 0x00000001, + + // Cluster ContentLauncher commands + MTRClusterContentLauncherCommandLaunchContentID = 0x00000000, + MTRClusterContentLauncherCommandLaunchURLID = 0x00000001, + MTRClusterContentLauncherCommandLaunchResponseID = 0x00000002, + + // Cluster AudioOutput commands + MTRClusterAudioOutputCommandSelectOutputID = 0x00000000, + MTRClusterAudioOutputCommandRenameOutputID = 0x00000001, + + // Cluster ApplicationLauncher commands + MTRClusterApplicationLauncherCommandLaunchAppID = 0x00000000, + MTRClusterApplicationLauncherCommandStopAppID = 0x00000001, + MTRClusterApplicationLauncherCommandHideAppID = 0x00000002, + MTRClusterApplicationLauncherCommandLauncherResponseID = 0x00000003, + + // Cluster AccountLogin commands + MTRClusterAccountLoginCommandGetSetupPINID = 0x00000000, + MTRClusterAccountLoginCommandGetSetupPINResponseID = 0x00000001, + MTRClusterAccountLoginCommandLoginID = 0x00000002, + MTRClusterAccountLoginCommandLogoutID = 0x00000003, + + // Cluster Messaging commands + MTRClusterMessagingCommandDisplayMessageID = 0x00000000, + MTRClusterMessagingCommandGetLastMessageID = 0x00000000, + MTRClusterMessagingCommandCancelMessageID = 0x00000001, + MTRClusterMessagingCommandMessageConfirmationID = 0x00000001, + MTRClusterMessagingCommandDisplayProtectedMessageID = 0x00000002, + MTRClusterMessagingCommandGetMessageCancellationID = 0x00000002, + MTRClusterMessagingCommandCancelAllMessagesID = 0x00000003, + + // Cluster ApplianceEventsAndAlert commands + MTRClusterApplianceEventsAndAlertCommandGetAlertsID = 0x00000000, + MTRClusterApplianceEventsAndAlertCommandGetAlertsResponseID = 0x00000000, + MTRClusterApplianceEventsAndAlertCommandAlertsNotificationID = 0x00000001, + MTRClusterApplianceEventsAndAlertCommandEventsNotificationID = 0x00000002, + + // Cluster ApplianceStatistics commands + MTRClusterApplianceStatisticsCommandLogNotificationID = 0x00000000, + MTRClusterApplianceStatisticsCommandLogRequestID = 0x00000000, + MTRClusterApplianceStatisticsCommandLogResponseID = 0x00000001, + MTRClusterApplianceStatisticsCommandLogQueueRequestID = 0x00000001, + MTRClusterApplianceStatisticsCommandLogQueueResponseID = 0x00000002, + MTRClusterApplianceStatisticsCommandStatisticsAvailableID = 0x00000003, + + // Cluster ElectricalMeasurement commands + MTRClusterElectricalMeasurementCommandGetProfileInfoResponseCommandID = 0x00000000, + MTRClusterElectricalMeasurementCommandGetProfileInfoCommandID = 0x00000000, + MTRClusterElectricalMeasurementCommandGetMeasurementProfileResponseCommandID = 0x00000001, + MTRClusterElectricalMeasurementCommandGetMeasurementProfileCommandID = 0x00000001, + + // Cluster TestCluster commands + MTRClusterTestClusterCommandTestID = 0x00000000, + MTRClusterTestClusterCommandTestSpecificResponseID = 0x00000000, + MTRClusterTestClusterCommandTestNotHandledID = 0x00000001, + MTRClusterTestClusterCommandTestAddArgumentsResponseID = 0x00000001, + MTRClusterTestClusterCommandTestSpecificID = 0x00000002, + MTRClusterTestClusterCommandTestSimpleArgumentResponseID = 0x00000002, + MTRClusterTestClusterCommandTestUnknownCommandID = 0x00000003, + MTRClusterTestClusterCommandTestStructArrayArgumentResponseID = 0x00000003, + MTRClusterTestClusterCommandTestAddArgumentsID = 0x00000004, + MTRClusterTestClusterCommandTestListInt8UReverseResponseID = 0x00000004, + MTRClusterTestClusterCommandTestSimpleArgumentRequestID = 0x00000005, + MTRClusterTestClusterCommandTestEnumsResponseID = 0x00000005, + MTRClusterTestClusterCommandTestStructArrayArgumentRequestID = 0x00000006, + MTRClusterTestClusterCommandTestNullableOptionalResponseID = 0x00000006, + MTRClusterTestClusterCommandTestStructArgumentRequestID = 0x00000007, + MTRClusterTestClusterCommandTestComplexNullableOptionalResponseID = 0x00000007, + MTRClusterTestClusterCommandTestNestedStructArgumentRequestID = 0x00000008, + MTRClusterTestClusterCommandBooleanResponseID = 0x00000008, + MTRClusterTestClusterCommandTestListStructArgumentRequestID = 0x00000009, + MTRClusterTestClusterCommandSimpleStructResponseID = 0x00000009, + MTRClusterTestClusterCommandTestListInt8UArgumentRequestID = 0x0000000A, + MTRClusterTestClusterCommandTestEmitTestEventResponseID = 0x0000000A, + MTRClusterTestClusterCommandTestNestedStructListArgumentRequestID = 0x0000000B, + MTRClusterTestClusterCommandTestEmitTestFabricScopedEventResponseID = 0x0000000B, + MTRClusterTestClusterCommandTestListNestedStructListArgumentRequestID = 0x0000000C, + MTRClusterTestClusterCommandTestListInt8UReverseRequestID = 0x0000000D, + MTRClusterTestClusterCommandTestEnumsRequestID = 0x0000000E, + MTRClusterTestClusterCommandTestNullableOptionalRequestID = 0x0000000F, + MTRClusterTestClusterCommandTestComplexNullableOptionalRequestID = 0x00000010, + MTRClusterTestClusterCommandSimpleStructEchoRequestID = 0x00000011, + MTRClusterTestClusterCommandTimedInvokeRequestID = 0x00000012, + MTRClusterTestClusterCommandTestSimpleOptionalArgumentRequestID = 0x00000013, + MTRClusterTestClusterCommandTestEmitTestEventRequestID = 0x00000014, + MTRClusterTestClusterCommandTestEmitTestFabricScopedEventRequestID = 0x00000015, + +}; + +#pragma mark - Events IDs + +typedef NS_ENUM(uint32_t, MTRClusterEventIDType) { + // Cluster AccessControl events + MTRClusterAccessControlEventAccessControlEntryChangedID = 0x00000000, + MTRClusterAccessControlEventAccessControlExtensionChangedID = 0x00000001, + + // Cluster BridgedActions events + MTRClusterBridgedActionsEventStateChangedID = 0x00000000, + MTRClusterBridgedActionsEventActionFailedID = 0x00000001, + + // Cluster Basic events + MTRClusterBasicEventStartUpID = 0x00000000, + MTRClusterBasicEventShutDownID = 0x00000001, + MTRClusterBasicEventLeaveID = 0x00000002, + MTRClusterBasicEventReachableChangedID = 0x00000003, + + // Cluster OtaSoftwareUpdateRequestor events + MTRClusterOtaSoftwareUpdateRequestorEventStateTransitionID = 0x00000000, + MTRClusterOtaSoftwareUpdateRequestorEventVersionAppliedID = 0x00000001, + MTRClusterOtaSoftwareUpdateRequestorEventDownloadErrorID = 0x00000002, + + // Cluster GeneralDiagnostics events + MTRClusterGeneralDiagnosticsEventHardwareFaultChangeID = 0x00000000, + MTRClusterGeneralDiagnosticsEventRadioFaultChangeID = 0x00000001, + MTRClusterGeneralDiagnosticsEventNetworkFaultChangeID = 0x00000002, + MTRClusterGeneralDiagnosticsEventBootReasonID = 0x00000003, + + // Cluster SoftwareDiagnostics events + MTRClusterSoftwareDiagnosticsEventSoftwareFaultID = 0x00000000, + + // Cluster ThreadNetworkDiagnostics events + MTRClusterThreadNetworkDiagnosticsEventConnectionStatusID = 0x00000000, + + // Cluster WiFiNetworkDiagnostics events + MTRClusterWiFiNetworkDiagnosticsEventDisconnectionID = 0x00000000, + MTRClusterWiFiNetworkDiagnosticsEventAssociationFailureID = 0x00000001, + MTRClusterWiFiNetworkDiagnosticsEventConnectionStatusID = 0x00000002, + + // Cluster BridgedDeviceBasic events + MTRClusterBridgedDeviceBasicEventStartUpID = 0x00000000, + MTRClusterBridgedDeviceBasicEventShutDownID = 0x00000001, + MTRClusterBridgedDeviceBasicEventLeaveID = 0x00000002, + MTRClusterBridgedDeviceBasicEventReachableChangedID = 0x00000003, + + // Cluster Switch events + MTRClusterSwitchEventSwitchLatchedID = 0x00000000, + MTRClusterSwitchEventInitialPressID = 0x00000001, + MTRClusterSwitchEventLongPressID = 0x00000002, + MTRClusterSwitchEventShortReleaseID = 0x00000003, + MTRClusterSwitchEventLongReleaseID = 0x00000004, + MTRClusterSwitchEventMultiPressOngoingID = 0x00000005, + MTRClusterSwitchEventMultiPressCompleteID = 0x00000006, + + // Cluster BooleanState events + MTRClusterBooleanStateEventStateChangeID = 0x00000000, + + // Cluster DoorLock events + MTRClusterDoorLockEventDoorLockAlarmID = 0x00000000, + MTRClusterDoorLockEventDoorStateChangeID = 0x00000001, + MTRClusterDoorLockEventLockOperationID = 0x00000002, + MTRClusterDoorLockEventLockOperationErrorID = 0x00000003, + MTRClusterDoorLockEventLockUserChangeID = 0x00000004, + + // Cluster PumpConfigurationAndControl events + MTRClusterPumpConfigurationAndControlEventSupplyVoltageLowID = 0x00000000, + MTRClusterPumpConfigurationAndControlEventSupplyVoltageHighID = 0x00000001, + MTRClusterPumpConfigurationAndControlEventPowerMissingPhaseID = 0x00000002, + MTRClusterPumpConfigurationAndControlEventSystemPressureLowID = 0x00000003, + MTRClusterPumpConfigurationAndControlEventSystemPressureHighID = 0x00000004, + MTRClusterPumpConfigurationAndControlEventDryRunningID = 0x00000005, + MTRClusterPumpConfigurationAndControlEventMotorTemperatureHighID = 0x00000006, + MTRClusterPumpConfigurationAndControlEventPumpMotorFatalFailureID = 0x00000007, + MTRClusterPumpConfigurationAndControlEventElectronicTemperatureHighID = 0x00000008, + MTRClusterPumpConfigurationAndControlEventPumpBlockedID = 0x00000009, + MTRClusterPumpConfigurationAndControlEventSensorFailureID = 0x0000000A, + MTRClusterPumpConfigurationAndControlEventElectronicNonFatalFailureID = 0x0000000B, + MTRClusterPumpConfigurationAndControlEventElectronicFatalFailureID = 0x0000000C, + MTRClusterPumpConfigurationAndControlEventGeneralFaultID = 0x0000000D, + MTRClusterPumpConfigurationAndControlEventLeakageID = 0x0000000E, + MTRClusterPumpConfigurationAndControlEventAirDetectionID = 0x0000000F, + MTRClusterPumpConfigurationAndControlEventTurbineOperationID = 0x00000010, + + // Cluster TestCluster events + MTRClusterTestClusterEventTestEventID = 0x00000001, + MTRClusterTestClusterEventTestFabricScopedEventID = 0x00000002, + +}; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h similarity index 81% rename from src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h rename to src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h index f7946cc96307bf..dc1526bddb354d 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h @@ -17,15 +17,12 @@ // THIS FILE IS GENERATED BY ZAP -#ifndef CHIP_CLUSTERS_H -#define CHIP_CLUSTERS_H - #import -#import +#import -#include -#include +#import +#import typedef void (^ResponseHandler)(id _Nullable value, NSError * _Nullable error); typedef void (^StatusCompletion)(NSError * _Nullable error); @@ -37,29 +34,29 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Identify * */ -@interface CHIPIdentify : CHIPCluster +@interface MTRIdentify : MTRCluster -- (void)identifyWithParams:(CHIPIdentifyClusterIdentifyParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)triggerEffectWithParams:(CHIPIdentifyClusterTriggerEffectParams *)params +- (void)identifyWithParams:(MTRIdentifyClusterIdentifyParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)triggerEffectWithParams:(MTRIdentifyClusterTriggerEffectParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeIdentifyTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeIdentifyTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeIdentifyTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeIdentifyTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeIdentifyTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeIdentifyTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -69,15 +66,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeIdentifyTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeIdentifyTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeIdentifyTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -87,16 +84,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -106,16 +103,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -125,15 +122,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -143,14 +140,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -160,15 +157,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -180,38 +177,38 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Groups * */ -@interface CHIPGroups : CHIPCluster +@interface MTRGroups : MTRCluster -- (void)addGroupWithParams:(CHIPGroupsClusterAddGroupParams *)params +- (void)addGroupWithParams:(MTRGroupsClusterAddGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)viewGroupWithParams:(CHIPGroupsClusterViewGroupParams *)params + (void (^)(MTRGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)viewGroupWithParams:(MTRGroupsClusterViewGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterViewGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)getGroupMembershipWithParams:(CHIPGroupsClusterGetGroupMembershipParams *)params - completionHandler:(void (^)(CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable data, + (void (^)(MTRGroupsClusterViewGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)getGroupMembershipWithParams:(MTRGroupsClusterGetGroupMembershipParams *)params + completionHandler:(void (^)(MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeGroupWithParams:(CHIPGroupsClusterRemoveGroupParams *)params +- (void)removeGroupWithParams:(MTRGroupsClusterRemoveGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeAllGroupsWithParams:(CHIPGroupsClusterRemoveAllGroupsParams * _Nullable)params + (void (^)(MTRGroupsClusterRemoveGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)removeAllGroupsWithParams:(MTRGroupsClusterRemoveAllGroupsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)removeAllGroupsWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)addGroupIfIdentifyingWithParams:(CHIPGroupsClusterAddGroupIfIdentifyingParams *)params +- (void)addGroupIfIdentifyingWithParams:(MTRGroupsClusterAddGroupIfIdentifyingParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeNameSupportWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNameSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNameSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNameSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -221,16 +218,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -240,16 +237,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -259,15 +256,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -277,14 +274,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -294,15 +291,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -314,49 +311,49 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Scenes * */ -@interface CHIPScenes : CHIPCluster +@interface MTRScenes : MTRCluster -- (void)addSceneWithParams:(CHIPScenesClusterAddSceneParams *)params +- (void)addSceneWithParams:(MTRScenesClusterAddSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)viewSceneWithParams:(CHIPScenesClusterViewSceneParams *)params + (void (^)(MTRScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)viewSceneWithParams:(MTRScenesClusterViewSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeSceneWithParams:(CHIPScenesClusterRemoveSceneParams *)params + (void (^)(MTRScenesClusterViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)removeSceneWithParams:(MTRScenesClusterRemoveSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterRemoveSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeAllScenesWithParams:(CHIPScenesClusterRemoveAllScenesParams *)params - completionHandler:(void (^)(CHIPScenesClusterRemoveAllScenesResponseParams * _Nullable data, + (void (^)(MTRScenesClusterRemoveSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)removeAllScenesWithParams:(MTRScenesClusterRemoveAllScenesParams *)params + completionHandler:(void (^)(MTRScenesClusterRemoveAllScenesResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)storeSceneWithParams:(CHIPScenesClusterStoreSceneParams *)params +- (void)storeSceneWithParams:(MTRScenesClusterStoreSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterStoreSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)recallSceneWithParams:(CHIPScenesClusterRecallSceneParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getSceneMembershipWithParams:(CHIPScenesClusterGetSceneMembershipParams *)params - completionHandler:(void (^)(CHIPScenesClusterGetSceneMembershipResponseParams * _Nullable data, + (void (^)(MTRScenesClusterStoreSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)recallSceneWithParams:(MTRScenesClusterRecallSceneParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)getSceneMembershipWithParams:(MTRScenesClusterGetSceneMembershipParams *)params + completionHandler:(void (^)(MTRScenesClusterGetSceneMembershipResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)enhancedAddSceneWithParams:(CHIPScenesClusterEnhancedAddSceneParams *)params - completionHandler:(void (^)(CHIPScenesClusterEnhancedAddSceneResponseParams * _Nullable data, +- (void)enhancedAddSceneWithParams:(MTRScenesClusterEnhancedAddSceneParams *)params + completionHandler:(void (^)(MTRScenesClusterEnhancedAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)enhancedViewSceneWithParams:(CHIPScenesClusterEnhancedViewSceneParams *)params - completionHandler:(void (^)(CHIPScenesClusterEnhancedViewSceneResponseParams * _Nullable data, +- (void)enhancedViewSceneWithParams:(MTRScenesClusterEnhancedViewSceneParams *)params + completionHandler:(void (^)(MTRScenesClusterEnhancedViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)copySceneWithParams:(CHIPScenesClusterCopySceneParams *)params +- (void)copySceneWithParams:(MTRScenesClusterCopySceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterCopySceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; + (void (^)(MTRScenesClusterCopySceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeSceneCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSceneCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSceneCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSceneCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -366,15 +363,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentSceneWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentSceneWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentSceneWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -384,15 +381,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentGroupWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentGroupWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentGroupWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -402,14 +399,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSceneValidWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSceneValidWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSceneValidWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -419,14 +416,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNameSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNameSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNameSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -436,15 +433,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLastConfiguredByWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLastConfiguredByWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastConfiguredByWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -454,16 +451,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -473,16 +470,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -492,15 +489,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -510,14 +507,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -527,15 +524,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -547,32 +544,32 @@ NS_ASSUME_NONNULL_BEGIN * Cluster On/Off * */ -@interface CHIPOnOff : CHIPCluster +@interface MTROnOff : MTRCluster -- (void)offWithParams:(CHIPOnOffClusterOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)offWithParams:(MTROnOffClusterOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)offWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)onWithParams:(CHIPOnOffClusterOnParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)onWithParams:(MTROnOffClusterOnParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)onWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)toggleWithParams:(CHIPOnOffClusterToggleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)toggleWithParams:(MTROnOffClusterToggleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)toggleWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)offWithEffectWithParams:(CHIPOnOffClusterOffWithEffectParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)onWithRecallGlobalSceneWithParams:(CHIPOnOffClusterOnWithRecallGlobalSceneParams * _Nullable)params +- (void)offWithEffectWithParams:(MTROnOffClusterOffWithEffectParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)onWithRecallGlobalSceneWithParams:(MTROnOffClusterOnWithRecallGlobalSceneParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)onWithRecallGlobalSceneWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)onWithTimedOffWithParams:(CHIPOnOffClusterOnWithTimedOffParams *)params +- (void)onWithTimedOffWithParams:(MTROnOffClusterOnWithTimedOffParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeOnOffWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnOffWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnOffWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnOffWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -581,15 +578,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGlobalSceneControlWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGlobalSceneControlWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGlobalSceneControlWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -598,18 +595,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeOnTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOnTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOnTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -618,18 +615,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOffWaitTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOffWaitTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOffWaitTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOffWaitTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOffWaitTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -639,19 +636,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeStartUpOnOffWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeStartUpOnOffWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartUpOnOffWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartUpOnOffWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpOnOffWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -661,16 +658,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -680,16 +677,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -699,15 +696,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -717,14 +714,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -734,15 +731,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -754,20 +751,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster On/off Switch Configuration * */ -@interface CHIPOnOffSwitchConfiguration : CHIPCluster +@interface MTROnOffSwitchConfiguration : MTRCluster - (void)readAttributeSwitchTypeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSwitchTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSwitchTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSwitchTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -777,19 +774,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeSwitchActionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSwitchActionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSwitchActionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSwitchActionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSwitchActionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -799,16 +796,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -818,16 +815,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -837,15 +834,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -855,14 +852,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -872,15 +869,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -892,38 +889,38 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Level Control * */ -@interface CHIPLevelControl : CHIPCluster +@interface MTRLevelControl : MTRCluster -- (void)moveToLevelWithParams:(CHIPLevelControlClusterMoveToLevelParams *)params +- (void)moveToLevelWithParams:(MTRLevelControlClusterMoveToLevelParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveWithParams:(CHIPLevelControlClusterMoveParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepWithParams:(CHIPLevelControlClusterStepParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stopWithParams:(CHIPLevelControlClusterStopParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveToLevelWithOnOffWithParams:(CHIPLevelControlClusterMoveToLevelWithOnOffParams *)params +- (void)moveWithParams:(MTRLevelControlClusterMoveParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)stepWithParams:(MTRLevelControlClusterStepParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)stopWithParams:(MTRLevelControlClusterStopParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)moveToLevelWithOnOffWithParams:(MTRLevelControlClusterMoveToLevelWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveWithOnOffWithParams:(CHIPLevelControlClusterMoveWithOnOffParams *)params +- (void)moveWithOnOffWithParams:(MTRLevelControlClusterMoveWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepWithOnOffWithParams:(CHIPLevelControlClusterStepWithOnOffParams *)params +- (void)stepWithOnOffWithParams:(MTRLevelControlClusterStepWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stopWithOnOffWithParams:(CHIPLevelControlClusterStopWithOnOffParams * _Nullable)params +- (void)stopWithOnOffWithParams:(MTRLevelControlClusterStopWithOnOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)stopWithOnOffWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)moveToClosestFrequencyWithParams:(CHIPLevelControlClusterMoveToClosestFrequencyParams *)params +- (void)moveToClosestFrequencyWithParams:(MTRLevelControlClusterMoveToClosestFrequencyParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeCurrentLevelWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -933,15 +930,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRemainingTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRemainingTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemainingTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -951,14 +948,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -967,14 +964,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -983,15 +980,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1001,15 +998,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1019,15 +1016,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1037,18 +1034,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOptionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOptionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOptionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1057,20 +1054,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOnOffTransitionTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOnOffTransitionTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnOffTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnOffTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnOffTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1080,18 +1077,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOnLevelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOnLevelWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1100,19 +1097,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOnTransitionTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOnTransitionTimeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1122,19 +1119,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOffTransitionTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOffTransitionTimeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOffTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOffTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOffTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1144,19 +1141,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeDefaultMoveRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDefaultMoveRateWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDefaultMoveRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDefaultMoveRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultMoveRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1167,20 +1164,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeStartUpCurrentLevelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeStartUpCurrentLevelWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartUpCurrentLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartUpCurrentLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpCurrentLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1190,16 +1187,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1209,16 +1206,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1228,15 +1225,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1246,14 +1243,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1263,15 +1260,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1283,24 +1280,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Binary Input (Basic) * */ -@interface CHIPBinaryInputBasic : CHIPCluster +@interface MTRBinaryInputBasic : MTRCluster - (void)readAttributeActiveTextWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeActiveTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeActiveTextWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1310,18 +1307,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1331,19 +1328,19 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInactiveTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInactiveTextWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInactiveTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInactiveTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInactiveTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1353,19 +1350,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOutOfServiceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOutOfServiceWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOutOfServiceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOutOfServiceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutOfServiceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1375,14 +1372,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePolarityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePolarityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePolarityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1391,19 +1388,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributePresentValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePresentValueWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePresentValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePresentValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePresentValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1413,18 +1410,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeReliabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeReliabilityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReliabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReliabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReliabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1434,14 +1431,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStatusFlagsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStatusFlagsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusFlagsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1451,15 +1448,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApplicationTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApplicationTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1469,16 +1466,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1488,16 +1485,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1507,15 +1504,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1525,14 +1522,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1542,15 +1539,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1562,20 +1559,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Descriptor * */ -@interface CHIPDescriptor : CHIPCluster +@interface MTRDescriptor : MTRCluster - (void)readAttributeDeviceListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDeviceListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDeviceListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDeviceListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1584,14 +1581,14 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeServerListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeServerListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeServerListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1600,14 +1597,14 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClientListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClientListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClientListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1616,14 +1613,14 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePartsListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePartsListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartsListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1632,16 +1629,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1651,16 +1648,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1670,15 +1667,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1688,14 +1685,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1705,15 +1702,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1725,24 +1722,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Binding * */ -@interface CHIPBinding : CHIPCluster +@interface MTRBinding : MTRCluster -- (void)readAttributeBindingWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeBindingWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBindingWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBindingWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBindingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBindingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBindingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1751,16 +1748,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1770,16 +1767,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1789,15 +1786,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1807,14 +1804,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1824,15 +1821,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1844,44 +1841,44 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Access Control * */ -@interface CHIPAccessControl : CHIPCluster +@interface MTRAccessControl : MTRCluster -- (void)readAttributeAclWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeAclWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeAclWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeAclWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAclWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAclWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAclWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeExtensionWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeExtensionWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeExtensionWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeExtensionWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeExtensionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeExtensionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExtensionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -1890,16 +1887,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSubjectsPerAccessControlEntryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSubjectsPerAccessControlEntryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSubjectsPerAccessControlEntryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -1909,16 +1906,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTargetsPerAccessControlEntryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTargetsPerAccessControlEntryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetsPerAccessControlEntryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -1928,16 +1925,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAccessControlEntriesPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAccessControlEntriesPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAccessControlEntriesPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -1947,16 +1944,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1966,16 +1963,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -1985,15 +1982,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2003,14 +2000,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2020,15 +2017,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2040,45 +2037,45 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Bridged Actions * */ -@interface CHIPBridgedActions : CHIPCluster +@interface MTRBridgedActions : MTRCluster -- (void)instantActionWithParams:(CHIPBridgedActionsClusterInstantActionParams *)params +- (void)instantActionWithParams:(MTRBridgedActionsClusterInstantActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)instantActionWithTransitionWithParams:(CHIPBridgedActionsClusterInstantActionWithTransitionParams *)params +- (void)instantActionWithTransitionWithParams:(MTRBridgedActionsClusterInstantActionWithTransitionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)startActionWithParams:(CHIPBridgedActionsClusterStartActionParams *)params +- (void)startActionWithParams:(MTRBridgedActionsClusterStartActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)startActionWithDurationWithParams:(CHIPBridgedActionsClusterStartActionWithDurationParams *)params +- (void)startActionWithDurationWithParams:(MTRBridgedActionsClusterStartActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stopActionWithParams:(CHIPBridgedActionsClusterStopActionParams *)params +- (void)stopActionWithParams:(MTRBridgedActionsClusterStopActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)pauseActionWithParams:(CHIPBridgedActionsClusterPauseActionParams *)params +- (void)pauseActionWithParams:(MTRBridgedActionsClusterPauseActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)pauseActionWithDurationWithParams:(CHIPBridgedActionsClusterPauseActionWithDurationParams *)params +- (void)pauseActionWithDurationWithParams:(MTRBridgedActionsClusterPauseActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)resumeActionWithParams:(CHIPBridgedActionsClusterResumeActionParams *)params +- (void)resumeActionWithParams:(MTRBridgedActionsClusterResumeActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enableActionWithParams:(CHIPBridgedActionsClusterEnableActionParams *)params +- (void)enableActionWithParams:(MTRBridgedActionsClusterEnableActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enableActionWithDurationWithParams:(CHIPBridgedActionsClusterEnableActionWithDurationParams *)params +- (void)enableActionWithDurationWithParams:(MTRBridgedActionsClusterEnableActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)disableActionWithParams:(CHIPBridgedActionsClusterDisableActionParams *)params +- (void)disableActionWithParams:(MTRBridgedActionsClusterDisableActionParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)disableActionWithDurationWithParams:(CHIPBridgedActionsClusterDisableActionWithDurationParams *)params +- (void)disableActionWithDurationWithParams:(MTRBridgedActionsClusterDisableActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeActionListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActionListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActionListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActionListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2087,14 +2084,14 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEndpointListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEndpointListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEndpointListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2104,14 +2101,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSetupUrlWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSetupUrlWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetupUrlWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2120,16 +2117,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2139,16 +2136,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2158,15 +2155,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2176,14 +2173,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2193,15 +2190,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2213,9 +2210,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Basic * */ -@interface CHIPBasic : CHIPCluster +@interface MTRBasic : MTRCluster -- (void)mfgSpecificPingWithParams:(CHIPBasicClusterMfgSpecificPingParams * _Nullable)params +- (void)mfgSpecificPingWithParams:(MTRBasicClusterMfgSpecificPingParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)mfgSpecificPingWithCompletionHandler:(StatusCompletion)completionHandler; @@ -2223,15 +2220,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDataModelRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDataModelRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDataModelRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2241,14 +2238,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2258,14 +2255,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2274,14 +2271,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2291,14 +2288,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2307,18 +2304,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNodeLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNodeLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNodeLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2327,18 +2324,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeLocationWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLocationWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2347,15 +2344,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHardwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHardwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2365,16 +2362,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHardwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHardwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2384,15 +2381,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSoftwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSoftwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2402,16 +2399,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSoftwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSoftwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2421,15 +2418,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeManufacturingDateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeManufacturingDateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeManufacturingDateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2439,14 +2436,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePartNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePartNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2456,14 +2453,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductURLWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductURLWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductURLWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2473,15 +2470,15 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2491,15 +2488,15 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSerialNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSerialNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSerialNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2509,20 +2506,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeLocalConfigDisabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLocalConfigDisabledWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocalConfigDisabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocalConfigDisabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalConfigDisabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2532,14 +2529,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReachableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReachableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReachableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -2548,50 +2545,50 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUniqueIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUniqueIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUniqueIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeCapabilityMinimaWithCompletionHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, +- (void)readAttributeCapabilityMinimaWithCompletionHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCapabilityMinimaWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, + reportHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCapabilityMinimaWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCapabilityMinimaWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, + completionHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2601,16 +2598,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2620,15 +2617,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2638,14 +2635,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2655,15 +2652,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2675,31 +2672,31 @@ NS_ASSUME_NONNULL_BEGIN * Cluster OTA Software Update Provider * */ -@interface CHIPOtaSoftwareUpdateProvider : CHIPCluster +@interface MTROtaSoftwareUpdateProvider : MTRCluster -- (void)queryImageWithParams:(CHIPOtaSoftwareUpdateProviderClusterQueryImageParams *)params - completionHandler:(void (^)(CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, +- (void)queryImageWithParams:(MTROtaSoftwareUpdateProviderClusterQueryImageParams *)params + completionHandler:(void (^)(MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)applyUpdateRequestWithParams:(CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestParams *)params - completionHandler:(void (^)(CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable data, +- (void)applyUpdateRequestWithParams:(MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams *)params + completionHandler:(void (^)(MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)notifyUpdateAppliedWithParams:(CHIPOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams *)params +- (void)notifyUpdateAppliedWithParams:(MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2709,16 +2706,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2728,15 +2725,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2746,14 +2743,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2763,15 +2760,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2783,30 +2780,30 @@ NS_ASSUME_NONNULL_BEGIN * Cluster OTA Software Update Requestor * */ -@interface CHIPOtaSoftwareUpdateRequestor : CHIPCluster +@interface MTROtaSoftwareUpdateRequestor : MTRCluster -- (void)announceOtaProviderWithParams:(CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params +- (void)announceOtaProviderWithParams:(MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)readAttributeDefaultOtaProvidersWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeDefaultOtaProvidersWithParams:(MTRReadParams * _Nullable)params completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeDefaultOtaProvidersWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDefaultOtaProvidersWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDefaultOtaProvidersWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDefaultOtaProvidersWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultOtaProvidersWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2816,15 +2813,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUpdatePossibleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUpdatePossibleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdatePossibleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2834,14 +2831,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUpdateStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUpdateStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdateStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2851,16 +2848,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUpdateStateProgressWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUpdateStateProgressWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdateStateProgressWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2870,16 +2867,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2889,16 +2886,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2908,15 +2905,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2926,14 +2923,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2943,15 +2940,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2963,25 +2960,25 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Localization Configuration * */ -@interface CHIPLocalizationConfiguration : CHIPCluster +@interface MTRLocalizationConfiguration : MTRCluster - (void)readAttributeActiveLocaleWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeActiveLocaleWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeActiveLocaleWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveLocaleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveLocaleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveLocaleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -2991,15 +2988,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedLocalesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedLocalesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedLocalesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3009,16 +3006,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3028,16 +3025,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3047,15 +3044,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3065,14 +3062,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3082,15 +3079,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3102,24 +3099,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Time Format Localization * */ -@interface CHIPTimeFormatLocalization : CHIPCluster +@interface MTRTimeFormatLocalization : MTRCluster - (void)readAttributeHourFormatWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeHourFormatWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeHourFormatWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHourFormatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHourFormatWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHourFormatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3129,19 +3126,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeActiveCalendarTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeActiveCalendarTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveCalendarTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveCalendarTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCalendarTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3151,16 +3148,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedCalendarTypesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedCalendarTypesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedCalendarTypesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3170,16 +3167,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3189,16 +3186,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3208,15 +3205,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3226,14 +3223,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3243,15 +3240,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3263,25 +3260,25 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Unit Localization * */ -@interface CHIPUnitLocalization : CHIPCluster +@interface MTRUnitLocalization : MTRCluster - (void)readAttributeTemperatureUnitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTemperatureUnitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTemperatureUnitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureUnitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3291,16 +3288,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3310,16 +3307,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3329,15 +3326,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3347,14 +3344,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3364,15 +3361,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3384,19 +3381,19 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Power Source Configuration * */ -@interface CHIPPowerSourceConfiguration : CHIPCluster +@interface MTRPowerSourceConfiguration : MTRCluster - (void)readAttributeSourcesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSourcesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSourcesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSourcesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -3405,16 +3402,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3424,16 +3421,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3443,15 +3440,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3461,14 +3458,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3478,15 +3475,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3498,19 +3495,19 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Power Source * */ -@interface CHIPPowerSource : CHIPCluster +@interface MTRPowerSource : MTRCluster - (void)readAttributeStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -3518,14 +3515,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeOrderWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOrderWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOrderWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOrderWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -3534,14 +3531,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3551,16 +3548,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredAssessedInputVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredAssessedInputVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedInputVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -3570,16 +3567,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredAssessedInputFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredAssessedInputFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedInputFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -3589,15 +3586,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredCurrentTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredCurrentTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredCurrentTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3607,16 +3604,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredAssessedCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredAssessedCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3626,16 +3623,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredNominalVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredNominalVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredNominalVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3645,16 +3642,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredMaximumCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredMaximumCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredMaximumCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3664,15 +3661,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiredPresentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiredPresentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredPresentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3682,15 +3679,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveWiredFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveWiredFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveWiredFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3700,15 +3697,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3718,16 +3715,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryPercentRemainingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryPercentRemainingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryPercentRemainingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3737,16 +3734,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryTimeRemainingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryTimeRemainingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryTimeRemainingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3756,15 +3753,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryChargeLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryChargeLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargeLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3774,16 +3771,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryReplacementNeededWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryReplacementNeededWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplacementNeededWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -3793,16 +3790,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryReplaceabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryReplaceabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplaceabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3812,15 +3809,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryPresentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryPresentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryPresentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3830,16 +3827,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveBatteryFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveBatteryFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveBatteryFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3849,16 +3846,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryReplacementDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryReplacementDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplacementDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, @@ -3868,16 +3865,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryCommonDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryCommonDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryCommonDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -3887,16 +3884,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryANSIDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryANSIDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryANSIDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3906,16 +3903,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryIECDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryIECDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryIECDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3925,16 +3922,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryApprovedChemistryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryApprovedChemistryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryApprovedChemistryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -3944,15 +3941,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3962,15 +3959,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryQuantityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryQuantityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryQuantityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3980,15 +3977,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryChargeStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryChargeStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargeStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -3998,16 +3995,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryTimeToFullChargeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryTimeToFullChargeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryTimeToFullChargeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4017,16 +4014,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryFunctionalWhileChargingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryFunctionalWhileChargingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryFunctionalWhileChargingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -4036,16 +4033,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBatteryChargingCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBatteryChargingCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargingCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4055,16 +4052,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveBatteryChargeFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveBatteryChargeFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveBatteryChargeFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, @@ -4074,16 +4071,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4093,16 +4090,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4112,15 +4109,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4130,14 +4127,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4147,15 +4144,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4167,77 +4164,77 @@ NS_ASSUME_NONNULL_BEGIN * Cluster General Commissioning * */ -@interface CHIPGeneralCommissioning : CHIPCluster +@interface MTRGeneralCommissioning : MTRCluster -- (void)armFailSafeWithParams:(CHIPGeneralCommissioningClusterArmFailSafeParams *)params - completionHandler:(void (^)(CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, +- (void)armFailSafeWithParams:(MTRGeneralCommissioningClusterArmFailSafeParams *)params + completionHandler:(void (^)(MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)setRegulatoryConfigWithParams:(CHIPGeneralCommissioningClusterSetRegulatoryConfigParams *)params - completionHandler:(void (^)(CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable data, +- (void)setRegulatoryConfigWithParams:(MTRGeneralCommissioningClusterSetRegulatoryConfigParams *)params + completionHandler:(void (^)(MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)commissioningCompleteWithParams:(CHIPGeneralCommissioningClusterCommissioningCompleteParams * _Nullable)params +- (void)commissioningCompleteWithParams:(MTRGeneralCommissioningClusterCommissioningCompleteParams * _Nullable)params completionHandler: - (void (^)(CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, + (void (^)(MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)commissioningCompleteWithCompletionHandler: - (void (^)(CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, + (void (^)(MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeBreadcrumbWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBreadcrumbWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBreadcrumbWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBreadcrumbWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBreadcrumbWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBreadcrumbWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeBasicCommissioningInfoWithCompletionHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler; + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void) subscribeAttributeBasicCommissioningInfoWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBasicCommissioningInfoWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBasicCommissioningInfoWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeRegulatoryConfigWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRegulatoryConfigWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRegulatoryConfigWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRegulatoryConfigWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4247,15 +4244,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocationCapabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocationCapabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocationCapabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4265,16 +4262,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportsConcurrentConnectionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportsConcurrentConnectionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportsConcurrentConnectionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -4284,16 +4281,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4303,16 +4300,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4322,15 +4319,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4340,14 +4337,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4357,15 +4354,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4377,39 +4374,39 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Network Commissioning * */ -@interface CHIPNetworkCommissioning : CHIPCluster +@interface MTRNetworkCommissioning : MTRCluster -- (void)scanNetworksWithParams:(CHIPNetworkCommissioningClusterScanNetworksParams * _Nullable)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, +- (void)scanNetworksWithParams:(MTRNetworkCommissioningClusterScanNetworksParams * _Nullable)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)addOrUpdateWiFiNetworkWithParams:(CHIPNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)addOrUpdateWiFiNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)addOrUpdateThreadNetworkWithParams:(CHIPNetworkCommissioningClusterAddOrUpdateThreadNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)addOrUpdateThreadNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeNetworkWithParams:(CHIPNetworkCommissioningClusterRemoveNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)removeNetworkWithParams:(MTRNetworkCommissioningClusterRemoveNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)connectNetworkWithParams:(CHIPNetworkCommissioningClusterConnectNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable data, +- (void)connectNetworkWithParams:(MTRNetworkCommissioningClusterConnectNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)reorderNetworkWithParams:(CHIPNetworkCommissioningClusterReorderNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)reorderNetworkWithParams:(MTRNetworkCommissioningClusterReorderNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeMaxNetworksWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxNetworksWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxNetworksWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxNetworksWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4419,14 +4416,14 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNetworksWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNetworksWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworksWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -4435,15 +4432,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeScanMaxTimeSecondsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeScanMaxTimeSecondsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScanMaxTimeSecondsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4453,16 +4450,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeConnectMaxTimeSecondsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeConnectMaxTimeSecondsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeConnectMaxTimeSecondsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4472,19 +4469,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeInterfaceEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInterfaceEnabledWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInterfaceEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInterfaceEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInterfaceEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4494,16 +4491,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLastNetworkingStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLastNetworkingStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastNetworkingStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4513,14 +4510,14 @@ NS_ASSUME_NONNULL_BEGIN NSData * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLastNetworkIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLastNetworkIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastNetworkIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4530,16 +4527,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLastConnectErrorValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLastConnectErrorValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastConnectErrorValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4549,16 +4546,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4568,16 +4565,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4587,15 +4584,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4605,14 +4602,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4622,15 +4619,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4642,26 +4639,26 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Diagnostic Logs * */ -@interface CHIPDiagnosticLogs : CHIPCluster +@interface MTRDiagnosticLogs : MTRCluster -- (void)retrieveLogsRequestWithParams:(CHIPDiagnosticLogsClusterRetrieveLogsRequestParams *)params - completionHandler:(void (^)(CHIPDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, +- (void)retrieveLogsRequestWithParams:(MTRDiagnosticLogsClusterRetrieveLogsRequestParams *)params + completionHandler:(void (^)(MTRDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4671,16 +4668,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4690,15 +4687,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4708,14 +4705,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4725,15 +4722,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4745,24 +4742,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster General Diagnostics * */ -@interface CHIPGeneralDiagnostics : CHIPCluster +@interface MTRGeneralDiagnostics : MTRCluster -- (void)testEventTriggerWithParams:(CHIPGeneralDiagnosticsClusterTestEventTriggerParams *)params +- (void)testEventTriggerWithParams:(MTRGeneralDiagnosticsClusterTestEventTriggerParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeNetworkInterfacesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNetworkInterfacesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNetworkInterfacesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworkInterfacesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4772,14 +4769,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRebootCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRebootCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRebootCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4788,14 +4785,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeUpTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUpTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUpTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -4804,16 +4801,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTotalOperationalHoursWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTotalOperationalHoursWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalOperationalHoursWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4823,14 +4820,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBootReasonsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBootReasonsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBootReasonsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4840,16 +4837,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveHardwareFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveHardwareFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveHardwareFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4859,15 +4856,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveRadioFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveRadioFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveRadioFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4877,16 +4874,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveNetworkFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveNetworkFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveNetworkFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4896,16 +4893,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTestEventTriggersEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTestEventTriggersEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTestEventTriggersEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -4915,16 +4912,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4934,16 +4931,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4953,15 +4950,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4971,14 +4968,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -4988,15 +4985,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5008,9 +5005,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Software Diagnostics * */ -@interface CHIPSoftwareDiagnostics : CHIPCluster +@interface MTRSoftwareDiagnostics : MTRCluster -- (void)resetWatermarksWithParams:(CHIPSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params +- (void)resetWatermarksWithParams:(MTRSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)resetWatermarksWithCompletionHandler:(StatusCompletion)completionHandler; @@ -5018,15 +5015,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeThreadMetricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeThreadMetricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThreadMetricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5036,15 +5033,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentHeapFreeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentHeapFreeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapFreeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5054,15 +5051,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentHeapUsedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentHeapUsedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapUsedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5072,16 +5069,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentHeapHighWatermarkWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentHeapHighWatermarkWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapHighWatermarkWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -5091,16 +5088,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5110,16 +5107,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5129,15 +5126,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5147,14 +5144,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5164,15 +5161,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5184,9 +5181,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thread Network Diagnostics * */ -@interface CHIPThreadNetworkDiagnostics : CHIPCluster +@interface MTRThreadNetworkDiagnostics : MTRCluster -- (void)resetCountsWithParams:(CHIPThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTRThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler; @@ -5194,14 +5191,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeChannelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeChannelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -5210,14 +5207,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRoutingRoleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRoutingRoleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRoutingRoleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5227,14 +5224,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNetworkNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNetworkNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworkNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5243,14 +5240,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributePanIdWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePanIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePanIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePanIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -5259,15 +5256,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeExtendedPanIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeExtendedPanIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExtendedPanIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5277,15 +5274,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeshLocalPrefixWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeshLocalPrefixWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeshLocalPrefixWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5295,15 +5292,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5313,15 +5310,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNeighborTableListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNeighborTableListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNeighborTableListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5331,15 +5328,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRouteTableListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRouteTableListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRouteTableListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5349,14 +5346,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePartitionIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePartitionIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartitionIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5366,14 +5363,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWeightingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWeightingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWeightingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -5382,14 +5379,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDataVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDataVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDataVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5399,15 +5396,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStableDataVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStableDataVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStableDataVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5417,15 +5414,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLeaderRouterIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLeaderRouterIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLeaderRouterIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5435,15 +5432,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDetachedRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDetachedRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDetachedRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5453,15 +5450,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeChildRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeChildRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChildRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5471,15 +5468,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRouterRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRouterRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRouterRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5489,15 +5486,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLeaderRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLeaderRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLeaderRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5507,15 +5504,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttachAttemptCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttachAttemptCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttachAttemptCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5525,16 +5522,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePartitionIdChangeCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePartitionIdChangeCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartitionIdChangeCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5544,16 +5541,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBetterPartitionAttachAttemptCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBetterPartitionAttachAttemptCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBetterPartitionAttachAttemptCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -5563,15 +5560,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeParentChangeCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeParentChangeCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeParentChangeCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5581,15 +5578,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxTotalCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxTotalCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxTotalCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5599,15 +5596,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxUnicastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxUnicastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxUnicastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5617,15 +5614,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxBroadcastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxBroadcastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBroadcastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5635,16 +5632,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxAckRequestedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxAckRequestedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxAckRequestedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5654,15 +5651,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxAckedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxAckedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxAckedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5672,16 +5669,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxNoAckRequestedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxNoAckRequestedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxNoAckRequestedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5691,14 +5688,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxDataCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxDataCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDataCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5708,15 +5705,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxDataPollCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxDataPollCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDataPollCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5726,15 +5723,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxBeaconCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxBeaconCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBeaconCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5744,16 +5741,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxBeaconRequestCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxBeaconRequestCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBeaconRequestCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5763,15 +5760,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5781,15 +5778,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxRetryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxRetryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxRetryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5799,16 +5796,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxDirectMaxRetryExpiryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxDirectMaxRetryExpiryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDirectMaxRetryExpiryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -5818,16 +5815,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxIndirectMaxRetryExpiryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxIndirectMaxRetryExpiryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxIndirectMaxRetryExpiryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -5837,15 +5834,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxErrCcaCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxErrCcaCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrCcaCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5855,15 +5852,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxErrAbortCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxErrAbortCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrAbortCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5873,16 +5870,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxErrBusyChannelCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxErrBusyChannelCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrBusyChannelCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5892,15 +5889,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxTotalCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxTotalCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxTotalCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5910,15 +5907,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxUnicastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxUnicastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxUnicastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5928,15 +5925,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxBroadcastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxBroadcastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBroadcastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5946,14 +5943,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxDataCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxDataCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDataCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5963,15 +5960,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxDataPollCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxDataPollCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDataPollCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5981,15 +5978,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxBeaconCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxBeaconCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBeaconCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -5999,16 +5996,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxBeaconRequestCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxBeaconRequestCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBeaconRequestCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6018,15 +6015,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6036,16 +6033,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxAddressFilteredCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxAddressFilteredCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxAddressFilteredCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6055,16 +6052,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxDestAddrFilteredCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxDestAddrFilteredCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDestAddrFilteredCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6074,15 +6071,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxDuplicatedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxDuplicatedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDuplicatedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6092,15 +6089,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrNoFrameCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrNoFrameCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrNoFrameCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6110,16 +6107,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrUnknownNeighborCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrUnknownNeighborCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrUnknownNeighborCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -6129,16 +6126,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrInvalidSrcAddrCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrInvalidSrcAddrCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrInvalidSrcAddrCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -6148,15 +6145,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrSecCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrSecCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrSecCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6166,15 +6163,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrFcsCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrFcsCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrFcsCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6184,15 +6181,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRxErrOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRxErrOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6202,15 +6199,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6220,15 +6217,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePendingTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePendingTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePendingTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6237,93 +6234,93 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeSecurityPolicyWithCompletionHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler; + (void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSecurityPolicyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, + (void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSecurityPolicyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSecurityPolicyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, + completionHandler:(void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeChannelMaskWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeChannelMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeChannelMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeOperationalDatasetComponentsWithCompletionHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + (void (^)(MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void) subscribeAttributeOperationalDatasetComponentsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))reportHandler; + (void) - readAttributeOperationalDatasetComponentsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer + readAttributeOperationalDatasetComponentsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeActiveNetworkFaultsListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveNetworkFaultsListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveNetworkFaultsListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveNetworkFaultsListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6333,16 +6330,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6352,16 +6349,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6371,15 +6368,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6389,14 +6386,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6406,15 +6403,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6426,23 +6423,23 @@ NS_ASSUME_NONNULL_BEGIN * Cluster WiFi Network Diagnostics * */ -@interface CHIPWiFiNetworkDiagnostics : CHIPCluster +@interface MTRWiFiNetworkDiagnostics : MTRCluster -- (void)resetCountsWithParams:(CHIPWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTRWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler; - (void)readAttributeBssidWithCompletionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBssidWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBssidWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBssidWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler; @@ -6451,15 +6448,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSecurityTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSecurityTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSecurityTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6469,14 +6466,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWiFiVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWiFiVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiFiVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6486,15 +6483,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeChannelNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeChannelNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6503,14 +6500,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeRssiWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRssiWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRssiWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRssiWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -6519,15 +6516,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBeaconLostCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBeaconLostCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBeaconLostCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6537,15 +6534,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBeaconRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBeaconRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBeaconRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6555,16 +6552,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketMulticastRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketMulticastRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketMulticastRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6574,16 +6571,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketMulticastTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketMulticastTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketMulticastTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6593,16 +6590,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketUnicastRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketUnicastRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketUnicastRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6612,16 +6609,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketUnicastTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketUnicastTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketUnicastTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6631,15 +6628,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentMaxRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentMaxRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentMaxRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6649,15 +6646,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6667,16 +6664,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6686,16 +6683,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6705,15 +6702,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6723,14 +6720,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6740,15 +6737,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6760,9 +6757,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Ethernet Network Diagnostics * */ -@interface CHIPEthernetNetworkDiagnostics : CHIPCluster +@interface MTREthernetNetworkDiagnostics : MTRCluster -- (void)resetCountsWithParams:(CHIPEthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTREthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler; @@ -6770,14 +6767,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePHYRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePHYRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePHYRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -6786,14 +6783,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFullDuplexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFullDuplexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFullDuplexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6803,15 +6800,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6821,15 +6818,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePacketTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePacketTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6839,14 +6836,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTxErrCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTxErrCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6856,15 +6853,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCollisionCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCollisionCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCollisionCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6874,15 +6871,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6892,15 +6889,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCarrierDetectWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCarrierDetectWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCarrierDetectWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6910,15 +6907,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTimeSinceResetWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTimeSinceResetWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTimeSinceResetWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6928,16 +6925,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6947,16 +6944,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6966,15 +6963,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -6984,14 +6981,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7001,15 +6998,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7021,20 +7018,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Bridged Device Basic * */ -@interface CHIPBridgedDeviceBasic : CHIPCluster +@interface MTRBridgedDeviceBasic : MTRCluster - (void)readAttributeVendorNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7044,14 +7041,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7060,14 +7057,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7077,18 +7074,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNodeLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNodeLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNodeLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7097,15 +7094,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHardwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHardwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7115,16 +7112,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHardwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHardwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7134,15 +7131,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSoftwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSoftwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7152,16 +7149,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSoftwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSoftwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7171,15 +7168,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeManufacturingDateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeManufacturingDateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeManufacturingDateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7189,14 +7186,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePartNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePartNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7206,14 +7203,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductURLWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductURLWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductURLWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7223,15 +7220,15 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7241,15 +7238,15 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSerialNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSerialNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSerialNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7259,14 +7256,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReachableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReachableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReachableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7275,14 +7272,14 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUniqueIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUniqueIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUniqueIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7291,16 +7288,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7310,16 +7307,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7329,15 +7326,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7347,14 +7344,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7364,15 +7361,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7384,21 +7381,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Switch * */ -@interface CHIPSwitch : CHIPCluster +@interface MTRSwitch : MTRCluster - (void)readAttributeNumberOfPositionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfPositionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfPositionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPositionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7408,15 +7405,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7426,15 +7423,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMultiPressMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMultiPressMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMultiPressMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7444,16 +7441,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7463,16 +7460,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7482,15 +7479,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7500,14 +7497,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7517,15 +7514,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7537,13 +7534,13 @@ NS_ASSUME_NONNULL_BEGIN * Cluster AdministratorCommissioning * */ -@interface CHIPAdministratorCommissioning : CHIPCluster +@interface MTRAdministratorCommissioning : MTRCluster -- (void)openCommissioningWindowWithParams:(CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams *)params +- (void)openCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenCommissioningWindowParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)openBasicCommissioningWindowWithParams:(CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams *)params +- (void)openBasicCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)revokeCommissioningWithParams:(CHIPAdministratorCommissioningClusterRevokeCommissioningParams * _Nullable)params +- (void)revokeCommissioningWithParams:(MTRAdministratorCommissioningClusterRevokeCommissioningParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)revokeCommissioningWithCompletionHandler:(StatusCompletion)completionHandler; @@ -7551,15 +7548,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWindowStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWindowStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindowStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7569,15 +7566,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAdminFabricIndexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAdminFabricIndexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAdminFabricIndexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7587,15 +7584,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAdminVendorIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAdminVendorIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAdminVendorIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7605,16 +7602,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7624,16 +7621,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7643,15 +7640,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7661,14 +7658,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7678,15 +7675,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7698,61 +7695,60 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Operational Credentials * */ -@interface CHIPOperationalCredentials : CHIPCluster +@interface MTROperationalCredentials : MTRCluster -- (void)attestationRequestWithParams:(CHIPOperationalCredentialsClusterAttestationRequestParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterAttestationResponseParams * _Nullable data, +- (void)attestationRequestWithParams:(MTROperationalCredentialsClusterAttestationRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterAttestationResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)certificateChainRequestWithParams:(CHIPOperationalCredentialsClusterCertificateChainRequestParams *)params - completionHandler: - (void (^)(CHIPOperationalCredentialsClusterCertificateChainResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; -- (void)CSRRequestWithParams:(CHIPOperationalCredentialsClusterCSRRequestParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterCSRResponseParams * _Nullable data, +- (void)certificateChainRequestWithParams:(MTROperationalCredentialsClusterCertificateChainRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterCertificateChainResponseParams * _Nullable data, + NSError * _Nullable error))completionHandler; +- (void)CSRRequestWithParams:(MTROperationalCredentialsClusterCSRRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterCSRResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)addNOCWithParams:(CHIPOperationalCredentialsClusterAddNOCParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)addNOCWithParams:(MTROperationalCredentialsClusterAddNOCParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)updateNOCWithParams:(CHIPOperationalCredentialsClusterUpdateNOCParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)updateNOCWithParams:(MTROperationalCredentialsClusterUpdateNOCParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)updateFabricLabelWithParams:(CHIPOperationalCredentialsClusterUpdateFabricLabelParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)updateFabricLabelWithParams:(MTROperationalCredentialsClusterUpdateFabricLabelParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)removeFabricWithParams:(CHIPOperationalCredentialsClusterRemoveFabricParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)removeFabricWithParams:(MTROperationalCredentialsClusterRemoveFabricParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)addTrustedRootCertificateWithParams:(CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams *)params +- (void)addTrustedRootCertificateWithParams:(MTROperationalCredentialsClusterAddTrustedRootCertificateParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)readAttributeNOCsWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeNOCsWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNOCsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNOCsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNOCsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeFabricsWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeFabricsWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7761,15 +7757,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7779,16 +7775,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCommissionedFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCommissionedFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCommissionedFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7798,16 +7794,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTrustedRootCertificatesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTrustedRootCertificatesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTrustedRootCertificatesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7817,15 +7813,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentFabricIndexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentFabricIndexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentFabricIndexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7835,16 +7831,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7854,16 +7850,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7873,15 +7869,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7891,14 +7887,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7908,15 +7904,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -7928,52 +7924,52 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Group Key Management * */ -@interface CHIPGroupKeyManagement : CHIPCluster +@interface MTRGroupKeyManagement : MTRCluster -- (void)keySetWriteWithParams:(CHIPGroupKeyManagementClusterKeySetWriteParams *)params +- (void)keySetWriteWithParams:(MTRGroupKeyManagementClusterKeySetWriteParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)keySetReadWithParams:(CHIPGroupKeyManagementClusterKeySetReadParams *)params - completionHandler:(void (^)(CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable data, +- (void)keySetReadWithParams:(MTRGroupKeyManagementClusterKeySetReadParams *)params + completionHandler:(void (^)(MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)keySetRemoveWithParams:(CHIPGroupKeyManagementClusterKeySetRemoveParams *)params +- (void)keySetRemoveWithParams:(MTRGroupKeyManagementClusterKeySetRemoveParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)keySetReadAllIndicesWithParams:(CHIPGroupKeyManagementClusterKeySetReadAllIndicesParams *)params - completionHandler:(void (^)(CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable data, +- (void)keySetReadAllIndicesWithParams:(MTRGroupKeyManagementClusterKeySetReadAllIndicesParams *)params + completionHandler:(void (^)(MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)readAttributeGroupKeyMapWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeGroupKeyMapWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeGroupKeyMapWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeGroupKeyMapWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGroupKeyMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGroupKeyMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGroupKeyMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeGroupTableWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeGroupTableWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGroupTableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGroupTableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGroupTableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -7982,15 +7978,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxGroupsPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxGroupsPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxGroupsPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8000,16 +7996,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxGroupKeysPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxGroupKeysPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxGroupKeysPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8019,16 +8015,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8038,16 +8034,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8057,15 +8053,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8075,14 +8071,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8092,15 +8088,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8112,20 +8108,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Fixed Label * */ -@interface CHIPFixedLabel : CHIPCluster +@interface MTRFixedLabel : MTRCluster - (void)readAttributeLabelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLabelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLabelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLabelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8134,16 +8130,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8153,16 +8149,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8172,15 +8168,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8190,14 +8186,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8207,15 +8203,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8227,24 +8223,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster User Label * */ -@interface CHIPUserLabel : CHIPCluster +@interface MTRUserLabel : MTRCluster - (void)readAttributeLabelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLabelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLabelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLabelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8253,16 +8249,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8272,16 +8268,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8291,15 +8287,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8309,14 +8305,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8326,15 +8322,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8346,20 +8342,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Boolean State * */ -@interface CHIPBooleanState : CHIPCluster +@interface MTRBooleanState : MTRCluster - (void)readAttributeStateValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStateValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStateValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStateValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8369,16 +8365,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8388,16 +8384,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8407,15 +8403,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8425,14 +8421,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8442,15 +8438,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8462,23 +8458,23 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Mode Select * */ -@interface CHIPModeSelect : CHIPCluster +@interface MTRModeSelect : MTRCluster -- (void)changeToModeWithParams:(CHIPModeSelectClusterChangeToModeParams *)params +- (void)changeToModeWithParams:(MTRModeSelectClusterChangeToModeParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeDescriptionWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8488,15 +8484,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStandardNamespaceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStandardNamespaceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStandardNamespaceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8506,15 +8502,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedModesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedModesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedModesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8524,14 +8520,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8541,18 +8537,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartUpModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartUpModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8561,18 +8557,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeOnModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOnModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOnModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8581,16 +8577,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8600,16 +8596,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8619,15 +8615,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8637,14 +8633,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8654,15 +8650,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8674,61 +8670,61 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Door Lock * */ -@interface CHIPDoorLock : CHIPCluster +@interface MTRDoorLock : MTRCluster -- (void)lockDoorWithParams:(CHIPDoorLockClusterLockDoorParams * _Nullable)params +- (void)lockDoorWithParams:(MTRDoorLockClusterLockDoorParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; -- (void)unlockDoorWithParams:(CHIPDoorLockClusterUnlockDoorParams * _Nullable)params +- (void)unlockDoorWithParams:(MTRDoorLockClusterUnlockDoorParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; -- (void)unlockWithTimeoutWithParams:(CHIPDoorLockClusterUnlockWithTimeoutParams *)params +- (void)unlockWithTimeoutWithParams:(MTRDoorLockClusterUnlockWithTimeoutParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setWeekDayScheduleWithParams:(CHIPDoorLockClusterSetWeekDayScheduleParams *)params +- (void)setWeekDayScheduleWithParams:(MTRDoorLockClusterSetWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getWeekDayScheduleWithParams:(CHIPDoorLockClusterGetWeekDayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable data, +- (void)getWeekDayScheduleWithParams:(MTRDoorLockClusterGetWeekDayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearWeekDayScheduleWithParams:(CHIPDoorLockClusterClearWeekDayScheduleParams *)params +- (void)clearWeekDayScheduleWithParams:(MTRDoorLockClusterClearWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setYearDayScheduleWithParams:(CHIPDoorLockClusterSetYearDayScheduleParams *)params +- (void)setYearDayScheduleWithParams:(MTRDoorLockClusterSetYearDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getYearDayScheduleWithParams:(CHIPDoorLockClusterGetYearDayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable data, +- (void)getYearDayScheduleWithParams:(MTRDoorLockClusterGetYearDayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearYearDayScheduleWithParams:(CHIPDoorLockClusterClearYearDayScheduleParams *)params +- (void)clearYearDayScheduleWithParams:(MTRDoorLockClusterClearYearDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setHolidayScheduleWithParams:(CHIPDoorLockClusterSetHolidayScheduleParams *)params +- (void)setHolidayScheduleWithParams:(MTRDoorLockClusterSetHolidayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getHolidayScheduleWithParams:(CHIPDoorLockClusterGetHolidayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable data, +- (void)getHolidayScheduleWithParams:(MTRDoorLockClusterGetHolidayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearHolidayScheduleWithParams:(CHIPDoorLockClusterClearHolidayScheduleParams *)params +- (void)clearHolidayScheduleWithParams:(MTRDoorLockClusterClearHolidayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params +- (void)setUserWithParams:(MTRDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)getUserWithParams:(MTRDoorLockClusterGetUserParams *)params completionHandler: - (void (^)(CHIPDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearUserWithParams:(CHIPDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setCredentialWithParams:(CHIPDoorLockClusterSetCredentialParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable data, + (void (^)(MTRDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)clearUserWithParams:(MTRDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)setCredentialWithParams:(MTRDoorLockClusterSetCredentialParams *)params + completionHandler:(void (^)(MTRDoorLockClusterSetCredentialResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)getCredentialStatusWithParams:(CHIPDoorLockClusterGetCredentialStatusParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable data, +- (void)getCredentialStatusWithParams:(MTRDoorLockClusterGetCredentialStatusParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearCredentialWithParams:(CHIPDoorLockClusterClearCredentialParams *)params +- (void)clearCredentialWithParams:(MTRDoorLockClusterClearCredentialParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeLockStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLockStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLockStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLockStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8737,14 +8733,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLockTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLockTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLockTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8753,15 +8749,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActuatorEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActuatorEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActuatorEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8771,14 +8767,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDoorStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDoorStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -8787,19 +8783,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeDoorOpenEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDoorOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDoorOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDoorOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8809,19 +8805,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeDoorClosedEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDoorClosedEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDoorClosedEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDoorClosedEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorClosedEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8831,18 +8827,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOpenPeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOpenPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOpenPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOpenPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOpenPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8852,16 +8848,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfTotalUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfTotalUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfTotalUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8871,16 +8867,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfPINUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfPINUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPINUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8890,16 +8886,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfRFIDUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfRFIDUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfRFIDUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8909,17 +8905,17 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8929,17 +8925,17 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfYearDaySchedulesSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributeNumberOfYearDaySchedulesSupportedPerUserWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8949,16 +8945,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfHolidaySchedulesSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfHolidaySchedulesSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfHolidaySchedulesSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -8968,15 +8964,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxPINCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxPINCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxPINCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -8986,15 +8982,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinPINCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinPINCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinPINCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9004,15 +9000,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxRFIDCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxRFIDCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxRFIDCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9022,15 +9018,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinRFIDCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinRFIDCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinRFIDCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9040,16 +9036,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCredentialRulesSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCredentialRulesSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCredentialRulesSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9059,16 +9055,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfCredentialsSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfCredentialsSupportedPerUserWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfCredentialsSupportedPerUserWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9078,18 +9074,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLanguageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLanguageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLanguageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler; @@ -9098,18 +9094,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeLEDSettingsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLEDSettingsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLEDSettingsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLEDSettingsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLEDSettingsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9119,19 +9115,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeAutoRelockTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeAutoRelockTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAutoRelockTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAutoRelockTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAutoRelockTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9141,18 +9137,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeSoundVolumeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSoundVolumeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSoundVolumeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSoundVolumeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoundVolumeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9162,19 +9158,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOperatingModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOperatingModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOperatingModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOperatingModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperatingModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9184,16 +9180,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedOperatingModesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedOperatingModesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedOperatingModesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9203,16 +9199,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDefaultConfigurationRegisterWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDefaultConfigurationRegisterWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultConfigurationRegisterWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9223,20 +9219,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeEnableLocalProgrammingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnableLocalProgrammingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnableLocalProgrammingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnableLocalProgrammingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableLocalProgrammingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9247,20 +9243,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeEnableOneTouchLockingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnableOneTouchLockingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnableOneTouchLockingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnableOneTouchLockingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableOneTouchLockingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9271,20 +9267,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeEnableInsideStatusLEDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnableInsideStatusLEDWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnableInsideStatusLEDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnableInsideStatusLEDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableInsideStatusLEDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9295,20 +9291,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeEnablePrivacyModeButtonWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnablePrivacyModeButtonWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnablePrivacyModeButtonWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnablePrivacyModeButtonWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnablePrivacyModeButtonWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9319,20 +9315,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeLocalProgrammingFeaturesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLocalProgrammingFeaturesWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocalProgrammingFeaturesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocalProgrammingFeaturesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalProgrammingFeaturesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9342,20 +9338,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeWrongCodeEntryLimitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeWrongCodeEntryLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWrongCodeEntryLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWrongCodeEntryLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWrongCodeEntryLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9366,20 +9362,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUserCodeTemporaryDisableTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUserCodeTemporaryDisableTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUserCodeTemporaryDisableTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUserCodeTemporaryDisableTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUserCodeTemporaryDisableTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9389,19 +9385,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeSendPINOverTheAirWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSendPINOverTheAirWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSendPINOverTheAirWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSendPINOverTheAirWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSendPINOverTheAirWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9412,20 +9408,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRequirePINforRemoteOperationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRequirePINforRemoteOperationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRequirePINforRemoteOperationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRequirePINforRemoteOperationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRequirePINforRemoteOperationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9435,20 +9431,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeExpiringUserTimeoutWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeExpiringUserTimeoutWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeExpiringUserTimeoutWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeExpiringUserTimeoutWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExpiringUserTimeoutWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9458,16 +9454,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9477,16 +9473,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9496,15 +9492,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9514,14 +9510,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9531,15 +9527,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9551,37 +9547,37 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Window Covering * */ -@interface CHIPWindowCovering : CHIPCluster +@interface MTRWindowCovering : MTRCluster -- (void)upOrOpenWithParams:(CHIPWindowCoveringClusterUpOrOpenParams * _Nullable)params +- (void)upOrOpenWithParams:(MTRWindowCoveringClusterUpOrOpenParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)upOrOpenWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)downOrCloseWithParams:(CHIPWindowCoveringClusterDownOrCloseParams * _Nullable)params +- (void)downOrCloseWithParams:(MTRWindowCoveringClusterDownOrCloseParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)downOrCloseWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)stopMotionWithParams:(CHIPWindowCoveringClusterStopMotionParams * _Nullable)params +- (void)stopMotionWithParams:(MTRWindowCoveringClusterStopMotionParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)stopMotionWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)goToLiftValueWithParams:(CHIPWindowCoveringClusterGoToLiftValueParams *)params +- (void)goToLiftValueWithParams:(MTRWindowCoveringClusterGoToLiftValueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)goToLiftPercentageWithParams:(CHIPWindowCoveringClusterGoToLiftPercentageParams *)params +- (void)goToLiftPercentageWithParams:(MTRWindowCoveringClusterGoToLiftPercentageParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)goToTiltValueWithParams:(CHIPWindowCoveringClusterGoToTiltValueParams *)params +- (void)goToTiltValueWithParams:(MTRWindowCoveringClusterGoToTiltValueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)goToTiltPercentageWithParams:(CHIPWindowCoveringClusterGoToTiltPercentageParams *)params +- (void)goToTiltPercentageWithParams:(MTRWindowCoveringClusterGoToTiltPercentageParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -9590,16 +9586,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhysicalClosedLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePhysicalClosedLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhysicalClosedLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9609,16 +9605,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhysicalClosedLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePhysicalClosedLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhysicalClosedLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9628,16 +9624,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9647,16 +9643,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9666,16 +9662,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfActuationsLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfActuationsLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfActuationsLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9685,16 +9681,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfActuationsTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfActuationsTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfActuationsTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9704,15 +9700,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeConfigStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeConfigStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeConfigStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9722,16 +9718,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionLiftPercentageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionLiftPercentageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftPercentageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9741,16 +9737,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionTiltPercentageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionTiltPercentageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltPercentageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9760,15 +9756,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOperationalStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOperationalStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperationalStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9778,16 +9774,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTargetPositionLiftPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTargetPositionLiftPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetPositionLiftPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9797,16 +9793,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTargetPositionTiltPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTargetPositionTiltPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetPositionTiltPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9816,15 +9812,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEndProductTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEndProductTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEndProductTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9834,16 +9830,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionLiftPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionLiftPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9853,16 +9849,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentPositionTiltPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentPositionTiltPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9872,16 +9868,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstalledOpenLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstalledOpenLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledOpenLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9891,16 +9887,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstalledClosedLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstalledClosedLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledClosedLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9910,16 +9906,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstalledOpenLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstalledOpenLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledOpenLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9929,16 +9925,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstalledClosedLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstalledClosedLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledClosedLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -9947,18 +9943,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -9967,15 +9963,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSafetyStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSafetyStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSafetyStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -9985,16 +9981,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10004,16 +10000,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10023,15 +10019,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10041,14 +10037,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10058,15 +10054,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10078,11 +10074,11 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Barrier Control * */ -@interface CHIPBarrierControl : CHIPCluster +@interface MTRBarrierControl : MTRCluster -- (void)barrierControlGoToPercentWithParams:(CHIPBarrierControlClusterBarrierControlGoToPercentParams *)params +- (void)barrierControlGoToPercentWithParams:(MTRBarrierControlClusterBarrierControlGoToPercentParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)barrierControlStopWithParams:(CHIPBarrierControlClusterBarrierControlStopParams * _Nullable)params +- (void)barrierControlStopWithParams:(MTRBarrierControlClusterBarrierControlStopParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)barrierControlStopWithCompletionHandler:(StatusCompletion)completionHandler; @@ -10090,15 +10086,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierMovingStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierMovingStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierMovingStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10108,16 +10104,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierSafetyStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierSafetyStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierSafetyStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10127,16 +10123,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierCapabilitiesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierCapabilitiesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCapabilitiesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10146,19 +10142,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeBarrierOpenEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10168,19 +10164,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeBarrierCloseEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierCloseEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierCloseEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierCloseEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCloseEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10191,20 +10187,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeBarrierCommandOpenEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierCommandOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierCommandOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierCommandOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCommandOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -10215,20 +10211,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeBarrierCommandCloseEventsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierCommandCloseEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierCommandCloseEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierCommandCloseEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCommandCloseEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -10238,19 +10234,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeBarrierOpenPeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierOpenPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierOpenPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierOpenPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierOpenPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10260,19 +10256,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeBarrierClosePeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBarrierClosePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierClosePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierClosePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierClosePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10282,15 +10278,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBarrierPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBarrierPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10300,16 +10296,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10319,16 +10315,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10338,15 +10334,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10356,14 +10352,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10373,15 +10369,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10393,20 +10389,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Pump Configuration and Control * */ -@interface CHIPPumpConfigurationAndControl : CHIPCluster +@interface MTRPumpConfigurationAndControl : MTRCluster - (void)readAttributeMaxPressureWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10416,14 +10412,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10432,14 +10428,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10448,15 +10444,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinConstPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinConstPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10466,15 +10462,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxConstPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxConstPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10484,15 +10480,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinCompPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinCompPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinCompPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10502,15 +10498,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxCompPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxCompPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxCompPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10520,15 +10516,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinConstSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinConstSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10538,15 +10534,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxConstSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxConstSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10556,15 +10552,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinConstFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinConstFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10574,15 +10570,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxConstFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxConstFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10592,15 +10588,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinConstTempWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinConstTempWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstTempWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10610,15 +10606,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxConstTempWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxConstTempWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstTempWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10628,14 +10624,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePumpStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePumpStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePumpStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10645,16 +10641,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEffectiveOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEffectiveOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEffectiveOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10664,16 +10660,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEffectiveControlModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEffectiveControlModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEffectiveControlModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10683,14 +10679,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10698,14 +10694,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeSpeedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10715,20 +10711,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeLifetimeRunningHoursWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLifetimeRunningHoursWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLifetimeRunningHoursWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLifetimeRunningHoursWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLifetimeRunningHoursWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10737,14 +10733,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributePowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10754,20 +10750,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeLifetimeEnergyConsumedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLifetimeEnergyConsumedWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLifetimeEnergyConsumedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLifetimeEnergyConsumedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLifetimeEnergyConsumedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10777,19 +10773,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOperationModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOperationModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10799,18 +10795,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeControlModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeControlModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeControlModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeControlModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeControlModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10820,16 +10816,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10839,16 +10835,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10858,15 +10854,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10876,14 +10872,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10893,15 +10889,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10913,16 +10909,16 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thermostat * */ -@interface CHIPThermostat : CHIPCluster +@interface MTRThermostat : MTRCluster -- (void)setpointRaiseLowerWithParams:(CHIPThermostatClusterSetpointRaiseLowerParams *)params +- (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setWeeklyScheduleWithParams:(CHIPThermostatClusterSetWeeklyScheduleParams *)params +- (void)setWeeklyScheduleWithParams:(MTRThermostatClusterSetWeeklyScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getWeeklyScheduleWithParams:(CHIPThermostatClusterGetWeeklyScheduleParams *)params - completionHandler:(void (^)(CHIPThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, +- (void)getWeeklyScheduleWithParams:(MTRThermostatClusterGetWeeklyScheduleParams *)params + completionHandler:(void (^)(MTRThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearWeeklyScheduleWithParams:(CHIPThermostatClusterClearWeeklyScheduleParams * _Nullable)params +- (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklyScheduleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)clearWeeklyScheduleWithCompletionHandler:(StatusCompletion)completionHandler; @@ -10930,15 +10926,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocalTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocalTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10948,15 +10944,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOutdoorTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOutdoorTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutdoorTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -10966,14 +10962,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupancyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupancyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -10982,16 +10978,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAbsMinHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAbsMinHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMinHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11001,16 +10997,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAbsMaxHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAbsMaxHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMaxHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11020,16 +11016,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAbsMinCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAbsMinCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMinCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11039,16 +11035,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAbsMaxCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAbsMaxCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMaxCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11058,15 +11054,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePICoolingDemandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePICoolingDemandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePICoolingDemandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11076,15 +11072,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePIHeatingDemandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePIHeatingDemandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePIHeatingDemandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11095,20 +11091,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHVACSystemTypeConfigurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11119,20 +11115,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLocalTemperatureCalibrationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLocalTemperatureCalibrationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalTemperatureCalibrationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11143,20 +11139,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeOccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupiedCoolingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupiedCoolingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedCoolingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11167,20 +11163,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeOccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupiedHeatingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupiedHeatingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedHeatingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11191,20 +11187,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUnoccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUnoccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnoccupiedCoolingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnoccupiedCoolingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedCoolingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11215,20 +11211,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUnoccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUnoccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnoccupiedHeatingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnoccupiedHeatingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedHeatingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11239,20 +11235,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11263,20 +11259,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11287,20 +11283,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11311,20 +11307,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11334,20 +11330,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeMinSetpointDeadBandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeMinSetpointDeadBandWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinSetpointDeadBandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinSetpointDeadBandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinSetpointDeadBandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11357,19 +11353,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRemoteSensingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRemoteSensingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemoteSensingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11380,20 +11376,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeControlSequenceOfOperationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeControlSequenceOfOperationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeControlSequenceOfOperationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeControlSequenceOfOperationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeControlSequenceOfOperationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11403,18 +11399,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeSystemModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSystemModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSystemModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSystemModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSystemModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11424,16 +11420,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeThermostatRunningModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeThermostatRunningModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatRunningModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11443,14 +11439,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartOfWeekWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartOfWeekWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartOfWeekWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11460,16 +11456,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfWeeklyTransitionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfWeeklyTransitionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfWeeklyTransitionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11479,16 +11475,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfDailyTransitionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfDailyTransitionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfDailyTransitionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11499,20 +11495,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeTemperatureSetpointHoldWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeTemperatureSetpointHoldWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTemperatureSetpointHoldWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTemperatureSetpointHoldWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureSetpointHoldWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11523,20 +11519,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeTemperatureSetpointHoldDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeTemperatureSetpointHoldDurationWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTemperatureSetpointHoldDurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTemperatureSetpointHoldDurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureSetpointHoldDurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11547,20 +11543,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeThermostatProgrammingOperationModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeThermostatProgrammingOperationModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeThermostatProgrammingOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeThermostatProgrammingOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatProgrammingOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11570,16 +11566,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeThermostatRunningStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeThermostatRunningStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatRunningStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11589,16 +11585,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSetpointChangeSourceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSetpointChangeSourceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeSourceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11608,16 +11604,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSetpointChangeAmountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSetpointChangeAmountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeAmountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11627,16 +11623,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSetpointChangeSourceTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSetpointChangeSourceTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeSourceTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -11646,19 +11642,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOccupiedSetbackWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOccupiedSetbackWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupiedSetbackWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupiedSetbackWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11668,15 +11664,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupiedSetbackMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupiedSetbackMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11686,15 +11682,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupiedSetbackMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupiedSetbackMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11704,19 +11700,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeUnoccupiedSetbackWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUnoccupiedSetbackWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnoccupiedSetbackWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnoccupiedSetbackWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11726,16 +11722,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnoccupiedSetbackMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnoccupiedSetbackMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11745,16 +11741,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnoccupiedSetbackMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnoccupiedSetbackMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11764,19 +11760,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeEmergencyHeatDeltaWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEmergencyHeatDeltaWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEmergencyHeatDeltaWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEmergencyHeatDeltaWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEmergencyHeatDeltaWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11785,18 +11781,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeACTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeACTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -11805,18 +11801,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeACCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACCapacityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11826,19 +11822,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACRefrigerantTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACRefrigerantTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACRefrigerantTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11848,19 +11844,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACCompressorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACCompressorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCompressorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11870,18 +11866,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACErrorCodeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACErrorCodeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACErrorCodeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11891,19 +11887,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACLouverPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACLouverPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACLouverPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11913,15 +11909,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACCoilTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACCoilTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCoilTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11931,19 +11927,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeACCapacityformatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeACCapacityformatWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCapacityformatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11953,16 +11949,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11972,16 +11968,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -11991,15 +11987,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12009,14 +12005,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12026,15 +12022,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12046,24 +12042,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Fan Control * */ -@interface CHIPFanControl : CHIPCluster +@interface MTRFanControl : MTRCluster - (void)readAttributeFanModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeFanModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeFanModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFanModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFanModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFanModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12072,19 +12068,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeFanModeSequenceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeFanModeSequenceWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFanModeSequenceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFanModeSequenceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFanModeSequenceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12094,19 +12090,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributePercentSettingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePercentSettingWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePercentSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePercentSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePercentSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12116,15 +12112,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePercentCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePercentCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePercentCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12134,14 +12130,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSpeedMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSpeedMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12150,19 +12146,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeSpeedSettingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSpeedSettingWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSpeedSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSpeedSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12172,15 +12168,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSpeedCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSpeedCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12190,14 +12186,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRockSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRockSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRockSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12207,18 +12203,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeRockSettingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRockSettingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRockSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRockSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRockSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12228,14 +12224,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWindSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWindSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12245,18 +12241,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeWindSettingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeWindSettingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWindSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWindSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12266,16 +12262,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12285,16 +12281,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12304,15 +12300,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12322,14 +12318,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12339,15 +12335,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12359,27 +12355,27 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thermostat User Interface Configuration * */ -@interface CHIPThermostatUserInterfaceConfiguration : CHIPCluster +@interface MTRThermostatUserInterfaceConfiguration : MTRCluster - (void)readAttributeTemperatureDisplayModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeTemperatureDisplayModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeTemperatureDisplayModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTemperatureDisplayModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTemperatureDisplayModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureDisplayModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12389,19 +12385,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeKeypadLockoutWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeKeypadLockoutWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeKeypadLockoutWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeKeypadLockoutWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeKeypadLockoutWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12412,20 +12408,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeScheduleProgrammingVisibilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeScheduleProgrammingVisibilityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeScheduleProgrammingVisibilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeScheduleProgrammingVisibilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScheduleProgrammingVisibilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -12435,16 +12431,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12454,16 +12450,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12473,15 +12469,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12491,14 +12487,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12508,15 +12504,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12528,54 +12524,54 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Color Control * */ -@interface CHIPColorControl : CHIPCluster +@interface MTRColorControl : MTRCluster -- (void)moveToHueWithParams:(CHIPColorControlClusterMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveHueWithParams:(CHIPColorControlClusterMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepHueWithParams:(CHIPColorControlClusterStepHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveToSaturationWithParams:(CHIPColorControlClusterMoveToSaturationParams *)params +- (void)moveToHueWithParams:(MTRColorControlClusterMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)moveHueWithParams:(MTRColorControlClusterMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)stepHueWithParams:(MTRColorControlClusterStepHueParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)moveToSaturationWithParams:(MTRColorControlClusterMoveToSaturationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveSaturationWithParams:(CHIPColorControlClusterMoveSaturationParams *)params +- (void)moveSaturationWithParams:(MTRColorControlClusterMoveSaturationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepSaturationWithParams:(CHIPColorControlClusterStepSaturationParams *)params +- (void)stepSaturationWithParams:(MTRColorControlClusterStepSaturationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveToHueAndSaturationWithParams:(CHIPColorControlClusterMoveToHueAndSaturationParams *)params +- (void)moveToHueAndSaturationWithParams:(MTRColorControlClusterMoveToHueAndSaturationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveToColorWithParams:(CHIPColorControlClusterMoveToColorParams *)params +- (void)moveToColorWithParams:(MTRColorControlClusterMoveToColorParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveColorWithParams:(CHIPColorControlClusterMoveColorParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepColorWithParams:(CHIPColorControlClusterStepColorParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveToColorTemperatureWithParams:(CHIPColorControlClusterMoveToColorTemperatureParams *)params +- (void)moveColorWithParams:(MTRColorControlClusterMoveColorParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)stepColorWithParams:(MTRColorControlClusterStepColorParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)moveToColorTemperatureWithParams:(MTRColorControlClusterMoveToColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enhancedMoveToHueWithParams:(CHIPColorControlClusterEnhancedMoveToHueParams *)params +- (void)enhancedMoveToHueWithParams:(MTRColorControlClusterEnhancedMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enhancedMoveHueWithParams:(CHIPColorControlClusterEnhancedMoveHueParams *)params +- (void)enhancedMoveHueWithParams:(MTRColorControlClusterEnhancedMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enhancedStepHueWithParams:(CHIPColorControlClusterEnhancedStepHueParams *)params +- (void)enhancedStepHueWithParams:(MTRColorControlClusterEnhancedStepHueParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)enhancedMoveToHueAndSaturationWithParams:(CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams *)params +- (void)enhancedMoveToHueAndSaturationWithParams:(MTRColorControlClusterEnhancedMoveToHueAndSaturationParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)colorLoopSetWithParams:(CHIPColorControlClusterColorLoopSetParams *)params +- (void)colorLoopSetWithParams:(MTRColorControlClusterColorLoopSetParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stopMoveStepWithParams:(CHIPColorControlClusterStopMoveStepParams *)params +- (void)stopMoveStepWithParams:(MTRColorControlClusterStopMoveStepParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)moveColorTemperatureWithParams:(CHIPColorControlClusterMoveColorTemperatureParams *)params +- (void)moveColorTemperatureWithParams:(MTRColorControlClusterMoveColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)stepColorTemperatureWithParams:(CHIPColorControlClusterStepColorTemperatureParams *)params +- (void)stepColorTemperatureWithParams:(MTRColorControlClusterStepColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeCurrentHueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12585,15 +12581,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentSaturationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentSaturationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentSaturationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12603,15 +12599,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRemainingTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRemainingTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemainingTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12621,14 +12617,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12637,14 +12633,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12653,15 +12649,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDriftCompensationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDriftCompensationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDriftCompensationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12671,15 +12667,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCompensationTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCompensationTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCompensationTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12689,15 +12685,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12707,14 +12703,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12723,18 +12719,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOptionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOptionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOptionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12743,15 +12739,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNumberOfPrimariesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfPrimariesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPrimariesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12761,14 +12757,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary1XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary1XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12777,14 +12773,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary1YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary1YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12793,15 +12789,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary1IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary1IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12811,14 +12807,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary2XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary2XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12827,14 +12823,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary2YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary2YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12843,15 +12839,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary2IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary2IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12861,14 +12857,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary3XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary3XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12877,14 +12873,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary3YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary3YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12893,15 +12889,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary3IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary3IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12911,14 +12907,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary4XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary4XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12927,14 +12923,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary4YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary4YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12943,15 +12939,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary4IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary4IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -12961,14 +12957,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary5XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary5XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12977,14 +12973,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary5YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary5YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -12993,15 +12989,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary5IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary5IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13011,14 +13007,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary6XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary6XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -13027,14 +13023,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary6YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary6YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -13043,15 +13039,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePrimary6IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePrimary6IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13061,18 +13057,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeWhitePointXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeWhitePointXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWhitePointXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWhitePointXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWhitePointXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13082,18 +13078,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeWhitePointYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeWhitePointYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeWhitePointYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeWhitePointYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWhitePointYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13103,19 +13099,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointRXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointRXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointRXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointRXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13125,19 +13121,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointRYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointRYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointRYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointRYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13148,20 +13144,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeColorPointRIntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointRIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointRIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointRIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13171,19 +13167,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointGXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointGXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointGXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointGXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13193,19 +13189,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointGYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointGYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointGYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointGYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13216,20 +13212,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeColorPointGIntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointGIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointGIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointGIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13239,19 +13235,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointBXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointBXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointBXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointBXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13261,19 +13257,19 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeColorPointBYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointBYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointBYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointBYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13284,20 +13280,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeColorPointBIntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeColorPointBIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorPointBIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorPointBIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13307,15 +13303,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnhancedCurrentHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnhancedCurrentHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnhancedCurrentHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13325,15 +13321,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnhancedColorModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnhancedColorModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnhancedColorModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13343,15 +13339,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorLoopActiveWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorLoopActiveWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopActiveWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13361,15 +13357,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorLoopDirectionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorLoopDirectionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopDirectionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13379,15 +13375,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorLoopTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorLoopTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13397,16 +13393,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorLoopStartEnhancedHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorLoopStartEnhancedHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopStartEnhancedHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13416,16 +13412,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorLoopStoredEnhancedHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorLoopStoredEnhancedHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopStoredEnhancedHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13435,15 +13431,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorCapabilitiesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorCapabilitiesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorCapabilitiesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13453,16 +13449,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorTempPhysicalMinMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorTempPhysicalMinMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTempPhysicalMinMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13472,16 +13468,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeColorTempPhysicalMaxMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeColorTempPhysicalMaxMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTempPhysicalMaxMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13491,16 +13487,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCoupleColorTempToLevelMinMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCoupleColorTempToLevelMinMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCoupleColorTempToLevelMinMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13511,20 +13507,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeStartUpColorTemperatureMiredsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeStartUpColorTemperatureMiredsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartUpColorTemperatureMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartUpColorTemperatureMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpColorTemperatureMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -13534,16 +13530,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13553,16 +13549,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13572,15 +13568,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13590,14 +13586,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13607,15 +13603,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13627,21 +13623,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Illuminance Measurement * */ -@interface CHIPIlluminanceMeasurement : CHIPCluster +@interface MTRIlluminanceMeasurement : MTRCluster - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13651,15 +13647,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13669,15 +13665,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13687,14 +13683,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -13703,15 +13699,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLightSensorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLightSensorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLightSensorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13721,16 +13717,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13740,16 +13736,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13759,15 +13755,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13777,14 +13773,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13794,15 +13790,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13814,21 +13810,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Temperature Measurement * */ -@interface CHIPTemperatureMeasurement : CHIPCluster +@interface MTRTemperatureMeasurement : MTRCluster - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13838,15 +13834,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13856,15 +13852,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13874,14 +13870,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -13890,16 +13886,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13909,16 +13905,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13928,15 +13924,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13946,14 +13942,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13963,15 +13959,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -13983,21 +13979,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Pressure Measurement * */ -@interface CHIPPressureMeasurement : CHIPCluster +@interface MTRPressureMeasurement : MTRCluster - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14007,15 +14003,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14025,15 +14021,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14043,14 +14039,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -14059,14 +14055,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14076,15 +14072,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14094,15 +14090,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14112,15 +14108,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeScaledToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeScaledToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaledToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14129,14 +14125,14 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeScaleWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeScaleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeScaleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -14145,16 +14141,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14164,16 +14160,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14183,15 +14179,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14201,14 +14197,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14218,15 +14214,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14238,21 +14234,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Flow Measurement * */ -@interface CHIPFlowMeasurement : CHIPCluster +@interface MTRFlowMeasurement : MTRCluster - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14262,15 +14258,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14280,15 +14276,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14298,14 +14294,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -14314,16 +14310,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14333,16 +14329,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14352,15 +14348,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14370,14 +14366,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14387,15 +14383,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14407,21 +14403,21 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Relative Humidity Measurement * */ -@interface CHIPRelativeHumidityMeasurement : CHIPCluster +@interface MTRRelativeHumidityMeasurement : MTRCluster - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14431,15 +14427,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14449,15 +14445,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14467,14 +14463,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -14483,16 +14479,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14502,16 +14498,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14521,15 +14517,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14539,14 +14535,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14556,15 +14552,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14576,20 +14572,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Occupancy Sensing * */ -@interface CHIPOccupancySensing : CHIPCluster +@interface MTROccupancySensing : MTRCluster - (void)readAttributeOccupancyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupancyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupancyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -14598,16 +14594,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupancySensorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupancySensorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancySensorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14617,16 +14613,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOccupancySensorTypeBitmapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOccupancySensorTypeBitmapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancySensorTypeBitmapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14637,20 +14633,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePirOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePirOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePirOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePirOccupiedToUnoccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirOccupiedToUnoccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14661,20 +14657,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePirUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePirUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePirUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePirUnoccupiedToOccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirUnoccupiedToOccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14685,20 +14681,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePirUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePirUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePirUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePirUnoccupiedToOccupiedThresholdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirUnoccupiedToOccupiedThresholdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14709,20 +14705,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUltrasonicOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUltrasonicOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUltrasonicOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUltrasonicOccupiedToUnoccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicOccupiedToUnoccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14733,20 +14729,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUltrasonicUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUltrasonicUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUltrasonicUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUltrasonicUnoccupiedToOccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicUnoccupiedToOccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14757,21 +14753,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14782,21 +14777,21 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePhysicalContactOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePhysicalContactOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhysicalContactOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributePhysicalContactOccupiedToUnoccupiedDelayWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14807,21 +14802,21 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePhysicalContactUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePhysicalContactUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhysicalContactUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributePhysicalContactUnoccupiedToOccupiedDelayWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -14832,21 +14827,21 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14857,16 +14852,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14876,16 +14871,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14895,15 +14890,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14913,14 +14908,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14930,15 +14925,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14950,20 +14945,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Wake on LAN * */ -@interface CHIPWakeOnLan : CHIPCluster +@interface MTRWakeOnLan : MTRCluster - (void)readAttributeMACAddressWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMACAddressWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMACAddressWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMACAddressWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14973,16 +14968,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -14992,16 +14987,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15011,15 +15006,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15029,14 +15024,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15046,15 +15041,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15066,82 +15061,82 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Channel * */ -@interface CHIPChannel : CHIPCluster +@interface MTRChannel : MTRCluster -- (void)changeChannelWithParams:(CHIPChannelClusterChangeChannelParams *)params - completionHandler:(void (^)(CHIPChannelClusterChangeChannelResponseParams * _Nullable data, +- (void)changeChannelWithParams:(MTRChannelClusterChangeChannelParams *)params + completionHandler:(void (^)(MTRChannelClusterChangeChannelResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)changeChannelByNumberWithParams:(CHIPChannelClusterChangeChannelByNumberParams *)params +- (void)changeChannelByNumberWithParams:(MTRChannelClusterChangeChannelByNumberParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)skipChannelWithParams:(CHIPChannelClusterSkipChannelParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)skipChannelWithParams:(MTRChannelClusterSkipChannelParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeChannelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeChannelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeChannelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeLineupWithCompletionHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, +- (void)readAttributeLineupWithCompletionHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLineupWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, + reportHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLineupWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineupWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, + completionHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeCurrentChannelWithCompletionHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, +- (void)readAttributeCurrentChannelWithCompletionHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentChannelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, + reportHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentChannelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentChannelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, + completionHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15151,16 +15146,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15170,15 +15165,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15188,14 +15183,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15205,15 +15200,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15225,24 +15220,24 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Target Navigator * */ -@interface CHIPTargetNavigator : CHIPCluster +@interface MTRTargetNavigator : MTRCluster -- (void)navigateTargetWithParams:(CHIPTargetNavigatorClusterNavigateTargetParams *)params - completionHandler:(void (^)(CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, +- (void)navigateTargetWithParams:(MTRTargetNavigatorClusterNavigateTargetParams *)params + completionHandler:(void (^)(MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeTargetListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTargetListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTargetListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -15251,15 +15246,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentTargetWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentTargetWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentTargetWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15269,16 +15264,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15288,16 +15283,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15307,15 +15302,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15325,14 +15320,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15342,15 +15337,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15362,71 +15357,71 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Media Playback * */ -@interface CHIPMediaPlayback : CHIPCluster +@interface MTRMediaPlayback : MTRCluster -- (void)playWithParams:(CHIPMediaPlaybackClusterPlayParams * _Nullable)params +- (void)playWithParams:(MTRMediaPlaybackClusterPlayParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)playWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)playWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)pauseWithParams:(CHIPMediaPlaybackClusterPauseParams * _Nullable)params +- (void)pauseWithParams:(MTRMediaPlaybackClusterPauseParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)pauseWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)pauseWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)stopPlaybackWithParams:(CHIPMediaPlaybackClusterStopPlaybackParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)stopPlaybackWithParams:(MTRMediaPlaybackClusterStopPlaybackParams * _Nullable)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)stopPlaybackWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)stopPlaybackWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)startOverWithParams:(CHIPMediaPlaybackClusterStartOverParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)startOverWithParams:(MTRMediaPlaybackClusterStartOverParams * _Nullable)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)startOverWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)startOverWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)previousWithParams:(CHIPMediaPlaybackClusterPreviousParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; -- (void)previousWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)previousWithParams:(MTRMediaPlaybackClusterPreviousParams * _Nullable)params + completionHandler: + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)previousWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)nextWithParams:(CHIPMediaPlaybackClusterNextParams * _Nullable)params +- (void)nextWithParams:(MTRMediaPlaybackClusterNextParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)nextWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)nextWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)rewindWithParams:(CHIPMediaPlaybackClusterRewindParams * _Nullable)params +- (void)rewindWithParams:(MTRMediaPlaybackClusterRewindParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)rewindWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; +- (void)rewindWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)fastForwardWithParams:(CHIPMediaPlaybackClusterFastForwardParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)fastForwardWithParams:(MTRMediaPlaybackClusterFastForwardParams * _Nullable)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)fastForwardWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)fastForwardWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)skipForwardWithParams:(CHIPMediaPlaybackClusterSkipForwardParams *)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)skipForwardWithParams:(MTRMediaPlaybackClusterSkipForwardParams *)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)skipBackwardWithParams:(CHIPMediaPlaybackClusterSkipBackwardParams *)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)skipBackwardWithParams:(MTRMediaPlaybackClusterSkipBackwardParams *)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)seekWithParams:(CHIPMediaPlaybackClusterSeekParams *)params +- (void)seekWithParams:(MTRMediaPlaybackClusterSeekParams *)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeCurrentStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15436,14 +15431,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStartTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStartTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -15452,49 +15447,49 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeSampledPositionWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, +- (void)readAttributeSampledPositionWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSampledPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, + reportHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSampledPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSampledPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributePlaybackSpeedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePlaybackSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePlaybackSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePlaybackSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15504,15 +15499,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSeekRangeEndWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSeekRangeEndWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSeekRangeEndWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15522,15 +15517,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSeekRangeStartWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSeekRangeStartWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSeekRangeStartWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15540,16 +15535,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15559,16 +15554,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15578,15 +15573,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15596,14 +15591,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15613,15 +15608,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15633,31 +15628,29 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Media Input * */ -@interface CHIPMediaInput : CHIPCluster +@interface MTRMediaInput : MTRCluster -- (void)selectInputWithParams:(CHIPMediaInputClusterSelectInputParams *)params - completionHandler:(StatusCompletion)completionHandler; -- (void)showInputStatusWithParams:(CHIPMediaInputClusterShowInputStatusParams * _Nullable)params +- (void)selectInputWithParams:(MTRMediaInputClusterSelectInputParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)showInputStatusWithParams:(MTRMediaInputClusterShowInputStatusParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)showInputStatusWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)hideInputStatusWithParams:(CHIPMediaInputClusterHideInputStatusParams * _Nullable)params +- (void)hideInputStatusWithParams:(MTRMediaInputClusterHideInputStatusParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)hideInputStatusWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)renameInputWithParams:(CHIPMediaInputClusterRenameInputParams *)params - completionHandler:(StatusCompletion)completionHandler; +- (void)renameInputWithParams:(MTRMediaInputClusterRenameInputParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeInputListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInputListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInputListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInputListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -15666,15 +15659,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentInputWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentInputWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentInputWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15684,16 +15677,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15703,16 +15696,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15722,15 +15715,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15740,14 +15733,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15757,15 +15750,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15777,25 +15770,25 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Low Power * */ -@interface CHIPLowPower : CHIPCluster +@interface MTRLowPower : MTRCluster -- (void)sleepWithParams:(CHIPLowPowerClusterSleepParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)sleepWithParams:(MTRLowPowerClusterSleepParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)sleepWithCompletionHandler:(StatusCompletion)completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15805,16 +15798,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15824,15 +15817,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15842,14 +15835,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15859,15 +15852,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15879,26 +15872,26 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Keypad Input * */ -@interface CHIPKeypadInput : CHIPCluster +@interface MTRKeypadInput : MTRCluster -- (void)sendKeyWithParams:(CHIPKeypadInputClusterSendKeyParams *)params +- (void)sendKeyWithParams:(MTRKeypadInputClusterSendKeyParams *)params completionHandler: - (void (^)(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; + (void (^)(MTRKeypadInputClusterSendKeyResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15908,16 +15901,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15927,15 +15920,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15945,14 +15938,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15962,15 +15955,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -15982,27 +15975,27 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Content Launcher * */ -@interface CHIPContentLauncher : CHIPCluster +@interface MTRContentLauncher : MTRCluster -- (void)launchContentWithParams:(CHIPContentLauncherClusterLaunchContentParams *)params - completionHandler:(void (^)(CHIPContentLauncherClusterLaunchResponseParams * _Nullable data, +- (void)launchContentWithParams:(MTRContentLauncherClusterLaunchContentParams *)params + completionHandler:(void (^)(MTRContentLauncherClusterLaunchResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)launchURLWithParams:(CHIPContentLauncherClusterLaunchURLParams *)params - completionHandler:(void (^)(CHIPContentLauncherClusterLaunchResponseParams * _Nullable data, +- (void)launchURLWithParams:(MTRContentLauncherClusterLaunchURLParams *)params + completionHandler:(void (^)(MTRContentLauncherClusterLaunchResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeAcceptHeaderWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptHeaderWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptHeaderWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptHeaderWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16013,20 +16006,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeSupportedStreamingProtocolsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeSupportedStreamingProtocolsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeSupportedStreamingProtocolsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeSupportedStreamingProtocolsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedStreamingProtocolsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -16036,16 +16029,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16055,16 +16048,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16074,15 +16067,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16092,14 +16085,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16109,15 +16102,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16129,25 +16122,25 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Audio Output * */ -@interface CHIPAudioOutput : CHIPCluster +@interface MTRAudioOutput : MTRCluster -- (void)selectOutputWithParams:(CHIPAudioOutputClusterSelectOutputParams *)params +- (void)selectOutputWithParams:(MTRAudioOutputClusterSelectOutputParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)renameOutputWithParams:(CHIPAudioOutputClusterRenameOutputParams *)params +- (void)renameOutputWithParams:(MTRAudioOutputClusterRenameOutputParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeOutputListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOutputListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOutputListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutputListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16156,15 +16149,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentOutputWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentOutputWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentOutputWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16174,16 +16167,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16193,16 +16186,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16212,15 +16205,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16230,14 +16223,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16247,15 +16240,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16267,72 +16260,72 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Application Launcher * */ -@interface CHIPApplicationLauncher : CHIPCluster +@interface MTRApplicationLauncher : MTRCluster -- (void)launchAppWithParams:(CHIPApplicationLauncherClusterLaunchAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)launchAppWithParams:(MTRApplicationLauncherClusterLaunchAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)stopAppWithParams:(CHIPApplicationLauncherClusterStopAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)stopAppWithParams:(MTRApplicationLauncherClusterStopAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)hideAppWithParams:(CHIPApplicationLauncherClusterHideAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)hideAppWithParams:(MTRApplicationLauncherClusterHideAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeCatalogListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCatalogListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCatalogListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCatalogListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeCurrentAppWithCompletionHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, +- (void)readAttributeCurrentAppWithCompletionHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)writeAttributeCurrentAppWithValue:(CHIPApplicationLauncherClusterApplicationEP * _Nullable)value +- (void)writeAttributeCurrentAppWithValue:(MTRApplicationLauncherClusterApplicationEP * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentAppWithValue:(CHIPApplicationLauncherClusterApplicationEP * _Nullable)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeCurrentAppWithValue:(MTRApplicationLauncherClusterApplicationEP * _Nullable)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentAppWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, + reportHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentAppWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentAppWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, + completionHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16342,16 +16335,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16361,15 +16354,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16379,14 +16372,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16396,15 +16389,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16416,20 +16409,20 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Application Basic * */ -@interface CHIPApplicationBasic : CHIPCluster +@interface MTRApplicationBasic : MTRCluster - (void)readAttributeVendorNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16439,14 +16432,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16455,15 +16448,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApplicationNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApplicationNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16473,50 +16466,49 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeProductIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeProductIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeApplicationWithCompletionHandler:(void (^)( - CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, - NSError * _Nullable error))completionHandler; +- (void)readAttributeApplicationWithCompletionHandler: + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApplicationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApplicationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: - (void (^)(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16525,15 +16517,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApplicationVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApplicationVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16543,15 +16535,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAllowedVendorListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAllowedVendorListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAllowedVendorListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16561,16 +16553,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16580,16 +16572,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16599,15 +16591,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16617,14 +16609,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16634,15 +16626,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16654,13 +16646,13 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Account Login * */ -@interface CHIPAccountLogin : CHIPCluster +@interface MTRAccountLogin : MTRCluster -- (void)getSetupPINWithParams:(CHIPAccountLoginClusterGetSetupPINParams *)params - completionHandler:(void (^)(CHIPAccountLoginClusterGetSetupPINResponseParams * _Nullable data, +- (void)getSetupPINWithParams:(MTRAccountLoginClusterGetSetupPINParams *)params + completionHandler:(void (^)(MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)loginWithParams:(CHIPAccountLoginClusterLoginParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)logoutWithParams:(CHIPAccountLoginClusterLogoutParams * _Nullable)params +- (void)loginWithParams:(MTRAccountLoginClusterLoginParams *)params completionHandler:(StatusCompletion)completionHandler; +- (void)logoutWithParams:(MTRAccountLoginClusterLogoutParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)logoutWithCompletionHandler:(StatusCompletion)completionHandler; @@ -16668,16 +16660,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16687,16 +16679,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16706,15 +16698,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16724,14 +16716,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16741,15 +16733,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16761,27 +16753,27 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Electrical Measurement * */ -@interface CHIPElectricalMeasurement : CHIPCluster +@interface MTRElectricalMeasurement : MTRCluster -- (void)getProfileInfoCommandWithParams:(CHIPElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params +- (void)getProfileInfoCommandWithParams:(MTRElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)getProfileInfoCommandWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)getMeasurementProfileCommandWithParams:(CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams *)params +- (void)getMeasurementProfileCommandWithParams:(MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeMeasurementTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasurementTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasurementTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasurementTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16791,14 +16783,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16807,15 +16799,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcVoltageMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcVoltageMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16825,15 +16817,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcVoltageMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcVoltageMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16843,14 +16835,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16859,15 +16851,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcCurrentMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcCurrentMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16877,15 +16869,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcCurrentMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcCurrentMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16895,14 +16887,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -16911,14 +16903,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcPowerMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcPowerMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16928,14 +16920,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcPowerMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcPowerMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16945,16 +16937,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcVoltageMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcVoltageMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16964,15 +16956,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcVoltageDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcVoltageDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -16982,16 +16974,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17001,15 +16993,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcCurrentDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcCurrentDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17019,15 +17011,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcPowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcPowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17037,15 +17029,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeDcPowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeDcPowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17055,14 +17047,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17072,15 +17064,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcFrequencyMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcFrequencyMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17090,15 +17082,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcFrequencyMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcFrequencyMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17108,15 +17100,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNeutralCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNeutralCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNeutralCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17126,15 +17118,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTotalActivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTotalActivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalActivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17144,15 +17136,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTotalReactivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTotalReactivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalReactivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17162,15 +17154,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTotalApparentPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTotalApparentPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalApparentPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17180,16 +17172,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured1stHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured1stHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured1stHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17199,16 +17191,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured3rdHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured3rdHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured3rdHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17218,16 +17210,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured5thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured5thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured5thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17237,16 +17229,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured7thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured7thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured7thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17256,16 +17248,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured9thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured9thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured9thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17275,16 +17267,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasured11thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasured11thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured11thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17294,16 +17286,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase1stHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase1stHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase1stHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17313,16 +17305,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase3rdHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase3rdHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase3rdHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17332,16 +17324,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase5thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase5thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase5thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17351,16 +17343,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase7thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase7thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase7thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17370,16 +17362,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase9thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase9thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase9thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17389,16 +17381,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeMeasuredPhase11thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeMeasuredPhase11thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase11thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17408,16 +17400,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcFrequencyMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcFrequencyMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17427,15 +17419,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcFrequencyDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcFrequencyDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17445,15 +17437,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17463,15 +17455,15 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17481,16 +17473,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeHarmonicCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeHarmonicCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHarmonicCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17500,16 +17492,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePhaseHarmonicCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePhaseHarmonicCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhaseHarmonicCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17519,16 +17511,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstantaneousVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstantaneousVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17538,16 +17530,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstantaneousLineCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstantaneousLineCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousLineCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17557,16 +17549,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstantaneousActiveCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstantaneousActiveCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousActiveCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17576,16 +17568,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstantaneousReactiveCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstantaneousReactiveCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousReactiveCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17595,15 +17587,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInstantaneousPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInstantaneousPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17613,14 +17605,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17630,15 +17622,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17648,15 +17640,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17666,14 +17658,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17683,15 +17675,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17701,15 +17693,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17719,14 +17711,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17736,15 +17728,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17754,15 +17746,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17772,15 +17764,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReactivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReactivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17790,15 +17782,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApparentPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApparentPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17808,14 +17800,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerFactorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerFactorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17826,20 +17818,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeAverageRmsVoltageMeasurementPeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeAverageRmsVoltageMeasurementPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsVoltageMeasurementPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsVoltageMeasurementPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17850,20 +17842,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeAverageRmsUnderVoltageCounterWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeAverageRmsUnderVoltageCounterWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsUnderVoltageCounterWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsUnderVoltageCounterWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17874,20 +17866,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRmsExtremeOverVoltagePeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRmsExtremeOverVoltagePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeOverVoltagePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeOverVoltagePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17898,20 +17890,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRmsExtremeUnderVoltagePeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRmsExtremeUnderVoltagePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeUnderVoltagePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -17921,20 +17913,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeRmsVoltageSagPeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRmsVoltageSagPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSagPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSagPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17945,20 +17937,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRmsVoltageSwellPeriodWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRmsVoltageSwellPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSwellPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSwellPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17968,16 +17960,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcVoltageMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcVoltageMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -17987,15 +17979,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcVoltageDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcVoltageDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18005,16 +17997,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18024,15 +18016,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcCurrentDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcCurrentDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18042,15 +18034,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcPowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcPowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcPowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18060,15 +18052,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcPowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcPowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcPowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18078,19 +18070,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOverloadAlarmsMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOverloadAlarmsMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverloadAlarmsMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18100,15 +18092,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVoltageOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVoltageOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVoltageOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18118,15 +18110,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCurrentOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCurrentOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18137,20 +18129,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeAcOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeAcOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcOverloadAlarmsMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcOverloadAlarmsMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcOverloadAlarmsMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18160,15 +18152,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcVoltageOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcVoltageOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18178,15 +18170,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcCurrentOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcCurrentOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18196,16 +18188,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcActivePowerOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcActivePowerOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcActivePowerOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18215,16 +18207,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcReactivePowerOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcReactivePowerOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcReactivePowerOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18234,16 +18226,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsOverVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsOverVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18253,16 +18245,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsUnderVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsUnderVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18272,16 +18264,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeOverVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeOverVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18291,16 +18283,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeUnderVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeUnderVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18310,15 +18302,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSagWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSagWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18328,15 +18320,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSwellWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSwellWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18346,15 +18338,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLineCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLineCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18364,16 +18356,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18383,16 +18375,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReactiveCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReactiveCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactiveCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18402,15 +18394,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltagePhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltagePhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltagePhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18420,16 +18412,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18439,16 +18431,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18458,15 +18450,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18476,16 +18468,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18495,16 +18487,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18514,15 +18506,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18532,16 +18524,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18551,16 +18543,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18570,16 +18562,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReactivePowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReactivePowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18589,16 +18581,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApparentPowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApparentPowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18608,15 +18600,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerFactorPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerFactorPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18626,17 +18618,17 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18646,16 +18638,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsOverVoltageCounterPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsOverVoltageCounterPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageCounterPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18665,16 +18657,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsUnderVoltageCounterPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsUnderVoltageCounterPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18684,16 +18676,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeOverVoltagePeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18703,16 +18695,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18722,16 +18714,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSagPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSagPeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18741,16 +18733,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSwellPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSwellPeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -18760,15 +18752,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLineCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLineCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18778,16 +18770,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActiveCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActiveCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18797,16 +18789,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReactiveCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReactiveCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactiveCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18816,15 +18808,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltagePhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltagePhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltagePhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18834,16 +18826,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18853,16 +18845,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18872,15 +18864,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18890,16 +18882,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18909,16 +18901,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsCurrentMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsCurrentMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18928,15 +18920,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18946,16 +18938,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18965,16 +18957,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeActivePowerMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeActivePowerMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -18984,16 +18976,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeReactivePowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeReactivePowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19003,16 +18995,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeApparentPowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeApparentPowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19022,15 +19014,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributePowerFactorPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributePowerFactorPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19040,17 +19032,17 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; + (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19060,16 +19052,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsOverVoltageCounterPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsOverVoltageCounterPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageCounterPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19079,16 +19071,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAverageRmsUnderVoltageCounterPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAverageRmsUnderVoltageCounterPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19098,16 +19090,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeOverVoltagePeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19117,16 +19109,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19136,16 +19128,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSagPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSagPeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19155,16 +19147,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRmsVoltageSwellPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRmsVoltageSwellPeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -19174,16 +19166,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19193,16 +19185,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19212,15 +19204,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19230,14 +19222,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19247,15 +19239,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19267,97 +19259,96 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Test Cluster * */ -@interface CHIPTestCluster : CHIPCluster +@interface MTRTestCluster : MTRCluster -- (void)testWithParams:(CHIPTestClusterClusterTestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; +- (void)testWithParams:(MTRTestClusterClusterTestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)testWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)testNotHandledWithParams:(CHIPTestClusterClusterTestNotHandledParams * _Nullable)params +- (void)testNotHandledWithParams:(MTRTestClusterClusterTestNotHandledParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)testNotHandledWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)testSpecificWithParams:(CHIPTestClusterClusterTestSpecificParams * _Nullable)params - completionHandler:(void (^)(CHIPTestClusterClusterTestSpecificResponseParams * _Nullable data, +- (void)testSpecificWithParams:(MTRTestClusterClusterTestSpecificParams * _Nullable)params + completionHandler:(void (^)(MTRTestClusterClusterTestSpecificResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testSpecificWithCompletionHandler:(void (^)(CHIPTestClusterClusterTestSpecificResponseParams * _Nullable data, +- (void)testSpecificWithCompletionHandler:(void (^)(MTRTestClusterClusterTestSpecificResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testUnknownCommandWithParams:(CHIPTestClusterClusterTestUnknownCommandParams * _Nullable)params +- (void)testUnknownCommandWithParams:(MTRTestClusterClusterTestUnknownCommandParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)testUnknownCommandWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)testAddArgumentsWithParams:(CHIPTestClusterClusterTestAddArgumentsParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable data, +- (void)testAddArgumentsWithParams:(MTRTestClusterClusterTestAddArgumentsParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testSimpleArgumentRequestWithParams:(CHIPTestClusterClusterTestSimpleArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestSimpleArgumentResponseParams * _Nullable data, +- (void)testSimpleArgumentRequestWithParams:(MTRTestClusterClusterTestSimpleArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestSimpleArgumentResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStructArrayArgumentRequestParams *)params +- (void)testStructArrayArgumentRequestWithParams:(MTRTestClusterClusterTestStructArrayArgumentRequestParams *)params completionHandler: - (void (^)(CHIPTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable data, + (void (^)(MTRTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testStructArgumentRequestWithParams:(CHIPTestClusterClusterTestStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testStructArgumentRequestWithParams:(MTRTestClusterClusterTestStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testNestedStructArgumentRequestWithParams:(CHIPTestClusterClusterTestNestedStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testNestedStructArgumentRequestWithParams:(MTRTestClusterClusterTestNestedStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testListStructArgumentRequestWithParams:(CHIPTestClusterClusterTestListStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testListStructArgumentRequestWithParams:(MTRTestClusterClusterTestListStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testListInt8UArgumentRequestWithParams:(CHIPTestClusterClusterTestListInt8UArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testListInt8UArgumentRequestWithParams:(MTRTestClusterClusterTestListInt8UArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testNestedStructListArgumentRequestWithParams:(CHIPTestClusterClusterTestNestedStructListArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testNestedStructListArgumentRequestWithParams:(MTRTestClusterClusterTestNestedStructListArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)testListNestedStructListArgumentRequestWithParams: - (CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, + (MTRTestClusterClusterTestListNestedStructListArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testListInt8UReverseRequestWithParams:(CHIPTestClusterClusterTestListInt8UReverseRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestListInt8UReverseResponseParams * _Nullable data, +- (void)testListInt8UReverseRequestWithParams:(MTRTestClusterClusterTestListInt8UReverseRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestListInt8UReverseResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testEnumsRequestWithParams:(CHIPTestClusterClusterTestEnumsRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestEnumsResponseParams * _Nullable data, +- (void)testEnumsRequestWithParams:(MTRTestClusterClusterTestEnumsRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestEnumsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testNullableOptionalRequestWithParams:(CHIPTestClusterClusterTestNullableOptionalRequestParams * _Nullable)params - completionHandler:(void (^)(CHIPTestClusterClusterTestNullableOptionalResponseParams * _Nullable data, +- (void)testNullableOptionalRequestWithParams:(MTRTestClusterClusterTestNullableOptionalRequestParams * _Nullable)params + completionHandler:(void (^)(MTRTestClusterClusterTestNullableOptionalResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testComplexNullableOptionalRequestWithParams:(CHIPTestClusterClusterTestComplexNullableOptionalRequestParams *)params +- (void)testComplexNullableOptionalRequestWithParams:(MTRTestClusterClusterTestComplexNullableOptionalRequestParams *)params completionHandler: - (void (^)(CHIPTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable data, + (void (^)(MTRTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)simpleStructEchoRequestWithParams:(CHIPTestClusterClusterSimpleStructEchoRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStructResponseParams * _Nullable data, +- (void)simpleStructEchoRequestWithParams:(MTRTestClusterClusterSimpleStructEchoRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterSimpleStructResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)timedInvokeRequestWithParams:(CHIPTestClusterClusterTimedInvokeRequestParams * _Nullable)params +- (void)timedInvokeRequestWithParams:(MTRTestClusterClusterTimedInvokeRequestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; - (void)timedInvokeRequestWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)testSimpleOptionalArgumentRequestWithParams: - (CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams * _Nullable)params +- (void)testSimpleOptionalArgumentRequestWithParams:(MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; -- (void)testEmitTestEventRequestWithParams:(CHIPTestClusterClusterTestEmitTestEventRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestEmitTestEventResponseParams * _Nullable data, +- (void)testEmitTestEventRequestWithParams:(MTRTestClusterClusterTestEmitTestEventRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestEmitTestEventResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)testEmitTestFabricScopedEventRequestWithParams:(CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams *)params +- (void)testEmitTestFabricScopedEventRequestWithParams:(MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams *)params completionHandler: (void (^)( - CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable data, + MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; - (void)readAttributeBooleanWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBooleanWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19366,18 +19357,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBitmap8WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBitmap8WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBitmap8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBitmap8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19386,18 +19377,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBitmap16WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBitmap16WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBitmap16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBitmap16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19406,18 +19397,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBitmap32WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBitmap32WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBitmap32WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBitmap32WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap32WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19426,18 +19417,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeBitmap64WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeBitmap64WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeBitmap64WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeBitmap64WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap64WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19445,18 +19436,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt8uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt8uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19464,18 +19455,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt16uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt16uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt16uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19483,18 +19474,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt24uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt24uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt24uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt24uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt24uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt24uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19502,18 +19493,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt32uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt32uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt32uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt32uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt32uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt32uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19521,18 +19512,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt40uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt40uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt40uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt40uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt40uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt40uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19540,18 +19531,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt48uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt48uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt48uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt48uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt48uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt48uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19559,18 +19550,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt56uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt56uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt56uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt56uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt56uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt56uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19578,18 +19569,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt64uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt64uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt64uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt64uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt64uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt64uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19597,18 +19588,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt8sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt8sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt8sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19616,18 +19607,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt16sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt16sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt16sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19635,18 +19626,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt24sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt24sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt24sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt24sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt24sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt24sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19654,18 +19645,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt32sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt32sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt32sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt32sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt32sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt32sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19673,18 +19664,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt40sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt40sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt40sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt40sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt40sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt40sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19692,18 +19683,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt48sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt48sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt48sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt48sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt48sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt48sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19711,18 +19702,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt56sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt56sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt56sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt56sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt56sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt56sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19730,18 +19721,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeInt64sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeInt64sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeInt64sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeInt64sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeInt64sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt64sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19749,18 +19740,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeEnum8WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeEnum8WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnum8WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnum8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnum8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnum8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19768,18 +19759,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeEnum16WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeEnum16WithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnum16WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnum16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnum16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnum16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19788,18 +19779,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeFloatSingleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeFloatSingleWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFloatSingleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFloatSingleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFloatSingleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19809,18 +19800,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeFloatDoubleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeFloatDoubleWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFloatDoubleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFloatDoubleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFloatDoubleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19830,18 +19821,18 @@ NS_ASSUME_NONNULL_BEGIN NSData * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeOctetStringWithValue:(NSData * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeOctetStringWithValue:(NSData * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19850,18 +19841,18 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeListInt8uWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListInt8uWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; @@ -19870,19 +19861,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeListOctetStringWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19893,20 +19884,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeListStructOctetStringWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListStructOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListStructOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListStructOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListStructOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19916,19 +19907,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeLongOctetStringWithValue:(NSData * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLongOctetStringWithValue:(NSData * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLongOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLongOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLongOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19938,18 +19929,18 @@ NS_ASSUME_NONNULL_BEGIN NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeCharStringWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeCharStringWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19959,19 +19950,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeLongCharStringWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeLongCharStringWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeLongCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeLongCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLongCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -19981,18 +19972,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeEpochUsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEpochUsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEpochUsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEpochUsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEpochUsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -20000,18 +19991,18 @@ NS_ASSUME_NONNULL_BEGIN - (void)readAttributeEpochSWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeEpochSWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEpochSWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEpochSWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEpochSWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEpochSWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -20020,18 +20011,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeVendorIdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeVendorIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeVendorIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -20041,20 +20032,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeListNullablesAndOptionalsStructWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListNullablesAndOptionalsStructWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListNullablesAndOptionalsStructWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListNullablesAndOptionalsStructWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListNullablesAndOptionalsStructWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, @@ -20064,43 +20055,43 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeEnumAttrWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeEnumAttrWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeEnumAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnumAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnumAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeStructAttrWithCompletionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, +- (void)readAttributeStructAttrWithCompletionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)writeAttributeStructAttrWithValue:(CHIPTestClusterClusterSimpleStruct * _Nonnull)value +- (void)writeAttributeStructAttrWithValue:(MTRTestClusterClusterSimpleStruct * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStructAttrWithValue:(CHIPTestClusterClusterSimpleStruct * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeStructAttrWithValue:(MTRTestClusterClusterSimpleStruct * _Nonnull)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeStructAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + reportHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeStructAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStructAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + completionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeRangeRestrictedInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, @@ -20108,20 +20099,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRangeRestrictedInt8uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRangeRestrictedInt8uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRangeRestrictedInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRangeRestrictedInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20132,20 +20123,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRangeRestrictedInt8sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRangeRestrictedInt8sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRangeRestrictedInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRangeRestrictedInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20156,20 +20147,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRangeRestrictedInt16uWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRangeRestrictedInt16uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRangeRestrictedInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRangeRestrictedInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20180,20 +20171,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeRangeRestrictedInt16sWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeRangeRestrictedInt16sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeRangeRestrictedInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeRangeRestrictedInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20203,42 +20194,42 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeListLongOctetStringWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListLongOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListLongOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListLongOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListLongOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeListFabricScopedWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeListFabricScopedWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeListFabricScopedWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeListFabricScopedWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeListFabricScopedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeListFabricScopedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListFabricScopedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20248,19 +20239,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeTimedWriteBooleanWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeTimedWriteBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeTimedWriteBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeTimedWriteBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTimedWriteBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20270,20 +20261,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeGeneralErrorBooleanWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeGeneralErrorBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneralErrorBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneralErrorBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneralErrorBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20293,20 +20284,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeClusterErrorBooleanWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeClusterErrorBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterErrorBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterErrorBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterErrorBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20316,18 +20307,18 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeUnsupportedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeUnsupportedWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeUnsupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeUnsupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnsupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20337,19 +20328,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableBooleanWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableBooleanWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20359,19 +20350,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableBitmap8WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableBitmap8WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableBitmap8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableBitmap8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20381,19 +20372,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableBitmap16WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableBitmap16WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableBitmap16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableBitmap16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20403,19 +20394,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableBitmap32WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableBitmap32WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableBitmap32WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableBitmap32WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap32WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20425,19 +20416,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableBitmap64WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableBitmap64WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableBitmap64WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableBitmap64WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap64WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20447,19 +20438,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt8uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt8uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20469,19 +20460,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt16uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt16uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20491,19 +20482,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt24uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt24uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt24uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt24uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt24uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20513,19 +20504,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt32uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt32uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt32uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt32uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt32uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20535,19 +20526,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt40uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt40uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt40uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt40uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt40uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20557,19 +20548,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt48uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt48uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt48uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt48uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt48uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20579,19 +20570,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt56uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt56uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt56uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt56uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt56uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20601,19 +20592,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt64uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt64uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt64uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt64uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt64uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20623,19 +20614,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt8sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt8sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20645,19 +20636,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt16sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt16sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20667,19 +20658,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt24sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt24sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt24sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt24sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt24sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20689,19 +20680,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt32sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt32sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt32sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt32sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt32sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20711,19 +20702,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt40sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt40sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt40sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt40sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt40sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20733,19 +20724,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt48sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt48sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt48sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt48sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt48sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20755,19 +20746,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt56sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt56sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt56sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt56sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt56sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20777,19 +20768,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableInt64sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableInt64sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableInt64sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableInt64sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt64sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20799,19 +20790,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableEnum8WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableEnum8WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableEnum8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableEnum8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnum8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20821,19 +20812,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableEnum16WithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableEnum16WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableEnum16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableEnum16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnum16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20844,20 +20835,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableFloatSingleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableFloatSingleWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableFloatSingleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableFloatSingleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableFloatSingleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20868,20 +20859,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableFloatDoubleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableFloatDoubleWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableFloatDoubleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableFloatDoubleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableFloatDoubleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20891,20 +20882,20 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableOctetStringWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableOctetStringWithValue:(NSData * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20914,19 +20905,19 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableCharStringWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableCharStringWithValue:(NSString * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -20936,45 +20927,45 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)writeAttributeNullableEnumAttrWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableEnumAttrWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableEnumAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableEnumAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnumAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeNullableStructWithCompletionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, +- (void)readAttributeNullableStructWithCompletionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)writeAttributeNullableStructWithValue:(CHIPTestClusterClusterSimpleStruct * _Nullable)value +- (void)writeAttributeNullableStructWithValue:(MTRTestClusterClusterSimpleStruct * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNullableStructWithValue:(CHIPTestClusterClusterSimpleStruct * _Nullable)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeNullableStructWithValue:(MTRTestClusterClusterSimpleStruct * _Nullable)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableStructWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + reportHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableStructWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableStructWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + completionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler; - (void)readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, @@ -20982,20 +20973,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableRangeRestrictedInt8uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableRangeRestrictedInt8uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableRangeRestrictedInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableRangeRestrictedInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -21006,20 +20997,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableRangeRestrictedInt8sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableRangeRestrictedInt8sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableRangeRestrictedInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableRangeRestrictedInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -21030,20 +21021,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableRangeRestrictedInt16uWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableRangeRestrictedInt16uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableRangeRestrictedInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableRangeRestrictedInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -21054,20 +21045,20 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeNullableRangeRestrictedInt16sWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNullableRangeRestrictedInt16sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeNullableRangeRestrictedInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeNullableRangeRestrictedInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, @@ -21077,16 +21068,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -21096,16 +21087,16 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -21115,15 +21106,15 @@ NS_ASSUME_NONNULL_BEGIN NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -21133,14 +21124,14 @@ NS_ASSUME_NONNULL_BEGIN NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -21150,15 +21141,15 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; /** * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. + * MTRSubscribeParams. */ - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: @@ -21166,1588 +21157,1586 @@ NS_ASSUME_NONNULL_BEGIN @end -typedef NS_ENUM(uint8_t, CHIPIdentifyEffectIdentifier) { - CHIPIdentifyEffectIdentifierBlink = 0x00, - CHIPIdentifyEffectIdentifierBreathe = 0x01, - CHIPIdentifyEffectIdentifierOkay = 0x02, - CHIPIdentifyEffectIdentifierChannelChange = 0x0B, - CHIPIdentifyEffectIdentifierFinishEffect = 0xFE, - CHIPIdentifyEffectIdentifierStopEffect = 0xFF, +typedef NS_ENUM(uint8_t, MTRIdentifyEffectIdentifier) { + MTRIdentifyEffectIdentifierBlink = 0x00, + MTRIdentifyEffectIdentifierBreathe = 0x01, + MTRIdentifyEffectIdentifierOkay = 0x02, + MTRIdentifyEffectIdentifierChannelChange = 0x0B, + MTRIdentifyEffectIdentifierFinishEffect = 0xFE, + MTRIdentifyEffectIdentifierStopEffect = 0xFF, }; -typedef NS_ENUM(uint8_t, CHIPIdentifyEffectVariant) { - CHIPIdentifyEffectVariantDefault = 0x00, +typedef NS_ENUM(uint8_t, MTRIdentifyEffectVariant) { + MTRIdentifyEffectVariantDefault = 0x00, }; -typedef NS_ENUM(uint8_t, CHIPIdentifyType) { - CHIPIdentifyTypeNone = 0x00, - CHIPIdentifyTypeVisibleLight = 0x01, - CHIPIdentifyTypeVisibleLED = 0x02, - CHIPIdentifyTypeAudibleBeep = 0x03, - CHIPIdentifyTypeDisplay = 0x04, - CHIPIdentifyTypeActuator = 0x05, +typedef NS_ENUM(uint8_t, MTRIdentifyType) { + MTRIdentifyTypeNone = 0x00, + MTRIdentifyTypeVisibleLight = 0x01, + MTRIdentifyTypeVisibleLED = 0x02, + MTRIdentifyTypeAudibleBeep = 0x03, + MTRIdentifyTypeDisplay = 0x04, + MTRIdentifyTypeActuator = 0x05, }; -typedef NS_OPTIONS(uint8_t, CHIPScenesCopyMode) { - CHIPScenesCopyModeCopyAllScenes = 0x1, +typedef NS_OPTIONS(uint8_t, MTRScenesCopyMode) { + MTRScenesCopyModeCopyAllScenes = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPOnOffDelayedAllOffEffectVariant) { - CHIPOnOffDelayedAllOffEffectVariantFadeToOffIn0p8Seconds = 0x00, - CHIPOnOffDelayedAllOffEffectVariantNoFade = 0x01, - CHIPOnOffDelayedAllOffEffectVariant50PercentDimDownIn0p8SecondsThenFadeToOffIn12Seconds = 0x02, +typedef NS_ENUM(uint8_t, MTROnOffDelayedAllOffEffectVariant) { + MTROnOffDelayedAllOffEffectVariantFadeToOffIn0p8Seconds = 0x00, + MTROnOffDelayedAllOffEffectVariantNoFade = 0x01, + MTROnOffDelayedAllOffEffectVariant50PercentDimDownIn0p8SecondsThenFadeToOffIn12Seconds = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPOnOffDyingLightEffectVariant) { - CHIPOnOffDyingLightEffectVariant20PercenterDimUpIn0p5SecondsThenFadeToOffIn1Second = 0x00, +typedef NS_ENUM(uint8_t, MTROnOffDyingLightEffectVariant) { + MTROnOffDyingLightEffectVariant20PercenterDimUpIn0p5SecondsThenFadeToOffIn1Second = 0x00, }; -typedef NS_ENUM(uint8_t, CHIPOnOffEffectIdentifier) { - CHIPOnOffEffectIdentifierDelayedAllOff = 0x00, - CHIPOnOffEffectIdentifierDyingLight = 0x01, +typedef NS_ENUM(uint8_t, MTROnOffEffectIdentifier) { + MTROnOffEffectIdentifierDelayedAllOff = 0x00, + MTROnOffEffectIdentifierDyingLight = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPOnOffStartUpOnOff) { - CHIPOnOffStartUpOnOffOff = 0x00, - CHIPOnOffStartUpOnOffOn = 0x01, - CHIPOnOffStartUpOnOffTogglePreviousOnOff = 0x02, +typedef NS_ENUM(uint8_t, MTROnOffStartUpOnOff) { + MTROnOffStartUpOnOffOff = 0x00, + MTROnOffStartUpOnOffOn = 0x01, + MTROnOffStartUpOnOffTogglePreviousOnOff = 0x02, }; -typedef NS_OPTIONS(uint8_t, CHIPOnOffControl) { - CHIPOnOffControlAcceptOnlyWhenOn = 0x1, +typedef NS_OPTIONS(uint8_t, MTROnOffControl) { + MTROnOffControlAcceptOnlyWhenOn = 0x1, }; -typedef NS_OPTIONS(uint32_t, CHIPOnOffFeature) { - CHIPOnOffFeatureLighting = 0x1, +typedef NS_OPTIONS(uint32_t, MTROnOffFeature) { + MTROnOffFeatureLighting = 0x1, }; -typedef NS_OPTIONS(uint32_t, CHIPOnOffSceneFeatures) { - CHIPOnOffSceneFeaturesSceneNames = 0x1, +typedef NS_OPTIONS(uint32_t, MTROnOffSceneFeatures) { + MTROnOffSceneFeaturesSceneNames = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPLevelControlMoveMode) { - CHIPLevelControlMoveModeUp = 0x00, - CHIPLevelControlMoveModeDown = 0x01, +typedef NS_ENUM(uint8_t, MTRLevelControlMoveMode) { + MTRLevelControlMoveModeUp = 0x00, + MTRLevelControlMoveModeDown = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPLevelControlStepMode) { - CHIPLevelControlStepModeUp = 0x00, - CHIPLevelControlStepModeDown = 0x01, +typedef NS_ENUM(uint8_t, MTRLevelControlStepMode) { + MTRLevelControlStepModeUp = 0x00, + MTRLevelControlStepModeDown = 0x01, }; -typedef NS_OPTIONS(uint32_t, CHIPLevelControlFeature) { - CHIPLevelControlFeatureOnOff = 0x1, - CHIPLevelControlFeatureLighting = 0x2, - CHIPLevelControlFeatureFrequency = 0x4, +typedef NS_OPTIONS(uint32_t, MTRLevelControlFeature) { + MTRLevelControlFeatureOnOff = 0x1, + MTRLevelControlFeatureLighting = 0x2, + MTRLevelControlFeatureFrequency = 0x4, }; -typedef NS_ENUM(uint8_t, CHIPApplianceControlApplianceStatus) { - CHIPApplianceControlApplianceStatusOff = 0x01, - CHIPApplianceControlApplianceStatusStandBy = 0x02, - CHIPApplianceControlApplianceStatusProgrammed = 0x03, - CHIPApplianceControlApplianceStatusProgrammedWaitingToStart = 0x04, - CHIPApplianceControlApplianceStatusRunning = 0x05, - CHIPApplianceControlApplianceStatusPause = 0x06, - CHIPApplianceControlApplianceStatusEndProgrammed = 0x07, - CHIPApplianceControlApplianceStatusFailure = 0x08, - CHIPApplianceControlApplianceStatusProgrammeInterrupted = 0x09, - CHIPApplianceControlApplianceStatusIdle = 0x0A, - CHIPApplianceControlApplianceStatusRinseHold = 0x0B, - CHIPApplianceControlApplianceStatusService = 0x0C, - CHIPApplianceControlApplianceStatusSuperfreezing = 0x0D, - CHIPApplianceControlApplianceStatusSupercooling = 0x0E, - CHIPApplianceControlApplianceStatusSuperheating = 0x0F, +typedef NS_ENUM(uint8_t, MTRApplianceControlApplianceStatus) { + MTRApplianceControlApplianceStatusOff = 0x01, + MTRApplianceControlApplianceStatusStandBy = 0x02, + MTRApplianceControlApplianceStatusProgrammed = 0x03, + MTRApplianceControlApplianceStatusProgrammedWaitingToStart = 0x04, + MTRApplianceControlApplianceStatusRunning = 0x05, + MTRApplianceControlApplianceStatusPause = 0x06, + MTRApplianceControlApplianceStatusEndProgrammed = 0x07, + MTRApplianceControlApplianceStatusFailure = 0x08, + MTRApplianceControlApplianceStatusProgrammeInterrupted = 0x09, + MTRApplianceControlApplianceStatusIdle = 0x0A, + MTRApplianceControlApplianceStatusRinseHold = 0x0B, + MTRApplianceControlApplianceStatusService = 0x0C, + MTRApplianceControlApplianceStatusSuperfreezing = 0x0D, + MTRApplianceControlApplianceStatusSupercooling = 0x0E, + MTRApplianceControlApplianceStatusSuperheating = 0x0F, }; -typedef NS_ENUM(uint8_t, CHIPApplianceControlCommandIdentification) { - CHIPApplianceControlCommandIdentificationStart = 0x01, - CHIPApplianceControlCommandIdentificationStop = 0x02, - CHIPApplianceControlCommandIdentificationPause = 0x03, - CHIPApplianceControlCommandIdentificationStartSuperfreezing = 0x04, - CHIPApplianceControlCommandIdentificationStopSuperfreezing = 0x05, - CHIPApplianceControlCommandIdentificationStartSupercooling = 0x06, - CHIPApplianceControlCommandIdentificationStopSupercooling = 0x07, - CHIPApplianceControlCommandIdentificationDisableGas = 0x08, - CHIPApplianceControlCommandIdentificationEnableGas = 0x09, - CHIPApplianceControlCommandIdentificationEnableEnergyControl = 0x0A, - CHIPApplianceControlCommandIdentificationDisableEnergyControl = 0x0B, +typedef NS_ENUM(uint8_t, MTRApplianceControlCommandIdentification) { + MTRApplianceControlCommandIdentificationStart = 0x01, + MTRApplianceControlCommandIdentificationStop = 0x02, + MTRApplianceControlCommandIdentificationPause = 0x03, + MTRApplianceControlCommandIdentificationStartSuperfreezing = 0x04, + MTRApplianceControlCommandIdentificationStopSuperfreezing = 0x05, + MTRApplianceControlCommandIdentificationStartSupercooling = 0x06, + MTRApplianceControlCommandIdentificationStopSupercooling = 0x07, + MTRApplianceControlCommandIdentificationDisableGas = 0x08, + MTRApplianceControlCommandIdentificationEnableGas = 0x09, + MTRApplianceControlCommandIdentificationEnableEnergyControl = 0x0A, + MTRApplianceControlCommandIdentificationDisableEnergyControl = 0x0B, }; -typedef NS_ENUM(uint8_t, CHIPApplianceControlWarningEvent) { - CHIPApplianceControlWarningEventWarning1OverallPowerAboveAvailablePowerLevel = 0x00, - CHIPApplianceControlWarningEventWarning2OverallPowerAbovePowerThresholdLevel = 0x01, - CHIPApplianceControlWarningEventWarning3OverallPowerBackBelowTheAvailablePowerLevel = 0x02, - CHIPApplianceControlWarningEventWarning4OverallPowerBackBelowThePowerThresholdLevel = 0x03, - CHIPApplianceControlWarningEventWarning5OverallPowerWillBePotentiallyAboveAvailablePowerLevelIfTheApplianceStarts = 0x04, +typedef NS_ENUM(uint8_t, MTRApplianceControlWarningEvent) { + MTRApplianceControlWarningEventWarning1OverallPowerAboveAvailablePowerLevel = 0x00, + MTRApplianceControlWarningEventWarning2OverallPowerAbovePowerThresholdLevel = 0x01, + MTRApplianceControlWarningEventWarning3OverallPowerBackBelowTheAvailablePowerLevel = 0x02, + MTRApplianceControlWarningEventWarning4OverallPowerBackBelowThePowerThresholdLevel = 0x03, + MTRApplianceControlWarningEventWarning5OverallPowerWillBePotentiallyAboveAvailablePowerLevelIfTheApplianceStarts = 0x04, }; -typedef NS_OPTIONS(uint8_t, CHIPApplianceControlRemoteEnableFlagsAndDeviceStatus2) { - CHIPApplianceControlRemoteEnableFlagsAndDeviceStatus2RemoteEnableFlags = 0xF, - CHIPApplianceControlRemoteEnableFlagsAndDeviceStatus2DeviceStatus2Structure = 0xF0, +typedef NS_OPTIONS(uint8_t, MTRApplianceControlRemoteEnableFlagsAndDeviceStatus2) { + MTRApplianceControlRemoteEnableFlagsAndDeviceStatus2RemoteEnableFlags = 0xF, + MTRApplianceControlRemoteEnableFlagsAndDeviceStatus2DeviceStatus2Structure = 0xF0, }; -typedef NS_ENUM(uint8_t, CHIPAccessControlAuthMode) { - CHIPAccessControlAuthModePASE = 0x01, - CHIPAccessControlAuthModeCASE = 0x02, - CHIPAccessControlAuthModeGroup = 0x03, +typedef NS_ENUM(uint8_t, MTRAccessControlAuthMode) { + MTRAccessControlAuthModePASE = 0x01, + MTRAccessControlAuthModeCASE = 0x02, + MTRAccessControlAuthModeGroup = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPAccessControlChangeType) { - CHIPAccessControlChangeTypeChanged = 0x00, - CHIPAccessControlChangeTypeAdded = 0x01, - CHIPAccessControlChangeTypeRemoved = 0x02, +typedef NS_ENUM(uint8_t, MTRAccessControlChangeType) { + MTRAccessControlChangeTypeChanged = 0x00, + MTRAccessControlChangeTypeAdded = 0x01, + MTRAccessControlChangeTypeRemoved = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPAccessControlPrivilege) { - CHIPAccessControlPrivilegeView = 0x01, - CHIPAccessControlPrivilegeProxyView = 0x02, - CHIPAccessControlPrivilegeOperate = 0x03, - CHIPAccessControlPrivilegeManage = 0x04, - CHIPAccessControlPrivilegeAdminister = 0x05, +typedef NS_ENUM(uint8_t, MTRAccessControlPrivilege) { + MTRAccessControlPrivilegeView = 0x01, + MTRAccessControlPrivilegeProxyView = 0x02, + MTRAccessControlPrivilegeOperate = 0x03, + MTRAccessControlPrivilegeManage = 0x04, + MTRAccessControlPrivilegeAdminister = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPBridgedActionsActionError) { - CHIPBridgedActionsActionErrorUnknown = 0x00, - CHIPBridgedActionsActionErrorInterrupted = 0x01, +typedef NS_ENUM(uint8_t, MTRBridgedActionsActionError) { + MTRBridgedActionsActionErrorUnknown = 0x00, + MTRBridgedActionsActionErrorInterrupted = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPBridgedActionsActionState) { - CHIPBridgedActionsActionStateInactive = 0x00, - CHIPBridgedActionsActionStateActive = 0x01, - CHIPBridgedActionsActionStatePaused = 0x02, - CHIPBridgedActionsActionStateDisabled = 0x03, +typedef NS_ENUM(uint8_t, MTRBridgedActionsActionState) { + MTRBridgedActionsActionStateInactive = 0x00, + MTRBridgedActionsActionStateActive = 0x01, + MTRBridgedActionsActionStatePaused = 0x02, + MTRBridgedActionsActionStateDisabled = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPBridgedActionsActionType) { - CHIPBridgedActionsActionTypeOther = 0x00, - CHIPBridgedActionsActionTypeScene = 0x01, - CHIPBridgedActionsActionTypeSequence = 0x02, - CHIPBridgedActionsActionTypeAutomation = 0x03, - CHIPBridgedActionsActionTypeException = 0x04, - CHIPBridgedActionsActionTypeNotification = 0x05, - CHIPBridgedActionsActionTypeAlarm = 0x06, +typedef NS_ENUM(uint8_t, MTRBridgedActionsActionType) { + MTRBridgedActionsActionTypeOther = 0x00, + MTRBridgedActionsActionTypeScene = 0x01, + MTRBridgedActionsActionTypeSequence = 0x02, + MTRBridgedActionsActionTypeAutomation = 0x03, + MTRBridgedActionsActionTypeException = 0x04, + MTRBridgedActionsActionTypeNotification = 0x05, + MTRBridgedActionsActionTypeAlarm = 0x06, }; -typedef NS_ENUM(uint8_t, CHIPBridgedActionsEndpointListType) { - CHIPBridgedActionsEndpointListTypeOther = 0x00, - CHIPBridgedActionsEndpointListTypeRoom = 0x01, - CHIPBridgedActionsEndpointListTypeZone = 0x02, +typedef NS_ENUM(uint8_t, MTRBridgedActionsEndpointListType) { + MTRBridgedActionsEndpointListTypeOther = 0x00, + MTRBridgedActionsEndpointListTypeRoom = 0x01, + MTRBridgedActionsEndpointListTypeZone = 0x02, }; -typedef NS_OPTIONS(uint16_t, CHIPBridgedActionsCommandBits) { - CHIPBridgedActionsCommandBitsInstantAction = 0x1, - CHIPBridgedActionsCommandBitsInstantActionWithTransition = 0x2, - CHIPBridgedActionsCommandBitsStartAction = 0x4, - CHIPBridgedActionsCommandBitsStartActionWithDuration = 0x8, - CHIPBridgedActionsCommandBitsStopAction = 0x10, - CHIPBridgedActionsCommandBitsPauseAction = 0x20, - CHIPBridgedActionsCommandBitsPauseActionWithDuration = 0x40, - CHIPBridgedActionsCommandBitsResumeAction = 0x80, - CHIPBridgedActionsCommandBitsEnableAction = 0x100, - CHIPBridgedActionsCommandBitsEnableActionWithDuration = 0x200, - CHIPBridgedActionsCommandBitsDisableAction = 0x400, - CHIPBridgedActionsCommandBitsDisableActionWithDuration = 0x800, +typedef NS_OPTIONS(uint16_t, MTRBridgedActionsCommandBits) { + MTRBridgedActionsCommandBitsInstantAction = 0x1, + MTRBridgedActionsCommandBitsInstantActionWithTransition = 0x2, + MTRBridgedActionsCommandBitsStartAction = 0x4, + MTRBridgedActionsCommandBitsStartActionWithDuration = 0x8, + MTRBridgedActionsCommandBitsStopAction = 0x10, + MTRBridgedActionsCommandBitsPauseAction = 0x20, + MTRBridgedActionsCommandBitsPauseActionWithDuration = 0x40, + MTRBridgedActionsCommandBitsResumeAction = 0x80, + MTRBridgedActionsCommandBitsEnableAction = 0x100, + MTRBridgedActionsCommandBitsEnableActionWithDuration = 0x200, + MTRBridgedActionsCommandBitsDisableAction = 0x400, + MTRBridgedActionsCommandBitsDisableActionWithDuration = 0x800, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateProviderOTAApplyUpdateAction) { - CHIPOtaSoftwareUpdateProviderOTAApplyUpdateActionProceed = 0x00, - CHIPOtaSoftwareUpdateProviderOTAApplyUpdateActionAwaitNextAction = 0x01, - CHIPOtaSoftwareUpdateProviderOTAApplyUpdateActionDiscontinue = 0x02, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateProviderOTAApplyUpdateAction) { + MTROtaSoftwareUpdateProviderOTAApplyUpdateActionProceed = 0x00, + MTROtaSoftwareUpdateProviderOTAApplyUpdateActionAwaitNextAction = 0x01, + MTROtaSoftwareUpdateProviderOTAApplyUpdateActionDiscontinue = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateProviderOTADownloadProtocol) { - CHIPOtaSoftwareUpdateProviderOTADownloadProtocolBDXSynchronous = 0x00, - CHIPOtaSoftwareUpdateProviderOTADownloadProtocolBDXAsynchronous = 0x01, - CHIPOtaSoftwareUpdateProviderOTADownloadProtocolHTTPS = 0x02, - CHIPOtaSoftwareUpdateProviderOTADownloadProtocolVendorSpecific = 0x03, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateProviderOTADownloadProtocol) { + MTROtaSoftwareUpdateProviderOTADownloadProtocolBDXSynchronous = 0x00, + MTROtaSoftwareUpdateProviderOTADownloadProtocolBDXAsynchronous = 0x01, + MTROtaSoftwareUpdateProviderOTADownloadProtocolHTTPS = 0x02, + MTROtaSoftwareUpdateProviderOTADownloadProtocolVendorSpecific = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateProviderOTAQueryStatus) { - CHIPOtaSoftwareUpdateProviderOTAQueryStatusUpdateAvailable = 0x00, - CHIPOtaSoftwareUpdateProviderOTAQueryStatusBusy = 0x01, - CHIPOtaSoftwareUpdateProviderOTAQueryStatusNotAvailable = 0x02, - CHIPOtaSoftwareUpdateProviderOTAQueryStatusDownloadProtocolNotSupported = 0x03, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateProviderOTAQueryStatus) { + MTROtaSoftwareUpdateProviderOTAQueryStatusUpdateAvailable = 0x00, + MTROtaSoftwareUpdateProviderOTAQueryStatusBusy = 0x01, + MTROtaSoftwareUpdateProviderOTAQueryStatusNotAvailable = 0x02, + MTROtaSoftwareUpdateProviderOTAQueryStatusDownloadProtocolNotSupported = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateRequestorOTAAnnouncementReason) { - CHIPOtaSoftwareUpdateRequestorOTAAnnouncementReasonSimpleAnnouncement = 0x00, - CHIPOtaSoftwareUpdateRequestorOTAAnnouncementReasonUpdateAvailable = 0x01, - CHIPOtaSoftwareUpdateRequestorOTAAnnouncementReasonUrgentUpdateAvailable = 0x02, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateRequestorOTAAnnouncementReason) { + MTROtaSoftwareUpdateRequestorOTAAnnouncementReasonSimpleAnnouncement = 0x00, + MTROtaSoftwareUpdateRequestorOTAAnnouncementReasonUpdateAvailable = 0x01, + MTROtaSoftwareUpdateRequestorOTAAnnouncementReasonUrgentUpdateAvailable = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateRequestorOTAChangeReason) { - CHIPOtaSoftwareUpdateRequestorOTAChangeReasonUnknown = 0x00, - CHIPOtaSoftwareUpdateRequestorOTAChangeReasonSuccess = 0x01, - CHIPOtaSoftwareUpdateRequestorOTAChangeReasonFailure = 0x02, - CHIPOtaSoftwareUpdateRequestorOTAChangeReasonTimeOut = 0x03, - CHIPOtaSoftwareUpdateRequestorOTAChangeReasonDelayByProvider = 0x04, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateRequestorOTAChangeReason) { + MTROtaSoftwareUpdateRequestorOTAChangeReasonUnknown = 0x00, + MTROtaSoftwareUpdateRequestorOTAChangeReasonSuccess = 0x01, + MTROtaSoftwareUpdateRequestorOTAChangeReasonFailure = 0x02, + MTROtaSoftwareUpdateRequestorOTAChangeReasonTimeOut = 0x03, + MTROtaSoftwareUpdateRequestorOTAChangeReasonDelayByProvider = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPOtaSoftwareUpdateRequestorOTAUpdateState) { - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateUnknown = 0x00, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateIdle = 0x01, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateQuerying = 0x02, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnQuery = 0x03, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateDownloading = 0x04, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateApplying = 0x05, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnApply = 0x06, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateRollingBack = 0x07, - CHIPOtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnUserConsent = 0x08, +typedef NS_ENUM(uint8_t, MTROtaSoftwareUpdateRequestorOTAUpdateState) { + MTROtaSoftwareUpdateRequestorOTAUpdateStateUnknown = 0x00, + MTROtaSoftwareUpdateRequestorOTAUpdateStateIdle = 0x01, + MTROtaSoftwareUpdateRequestorOTAUpdateStateQuerying = 0x02, + MTROtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnQuery = 0x03, + MTROtaSoftwareUpdateRequestorOTAUpdateStateDownloading = 0x04, + MTROtaSoftwareUpdateRequestorOTAUpdateStateApplying = 0x05, + MTROtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnApply = 0x06, + MTROtaSoftwareUpdateRequestorOTAUpdateStateRollingBack = 0x07, + MTROtaSoftwareUpdateRequestorOTAUpdateStateDelayedOnUserConsent = 0x08, }; -typedef NS_ENUM(uint8_t, CHIPTimeFormatLocalizationCalendarType) { - CHIPTimeFormatLocalizationCalendarTypeBuddhist = 0x00, - CHIPTimeFormatLocalizationCalendarTypeChinese = 0x01, - CHIPTimeFormatLocalizationCalendarTypeCoptic = 0x02, - CHIPTimeFormatLocalizationCalendarTypeEthiopian = 0x03, - CHIPTimeFormatLocalizationCalendarTypeGregorian = 0x04, - CHIPTimeFormatLocalizationCalendarTypeHebrew = 0x05, - CHIPTimeFormatLocalizationCalendarTypeIndian = 0x06, - CHIPTimeFormatLocalizationCalendarTypeIslamic = 0x07, - CHIPTimeFormatLocalizationCalendarTypeJapanese = 0x08, - CHIPTimeFormatLocalizationCalendarTypeKorean = 0x09, - CHIPTimeFormatLocalizationCalendarTypePersian = 0x0A, - CHIPTimeFormatLocalizationCalendarTypeTaiwanese = 0x0B, +typedef NS_ENUM(uint8_t, MTRTimeFormatLocalizationCalendarType) { + MTRTimeFormatLocalizationCalendarTypeBuddhist = 0x00, + MTRTimeFormatLocalizationCalendarTypeChinese = 0x01, + MTRTimeFormatLocalizationCalendarTypeCoptic = 0x02, + MTRTimeFormatLocalizationCalendarTypeEthiopian = 0x03, + MTRTimeFormatLocalizationCalendarTypeGregorian = 0x04, + MTRTimeFormatLocalizationCalendarTypeHebrew = 0x05, + MTRTimeFormatLocalizationCalendarTypeIndian = 0x06, + MTRTimeFormatLocalizationCalendarTypeIslamic = 0x07, + MTRTimeFormatLocalizationCalendarTypeJapanese = 0x08, + MTRTimeFormatLocalizationCalendarTypeKorean = 0x09, + MTRTimeFormatLocalizationCalendarTypePersian = 0x0A, + MTRTimeFormatLocalizationCalendarTypeTaiwanese = 0x0B, }; -typedef NS_ENUM(uint8_t, CHIPTimeFormatLocalizationHourFormat) { - CHIPTimeFormatLocalizationHourFormat12hr = 0x00, - CHIPTimeFormatLocalizationHourFormat24hr = 0x01, +typedef NS_ENUM(uint8_t, MTRTimeFormatLocalizationHourFormat) { + MTRTimeFormatLocalizationHourFormat12hr = 0x00, + MTRTimeFormatLocalizationHourFormat24hr = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPUnitLocalizationTempUnit) { - CHIPUnitLocalizationTempUnitFahrenheit = 0x00, - CHIPUnitLocalizationTempUnitCelsius = 0x01, - CHIPUnitLocalizationTempUnitKelvin = 0x02, +typedef NS_ENUM(uint8_t, MTRUnitLocalizationTempUnit) { + MTRUnitLocalizationTempUnitFahrenheit = 0x00, + MTRUnitLocalizationTempUnitCelsius = 0x01, + MTRUnitLocalizationTempUnitKelvin = 0x02, }; -typedef NS_OPTIONS(uint32_t, CHIPUnitLocalizationFeature) { - CHIPUnitLocalizationFeatureTemperatureUnit = 0x1, +typedef NS_OPTIONS(uint32_t, MTRUnitLocalizationFeature) { + MTRUnitLocalizationFeatureTemperatureUnit = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceBatChargeFaultType) { - CHIPPowerSourceBatChargeFaultTypeUnspecfied = 0x00, - CHIPPowerSourceBatChargeFaultTypeAmbientTooHot = 0x01, - CHIPPowerSourceBatChargeFaultTypeAmbientTooCold = 0x02, - CHIPPowerSourceBatChargeFaultTypeBatteryTooHot = 0x03, - CHIPPowerSourceBatChargeFaultTypeBatteryTooCold = 0x04, - CHIPPowerSourceBatChargeFaultTypeBatteryAbsent = 0x05, - CHIPPowerSourceBatChargeFaultTypeBatteryOverVoltage = 0x06, - CHIPPowerSourceBatChargeFaultTypeBatteryUnderVoltage = 0x07, - CHIPPowerSourceBatChargeFaultTypeChargerOverVoltage = 0x08, - CHIPPowerSourceBatChargeFaultTypeChargerUnderVoltage = 0x09, - CHIPPowerSourceBatChargeFaultTypeSafetyTimeout = 0x0A, +typedef NS_ENUM(uint8_t, MTRPowerSourceBatChargeFaultType) { + MTRPowerSourceBatChargeFaultTypeUnspecfied = 0x00, + MTRPowerSourceBatChargeFaultTypeAmbientTooHot = 0x01, + MTRPowerSourceBatChargeFaultTypeAmbientTooCold = 0x02, + MTRPowerSourceBatChargeFaultTypeBatteryTooHot = 0x03, + MTRPowerSourceBatChargeFaultTypeBatteryTooCold = 0x04, + MTRPowerSourceBatChargeFaultTypeBatteryAbsent = 0x05, + MTRPowerSourceBatChargeFaultTypeBatteryOverVoltage = 0x06, + MTRPowerSourceBatChargeFaultTypeBatteryUnderVoltage = 0x07, + MTRPowerSourceBatChargeFaultTypeChargerOverVoltage = 0x08, + MTRPowerSourceBatChargeFaultTypeChargerUnderVoltage = 0x09, + MTRPowerSourceBatChargeFaultTypeSafetyTimeout = 0x0A, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceBatChargeLevel) { - CHIPPowerSourceBatChargeLevelOk = 0x00, - CHIPPowerSourceBatChargeLevelWarning = 0x01, - CHIPPowerSourceBatChargeLevelCritical = 0x02, +typedef NS_ENUM(uint8_t, MTRPowerSourceBatChargeLevel) { + MTRPowerSourceBatChargeLevelOk = 0x00, + MTRPowerSourceBatChargeLevelWarning = 0x01, + MTRPowerSourceBatChargeLevelCritical = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceBatChargeState) { - CHIPPowerSourceBatChargeStateUnknown = 0x00, - CHIPPowerSourceBatChargeStateIsCharging = 0x01, - CHIPPowerSourceBatChargeStateIsAtFullCharge = 0x02, - CHIPPowerSourceBatChargeStateIsNotCharging = 0x03, +typedef NS_ENUM(uint8_t, MTRPowerSourceBatChargeState) { + MTRPowerSourceBatChargeStateUnknown = 0x00, + MTRPowerSourceBatChargeStateIsCharging = 0x01, + MTRPowerSourceBatChargeStateIsAtFullCharge = 0x02, + MTRPowerSourceBatChargeStateIsNotCharging = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceBatFaultType) { - CHIPPowerSourceBatFaultTypeUnspecfied = 0x00, - CHIPPowerSourceBatFaultTypeOverTemp = 0x01, - CHIPPowerSourceBatFaultTypeUnderTemp = 0x02, +typedef NS_ENUM(uint8_t, MTRPowerSourceBatFaultType) { + MTRPowerSourceBatFaultTypeUnspecfied = 0x00, + MTRPowerSourceBatFaultTypeOverTemp = 0x01, + MTRPowerSourceBatFaultTypeUnderTemp = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceBatReplaceability) { - CHIPPowerSourceBatReplaceabilityUnspecified = 0x00, - CHIPPowerSourceBatReplaceabilityNotReplaceable = 0x01, - CHIPPowerSourceBatReplaceabilityUserReplaceable = 0x02, - CHIPPowerSourceBatReplaceabilityFactoryReplaceable = 0x03, +typedef NS_ENUM(uint8_t, MTRPowerSourceBatReplaceability) { + MTRPowerSourceBatReplaceabilityUnspecified = 0x00, + MTRPowerSourceBatReplaceabilityNotReplaceable = 0x01, + MTRPowerSourceBatReplaceabilityUserReplaceable = 0x02, + MTRPowerSourceBatReplaceabilityFactoryReplaceable = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceStatus) { - CHIPPowerSourceStatusUnspecfied = 0x00, - CHIPPowerSourceStatusActive = 0x01, - CHIPPowerSourceStatusStandby = 0x02, - CHIPPowerSourceStatusUnavailable = 0x03, +typedef NS_ENUM(uint8_t, MTRPowerSourceStatus) { + MTRPowerSourceStatusUnspecfied = 0x00, + MTRPowerSourceStatusActive = 0x01, + MTRPowerSourceStatusStandby = 0x02, + MTRPowerSourceStatusUnavailable = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceWiredCurrentType) { - CHIPPowerSourceWiredCurrentTypeAC = 0x00, - CHIPPowerSourceWiredCurrentTypeDC = 0x01, +typedef NS_ENUM(uint8_t, MTRPowerSourceWiredCurrentType) { + MTRPowerSourceWiredCurrentTypeAC = 0x00, + MTRPowerSourceWiredCurrentTypeDC = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPPowerSourceWiredFaultType) { - CHIPPowerSourceWiredFaultTypeUnspecfied = 0x00, - CHIPPowerSourceWiredFaultTypeOverVoltage = 0x01, - CHIPPowerSourceWiredFaultTypeUnderVoltage = 0x02, +typedef NS_ENUM(uint8_t, MTRPowerSourceWiredFaultType) { + MTRPowerSourceWiredFaultTypeUnspecfied = 0x00, + MTRPowerSourceWiredFaultTypeOverVoltage = 0x01, + MTRPowerSourceWiredFaultTypeUnderVoltage = 0x02, }; -typedef NS_OPTIONS(uint32_t, CHIPPowerSourceFeature) { - CHIPPowerSourceFeatureWired = 0x1, - CHIPPowerSourceFeatureBattery = 0x2, - CHIPPowerSourceFeatureRechargeable = 0x4, - CHIPPowerSourceFeatureReplaceable = 0x8, +typedef NS_OPTIONS(uint32_t, MTRPowerSourceFeature) { + MTRPowerSourceFeatureWired = 0x1, + MTRPowerSourceFeatureBattery = 0x2, + MTRPowerSourceFeatureRechargeable = 0x4, + MTRPowerSourceFeatureReplaceable = 0x8, }; -typedef NS_ENUM(uint8_t, CHIPGeneralCommissioningCommissioningError) { - CHIPGeneralCommissioningCommissioningErrorOk = 0x00, - CHIPGeneralCommissioningCommissioningErrorValueOutsideRange = 0x01, - CHIPGeneralCommissioningCommissioningErrorInvalidAuthentication = 0x02, - CHIPGeneralCommissioningCommissioningErrorNoFailSafe = 0x03, - CHIPGeneralCommissioningCommissioningErrorBusyWithOtherAdmin = 0x04, +typedef NS_ENUM(uint8_t, MTRGeneralCommissioningCommissioningError) { + MTRGeneralCommissioningCommissioningErrorOk = 0x00, + MTRGeneralCommissioningCommissioningErrorValueOutsideRange = 0x01, + MTRGeneralCommissioningCommissioningErrorInvalidAuthentication = 0x02, + MTRGeneralCommissioningCommissioningErrorNoFailSafe = 0x03, + MTRGeneralCommissioningCommissioningErrorBusyWithOtherAdmin = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPGeneralCommissioningRegulatoryLocationType) { - CHIPGeneralCommissioningRegulatoryLocationTypeIndoor = 0x00, - CHIPGeneralCommissioningRegulatoryLocationTypeOutdoor = 0x01, - CHIPGeneralCommissioningRegulatoryLocationTypeIndoorOutdoor = 0x02, +typedef NS_ENUM(uint8_t, MTRGeneralCommissioningRegulatoryLocationType) { + MTRGeneralCommissioningRegulatoryLocationTypeIndoor = 0x00, + MTRGeneralCommissioningRegulatoryLocationTypeOutdoor = 0x01, + MTRGeneralCommissioningRegulatoryLocationTypeIndoorOutdoor = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPNetworkCommissioningStatus) { - CHIPNetworkCommissioningStatusSuccess = 0x00, - CHIPNetworkCommissioningStatusOutOfRange = 0x01, - CHIPNetworkCommissioningStatusBoundsExceeded = 0x02, - CHIPNetworkCommissioningStatusNetworkIDNotFound = 0x03, - CHIPNetworkCommissioningStatusDuplicateNetworkID = 0x04, - CHIPNetworkCommissioningStatusNetworkNotFound = 0x05, - CHIPNetworkCommissioningStatusRegulatoryError = 0x06, - CHIPNetworkCommissioningStatusAuthFailure = 0x07, - CHIPNetworkCommissioningStatusUnsupportedSecurity = 0x08, - CHIPNetworkCommissioningStatusOtherConnectionFailure = 0x09, - CHIPNetworkCommissioningStatusIPV6Failed = 0x0A, - CHIPNetworkCommissioningStatusIPBindFailed = 0x0B, - CHIPNetworkCommissioningStatusUnknownError = 0x0C, +typedef NS_ENUM(uint8_t, MTRNetworkCommissioningStatus) { + MTRNetworkCommissioningStatusSuccess = 0x00, + MTRNetworkCommissioningStatusOutOfRange = 0x01, + MTRNetworkCommissioningStatusBoundsExceeded = 0x02, + MTRNetworkCommissioningStatusNetworkIDNotFound = 0x03, + MTRNetworkCommissioningStatusDuplicateNetworkID = 0x04, + MTRNetworkCommissioningStatusNetworkNotFound = 0x05, + MTRNetworkCommissioningStatusRegulatoryError = 0x06, + MTRNetworkCommissioningStatusAuthFailure = 0x07, + MTRNetworkCommissioningStatusUnsupportedSecurity = 0x08, + MTRNetworkCommissioningStatusOtherConnectionFailure = 0x09, + MTRNetworkCommissioningStatusIPV6Failed = 0x0A, + MTRNetworkCommissioningStatusIPBindFailed = 0x0B, + MTRNetworkCommissioningStatusUnknownError = 0x0C, }; -typedef NS_ENUM(uint8_t, CHIPNetworkCommissioningWiFiBand) { - CHIPNetworkCommissioningWiFiBand2G4 = 0x00, - CHIPNetworkCommissioningWiFiBand3G65 = 0x01, - CHIPNetworkCommissioningWiFiBand5G = 0x02, - CHIPNetworkCommissioningWiFiBand6G = 0x03, - CHIPNetworkCommissioningWiFiBand60G = 0x04, +typedef NS_ENUM(uint8_t, MTRNetworkCommissioningWiFiBand) { + MTRNetworkCommissioningWiFiBand2G4 = 0x00, + MTRNetworkCommissioningWiFiBand3G65 = 0x01, + MTRNetworkCommissioningWiFiBand5G = 0x02, + MTRNetworkCommissioningWiFiBand6G = 0x03, + MTRNetworkCommissioningWiFiBand60G = 0x04, }; -typedef NS_OPTIONS(uint32_t, CHIPNetworkCommissioningFeature) { - CHIPNetworkCommissioningFeatureWiFiNetworkInterface = 0x1, - CHIPNetworkCommissioningFeatureThreadNetworkInterface = 0x2, - CHIPNetworkCommissioningFeatureEthernetNetworkInterface = 0x4, +typedef NS_OPTIONS(uint32_t, MTRNetworkCommissioningFeature) { + MTRNetworkCommissioningFeatureWiFiNetworkInterface = 0x1, + MTRNetworkCommissioningFeatureThreadNetworkInterface = 0x2, + MTRNetworkCommissioningFeatureEthernetNetworkInterface = 0x4, }; -typedef NS_OPTIONS(uint8_t, CHIPNetworkCommissioningWiFiSecurity) { - CHIPNetworkCommissioningWiFiSecurityUnencrypted = 0x1, - CHIPNetworkCommissioningWiFiSecurityWepPersonal = 0x2, - CHIPNetworkCommissioningWiFiSecurityWpaPersonal = 0x4, - CHIPNetworkCommissioningWiFiSecurityWpa2Personal = 0x8, - CHIPNetworkCommissioningWiFiSecurityWpa3Personal = 0x10, +typedef NS_OPTIONS(uint8_t, MTRNetworkCommissioningWiFiSecurity) { + MTRNetworkCommissioningWiFiSecurityUnencrypted = 0x1, + MTRNetworkCommissioningWiFiSecurityWepPersonal = 0x2, + MTRNetworkCommissioningWiFiSecurityWpaPersonal = 0x4, + MTRNetworkCommissioningWiFiSecurityWpa2Personal = 0x8, + MTRNetworkCommissioningWiFiSecurityWpa3Personal = 0x10, }; -typedef NS_ENUM(uint8_t, CHIPDiagnosticLogsLogsIntent) { - CHIPDiagnosticLogsLogsIntentEndUserSupport = 0x00, - CHIPDiagnosticLogsLogsIntentNetworkDiag = 0x01, - CHIPDiagnosticLogsLogsIntentCrashLogs = 0x02, +typedef NS_ENUM(uint8_t, MTRDiagnosticLogsLogsIntent) { + MTRDiagnosticLogsLogsIntentEndUserSupport = 0x00, + MTRDiagnosticLogsLogsIntentNetworkDiag = 0x01, + MTRDiagnosticLogsLogsIntentCrashLogs = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPDiagnosticLogsLogsStatus) { - CHIPDiagnosticLogsLogsStatusSuccess = 0x00, - CHIPDiagnosticLogsLogsStatusExhausted = 0x01, - CHIPDiagnosticLogsLogsStatusNoLogs = 0x02, - CHIPDiagnosticLogsLogsStatusBusy = 0x03, - CHIPDiagnosticLogsLogsStatusDenied = 0x04, +typedef NS_ENUM(uint8_t, MTRDiagnosticLogsLogsStatus) { + MTRDiagnosticLogsLogsStatusSuccess = 0x00, + MTRDiagnosticLogsLogsStatusExhausted = 0x01, + MTRDiagnosticLogsLogsStatusNoLogs = 0x02, + MTRDiagnosticLogsLogsStatusBusy = 0x03, + MTRDiagnosticLogsLogsStatusDenied = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPDiagnosticLogsLogsTransferProtocol) { - CHIPDiagnosticLogsLogsTransferProtocolResponsePayload = 0x00, - CHIPDiagnosticLogsLogsTransferProtocolBDX = 0x01, +typedef NS_ENUM(uint8_t, MTRDiagnosticLogsLogsTransferProtocol) { + MTRDiagnosticLogsLogsTransferProtocolResponsePayload = 0x00, + MTRDiagnosticLogsLogsTransferProtocolBDX = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPGeneralDiagnosticsBootReasonType) { - CHIPGeneralDiagnosticsBootReasonTypeUnspecified = 0x00, - CHIPGeneralDiagnosticsBootReasonTypePowerOnReboot = 0x01, - CHIPGeneralDiagnosticsBootReasonTypeBrownOutReset = 0x02, - CHIPGeneralDiagnosticsBootReasonTypeSoftwareWatchdogReset = 0x03, - CHIPGeneralDiagnosticsBootReasonTypeHardwareWatchdogReset = 0x04, - CHIPGeneralDiagnosticsBootReasonTypeSoftwareUpdateCompleted = 0x05, - CHIPGeneralDiagnosticsBootReasonTypeSoftwareReset = 0x06, +typedef NS_ENUM(uint8_t, MTRGeneralDiagnosticsBootReasonType) { + MTRGeneralDiagnosticsBootReasonTypeUnspecified = 0x00, + MTRGeneralDiagnosticsBootReasonTypePowerOnReboot = 0x01, + MTRGeneralDiagnosticsBootReasonTypeBrownOutReset = 0x02, + MTRGeneralDiagnosticsBootReasonTypeSoftwareWatchdogReset = 0x03, + MTRGeneralDiagnosticsBootReasonTypeHardwareWatchdogReset = 0x04, + MTRGeneralDiagnosticsBootReasonTypeSoftwareUpdateCompleted = 0x05, + MTRGeneralDiagnosticsBootReasonTypeSoftwareReset = 0x06, }; -typedef NS_ENUM(uint8_t, CHIPGeneralDiagnosticsHardwareFaultType) { - CHIPGeneralDiagnosticsHardwareFaultTypeUnspecified = 0x00, - CHIPGeneralDiagnosticsHardwareFaultTypeRadio = 0x01, - CHIPGeneralDiagnosticsHardwareFaultTypeSensor = 0x02, - CHIPGeneralDiagnosticsHardwareFaultTypeResettableOverTemp = 0x03, - CHIPGeneralDiagnosticsHardwareFaultTypeNonResettableOverTemp = 0x04, - CHIPGeneralDiagnosticsHardwareFaultTypePowerSource = 0x05, - CHIPGeneralDiagnosticsHardwareFaultTypeVisualDisplayFault = 0x06, - CHIPGeneralDiagnosticsHardwareFaultTypeAudioOutputFault = 0x07, - CHIPGeneralDiagnosticsHardwareFaultTypeUserInterfaceFault = 0x08, - CHIPGeneralDiagnosticsHardwareFaultTypeNonVolatileMemoryError = 0x09, - CHIPGeneralDiagnosticsHardwareFaultTypeTamperDetected = 0x0A, +typedef NS_ENUM(uint8_t, MTRGeneralDiagnosticsHardwareFaultType) { + MTRGeneralDiagnosticsHardwareFaultTypeUnspecified = 0x00, + MTRGeneralDiagnosticsHardwareFaultTypeRadio = 0x01, + MTRGeneralDiagnosticsHardwareFaultTypeSensor = 0x02, + MTRGeneralDiagnosticsHardwareFaultTypeResettableOverTemp = 0x03, + MTRGeneralDiagnosticsHardwareFaultTypeNonResettableOverTemp = 0x04, + MTRGeneralDiagnosticsHardwareFaultTypePowerSource = 0x05, + MTRGeneralDiagnosticsHardwareFaultTypeVisualDisplayFault = 0x06, + MTRGeneralDiagnosticsHardwareFaultTypeAudioOutputFault = 0x07, + MTRGeneralDiagnosticsHardwareFaultTypeUserInterfaceFault = 0x08, + MTRGeneralDiagnosticsHardwareFaultTypeNonVolatileMemoryError = 0x09, + MTRGeneralDiagnosticsHardwareFaultTypeTamperDetected = 0x0A, }; -typedef NS_ENUM(uint8_t, CHIPGeneralDiagnosticsInterfaceType) { - CHIPGeneralDiagnosticsInterfaceTypeUnspecified = 0x00, - CHIPGeneralDiagnosticsInterfaceTypeWiFi = 0x01, - CHIPGeneralDiagnosticsInterfaceTypeEthernet = 0x02, - CHIPGeneralDiagnosticsInterfaceTypeCellular = 0x03, - CHIPGeneralDiagnosticsInterfaceTypeThread = 0x04, +typedef NS_ENUM(uint8_t, MTRGeneralDiagnosticsInterfaceType) { + MTRGeneralDiagnosticsInterfaceTypeUnspecified = 0x00, + MTRGeneralDiagnosticsInterfaceTypeWiFi = 0x01, + MTRGeneralDiagnosticsInterfaceTypeEthernet = 0x02, + MTRGeneralDiagnosticsInterfaceTypeCellular = 0x03, + MTRGeneralDiagnosticsInterfaceTypeThread = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPGeneralDiagnosticsNetworkFaultType) { - CHIPGeneralDiagnosticsNetworkFaultTypeUnspecified = 0x00, - CHIPGeneralDiagnosticsNetworkFaultTypeHardwareFailure = 0x01, - CHIPGeneralDiagnosticsNetworkFaultTypeNetworkJammed = 0x02, - CHIPGeneralDiagnosticsNetworkFaultTypeConnectionFailed = 0x03, +typedef NS_ENUM(uint8_t, MTRGeneralDiagnosticsNetworkFaultType) { + MTRGeneralDiagnosticsNetworkFaultTypeUnspecified = 0x00, + MTRGeneralDiagnosticsNetworkFaultTypeHardwareFailure = 0x01, + MTRGeneralDiagnosticsNetworkFaultTypeNetworkJammed = 0x02, + MTRGeneralDiagnosticsNetworkFaultTypeConnectionFailed = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPGeneralDiagnosticsRadioFaultType) { - CHIPGeneralDiagnosticsRadioFaultTypeUnspecified = 0x00, - CHIPGeneralDiagnosticsRadioFaultTypeWiFiFault = 0x01, - CHIPGeneralDiagnosticsRadioFaultTypeCellularFault = 0x02, - CHIPGeneralDiagnosticsRadioFaultTypeThreadFault = 0x03, - CHIPGeneralDiagnosticsRadioFaultTypeNFCFault = 0x04, - CHIPGeneralDiagnosticsRadioFaultTypeBLEFault = 0x05, - CHIPGeneralDiagnosticsRadioFaultTypeEthernetFault = 0x06, +typedef NS_ENUM(uint8_t, MTRGeneralDiagnosticsRadioFaultType) { + MTRGeneralDiagnosticsRadioFaultTypeUnspecified = 0x00, + MTRGeneralDiagnosticsRadioFaultTypeWiFiFault = 0x01, + MTRGeneralDiagnosticsRadioFaultTypeCellularFault = 0x02, + MTRGeneralDiagnosticsRadioFaultTypeThreadFault = 0x03, + MTRGeneralDiagnosticsRadioFaultTypeNFCFault = 0x04, + MTRGeneralDiagnosticsRadioFaultTypeBLEFault = 0x05, + MTRGeneralDiagnosticsRadioFaultTypeEthernetFault = 0x06, }; -typedef NS_OPTIONS(uint32_t, CHIPSoftwareDiagnosticsFeature) { - CHIPSoftwareDiagnosticsFeatureWaterMarks = 0x1, +typedef NS_OPTIONS(uint32_t, MTRSoftwareDiagnosticsFeature) { + MTRSoftwareDiagnosticsFeatureWaterMarks = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPThreadNetworkDiagnosticsNetworkFault) { - CHIPThreadNetworkDiagnosticsNetworkFaultUnspecified = 0x00, - CHIPThreadNetworkDiagnosticsNetworkFaultLinkDown = 0x01, - CHIPThreadNetworkDiagnosticsNetworkFaultHardwareFailure = 0x02, - CHIPThreadNetworkDiagnosticsNetworkFaultNetworkJammed = 0x03, +typedef NS_ENUM(uint8_t, MTRThreadNetworkDiagnosticsNetworkFault) { + MTRThreadNetworkDiagnosticsNetworkFaultUnspecified = 0x00, + MTRThreadNetworkDiagnosticsNetworkFaultLinkDown = 0x01, + MTRThreadNetworkDiagnosticsNetworkFaultHardwareFailure = 0x02, + MTRThreadNetworkDiagnosticsNetworkFaultNetworkJammed = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPThreadNetworkDiagnosticsRoutingRole) { - CHIPThreadNetworkDiagnosticsRoutingRoleUnspecified = 0x00, - CHIPThreadNetworkDiagnosticsRoutingRoleUnassigned = 0x01, - CHIPThreadNetworkDiagnosticsRoutingRoleSleepyEndDevice = 0x02, - CHIPThreadNetworkDiagnosticsRoutingRoleEndDevice = 0x03, - CHIPThreadNetworkDiagnosticsRoutingRoleREED = 0x04, - CHIPThreadNetworkDiagnosticsRoutingRoleRouter = 0x05, - CHIPThreadNetworkDiagnosticsRoutingRoleLeader = 0x06, +typedef NS_ENUM(uint8_t, MTRThreadNetworkDiagnosticsRoutingRole) { + MTRThreadNetworkDiagnosticsRoutingRoleUnspecified = 0x00, + MTRThreadNetworkDiagnosticsRoutingRoleUnassigned = 0x01, + MTRThreadNetworkDiagnosticsRoutingRoleSleepyEndDevice = 0x02, + MTRThreadNetworkDiagnosticsRoutingRoleEndDevice = 0x03, + MTRThreadNetworkDiagnosticsRoutingRoleREED = 0x04, + MTRThreadNetworkDiagnosticsRoutingRoleRouter = 0x05, + MTRThreadNetworkDiagnosticsRoutingRoleLeader = 0x06, }; -typedef NS_ENUM(uint8_t, CHIPThreadNetworkDiagnosticsThreadConnectionStatus) { - CHIPThreadNetworkDiagnosticsThreadConnectionStatusConnected = 0x00, - CHIPThreadNetworkDiagnosticsThreadConnectionStatusNotConnected = 0x01, +typedef NS_ENUM(uint8_t, MTRThreadNetworkDiagnosticsThreadConnectionStatus) { + MTRThreadNetworkDiagnosticsThreadConnectionStatusConnected = 0x00, + MTRThreadNetworkDiagnosticsThreadConnectionStatusNotConnected = 0x01, }; -typedef NS_OPTIONS(uint32_t, CHIPThreadNetworkDiagnosticsFeature) { - CHIPThreadNetworkDiagnosticsFeaturePacketCounts = 0x1, - CHIPThreadNetworkDiagnosticsFeatureErrorCounts = 0x2, - CHIPThreadNetworkDiagnosticsFeatureMLECounts = 0x4, - CHIPThreadNetworkDiagnosticsFeatureMACCounts = 0x8, +typedef NS_OPTIONS(uint32_t, MTRThreadNetworkDiagnosticsFeature) { + MTRThreadNetworkDiagnosticsFeaturePacketCounts = 0x1, + MTRThreadNetworkDiagnosticsFeatureErrorCounts = 0x2, + MTRThreadNetworkDiagnosticsFeatureMLECounts = 0x4, + MTRThreadNetworkDiagnosticsFeatureMACCounts = 0x8, }; -typedef NS_ENUM(uint8_t, CHIPWiFiNetworkDiagnosticsAssociationFailureCause) { - CHIPWiFiNetworkDiagnosticsAssociationFailureCauseUnknown = 0x00, - CHIPWiFiNetworkDiagnosticsAssociationFailureCauseAssociationFailed = 0x01, - CHIPWiFiNetworkDiagnosticsAssociationFailureCauseAuthenticationFailed = 0x02, - CHIPWiFiNetworkDiagnosticsAssociationFailureCauseSsidNotFound = 0x03, +typedef NS_ENUM(uint8_t, MTRWiFiNetworkDiagnosticsAssociationFailureCause) { + MTRWiFiNetworkDiagnosticsAssociationFailureCauseUnknown = 0x00, + MTRWiFiNetworkDiagnosticsAssociationFailureCauseAssociationFailed = 0x01, + MTRWiFiNetworkDiagnosticsAssociationFailureCauseAuthenticationFailed = 0x02, + MTRWiFiNetworkDiagnosticsAssociationFailureCauseSsidNotFound = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPWiFiNetworkDiagnosticsSecurityType) { - CHIPWiFiNetworkDiagnosticsSecurityTypeUnspecified = 0x00, - CHIPWiFiNetworkDiagnosticsSecurityTypeNone = 0x01, - CHIPWiFiNetworkDiagnosticsSecurityTypeWEP = 0x02, - CHIPWiFiNetworkDiagnosticsSecurityTypeWPA = 0x03, - CHIPWiFiNetworkDiagnosticsSecurityTypeWPA2 = 0x04, - CHIPWiFiNetworkDiagnosticsSecurityTypeWPA3 = 0x05, +typedef NS_ENUM(uint8_t, MTRWiFiNetworkDiagnosticsSecurityType) { + MTRWiFiNetworkDiagnosticsSecurityTypeUnspecified = 0x00, + MTRWiFiNetworkDiagnosticsSecurityTypeNone = 0x01, + MTRWiFiNetworkDiagnosticsSecurityTypeWEP = 0x02, + MTRWiFiNetworkDiagnosticsSecurityTypeWPA = 0x03, + MTRWiFiNetworkDiagnosticsSecurityTypeWPA2 = 0x04, + MTRWiFiNetworkDiagnosticsSecurityTypeWPA3 = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPWiFiNetworkDiagnosticsWiFiConnectionStatus) { - CHIPWiFiNetworkDiagnosticsWiFiConnectionStatusConnected = 0x00, - CHIPWiFiNetworkDiagnosticsWiFiConnectionStatusNotConnected = 0x01, +typedef NS_ENUM(uint8_t, MTRWiFiNetworkDiagnosticsWiFiConnectionStatus) { + MTRWiFiNetworkDiagnosticsWiFiConnectionStatusConnected = 0x00, + MTRWiFiNetworkDiagnosticsWiFiConnectionStatusNotConnected = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPWiFiNetworkDiagnosticsWiFiVersionType) { - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211a = 0x00, - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211b = 0x01, - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211g = 0x02, - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211n = 0x03, - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211ac = 0x04, - CHIPWiFiNetworkDiagnosticsWiFiVersionType80211ax = 0x05, +typedef NS_ENUM(uint8_t, MTRWiFiNetworkDiagnosticsWiFiVersionType) { + MTRWiFiNetworkDiagnosticsWiFiVersionType80211a = 0x00, + MTRWiFiNetworkDiagnosticsWiFiVersionType80211b = 0x01, + MTRWiFiNetworkDiagnosticsWiFiVersionType80211g = 0x02, + MTRWiFiNetworkDiagnosticsWiFiVersionType80211n = 0x03, + MTRWiFiNetworkDiagnosticsWiFiVersionType80211ac = 0x04, + MTRWiFiNetworkDiagnosticsWiFiVersionType80211ax = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPEthernetNetworkDiagnosticsPHYRateType) { - CHIPEthernetNetworkDiagnosticsPHYRateType10M = 0x00, - CHIPEthernetNetworkDiagnosticsPHYRateType100M = 0x01, - CHIPEthernetNetworkDiagnosticsPHYRateType1000M = 0x02, - CHIPEthernetNetworkDiagnosticsPHYRateType25G = 0x03, - CHIPEthernetNetworkDiagnosticsPHYRateType5G = 0x04, - CHIPEthernetNetworkDiagnosticsPHYRateType10G = 0x05, - CHIPEthernetNetworkDiagnosticsPHYRateType40G = 0x06, - CHIPEthernetNetworkDiagnosticsPHYRateType100G = 0x07, - CHIPEthernetNetworkDiagnosticsPHYRateType200G = 0x08, - CHIPEthernetNetworkDiagnosticsPHYRateType400G = 0x09, +typedef NS_ENUM(uint8_t, MTREthernetNetworkDiagnosticsPHYRateType) { + MTREthernetNetworkDiagnosticsPHYRateType10M = 0x00, + MTREthernetNetworkDiagnosticsPHYRateType100M = 0x01, + MTREthernetNetworkDiagnosticsPHYRateType1000M = 0x02, + MTREthernetNetworkDiagnosticsPHYRateType25G = 0x03, + MTREthernetNetworkDiagnosticsPHYRateType5G = 0x04, + MTREthernetNetworkDiagnosticsPHYRateType10G = 0x05, + MTREthernetNetworkDiagnosticsPHYRateType40G = 0x06, + MTREthernetNetworkDiagnosticsPHYRateType100G = 0x07, + MTREthernetNetworkDiagnosticsPHYRateType200G = 0x08, + MTREthernetNetworkDiagnosticsPHYRateType400G = 0x09, }; -typedef NS_ENUM(uint8_t, CHIPAdministratorCommissioningCommissioningWindowStatus) { - CHIPAdministratorCommissioningCommissioningWindowStatusWindowNotOpen = 0x00, - CHIPAdministratorCommissioningCommissioningWindowStatusEnhancedWindowOpen = 0x01, - CHIPAdministratorCommissioningCommissioningWindowStatusBasicWindowOpen = 0x02, +typedef NS_ENUM(uint8_t, MTRAdministratorCommissioningCommissioningWindowStatus) { + MTRAdministratorCommissioningCommissioningWindowStatusWindowNotOpen = 0x00, + MTRAdministratorCommissioningCommissioningWindowStatusEnhancedWindowOpen = 0x01, + MTRAdministratorCommissioningCommissioningWindowStatusBasicWindowOpen = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPAdministratorCommissioningStatusCode) { - CHIPAdministratorCommissioningStatusCodeBusy = 0x01, - CHIPAdministratorCommissioningStatusCodePAKEParameterError = 0x02, - CHIPAdministratorCommissioningStatusCodeWindowNotOpen = 0x03, +typedef NS_ENUM(uint8_t, MTRAdministratorCommissioningStatusCode) { + MTRAdministratorCommissioningStatusCodeBusy = 0x01, + MTRAdministratorCommissioningStatusCodePAKEParameterError = 0x02, + MTRAdministratorCommissioningStatusCodeWindowNotOpen = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPOperationalCredentialsOperationalCertStatus) { - CHIPOperationalCredentialsOperationalCertStatusSUCCESS = 0x00, - CHIPOperationalCredentialsOperationalCertStatusInvalidPublicKey = 0x01, - CHIPOperationalCredentialsOperationalCertStatusInvalidNodeOpId = 0x02, - CHIPOperationalCredentialsOperationalCertStatusInvalidNOC = 0x03, - CHIPOperationalCredentialsOperationalCertStatusMissingCsr = 0x04, - CHIPOperationalCredentialsOperationalCertStatusTableFull = 0x05, - CHIPOperationalCredentialsOperationalCertStatusInvalidAdminSubject = 0x06, - CHIPOperationalCredentialsOperationalCertStatusInsufficientPrivilege = 0x08, - CHIPOperationalCredentialsOperationalCertStatusFabricConflict = 0x09, - CHIPOperationalCredentialsOperationalCertStatusLabelConflict = 0x0A, - CHIPOperationalCredentialsOperationalCertStatusInvalidFabricIndex = 0x0B, +typedef NS_ENUM(uint8_t, MTROperationalCredentialsOperationalCertStatus) { + MTROperationalCredentialsOperationalCertStatusSUCCESS = 0x00, + MTROperationalCredentialsOperationalCertStatusInvalidPublicKey = 0x01, + MTROperationalCredentialsOperationalCertStatusInvalidNodeOpId = 0x02, + MTROperationalCredentialsOperationalCertStatusInvalidNOC = 0x03, + MTROperationalCredentialsOperationalCertStatusMissingCsr = 0x04, + MTROperationalCredentialsOperationalCertStatusTableFull = 0x05, + MTROperationalCredentialsOperationalCertStatusInvalidAdminSubject = 0x06, + MTROperationalCredentialsOperationalCertStatusInsufficientPrivilege = 0x08, + MTROperationalCredentialsOperationalCertStatusFabricConflict = 0x09, + MTROperationalCredentialsOperationalCertStatusLabelConflict = 0x0A, + MTROperationalCredentialsOperationalCertStatusInvalidFabricIndex = 0x0B, }; -typedef NS_ENUM(uint8_t, CHIPGroupKeyManagementGroupKeySecurityPolicy) { - CHIPGroupKeyManagementGroupKeySecurityPolicyTrustFirst = 0x00, - CHIPGroupKeyManagementGroupKeySecurityPolicyCacheAndSync = 0x01, +typedef NS_ENUM(uint8_t, MTRGroupKeyManagementGroupKeySecurityPolicy) { + MTRGroupKeyManagementGroupKeySecurityPolicyTrustFirst = 0x00, + MTRGroupKeyManagementGroupKeySecurityPolicyCacheAndSync = 0x01, }; -typedef NS_OPTIONS(uint32_t, CHIPModeSelectFeature) { - CHIPModeSelectFeatureDEPONOFF = 0x1, +typedef NS_OPTIONS(uint32_t, MTRModeSelectFeature) { + MTRModeSelectFeatureDEPONOFF = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlAlarmCode) { - CHIPDoorLockDlAlarmCodeLockJammed = 0x00, - CHIPDoorLockDlAlarmCodeLockFactoryReset = 0x01, - CHIPDoorLockDlAlarmCodeLockRadioPowerCycled = 0x03, - CHIPDoorLockDlAlarmCodeWrongCodeEntryLimit = 0x04, - CHIPDoorLockDlAlarmCodeFrontEsceutcheonRemoved = 0x05, - CHIPDoorLockDlAlarmCodeDoorForcedOpen = 0x06, - CHIPDoorLockDlAlarmCodeDoorAjar = 0x07, - CHIPDoorLockDlAlarmCodeForcedUser = 0x08, +typedef NS_ENUM(uint8_t, MTRDoorLockDlAlarmCode) { + MTRDoorLockDlAlarmCodeLockJammed = 0x00, + MTRDoorLockDlAlarmCodeLockFactoryReset = 0x01, + MTRDoorLockDlAlarmCodeLockRadioPowerCycled = 0x03, + MTRDoorLockDlAlarmCodeWrongCodeEntryLimit = 0x04, + MTRDoorLockDlAlarmCodeFrontEsceutcheonRemoved = 0x05, + MTRDoorLockDlAlarmCodeDoorForcedOpen = 0x06, + MTRDoorLockDlAlarmCodeDoorAjar = 0x07, + MTRDoorLockDlAlarmCodeForcedUser = 0x08, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlCredentialRule) { - CHIPDoorLockDlCredentialRuleSingle = 0x00, - CHIPDoorLockDlCredentialRuleDouble = 0x01, - CHIPDoorLockDlCredentialRuleTri = 0x02, +typedef NS_ENUM(uint8_t, MTRDoorLockDlCredentialRule) { + MTRDoorLockDlCredentialRuleSingle = 0x00, + MTRDoorLockDlCredentialRuleDouble = 0x01, + MTRDoorLockDlCredentialRuleTri = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlCredentialType) { - CHIPDoorLockDlCredentialTypeProgrammingPIN = 0x00, - CHIPDoorLockDlCredentialTypePIN = 0x01, - CHIPDoorLockDlCredentialTypeRFID = 0x02, - CHIPDoorLockDlCredentialTypeFingerprint = 0x03, - CHIPDoorLockDlCredentialTypeFingerVein = 0x04, - CHIPDoorLockDlCredentialTypeFace = 0x05, +typedef NS_ENUM(uint8_t, MTRDoorLockDlCredentialType) { + MTRDoorLockDlCredentialTypeProgrammingPIN = 0x00, + MTRDoorLockDlCredentialTypePIN = 0x01, + MTRDoorLockDlCredentialTypeRFID = 0x02, + MTRDoorLockDlCredentialTypeFingerprint = 0x03, + MTRDoorLockDlCredentialTypeFingerVein = 0x04, + MTRDoorLockDlCredentialTypeFace = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlDataOperationType) { - CHIPDoorLockDlDataOperationTypeAdd = 0x00, - CHIPDoorLockDlDataOperationTypeClear = 0x01, - CHIPDoorLockDlDataOperationTypeModify = 0x02, +typedef NS_ENUM(uint8_t, MTRDoorLockDlDataOperationType) { + MTRDoorLockDlDataOperationTypeAdd = 0x00, + MTRDoorLockDlDataOperationTypeClear = 0x01, + MTRDoorLockDlDataOperationTypeModify = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlDoorState) { - CHIPDoorLockDlDoorStateDoorOpen = 0x00, - CHIPDoorLockDlDoorStateDoorClosed = 0x01, - CHIPDoorLockDlDoorStateDoorJammed = 0x02, - CHIPDoorLockDlDoorStateDoorForcedOpen = 0x03, - CHIPDoorLockDlDoorStateDoorUnspecifiedError = 0x04, - CHIPDoorLockDlDoorStateDoorAjar = 0x05, +typedef NS_ENUM(uint8_t, MTRDoorLockDlDoorState) { + MTRDoorLockDlDoorStateDoorOpen = 0x00, + MTRDoorLockDlDoorStateDoorClosed = 0x01, + MTRDoorLockDlDoorStateDoorJammed = 0x02, + MTRDoorLockDlDoorStateDoorForcedOpen = 0x03, + MTRDoorLockDlDoorStateDoorUnspecifiedError = 0x04, + MTRDoorLockDlDoorStateDoorAjar = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlLockDataType) { - CHIPDoorLockDlLockDataTypeUnspecified = 0x00, - CHIPDoorLockDlLockDataTypeProgrammingCode = 0x01, - CHIPDoorLockDlLockDataTypeUserIndex = 0x02, - CHIPDoorLockDlLockDataTypeWeekDaySchedule = 0x03, - CHIPDoorLockDlLockDataTypeYearDaySchedule = 0x04, - CHIPDoorLockDlLockDataTypeHolidaySchedule = 0x05, - CHIPDoorLockDlLockDataTypePIN = 0x06, - CHIPDoorLockDlLockDataTypeRFID = 0x07, - CHIPDoorLockDlLockDataTypeFingerprint = 0x08, +typedef NS_ENUM(uint8_t, MTRDoorLockDlLockDataType) { + MTRDoorLockDlLockDataTypeUnspecified = 0x00, + MTRDoorLockDlLockDataTypeProgrammingCode = 0x01, + MTRDoorLockDlLockDataTypeUserIndex = 0x02, + MTRDoorLockDlLockDataTypeWeekDaySchedule = 0x03, + MTRDoorLockDlLockDataTypeYearDaySchedule = 0x04, + MTRDoorLockDlLockDataTypeHolidaySchedule = 0x05, + MTRDoorLockDlLockDataTypePIN = 0x06, + MTRDoorLockDlLockDataTypeRFID = 0x07, + MTRDoorLockDlLockDataTypeFingerprint = 0x08, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlLockOperationType) { - CHIPDoorLockDlLockOperationTypeLock = 0x00, - CHIPDoorLockDlLockOperationTypeUnlock = 0x01, - CHIPDoorLockDlLockOperationTypeNonAccessUserEvent = 0x02, - CHIPDoorLockDlLockOperationTypeForcedUserEvent = 0x03, +typedef NS_ENUM(uint8_t, MTRDoorLockDlLockOperationType) { + MTRDoorLockDlLockOperationTypeLock = 0x00, + MTRDoorLockDlLockOperationTypeUnlock = 0x01, + MTRDoorLockDlLockOperationTypeNonAccessUserEvent = 0x02, + MTRDoorLockDlLockOperationTypeForcedUserEvent = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlLockState) { - CHIPDoorLockDlLockStateNotFullyLocked = 0x00, - CHIPDoorLockDlLockStateLocked = 0x01, - CHIPDoorLockDlLockStateUnlocked = 0x02, +typedef NS_ENUM(uint8_t, MTRDoorLockDlLockState) { + MTRDoorLockDlLockStateNotFullyLocked = 0x00, + MTRDoorLockDlLockStateLocked = 0x01, + MTRDoorLockDlLockStateUnlocked = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlLockType) { - CHIPDoorLockDlLockTypeDeadBolt = 0x00, - CHIPDoorLockDlLockTypeMagnetic = 0x01, - CHIPDoorLockDlLockTypeOther = 0x02, - CHIPDoorLockDlLockTypeMortise = 0x03, - CHIPDoorLockDlLockTypeRim = 0x04, - CHIPDoorLockDlLockTypeLatchBolt = 0x05, - CHIPDoorLockDlLockTypeCylindricalLock = 0x06, - CHIPDoorLockDlLockTypeTubularLock = 0x07, - CHIPDoorLockDlLockTypeInterconnectedLock = 0x08, - CHIPDoorLockDlLockTypeDeadLatch = 0x09, - CHIPDoorLockDlLockTypeDoorFurniture = 0x0A, +typedef NS_ENUM(uint8_t, MTRDoorLockDlLockType) { + MTRDoorLockDlLockTypeDeadBolt = 0x00, + MTRDoorLockDlLockTypeMagnetic = 0x01, + MTRDoorLockDlLockTypeOther = 0x02, + MTRDoorLockDlLockTypeMortise = 0x03, + MTRDoorLockDlLockTypeRim = 0x04, + MTRDoorLockDlLockTypeLatchBolt = 0x05, + MTRDoorLockDlLockTypeCylindricalLock = 0x06, + MTRDoorLockDlLockTypeTubularLock = 0x07, + MTRDoorLockDlLockTypeInterconnectedLock = 0x08, + MTRDoorLockDlLockTypeDeadLatch = 0x09, + MTRDoorLockDlLockTypeDoorFurniture = 0x0A, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlOperatingMode) { - CHIPDoorLockDlOperatingModeNormal = 0x00, - CHIPDoorLockDlOperatingModeVacation = 0x01, - CHIPDoorLockDlOperatingModePrivacy = 0x02, - CHIPDoorLockDlOperatingModeNoRemoteLockUnlock = 0x03, - CHIPDoorLockDlOperatingModePassage = 0x04, +typedef NS_ENUM(uint8_t, MTRDoorLockDlOperatingMode) { + MTRDoorLockDlOperatingModeNormal = 0x00, + MTRDoorLockDlOperatingModeVacation = 0x01, + MTRDoorLockDlOperatingModePrivacy = 0x02, + MTRDoorLockDlOperatingModeNoRemoteLockUnlock = 0x03, + MTRDoorLockDlOperatingModePassage = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlOperationError) { - CHIPDoorLockDlOperationErrorUnspecified = 0x00, - CHIPDoorLockDlOperationErrorInvalidCredential = 0x01, - CHIPDoorLockDlOperationErrorDisabledUserDenied = 0x02, - CHIPDoorLockDlOperationErrorRestricted = 0x03, - CHIPDoorLockDlOperationErrorInsufficientBattery = 0x04, +typedef NS_ENUM(uint8_t, MTRDoorLockDlOperationError) { + MTRDoorLockDlOperationErrorUnspecified = 0x00, + MTRDoorLockDlOperationErrorInvalidCredential = 0x01, + MTRDoorLockDlOperationErrorDisabledUserDenied = 0x02, + MTRDoorLockDlOperationErrorRestricted = 0x03, + MTRDoorLockDlOperationErrorInsufficientBattery = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlOperationSource) { - CHIPDoorLockDlOperationSourceUnspecified = 0x00, - CHIPDoorLockDlOperationSourceManual = 0x01, - CHIPDoorLockDlOperationSourceProprietaryRemote = 0x02, - CHIPDoorLockDlOperationSourceKeypad = 0x03, - CHIPDoorLockDlOperationSourceAuto = 0x04, - CHIPDoorLockDlOperationSourceButton = 0x05, - CHIPDoorLockDlOperationSourceSchedule = 0x06, - CHIPDoorLockDlOperationSourceRemote = 0x07, - CHIPDoorLockDlOperationSourceRFID = 0x08, - CHIPDoorLockDlOperationSourceBiometric = 0x09, +typedef NS_ENUM(uint8_t, MTRDoorLockDlOperationSource) { + MTRDoorLockDlOperationSourceUnspecified = 0x00, + MTRDoorLockDlOperationSourceManual = 0x01, + MTRDoorLockDlOperationSourceProprietaryRemote = 0x02, + MTRDoorLockDlOperationSourceKeypad = 0x03, + MTRDoorLockDlOperationSourceAuto = 0x04, + MTRDoorLockDlOperationSourceButton = 0x05, + MTRDoorLockDlOperationSourceSchedule = 0x06, + MTRDoorLockDlOperationSourceRemote = 0x07, + MTRDoorLockDlOperationSourceRFID = 0x08, + MTRDoorLockDlOperationSourceBiometric = 0x09, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlStatus) { - CHIPDoorLockDlStatusSuccess = 0x00, - CHIPDoorLockDlStatusFailure = 0x01, - CHIPDoorLockDlStatusDuplicate = 0x02, - CHIPDoorLockDlStatusOccupied = 0x03, - CHIPDoorLockDlStatusInvalidField = 0x85, - CHIPDoorLockDlStatusResourceExhausted = 0x89, - CHIPDoorLockDlStatusNotFound = 0x8B, +typedef NS_ENUM(uint8_t, MTRDoorLockDlStatus) { + MTRDoorLockDlStatusSuccess = 0x00, + MTRDoorLockDlStatusFailure = 0x01, + MTRDoorLockDlStatusDuplicate = 0x02, + MTRDoorLockDlStatusOccupied = 0x03, + MTRDoorLockDlStatusInvalidField = 0x85, + MTRDoorLockDlStatusResourceExhausted = 0x89, + MTRDoorLockDlStatusNotFound = 0x8B, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlUserStatus) { - CHIPDoorLockDlUserStatusAvailable = 0x00, - CHIPDoorLockDlUserStatusOccupiedEnabled = 0x01, - CHIPDoorLockDlUserStatusOccupiedDisabled = 0x03, +typedef NS_ENUM(uint8_t, MTRDoorLockDlUserStatus) { + MTRDoorLockDlUserStatusAvailable = 0x00, + MTRDoorLockDlUserStatusOccupiedEnabled = 0x01, + MTRDoorLockDlUserStatusOccupiedDisabled = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockDlUserType) { - CHIPDoorLockDlUserTypeUnrestrictedUser = 0x00, - CHIPDoorLockDlUserTypeYearDayScheduleUser = 0x01, - CHIPDoorLockDlUserTypeWeekDayScheduleUser = 0x02, - CHIPDoorLockDlUserTypeProgrammingUser = 0x03, - CHIPDoorLockDlUserTypeNonAccessUser = 0x04, - CHIPDoorLockDlUserTypeForcedUser = 0x05, - CHIPDoorLockDlUserTypeDisposableUser = 0x06, - CHIPDoorLockDlUserTypeExpiringUser = 0x07, - CHIPDoorLockDlUserTypeScheduleRestrictedUser = 0x08, - CHIPDoorLockDlUserTypeRemoteOnlyUser = 0x09, +typedef NS_ENUM(uint8_t, MTRDoorLockDlUserType) { + MTRDoorLockDlUserTypeUnrestrictedUser = 0x00, + MTRDoorLockDlUserTypeYearDayScheduleUser = 0x01, + MTRDoorLockDlUserTypeWeekDayScheduleUser = 0x02, + MTRDoorLockDlUserTypeProgrammingUser = 0x03, + MTRDoorLockDlUserTypeNonAccessUser = 0x04, + MTRDoorLockDlUserTypeForcedUser = 0x05, + MTRDoorLockDlUserTypeDisposableUser = 0x06, + MTRDoorLockDlUserTypeExpiringUser = 0x07, + MTRDoorLockDlUserTypeScheduleRestrictedUser = 0x08, + MTRDoorLockDlUserTypeRemoteOnlyUser = 0x09, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockOperationEventCode) { - CHIPDoorLockOperationEventCodeUnknownOrMfgSpecific = 0x00, - CHIPDoorLockOperationEventCodeLock = 0x01, - CHIPDoorLockOperationEventCodeUnlock = 0x02, - CHIPDoorLockOperationEventCodeLockInvalidPinOrId = 0x03, - CHIPDoorLockOperationEventCodeLockInvalidSchedule = 0x04, - CHIPDoorLockOperationEventCodeUnlockInvalidPinOrId = 0x05, - CHIPDoorLockOperationEventCodeUnlockInvalidSchedule = 0x06, - CHIPDoorLockOperationEventCodeOneTouchLock = 0x07, - CHIPDoorLockOperationEventCodeKeyLock = 0x08, - CHIPDoorLockOperationEventCodeKeyUnlock = 0x09, - CHIPDoorLockOperationEventCodeAutoLock = 0x0A, - CHIPDoorLockOperationEventCodeScheduleLock = 0x0B, - CHIPDoorLockOperationEventCodeScheduleUnlock = 0x0C, - CHIPDoorLockOperationEventCodeManualLock = 0x0D, - CHIPDoorLockOperationEventCodeManualUnlock = 0x0E, +typedef NS_ENUM(uint8_t, MTRDoorLockOperationEventCode) { + MTRDoorLockOperationEventCodeUnknownOrMfgSpecific = 0x00, + MTRDoorLockOperationEventCodeLock = 0x01, + MTRDoorLockOperationEventCodeUnlock = 0x02, + MTRDoorLockOperationEventCodeLockInvalidPinOrId = 0x03, + MTRDoorLockOperationEventCodeLockInvalidSchedule = 0x04, + MTRDoorLockOperationEventCodeUnlockInvalidPinOrId = 0x05, + MTRDoorLockOperationEventCodeUnlockInvalidSchedule = 0x06, + MTRDoorLockOperationEventCodeOneTouchLock = 0x07, + MTRDoorLockOperationEventCodeKeyLock = 0x08, + MTRDoorLockOperationEventCodeKeyUnlock = 0x09, + MTRDoorLockOperationEventCodeAutoLock = 0x0A, + MTRDoorLockOperationEventCodeScheduleLock = 0x0B, + MTRDoorLockOperationEventCodeScheduleUnlock = 0x0C, + MTRDoorLockOperationEventCodeManualLock = 0x0D, + MTRDoorLockOperationEventCodeManualUnlock = 0x0E, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockProgrammingEventCode) { - CHIPDoorLockProgrammingEventCodeUnknownOrMfgSpecific = 0x00, - CHIPDoorLockProgrammingEventCodeMasterCodeChanged = 0x01, - CHIPDoorLockProgrammingEventCodePinAdded = 0x02, - CHIPDoorLockProgrammingEventCodePinDeleted = 0x03, - CHIPDoorLockProgrammingEventCodePinChanged = 0x04, - CHIPDoorLockProgrammingEventCodeIdAdded = 0x05, - CHIPDoorLockProgrammingEventCodeIdDeleted = 0x06, +typedef NS_ENUM(uint8_t, MTRDoorLockProgrammingEventCode) { + MTRDoorLockProgrammingEventCodeUnknownOrMfgSpecific = 0x00, + MTRDoorLockProgrammingEventCodeMasterCodeChanged = 0x01, + MTRDoorLockProgrammingEventCodePinAdded = 0x02, + MTRDoorLockProgrammingEventCodePinDeleted = 0x03, + MTRDoorLockProgrammingEventCodePinChanged = 0x04, + MTRDoorLockProgrammingEventCodeIdAdded = 0x05, + MTRDoorLockProgrammingEventCodeIdDeleted = 0x06, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockSetPinOrIdStatus) { - CHIPDoorLockSetPinOrIdStatusSuccess = 0x00, - CHIPDoorLockSetPinOrIdStatusGeneralFailure = 0x01, - CHIPDoorLockSetPinOrIdStatusMemoryFull = 0x02, - CHIPDoorLockSetPinOrIdStatusDuplicateCodeError = 0x03, +typedef NS_ENUM(uint8_t, MTRDoorLockSetPinOrIdStatus) { + MTRDoorLockSetPinOrIdStatusSuccess = 0x00, + MTRDoorLockSetPinOrIdStatusGeneralFailure = 0x01, + MTRDoorLockSetPinOrIdStatusMemoryFull = 0x02, + MTRDoorLockSetPinOrIdStatusDuplicateCodeError = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockUserStatus) { - CHIPDoorLockUserStatusAvailable = 0x00, - CHIPDoorLockUserStatusOccupiedEnabled = 0x01, - CHIPDoorLockUserStatusOccupiedDisabled = 0x03, - CHIPDoorLockUserStatusNotSupported = 0xFF, +typedef NS_ENUM(uint8_t, MTRDoorLockUserStatus) { + MTRDoorLockUserStatusAvailable = 0x00, + MTRDoorLockUserStatusOccupiedEnabled = 0x01, + MTRDoorLockUserStatusOccupiedDisabled = 0x03, + MTRDoorLockUserStatusNotSupported = 0xFF, }; -typedef NS_ENUM(uint8_t, CHIPDoorLockUserType) { - CHIPDoorLockUserTypeUnrestricted = 0x00, - CHIPDoorLockUserTypeYearDayScheduleUser = 0x01, - CHIPDoorLockUserTypeWeekDayScheduleUser = 0x02, - CHIPDoorLockUserTypeMasterUser = 0x03, - CHIPDoorLockUserTypeNonAccessUser = 0x04, - CHIPDoorLockUserTypeNotSupported = 0xFF, +typedef NS_ENUM(uint8_t, MTRDoorLockUserType) { + MTRDoorLockUserTypeUnrestricted = 0x00, + MTRDoorLockUserTypeYearDayScheduleUser = 0x01, + MTRDoorLockUserTypeWeekDayScheduleUser = 0x02, + MTRDoorLockUserTypeMasterUser = 0x03, + MTRDoorLockUserTypeNonAccessUser = 0x04, + MTRDoorLockUserTypeNotSupported = 0xFF, }; -typedef NS_OPTIONS(uint8_t, CHIPDoorLockDlCredentialRuleMask) { - CHIPDoorLockDlCredentialRuleMaskSingle = 0x1, - CHIPDoorLockDlCredentialRuleMaskDual = 0x2, - CHIPDoorLockDlCredentialRuleMaskTri = 0x4, +typedef NS_OPTIONS(uint8_t, MTRDoorLockDlCredentialRuleMask) { + MTRDoorLockDlCredentialRuleMaskSingle = 0x1, + MTRDoorLockDlCredentialRuleMaskDual = 0x2, + MTRDoorLockDlCredentialRuleMaskTri = 0x4, }; -typedef NS_OPTIONS(uint8_t, CHIPDoorLockDlCredentialRulesSupport) { - CHIPDoorLockDlCredentialRulesSupportSingle = 0x1, - CHIPDoorLockDlCredentialRulesSupportDual = 0x2, - CHIPDoorLockDlCredentialRulesSupportTri = 0x4, +typedef NS_OPTIONS(uint8_t, MTRDoorLockDlCredentialRulesSupport) { + MTRDoorLockDlCredentialRulesSupportSingle = 0x1, + MTRDoorLockDlCredentialRulesSupportDual = 0x2, + MTRDoorLockDlCredentialRulesSupportTri = 0x4, }; -typedef NS_OPTIONS(uint8_t, CHIPDoorLockDlDaysMaskMap) { - CHIPDoorLockDlDaysMaskMapSunday = 0x1, - CHIPDoorLockDlDaysMaskMapMonday = 0x2, - CHIPDoorLockDlDaysMaskMapTuesday = 0x4, - CHIPDoorLockDlDaysMaskMapWednesday = 0x8, - CHIPDoorLockDlDaysMaskMapThursday = 0x10, - CHIPDoorLockDlDaysMaskMapFriday = 0x20, - CHIPDoorLockDlDaysMaskMapSaturday = 0x40, +typedef NS_OPTIONS(uint8_t, MTRDoorLockDlDaysMaskMap) { + MTRDoorLockDlDaysMaskMapSunday = 0x1, + MTRDoorLockDlDaysMaskMapMonday = 0x2, + MTRDoorLockDlDaysMaskMapTuesday = 0x4, + MTRDoorLockDlDaysMaskMapWednesday = 0x8, + MTRDoorLockDlDaysMaskMapThursday = 0x10, + MTRDoorLockDlDaysMaskMapFriday = 0x20, + MTRDoorLockDlDaysMaskMapSaturday = 0x40, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlDefaultConfigurationRegister) { - CHIPDoorLockDlDefaultConfigurationRegisterEnableLocalProgrammingEnabled = 0x1, - CHIPDoorLockDlDefaultConfigurationRegisterKeypadInterfaceDefaultAccessEnabled = 0x2, - CHIPDoorLockDlDefaultConfigurationRegisterRemoteInterfaceDefaultAccessIsEnabled = 0x4, - CHIPDoorLockDlDefaultConfigurationRegisterSoundEnabled = 0x20, - CHIPDoorLockDlDefaultConfigurationRegisterAutoRelockTimeSet = 0x40, - CHIPDoorLockDlDefaultConfigurationRegisterLEDSettingsSet = 0x80, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlDefaultConfigurationRegister) { + MTRDoorLockDlDefaultConfigurationRegisterEnableLocalProgrammingEnabled = 0x1, + MTRDoorLockDlDefaultConfigurationRegisterKeypadInterfaceDefaultAccessEnabled = 0x2, + MTRDoorLockDlDefaultConfigurationRegisterRemoteInterfaceDefaultAccessIsEnabled = 0x4, + MTRDoorLockDlDefaultConfigurationRegisterSoundEnabled = 0x20, + MTRDoorLockDlDefaultConfigurationRegisterAutoRelockTimeSet = 0x40, + MTRDoorLockDlDefaultConfigurationRegisterLEDSettingsSet = 0x80, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlKeypadOperationEventMask) { - CHIPDoorLockDlKeypadOperationEventMaskUnknown = 0x1, - CHIPDoorLockDlKeypadOperationEventMaskLock = 0x2, - CHIPDoorLockDlKeypadOperationEventMaskUnlock = 0x4, - CHIPDoorLockDlKeypadOperationEventMaskLockInvalidPIN = 0x8, - CHIPDoorLockDlKeypadOperationEventMaskLockInvalidSchedule = 0x10, - CHIPDoorLockDlKeypadOperationEventMaskUnlockInvalidCode = 0x20, - CHIPDoorLockDlKeypadOperationEventMaskUnlockInvalidSchedule = 0x40, - CHIPDoorLockDlKeypadOperationEventMaskNonAccessUserOpEvent = 0x80, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlKeypadOperationEventMask) { + MTRDoorLockDlKeypadOperationEventMaskUnknown = 0x1, + MTRDoorLockDlKeypadOperationEventMaskLock = 0x2, + MTRDoorLockDlKeypadOperationEventMaskUnlock = 0x4, + MTRDoorLockDlKeypadOperationEventMaskLockInvalidPIN = 0x8, + MTRDoorLockDlKeypadOperationEventMaskLockInvalidSchedule = 0x10, + MTRDoorLockDlKeypadOperationEventMaskUnlockInvalidCode = 0x20, + MTRDoorLockDlKeypadOperationEventMaskUnlockInvalidSchedule = 0x40, + MTRDoorLockDlKeypadOperationEventMaskNonAccessUserOpEvent = 0x80, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlKeypadProgrammingEventMask) { - CHIPDoorLockDlKeypadProgrammingEventMaskUnknown = 0x1, - CHIPDoorLockDlKeypadProgrammingEventMaskProgrammingPINChanged = 0x2, - CHIPDoorLockDlKeypadProgrammingEventMaskPINAdded = 0x4, - CHIPDoorLockDlKeypadProgrammingEventMaskPINCleared = 0x8, - CHIPDoorLockDlKeypadProgrammingEventMaskPINChanged = 0x10, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlKeypadProgrammingEventMask) { + MTRDoorLockDlKeypadProgrammingEventMaskUnknown = 0x1, + MTRDoorLockDlKeypadProgrammingEventMaskProgrammingPINChanged = 0x2, + MTRDoorLockDlKeypadProgrammingEventMaskPINAdded = 0x4, + MTRDoorLockDlKeypadProgrammingEventMaskPINCleared = 0x8, + MTRDoorLockDlKeypadProgrammingEventMaskPINChanged = 0x10, }; -typedef NS_OPTIONS(uint8_t, CHIPDoorLockDlLocalProgrammingFeatures) { - CHIPDoorLockDlLocalProgrammingFeaturesAddUsersCredentialsSchedulesLocally = 0x1, - CHIPDoorLockDlLocalProgrammingFeaturesModifyUsersCredentialsSchedulesLocally = 0x2, - CHIPDoorLockDlLocalProgrammingFeaturesClearUsersCredentialsSchedulesLocally = 0x4, - CHIPDoorLockDlLocalProgrammingFeaturesAdjustLockSettingsLocally = 0x8, +typedef NS_OPTIONS(uint8_t, MTRDoorLockDlLocalProgrammingFeatures) { + MTRDoorLockDlLocalProgrammingFeaturesAddUsersCredentialsSchedulesLocally = 0x1, + MTRDoorLockDlLocalProgrammingFeaturesModifyUsersCredentialsSchedulesLocally = 0x2, + MTRDoorLockDlLocalProgrammingFeaturesClearUsersCredentialsSchedulesLocally = 0x4, + MTRDoorLockDlLocalProgrammingFeaturesAdjustLockSettingsLocally = 0x8, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlManualOperationEventMask) { - CHIPDoorLockDlManualOperationEventMaskUnknown = 0x1, - CHIPDoorLockDlManualOperationEventMaskThumbturnLock = 0x2, - CHIPDoorLockDlManualOperationEventMaskThumbturnUnlock = 0x4, - CHIPDoorLockDlManualOperationEventMaskOneTouchLock = 0x8, - CHIPDoorLockDlManualOperationEventMaskKeyLock = 0x10, - CHIPDoorLockDlManualOperationEventMaskKeyUnlock = 0x20, - CHIPDoorLockDlManualOperationEventMaskAutoLock = 0x40, - CHIPDoorLockDlManualOperationEventMaskScheduleLock = 0x80, - CHIPDoorLockDlManualOperationEventMaskScheduleUnlock = 0x100, - CHIPDoorLockDlManualOperationEventMaskManualLock = 0x200, - CHIPDoorLockDlManualOperationEventMaskManualUnlock = 0x400, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlManualOperationEventMask) { + MTRDoorLockDlManualOperationEventMaskUnknown = 0x1, + MTRDoorLockDlManualOperationEventMaskThumbturnLock = 0x2, + MTRDoorLockDlManualOperationEventMaskThumbturnUnlock = 0x4, + MTRDoorLockDlManualOperationEventMaskOneTouchLock = 0x8, + MTRDoorLockDlManualOperationEventMaskKeyLock = 0x10, + MTRDoorLockDlManualOperationEventMaskKeyUnlock = 0x20, + MTRDoorLockDlManualOperationEventMaskAutoLock = 0x40, + MTRDoorLockDlManualOperationEventMaskScheduleLock = 0x80, + MTRDoorLockDlManualOperationEventMaskScheduleUnlock = 0x100, + MTRDoorLockDlManualOperationEventMaskManualLock = 0x200, + MTRDoorLockDlManualOperationEventMaskManualUnlock = 0x400, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlRFIDOperationEventMask) { - CHIPDoorLockDlRFIDOperationEventMaskUnknown = 0x1, - CHIPDoorLockDlRFIDOperationEventMaskLock = 0x2, - CHIPDoorLockDlRFIDOperationEventMaskUnlock = 0x4, - CHIPDoorLockDlRFIDOperationEventMaskLockInvalidRFID = 0x8, - CHIPDoorLockDlRFIDOperationEventMaskLockInvalidSchedule = 0x10, - CHIPDoorLockDlRFIDOperationEventMaskUnlockInvalidRFID = 0x20, - CHIPDoorLockDlRFIDOperationEventMaskUnlockInvalidSchedule = 0x40, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlRFIDOperationEventMask) { + MTRDoorLockDlRFIDOperationEventMaskUnknown = 0x1, + MTRDoorLockDlRFIDOperationEventMaskLock = 0x2, + MTRDoorLockDlRFIDOperationEventMaskUnlock = 0x4, + MTRDoorLockDlRFIDOperationEventMaskLockInvalidRFID = 0x8, + MTRDoorLockDlRFIDOperationEventMaskLockInvalidSchedule = 0x10, + MTRDoorLockDlRFIDOperationEventMaskUnlockInvalidRFID = 0x20, + MTRDoorLockDlRFIDOperationEventMaskUnlockInvalidSchedule = 0x40, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlRFIDProgrammingEventMask) { - CHIPDoorLockDlRFIDProgrammingEventMaskUnknown = 0x1, - CHIPDoorLockDlRFIDProgrammingEventMaskRFIDCodeAdded = 0x20, - CHIPDoorLockDlRFIDProgrammingEventMaskRFIDCodeCleared = 0x40, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlRFIDProgrammingEventMask) { + MTRDoorLockDlRFIDProgrammingEventMaskUnknown = 0x1, + MTRDoorLockDlRFIDProgrammingEventMaskRFIDCodeAdded = 0x20, + MTRDoorLockDlRFIDProgrammingEventMaskRFIDCodeCleared = 0x40, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlRemoteOperationEventMask) { - CHIPDoorLockDlRemoteOperationEventMaskUnknown = 0x1, - CHIPDoorLockDlRemoteOperationEventMaskLock = 0x2, - CHIPDoorLockDlRemoteOperationEventMaskUnlock = 0x4, - CHIPDoorLockDlRemoteOperationEventMaskLockInvalidCode = 0x8, - CHIPDoorLockDlRemoteOperationEventMaskLockInvalidSchedule = 0x10, - CHIPDoorLockDlRemoteOperationEventMaskUnlockInvalidCode = 0x20, - CHIPDoorLockDlRemoteOperationEventMaskUnlockInvalidSchedule = 0x40, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlRemoteOperationEventMask) { + MTRDoorLockDlRemoteOperationEventMaskUnknown = 0x1, + MTRDoorLockDlRemoteOperationEventMaskLock = 0x2, + MTRDoorLockDlRemoteOperationEventMaskUnlock = 0x4, + MTRDoorLockDlRemoteOperationEventMaskLockInvalidCode = 0x8, + MTRDoorLockDlRemoteOperationEventMaskLockInvalidSchedule = 0x10, + MTRDoorLockDlRemoteOperationEventMaskUnlockInvalidCode = 0x20, + MTRDoorLockDlRemoteOperationEventMaskUnlockInvalidSchedule = 0x40, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlRemoteProgrammingEventMask) { - CHIPDoorLockDlRemoteProgrammingEventMaskUnknown = 0x1, - CHIPDoorLockDlRemoteProgrammingEventMaskProgrammingPINChanged = 0x2, - CHIPDoorLockDlRemoteProgrammingEventMaskPINAdded = 0x4, - CHIPDoorLockDlRemoteProgrammingEventMaskPINCleared = 0x8, - CHIPDoorLockDlRemoteProgrammingEventMaskPINChanged = 0x10, - CHIPDoorLockDlRemoteProgrammingEventMaskRFIDCodeAdded = 0x20, - CHIPDoorLockDlRemoteProgrammingEventMaskRFIDCodeCleared = 0x40, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlRemoteProgrammingEventMask) { + MTRDoorLockDlRemoteProgrammingEventMaskUnknown = 0x1, + MTRDoorLockDlRemoteProgrammingEventMaskProgrammingPINChanged = 0x2, + MTRDoorLockDlRemoteProgrammingEventMaskPINAdded = 0x4, + MTRDoorLockDlRemoteProgrammingEventMaskPINCleared = 0x8, + MTRDoorLockDlRemoteProgrammingEventMaskPINChanged = 0x10, + MTRDoorLockDlRemoteProgrammingEventMaskRFIDCodeAdded = 0x20, + MTRDoorLockDlRemoteProgrammingEventMaskRFIDCodeCleared = 0x40, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlSupportedOperatingModes) { - CHIPDoorLockDlSupportedOperatingModesNormal = 0x1, - CHIPDoorLockDlSupportedOperatingModesVacation = 0x2, - CHIPDoorLockDlSupportedOperatingModesPrivacy = 0x4, - CHIPDoorLockDlSupportedOperatingModesNoRemoteLockUnlock = 0x8, - CHIPDoorLockDlSupportedOperatingModesPassage = 0x10, +typedef NS_OPTIONS(uint16_t, MTRDoorLockDlSupportedOperatingModes) { + MTRDoorLockDlSupportedOperatingModesNormal = 0x1, + MTRDoorLockDlSupportedOperatingModesVacation = 0x2, + MTRDoorLockDlSupportedOperatingModesPrivacy = 0x4, + MTRDoorLockDlSupportedOperatingModesNoRemoteLockUnlock = 0x8, + MTRDoorLockDlSupportedOperatingModesPassage = 0x10, }; -typedef NS_OPTIONS(uint8_t, CHIPDoorLockDayOfWeek) { - CHIPDoorLockDayOfWeekSunday = 0x1, - CHIPDoorLockDayOfWeekMonday = 0x2, - CHIPDoorLockDayOfWeekTuesday = 0x4, - CHIPDoorLockDayOfWeekWednesday = 0x8, - CHIPDoorLockDayOfWeekThursday = 0x10, - CHIPDoorLockDayOfWeekFriday = 0x20, - CHIPDoorLockDayOfWeekSaturday = 0x40, +typedef NS_OPTIONS(uint8_t, MTRDoorLockDayOfWeek) { + MTRDoorLockDayOfWeekSunday = 0x1, + MTRDoorLockDayOfWeekMonday = 0x2, + MTRDoorLockDayOfWeekTuesday = 0x4, + MTRDoorLockDayOfWeekWednesday = 0x8, + MTRDoorLockDayOfWeekThursday = 0x10, + MTRDoorLockDayOfWeekFriday = 0x20, + MTRDoorLockDayOfWeekSaturday = 0x40, }; -typedef NS_OPTIONS(uint32_t, CHIPDoorLockFeature) { - CHIPDoorLockFeaturePINCredentials = 0x1, - CHIPDoorLockFeatureRFIDCredentials = 0x2, - CHIPDoorLockFeatureFingerCredentials = 0x4, - CHIPDoorLockFeatureLogging = 0x8, - CHIPDoorLockFeatureAccessSchedules = 0x10, - CHIPDoorLockFeatureDoorPositionSensor = 0x20, - CHIPDoorLockFeatureFaceCredentials = 0x40, - CHIPDoorLockFeatureCredentialsOTA = 0x80, - CHIPDoorLockFeatureUsersManagement = 0x100, - CHIPDoorLockFeatureNotifications = 0x200, +typedef NS_OPTIONS(uint32_t, MTRDoorLockFeature) { + MTRDoorLockFeaturePINCredentials = 0x1, + MTRDoorLockFeatureRFIDCredentials = 0x2, + MTRDoorLockFeatureFingerCredentials = 0x4, + MTRDoorLockFeatureLogging = 0x8, + MTRDoorLockFeatureAccessSchedules = 0x10, + MTRDoorLockFeatureDoorPositionSensor = 0x20, + MTRDoorLockFeatureFaceCredentials = 0x40, + MTRDoorLockFeatureCredentialsOTA = 0x80, + MTRDoorLockFeatureUsersManagement = 0x100, + MTRDoorLockFeatureNotifications = 0x200, }; -typedef NS_ENUM(uint8_t, CHIPWindowCoveringEndProductType) { - CHIPWindowCoveringEndProductTypeRollerShade = 0x00, - CHIPWindowCoveringEndProductTypeRomanShade = 0x01, - CHIPWindowCoveringEndProductTypeBalloonShade = 0x02, - CHIPWindowCoveringEndProductTypeWovenWood = 0x03, - CHIPWindowCoveringEndProductTypePleatedShade = 0x04, - CHIPWindowCoveringEndProductTypeCellularShade = 0x05, - CHIPWindowCoveringEndProductTypeLayeredShade = 0x06, - CHIPWindowCoveringEndProductTypeLayeredShade2D = 0x07, - CHIPWindowCoveringEndProductTypeSheerShade = 0x08, - CHIPWindowCoveringEndProductTypeTiltOnlyInteriorBlind = 0x09, - CHIPWindowCoveringEndProductTypeInteriorBlind = 0x0A, - CHIPWindowCoveringEndProductTypeVerticalBlindStripCurtain = 0x0B, - CHIPWindowCoveringEndProductTypeInteriorVenetianBlind = 0x0C, - CHIPWindowCoveringEndProductTypeExteriorVenetianBlind = 0x0D, - CHIPWindowCoveringEndProductTypeLateralLeftCurtain = 0x0E, - CHIPWindowCoveringEndProductTypeLateralRightCurtain = 0x0F, - CHIPWindowCoveringEndProductTypeCentralCurtain = 0x10, - CHIPWindowCoveringEndProductTypeRollerShutter = 0x11, - CHIPWindowCoveringEndProductTypeExteriorVerticalScreen = 0x12, - CHIPWindowCoveringEndProductTypeAwningTerracePatio = 0x13, - CHIPWindowCoveringEndProductTypeAwningVerticalScreen = 0x14, - CHIPWindowCoveringEndProductTypeTiltOnlyPergola = 0x15, - CHIPWindowCoveringEndProductTypeSwingingShutter = 0x16, - CHIPWindowCoveringEndProductTypeSlidingShutter = 0x17, - CHIPWindowCoveringEndProductTypeUnknown = 0xFF, +typedef NS_ENUM(uint8_t, MTRWindowCoveringEndProductType) { + MTRWindowCoveringEndProductTypeRollerShade = 0x00, + MTRWindowCoveringEndProductTypeRomanShade = 0x01, + MTRWindowCoveringEndProductTypeBalloonShade = 0x02, + MTRWindowCoveringEndProductTypeWovenWood = 0x03, + MTRWindowCoveringEndProductTypePleatedShade = 0x04, + MTRWindowCoveringEndProductTypeCellularShade = 0x05, + MTRWindowCoveringEndProductTypeLayeredShade = 0x06, + MTRWindowCoveringEndProductTypeLayeredShade2D = 0x07, + MTRWindowCoveringEndProductTypeSheerShade = 0x08, + MTRWindowCoveringEndProductTypeTiltOnlyInteriorBlind = 0x09, + MTRWindowCoveringEndProductTypeInteriorBlind = 0x0A, + MTRWindowCoveringEndProductTypeVerticalBlindStripCurtain = 0x0B, + MTRWindowCoveringEndProductTypeInteriorVenetianBlind = 0x0C, + MTRWindowCoveringEndProductTypeExteriorVenetianBlind = 0x0D, + MTRWindowCoveringEndProductTypeLateralLeftCurtain = 0x0E, + MTRWindowCoveringEndProductTypeLateralRightCurtain = 0x0F, + MTRWindowCoveringEndProductTypeCentralCurtain = 0x10, + MTRWindowCoveringEndProductTypeRollerShutter = 0x11, + MTRWindowCoveringEndProductTypeExteriorVerticalScreen = 0x12, + MTRWindowCoveringEndProductTypeAwningTerracePatio = 0x13, + MTRWindowCoveringEndProductTypeAwningVerticalScreen = 0x14, + MTRWindowCoveringEndProductTypeTiltOnlyPergola = 0x15, + MTRWindowCoveringEndProductTypeSwingingShutter = 0x16, + MTRWindowCoveringEndProductTypeSlidingShutter = 0x17, + MTRWindowCoveringEndProductTypeUnknown = 0xFF, }; -typedef NS_ENUM(uint8_t, CHIPWindowCoveringType) { - CHIPWindowCoveringTypeRollerShade = 0x00, - CHIPWindowCoveringTypeRollerShade2Motor = 0x01, - CHIPWindowCoveringTypeRollerShadeExterior = 0x02, - CHIPWindowCoveringTypeRollerShadeExterior2Motor = 0x03, - CHIPWindowCoveringTypeDrapery = 0x04, - CHIPWindowCoveringTypeAwning = 0x05, - CHIPWindowCoveringTypeShutter = 0x06, - CHIPWindowCoveringTypeTiltBlindTiltOnly = 0x07, - CHIPWindowCoveringTypeTiltBlindLiftAndTilt = 0x08, - CHIPWindowCoveringTypeProjectorScreen = 0x09, - CHIPWindowCoveringTypeUnknown = 0xFF, +typedef NS_ENUM(uint8_t, MTRWindowCoveringType) { + MTRWindowCoveringTypeRollerShade = 0x00, + MTRWindowCoveringTypeRollerShade2Motor = 0x01, + MTRWindowCoveringTypeRollerShadeExterior = 0x02, + MTRWindowCoveringTypeRollerShadeExterior2Motor = 0x03, + MTRWindowCoveringTypeDrapery = 0x04, + MTRWindowCoveringTypeAwning = 0x05, + MTRWindowCoveringTypeShutter = 0x06, + MTRWindowCoveringTypeTiltBlindTiltOnly = 0x07, + MTRWindowCoveringTypeTiltBlindLiftAndTilt = 0x08, + MTRWindowCoveringTypeProjectorScreen = 0x09, + MTRWindowCoveringTypeUnknown = 0xFF, }; -typedef NS_OPTIONS(uint8_t, CHIPWindowCoveringConfigStatus) { - CHIPWindowCoveringConfigStatusOperational = 0x1, - CHIPWindowCoveringConfigStatusOnlineReserved = 0x2, - CHIPWindowCoveringConfigStatusLiftMovementReversed = 0x4, - CHIPWindowCoveringConfigStatusLiftPositionAware = 0x8, - CHIPWindowCoveringConfigStatusTiltPositionAware = 0x10, - CHIPWindowCoveringConfigStatusLiftEncoderControlled = 0x20, - CHIPWindowCoveringConfigStatusTiltEncoderControlled = 0x40, +typedef NS_OPTIONS(uint8_t, MTRWindowCoveringConfigStatus) { + MTRWindowCoveringConfigStatusOperational = 0x1, + MTRWindowCoveringConfigStatusOnlineReserved = 0x2, + MTRWindowCoveringConfigStatusLiftMovementReversed = 0x4, + MTRWindowCoveringConfigStatusLiftPositionAware = 0x8, + MTRWindowCoveringConfigStatusTiltPositionAware = 0x10, + MTRWindowCoveringConfigStatusLiftEncoderControlled = 0x20, + MTRWindowCoveringConfigStatusTiltEncoderControlled = 0x40, }; -typedef NS_OPTIONS(uint32_t, CHIPWindowCoveringFeature) { - CHIPWindowCoveringFeatureLift = 0x1, - CHIPWindowCoveringFeatureTilt = 0x2, - CHIPWindowCoveringFeaturePositionAwareLift = 0x4, - CHIPWindowCoveringFeatureAbsolutePosition = 0x8, - CHIPWindowCoveringFeaturePositionAwareTilt = 0x10, +typedef NS_OPTIONS(uint32_t, MTRWindowCoveringFeature) { + MTRWindowCoveringFeatureLift = 0x1, + MTRWindowCoveringFeatureTilt = 0x2, + MTRWindowCoveringFeaturePositionAwareLift = 0x4, + MTRWindowCoveringFeatureAbsolutePosition = 0x8, + MTRWindowCoveringFeaturePositionAwareTilt = 0x10, }; -typedef NS_OPTIONS(uint8_t, CHIPWindowCoveringMode) { - CHIPWindowCoveringModeMotorDirectionReversed = 0x1, - CHIPWindowCoveringModeCalibrationMode = 0x2, - CHIPWindowCoveringModeMaintenanceMode = 0x4, - CHIPWindowCoveringModeLedFeedback = 0x8, +typedef NS_OPTIONS(uint8_t, MTRWindowCoveringMode) { + MTRWindowCoveringModeMotorDirectionReversed = 0x1, + MTRWindowCoveringModeCalibrationMode = 0x2, + MTRWindowCoveringModeMaintenanceMode = 0x4, + MTRWindowCoveringModeLedFeedback = 0x8, }; -typedef NS_OPTIONS(uint8_t, CHIPWindowCoveringOperationalStatus) { - CHIPWindowCoveringOperationalStatusGlobal = 0x3, - CHIPWindowCoveringOperationalStatusLift = 0xC, - CHIPWindowCoveringOperationalStatusTilt = 0x30, +typedef NS_OPTIONS(uint8_t, MTRWindowCoveringOperationalStatus) { + MTRWindowCoveringOperationalStatusGlobal = 0x3, + MTRWindowCoveringOperationalStatusLift = 0xC, + MTRWindowCoveringOperationalStatusTilt = 0x30, }; -typedef NS_OPTIONS(uint16_t, CHIPWindowCoveringSafetyStatus) { - CHIPWindowCoveringSafetyStatusRemoteLockout = 0x1, - CHIPWindowCoveringSafetyStatusTamperDetection = 0x2, - CHIPWindowCoveringSafetyStatusFailedCommunication = 0x4, - CHIPWindowCoveringSafetyStatusPositionFailure = 0x8, - CHIPWindowCoveringSafetyStatusThermalProtection = 0x10, - CHIPWindowCoveringSafetyStatusObstacleDetected = 0x20, - CHIPWindowCoveringSafetyStatusPower = 0x40, - CHIPWindowCoveringSafetyStatusStopInput = 0x80, - CHIPWindowCoveringSafetyStatusMotorJammed = 0x100, - CHIPWindowCoveringSafetyStatusHardwareFailure = 0x200, - CHIPWindowCoveringSafetyStatusManualOperation = 0x400, - CHIPWindowCoveringSafetyStatusProtection = 0x800, +typedef NS_OPTIONS(uint16_t, MTRWindowCoveringSafetyStatus) { + MTRWindowCoveringSafetyStatusRemoteLockout = 0x1, + MTRWindowCoveringSafetyStatusTamperDetection = 0x2, + MTRWindowCoveringSafetyStatusFailedCommunication = 0x4, + MTRWindowCoveringSafetyStatusPositionFailure = 0x8, + MTRWindowCoveringSafetyStatusThermalProtection = 0x10, + MTRWindowCoveringSafetyStatusObstacleDetected = 0x20, + MTRWindowCoveringSafetyStatusPower = 0x40, + MTRWindowCoveringSafetyStatusStopInput = 0x80, + MTRWindowCoveringSafetyStatusMotorJammed = 0x100, + MTRWindowCoveringSafetyStatusHardwareFailure = 0x200, + MTRWindowCoveringSafetyStatusManualOperation = 0x400, + MTRWindowCoveringSafetyStatusProtection = 0x800, }; -typedef NS_ENUM(uint8_t, CHIPPumpConfigurationAndControlPumpControlMode) { - CHIPPumpConfigurationAndControlPumpControlModeConstantSpeed = 0x00, - CHIPPumpConfigurationAndControlPumpControlModeConstantPressure = 0x01, - CHIPPumpConfigurationAndControlPumpControlModeProportionalPressure = 0x02, - CHIPPumpConfigurationAndControlPumpControlModeConstantFlow = 0x03, - CHIPPumpConfigurationAndControlPumpControlModeConstantTemperature = 0x05, - CHIPPumpConfigurationAndControlPumpControlModeAutomatic = 0x07, +typedef NS_ENUM(uint8_t, MTRPumpConfigurationAndControlPumpControlMode) { + MTRPumpConfigurationAndControlPumpControlModeConstantSpeed = 0x00, + MTRPumpConfigurationAndControlPumpControlModeConstantPressure = 0x01, + MTRPumpConfigurationAndControlPumpControlModeProportionalPressure = 0x02, + MTRPumpConfigurationAndControlPumpControlModeConstantFlow = 0x03, + MTRPumpConfigurationAndControlPumpControlModeConstantTemperature = 0x05, + MTRPumpConfigurationAndControlPumpControlModeAutomatic = 0x07, }; -typedef NS_ENUM(uint8_t, CHIPPumpConfigurationAndControlPumpOperationMode) { - CHIPPumpConfigurationAndControlPumpOperationModeNormal = 0x00, - CHIPPumpConfigurationAndControlPumpOperationModeMinimum = 0x01, - CHIPPumpConfigurationAndControlPumpOperationModeMaximum = 0x02, - CHIPPumpConfigurationAndControlPumpOperationModeLocal = 0x03, +typedef NS_ENUM(uint8_t, MTRPumpConfigurationAndControlPumpOperationMode) { + MTRPumpConfigurationAndControlPumpOperationModeNormal = 0x00, + MTRPumpConfigurationAndControlPumpOperationModeMinimum = 0x01, + MTRPumpConfigurationAndControlPumpOperationModeMaximum = 0x02, + MTRPumpConfigurationAndControlPumpOperationModeLocal = 0x03, }; -typedef NS_OPTIONS(uint16_t, CHIPPumpConfigurationAndControlPumpStatus) { - CHIPPumpConfigurationAndControlPumpStatusDeviceFault = 0x1, - CHIPPumpConfigurationAndControlPumpStatusSupplyfault = 0x2, - CHIPPumpConfigurationAndControlPumpStatusSpeedLow = 0x4, - CHIPPumpConfigurationAndControlPumpStatusSpeedHigh = 0x8, - CHIPPumpConfigurationAndControlPumpStatusLocalOverride = 0x10, - CHIPPumpConfigurationAndControlPumpStatusRunning = 0x20, - CHIPPumpConfigurationAndControlPumpStatusRemotePressure = 0x40, - CHIPPumpConfigurationAndControlPumpStatusRemoteFlow = 0x80, - CHIPPumpConfigurationAndControlPumpStatusRemoteTemperature = 0x100, +typedef NS_OPTIONS(uint16_t, MTRPumpConfigurationAndControlPumpStatus) { + MTRPumpConfigurationAndControlPumpStatusDeviceFault = 0x1, + MTRPumpConfigurationAndControlPumpStatusSupplyfault = 0x2, + MTRPumpConfigurationAndControlPumpStatusSpeedLow = 0x4, + MTRPumpConfigurationAndControlPumpStatusSpeedHigh = 0x8, + MTRPumpConfigurationAndControlPumpStatusLocalOverride = 0x10, + MTRPumpConfigurationAndControlPumpStatusRunning = 0x20, + MTRPumpConfigurationAndControlPumpStatusRemotePressure = 0x40, + MTRPumpConfigurationAndControlPumpStatusRemoteFlow = 0x80, + MTRPumpConfigurationAndControlPumpStatusRemoteTemperature = 0x100, }; -typedef NS_ENUM(uint8_t, CHIPThermostatSetpointAdjustMode) { - CHIPThermostatSetpointAdjustModeHeatSetpoint = 0x00, - CHIPThermostatSetpointAdjustModeCoolSetpoint = 0x01, - CHIPThermostatSetpointAdjustModeHeatAndCoolSetpoints = 0x02, +typedef NS_ENUM(uint8_t, MTRThermostatSetpointAdjustMode) { + MTRThermostatSetpointAdjustModeHeatSetpoint = 0x00, + MTRThermostatSetpointAdjustModeCoolSetpoint = 0x01, + MTRThermostatSetpointAdjustModeHeatAndCoolSetpoints = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPThermostatControlSequence) { - CHIPThermostatControlSequenceCoolingOnly = 0x00, - CHIPThermostatControlSequenceCoolingWithReheat = 0x01, - CHIPThermostatControlSequenceHeatingOnly = 0x02, - CHIPThermostatControlSequenceHeatingWithReheat = 0x03, - CHIPThermostatControlSequenceCoolingAndHeating = 0x04, - CHIPThermostatControlSequenceCoolingAndHeatingWithReheat = 0x05, +typedef NS_ENUM(uint8_t, MTRThermostatControlSequence) { + MTRThermostatControlSequenceCoolingOnly = 0x00, + MTRThermostatControlSequenceCoolingWithReheat = 0x01, + MTRThermostatControlSequenceHeatingOnly = 0x02, + MTRThermostatControlSequenceHeatingWithReheat = 0x03, + MTRThermostatControlSequenceCoolingAndHeating = 0x04, + MTRThermostatControlSequenceCoolingAndHeatingWithReheat = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPThermostatRunningMode) { - CHIPThermostatRunningModeOff = 0x00, - CHIPThermostatRunningModeCool = 0x03, - CHIPThermostatRunningModeHeat = 0x04, +typedef NS_ENUM(uint8_t, MTRThermostatRunningMode) { + MTRThermostatRunningModeOff = 0x00, + MTRThermostatRunningModeCool = 0x03, + MTRThermostatRunningModeHeat = 0x04, }; -typedef NS_ENUM(uint8_t, CHIPThermostatSystemMode) { - CHIPThermostatSystemModeOff = 0x00, - CHIPThermostatSystemModeAuto = 0x01, - CHIPThermostatSystemModeCool = 0x03, - CHIPThermostatSystemModeHeat = 0x04, - CHIPThermostatSystemModeEmergencyHeating = 0x05, - CHIPThermostatSystemModePrecooling = 0x06, - CHIPThermostatSystemModeFanOnly = 0x07, +typedef NS_ENUM(uint8_t, MTRThermostatSystemMode) { + MTRThermostatSystemModeOff = 0x00, + MTRThermostatSystemModeAuto = 0x01, + MTRThermostatSystemModeCool = 0x03, + MTRThermostatSystemModeHeat = 0x04, + MTRThermostatSystemModeEmergencyHeating = 0x05, + MTRThermostatSystemModePrecooling = 0x06, + MTRThermostatSystemModeFanOnly = 0x07, }; -typedef NS_OPTIONS(uint8_t, CHIPThermostatDayOfWeek) { - CHIPThermostatDayOfWeekSunday = 0x1, - CHIPThermostatDayOfWeekMonday = 0x2, - CHIPThermostatDayOfWeekTuesday = 0x4, - CHIPThermostatDayOfWeekWednesday = 0x8, - CHIPThermostatDayOfWeekThursday = 0x10, - CHIPThermostatDayOfWeekFriday = 0x20, - CHIPThermostatDayOfWeekSaturday = 0x40, - CHIPThermostatDayOfWeekAwayOrVacation = 0x80, +typedef NS_OPTIONS(uint8_t, MTRThermostatDayOfWeek) { + MTRThermostatDayOfWeekSunday = 0x1, + MTRThermostatDayOfWeekMonday = 0x2, + MTRThermostatDayOfWeekTuesday = 0x4, + MTRThermostatDayOfWeekWednesday = 0x8, + MTRThermostatDayOfWeekThursday = 0x10, + MTRThermostatDayOfWeekFriday = 0x20, + MTRThermostatDayOfWeekSaturday = 0x40, + MTRThermostatDayOfWeekAwayOrVacation = 0x80, }; -typedef NS_OPTIONS(uint8_t, CHIPThermostatModeForSequence) { - CHIPThermostatModeForSequenceHeatSetpointFieldPresent = 0x1, - CHIPThermostatModeForSequenceCoolSetpointFieldPresent = 0x2, +typedef NS_OPTIONS(uint8_t, MTRThermostatModeForSequence) { + MTRThermostatModeForSequenceHeatSetpointFieldPresent = 0x1, + MTRThermostatModeForSequenceCoolSetpointFieldPresent = 0x2, }; -typedef NS_OPTIONS(uint32_t, CHIPThermostatFeature) { - CHIPThermostatFeatureHeating = 0x1, - CHIPThermostatFeatureCooling = 0x2, - CHIPThermostatFeatureOccupancy = 0x4, - CHIPThermostatFeatureSchedule = 0x8, - CHIPThermostatFeatureSetback = 0x10, - CHIPThermostatFeatureAutomode = 0x20, +typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { + MTRThermostatFeatureHeating = 0x1, + MTRThermostatFeatureCooling = 0x2, + MTRThermostatFeatureOccupancy = 0x4, + MTRThermostatFeatureSchedule = 0x8, + MTRThermostatFeatureSetback = 0x10, + MTRThermostatFeatureAutomode = 0x20, }; -typedef NS_ENUM(uint8_t, CHIPFanControlFanModeSequenceType) { - CHIPFanControlFanModeSequenceTypeOffLowMedHigh = 0x00, - CHIPFanControlFanModeSequenceTypeOffLowHigh = 0x01, - CHIPFanControlFanModeSequenceTypeOffLowMedHighAuto = 0x02, - CHIPFanControlFanModeSequenceTypeOffLowHighAuto = 0x03, - CHIPFanControlFanModeSequenceTypeOffOnAuto = 0x04, - CHIPFanControlFanModeSequenceTypeOffOn = 0x05, +typedef NS_ENUM(uint8_t, MTRFanControlFanModeSequenceType) { + MTRFanControlFanModeSequenceTypeOffLowMedHigh = 0x00, + MTRFanControlFanModeSequenceTypeOffLowHigh = 0x01, + MTRFanControlFanModeSequenceTypeOffLowMedHighAuto = 0x02, + MTRFanControlFanModeSequenceTypeOffLowHighAuto = 0x03, + MTRFanControlFanModeSequenceTypeOffOnAuto = 0x04, + MTRFanControlFanModeSequenceTypeOffOn = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPFanControlFanModeType) { - CHIPFanControlFanModeTypeOff = 0x00, - CHIPFanControlFanModeTypeLow = 0x01, - CHIPFanControlFanModeTypeMedium = 0x02, - CHIPFanControlFanModeTypeHigh = 0x03, - CHIPFanControlFanModeTypeOn = 0x04, - CHIPFanControlFanModeTypeAuto = 0x05, - CHIPFanControlFanModeTypeSmart = 0x06, +typedef NS_ENUM(uint8_t, MTRFanControlFanModeType) { + MTRFanControlFanModeTypeOff = 0x00, + MTRFanControlFanModeTypeLow = 0x01, + MTRFanControlFanModeTypeMedium = 0x02, + MTRFanControlFanModeTypeHigh = 0x03, + MTRFanControlFanModeTypeOn = 0x04, + MTRFanControlFanModeTypeAuto = 0x05, + MTRFanControlFanModeTypeSmart = 0x06, }; -typedef NS_OPTIONS(uint32_t, CHIPFanControlFeature) { - CHIPFanControlFeatureMultiSpeed = 0x1, - CHIPFanControlFeatureAuto = 0x2, - CHIPFanControlFeatureRocking = 0x4, - CHIPFanControlFeatureWind = 0x8, +typedef NS_OPTIONS(uint32_t, MTRFanControlFeature) { + MTRFanControlFeatureMultiSpeed = 0x1, + MTRFanControlFeatureAuto = 0x2, + MTRFanControlFeatureRocking = 0x4, + MTRFanControlFeatureWind = 0x8, }; -typedef NS_OPTIONS(uint8_t, CHIPFanControlRockSupportMask) { - CHIPFanControlRockSupportMaskRockLeftRight = 0x1, - CHIPFanControlRockSupportMaskRockUpDown = 0x2, - CHIPFanControlRockSupportMaskRockRound = 0x4, +typedef NS_OPTIONS(uint8_t, MTRFanControlRockSupportMask) { + MTRFanControlRockSupportMaskRockLeftRight = 0x1, + MTRFanControlRockSupportMaskRockUpDown = 0x2, + MTRFanControlRockSupportMaskRockRound = 0x4, }; -typedef NS_OPTIONS(uint8_t, CHIPFanControlWindSettingMask) { - CHIPFanControlWindSettingMaskSleepWind = 0x1, - CHIPFanControlWindSettingMaskNaturalWind = 0x2, +typedef NS_OPTIONS(uint8_t, MTRFanControlWindSettingMask) { + MTRFanControlWindSettingMaskSleepWind = 0x1, + MTRFanControlWindSettingMaskNaturalWind = 0x2, }; -typedef NS_OPTIONS(uint8_t, CHIPFanControlWindSupportMask) { - CHIPFanControlWindSupportMaskSleepWind = 0x1, - CHIPFanControlWindSupportMaskNaturalWind = 0x2, +typedef NS_OPTIONS(uint8_t, MTRFanControlWindSupportMask) { + MTRFanControlWindSupportMaskSleepWind = 0x1, + MTRFanControlWindSupportMaskNaturalWind = 0x2, }; -typedef NS_ENUM(uint8_t, CHIPColorControlColorLoopAction) { - CHIPColorControlColorLoopActionDeactivate = 0x00, - CHIPColorControlColorLoopActionActivateFromColorLoopStartEnhancedHue = 0x01, - CHIPColorControlColorLoopActionActivateFromEnhancedCurrentHue = 0x02, +typedef NS_ENUM(uint8_t, MTRColorControlColorLoopAction) { + MTRColorControlColorLoopActionDeactivate = 0x00, + MTRColorControlColorLoopActionActivateFromColorLoopStartEnhancedHue = 0x01, + MTRColorControlColorLoopActionActivateFromEnhancedCurrentHue = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPColorControlColorLoopDirection) { - CHIPColorControlColorLoopDirectionDecrementHue = 0x00, - CHIPColorControlColorLoopDirectionIncrementHue = 0x01, +typedef NS_ENUM(uint8_t, MTRColorControlColorLoopDirection) { + MTRColorControlColorLoopDirectionDecrementHue = 0x00, + MTRColorControlColorLoopDirectionIncrementHue = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPColorControlColorMode) { - CHIPColorControlColorModeCurrentHueAndCurrentSaturation = 0x00, - CHIPColorControlColorModeCurrentXAndCurrentY = 0x01, - CHIPColorControlColorModeColorTemperature = 0x02, +typedef NS_ENUM(uint8_t, MTRColorControlColorMode) { + MTRColorControlColorModeCurrentHueAndCurrentSaturation = 0x00, + MTRColorControlColorModeCurrentXAndCurrentY = 0x01, + MTRColorControlColorModeColorTemperature = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPColorControlHueDirection) { - CHIPColorControlHueDirectionShortestDistance = 0x00, - CHIPColorControlHueDirectionLongestDistance = 0x01, - CHIPColorControlHueDirectionUp = 0x02, - CHIPColorControlHueDirectionDown = 0x03, +typedef NS_ENUM(uint8_t, MTRColorControlHueDirection) { + MTRColorControlHueDirectionShortestDistance = 0x00, + MTRColorControlHueDirectionLongestDistance = 0x01, + MTRColorControlHueDirectionUp = 0x02, + MTRColorControlHueDirectionDown = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPColorControlHueMoveMode) { - CHIPColorControlHueMoveModeStop = 0x00, - CHIPColorControlHueMoveModeUp = 0x01, - CHIPColorControlHueMoveModeDown = 0x03, +typedef NS_ENUM(uint8_t, MTRColorControlHueMoveMode) { + MTRColorControlHueMoveModeStop = 0x00, + MTRColorControlHueMoveModeUp = 0x01, + MTRColorControlHueMoveModeDown = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPColorControlHueStepMode) { - CHIPColorControlHueStepModeUp = 0x01, - CHIPColorControlHueStepModeDown = 0x03, +typedef NS_ENUM(uint8_t, MTRColorControlHueStepMode) { + MTRColorControlHueStepModeUp = 0x01, + MTRColorControlHueStepModeDown = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPColorControlSaturationMoveMode) { - CHIPColorControlSaturationMoveModeStop = 0x00, - CHIPColorControlSaturationMoveModeUp = 0x01, - CHIPColorControlSaturationMoveModeDown = 0x03, +typedef NS_ENUM(uint8_t, MTRColorControlSaturationMoveMode) { + MTRColorControlSaturationMoveModeStop = 0x00, + MTRColorControlSaturationMoveModeUp = 0x01, + MTRColorControlSaturationMoveModeDown = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPColorControlSaturationStepMode) { - CHIPColorControlSaturationStepModeUp = 0x01, - CHIPColorControlSaturationStepModeDown = 0x03, +typedef NS_ENUM(uint8_t, MTRColorControlSaturationStepMode) { + MTRColorControlSaturationStepModeUp = 0x01, + MTRColorControlSaturationStepModeDown = 0x03, }; -typedef NS_OPTIONS(uint16_t, CHIPColorControlColorCapabilities) { - CHIPColorControlColorCapabilitiesHueSaturationSupported = 0x1, - CHIPColorControlColorCapabilitiesEnhancedHueSupported = 0x2, - CHIPColorControlColorCapabilitiesColorLoopSupported = 0x4, - CHIPColorControlColorCapabilitiesXYAttributesSupported = 0x8, - CHIPColorControlColorCapabilitiesColorTemperatureSupported = 0x10, +typedef NS_OPTIONS(uint16_t, MTRColorControlColorCapabilities) { + MTRColorControlColorCapabilitiesHueSaturationSupported = 0x1, + MTRColorControlColorCapabilitiesEnhancedHueSupported = 0x2, + MTRColorControlColorCapabilitiesColorLoopSupported = 0x4, + MTRColorControlColorCapabilitiesXYAttributesSupported = 0x8, + MTRColorControlColorCapabilitiesColorTemperatureSupported = 0x10, }; -typedef NS_OPTIONS(uint32_t, CHIPColorControlFeature) { - CHIPColorControlFeatureHueAndSaturation = 0x1, - CHIPColorControlFeatureEnhancedHue = 0x2, - CHIPColorControlFeatureColorLoop = 0x4, - CHIPColorControlFeatureXY = 0x8, - CHIPColorControlFeatureColorTemperature = 0x10, +typedef NS_OPTIONS(uint32_t, MTRColorControlFeature) { + MTRColorControlFeatureHueAndSaturation = 0x1, + MTRColorControlFeatureEnhancedHue = 0x2, + MTRColorControlFeatureColorLoop = 0x4, + MTRColorControlFeatureXY = 0x8, + MTRColorControlFeatureColorTemperature = 0x10, }; -typedef NS_OPTIONS(uint8_t, CHIPColorControlColorLoopUpdateFlags) { - CHIPColorControlColorLoopUpdateFlagsUpdateAction = 0x1, - CHIPColorControlColorLoopUpdateFlagsUpdateDirection = 0x2, - CHIPColorControlColorLoopUpdateFlagsUpdateTime = 0x4, - CHIPColorControlColorLoopUpdateFlagsUpdateStartHue = 0x8, +typedef NS_OPTIONS(uint8_t, MTRColorControlColorLoopUpdateFlags) { + MTRColorControlColorLoopUpdateFlagsUpdateAction = 0x1, + MTRColorControlColorLoopUpdateFlagsUpdateDirection = 0x2, + MTRColorControlColorLoopUpdateFlagsUpdateTime = 0x4, + MTRColorControlColorLoopUpdateFlagsUpdateStartHue = 0x8, }; -typedef NS_ENUM(uint8_t, CHIPIlluminanceMeasurementLightSensorType) { - CHIPIlluminanceMeasurementLightSensorTypePhotodiode = 0x00, - CHIPIlluminanceMeasurementLightSensorTypeCMOS = 0x01, +typedef NS_ENUM(uint8_t, MTRIlluminanceMeasurementLightSensorType) { + MTRIlluminanceMeasurementLightSensorTypePhotodiode = 0x00, + MTRIlluminanceMeasurementLightSensorTypeCMOS = 0x01, }; -typedef NS_OPTIONS(uint32_t, CHIPPressureMeasurementPressureFeature) { - CHIPPressureMeasurementPressureFeatureEXT = 0x1, +typedef NS_OPTIONS(uint32_t, MTRPressureMeasurementPressureFeature) { + MTRPressureMeasurementPressureFeatureEXT = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPChannelStatus) { - CHIPChannelStatusSuccess = 0x00, - CHIPChannelStatusMultipleMatches = 0x01, - CHIPChannelStatusNoMatches = 0x02, +typedef NS_ENUM(uint8_t, MTRChannelStatus) { + MTRChannelStatusSuccess = 0x00, + MTRChannelStatusMultipleMatches = 0x01, + MTRChannelStatusNoMatches = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPChannelLineupInfoType) { - CHIPChannelLineupInfoTypeMso = 0x00, +typedef NS_ENUM(uint8_t, MTRChannelLineupInfoType) { + MTRChannelLineupInfoTypeMso = 0x00, }; -typedef NS_OPTIONS(uint32_t, CHIPChannelFeature) { - CHIPChannelFeatureChannelList = 0x1, - CHIPChannelFeatureLineupInfo = 0x2, +typedef NS_OPTIONS(uint32_t, MTRChannelFeature) { + MTRChannelFeatureChannelList = 0x1, + MTRChannelFeatureLineupInfo = 0x2, }; -typedef NS_ENUM(uint8_t, CHIPTargetNavigatorStatus) { - CHIPTargetNavigatorStatusSuccess = 0x00, - CHIPTargetNavigatorStatusTargetNotFound = 0x01, - CHIPTargetNavigatorStatusNotAllowed = 0x02, +typedef NS_ENUM(uint8_t, MTRTargetNavigatorStatus) { + MTRTargetNavigatorStatusSuccess = 0x00, + MTRTargetNavigatorStatusTargetNotFound = 0x01, + MTRTargetNavigatorStatusNotAllowed = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPMediaPlaybackStatus) { - CHIPMediaPlaybackStatusSuccess = 0x00, - CHIPMediaPlaybackStatusInvalidStateForCommand = 0x01, - CHIPMediaPlaybackStatusNotAllowed = 0x02, - CHIPMediaPlaybackStatusNotActive = 0x03, - CHIPMediaPlaybackStatusSpeedOutOfRange = 0x04, - CHIPMediaPlaybackStatusSeekOutOfRange = 0x05, +typedef NS_ENUM(uint8_t, MTRMediaPlaybackStatus) { + MTRMediaPlaybackStatusSuccess = 0x00, + MTRMediaPlaybackStatusInvalidStateForCommand = 0x01, + MTRMediaPlaybackStatusNotAllowed = 0x02, + MTRMediaPlaybackStatusNotActive = 0x03, + MTRMediaPlaybackStatusSpeedOutOfRange = 0x04, + MTRMediaPlaybackStatusSeekOutOfRange = 0x05, }; -typedef NS_ENUM(uint8_t, CHIPMediaPlaybackPlaybackState) { - CHIPMediaPlaybackPlaybackStatePlaying = 0x00, - CHIPMediaPlaybackPlaybackStatePaused = 0x01, - CHIPMediaPlaybackPlaybackStateNotPlaying = 0x02, - CHIPMediaPlaybackPlaybackStateBuffering = 0x03, +typedef NS_ENUM(uint8_t, MTRMediaPlaybackPlaybackState) { + MTRMediaPlaybackPlaybackStatePlaying = 0x00, + MTRMediaPlaybackPlaybackStatePaused = 0x01, + MTRMediaPlaybackPlaybackStateNotPlaying = 0x02, + MTRMediaPlaybackPlaybackStateBuffering = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPMediaInputInputType) { - CHIPMediaInputInputTypeInternal = 0x00, - CHIPMediaInputInputTypeAux = 0x01, - CHIPMediaInputInputTypeCoax = 0x02, - CHIPMediaInputInputTypeComposite = 0x03, - CHIPMediaInputInputTypeHdmi = 0x04, - CHIPMediaInputInputTypeInput = 0x05, - CHIPMediaInputInputTypeLine = 0x06, - CHIPMediaInputInputTypeOptical = 0x07, - CHIPMediaInputInputTypeVideo = 0x08, - CHIPMediaInputInputTypeScart = 0x09, - CHIPMediaInputInputTypeUsb = 0x0A, - CHIPMediaInputInputTypeOther = 0x0B, +typedef NS_ENUM(uint8_t, MTRMediaInputInputType) { + MTRMediaInputInputTypeInternal = 0x00, + MTRMediaInputInputTypeAux = 0x01, + MTRMediaInputInputTypeCoax = 0x02, + MTRMediaInputInputTypeComposite = 0x03, + MTRMediaInputInputTypeHdmi = 0x04, + MTRMediaInputInputTypeInput = 0x05, + MTRMediaInputInputTypeLine = 0x06, + MTRMediaInputInputTypeOptical = 0x07, + MTRMediaInputInputTypeVideo = 0x08, + MTRMediaInputInputTypeScart = 0x09, + MTRMediaInputInputTypeUsb = 0x0A, + MTRMediaInputInputTypeOther = 0x0B, }; -typedef NS_OPTIONS(uint32_t, CHIPMediaInputFeature) { - CHIPMediaInputFeatureNameUpdates = 0x1, +typedef NS_OPTIONS(uint32_t, MTRMediaInputFeature) { + MTRMediaInputFeatureNameUpdates = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPKeypadInputCecKeyCode) { - CHIPKeypadInputCecKeyCodeSelect = 0x00, - CHIPKeypadInputCecKeyCodeUp = 0x01, - CHIPKeypadInputCecKeyCodeDown = 0x02, - CHIPKeypadInputCecKeyCodeLeft = 0x03, - CHIPKeypadInputCecKeyCodeRight = 0x04, - CHIPKeypadInputCecKeyCodeRightUp = 0x05, - CHIPKeypadInputCecKeyCodeRightDown = 0x06, - CHIPKeypadInputCecKeyCodeLeftUp = 0x07, - CHIPKeypadInputCecKeyCodeLeftDown = 0x08, - CHIPKeypadInputCecKeyCodeRootMenu = 0x09, - CHIPKeypadInputCecKeyCodeSetupMenu = 0x0A, - CHIPKeypadInputCecKeyCodeContentsMenu = 0x0B, - CHIPKeypadInputCecKeyCodeFavoriteMenu = 0x0C, - CHIPKeypadInputCecKeyCodeExit = 0x0D, - CHIPKeypadInputCecKeyCodeMediaTopMenu = 0x10, - CHIPKeypadInputCecKeyCodeMediaContextSensitiveMenu = 0x11, - CHIPKeypadInputCecKeyCodeNumberEntryMode = 0x1D, - CHIPKeypadInputCecKeyCodeNumber11 = 0x1E, - CHIPKeypadInputCecKeyCodeNumber12 = 0x1F, - CHIPKeypadInputCecKeyCodeNumber0OrNumber10 = 0x20, - CHIPKeypadInputCecKeyCodeNumbers1 = 0x21, - CHIPKeypadInputCecKeyCodeNumbers2 = 0x22, - CHIPKeypadInputCecKeyCodeNumbers3 = 0x23, - CHIPKeypadInputCecKeyCodeNumbers4 = 0x24, - CHIPKeypadInputCecKeyCodeNumbers5 = 0x25, - CHIPKeypadInputCecKeyCodeNumbers6 = 0x26, - CHIPKeypadInputCecKeyCodeNumbers7 = 0x27, - CHIPKeypadInputCecKeyCodeNumbers8 = 0x28, - CHIPKeypadInputCecKeyCodeNumbers9 = 0x29, - CHIPKeypadInputCecKeyCodeDot = 0x2A, - CHIPKeypadInputCecKeyCodeEnter = 0x2B, - CHIPKeypadInputCecKeyCodeClear = 0x2C, - CHIPKeypadInputCecKeyCodeNextFavorite = 0x2F, - CHIPKeypadInputCecKeyCodeChannelUp = 0x30, - CHIPKeypadInputCecKeyCodeChannelDown = 0x31, - CHIPKeypadInputCecKeyCodePreviousChannel = 0x32, - CHIPKeypadInputCecKeyCodeSoundSelect = 0x33, - CHIPKeypadInputCecKeyCodeInputSelect = 0x34, - CHIPKeypadInputCecKeyCodeDisplayInformation = 0x35, - CHIPKeypadInputCecKeyCodeHelp = 0x36, - CHIPKeypadInputCecKeyCodePageUp = 0x37, - CHIPKeypadInputCecKeyCodePageDown = 0x38, - CHIPKeypadInputCecKeyCodePower = 0x40, - CHIPKeypadInputCecKeyCodeVolumeUp = 0x41, - CHIPKeypadInputCecKeyCodeVolumeDown = 0x42, - CHIPKeypadInputCecKeyCodeMute = 0x43, - CHIPKeypadInputCecKeyCodePlay = 0x44, - CHIPKeypadInputCecKeyCodeStop = 0x45, - CHIPKeypadInputCecKeyCodePause = 0x46, - CHIPKeypadInputCecKeyCodeRecord = 0x47, - CHIPKeypadInputCecKeyCodeRewind = 0x48, - CHIPKeypadInputCecKeyCodeFastForward = 0x49, - CHIPKeypadInputCecKeyCodeEject = 0x4A, - CHIPKeypadInputCecKeyCodeForward = 0x4B, - CHIPKeypadInputCecKeyCodeBackward = 0x4C, - CHIPKeypadInputCecKeyCodeStopRecord = 0x4D, - CHIPKeypadInputCecKeyCodePauseRecord = 0x4E, - CHIPKeypadInputCecKeyCodeReserved = 0x4F, - CHIPKeypadInputCecKeyCodeAngle = 0x50, - CHIPKeypadInputCecKeyCodeSubPicture = 0x51, - CHIPKeypadInputCecKeyCodeVideoOnDemand = 0x52, - CHIPKeypadInputCecKeyCodeElectronicProgramGuide = 0x53, - CHIPKeypadInputCecKeyCodeTimerProgramming = 0x54, - CHIPKeypadInputCecKeyCodeInitialConfiguration = 0x55, - CHIPKeypadInputCecKeyCodeSelectBroadcastType = 0x56, - CHIPKeypadInputCecKeyCodeSelectSoundPresentation = 0x57, - CHIPKeypadInputCecKeyCodePlayFunction = 0x60, - CHIPKeypadInputCecKeyCodePausePlayFunction = 0x61, - CHIPKeypadInputCecKeyCodeRecordFunction = 0x62, - CHIPKeypadInputCecKeyCodePauseRecordFunction = 0x63, - CHIPKeypadInputCecKeyCodeStopFunction = 0x64, - CHIPKeypadInputCecKeyCodeMuteFunction = 0x65, - CHIPKeypadInputCecKeyCodeRestoreVolumeFunction = 0x66, - CHIPKeypadInputCecKeyCodeTuneFunction = 0x67, - CHIPKeypadInputCecKeyCodeSelectMediaFunction = 0x68, - CHIPKeypadInputCecKeyCodeSelectAvInputFunction = 0x69, - CHIPKeypadInputCecKeyCodeSelectAudioInputFunction = 0x6A, - CHIPKeypadInputCecKeyCodePowerToggleFunction = 0x6B, - CHIPKeypadInputCecKeyCodePowerOffFunction = 0x6C, - CHIPKeypadInputCecKeyCodePowerOnFunction = 0x6D, - CHIPKeypadInputCecKeyCodeF1Blue = 0x71, - CHIPKeypadInputCecKeyCodeF2Red = 0x72, - CHIPKeypadInputCecKeyCodeF3Green = 0x73, - CHIPKeypadInputCecKeyCodeF4Yellow = 0x74, - CHIPKeypadInputCecKeyCodeF5 = 0x75, - CHIPKeypadInputCecKeyCodeData = 0x76, +typedef NS_ENUM(uint8_t, MTRKeypadInputCecKeyCode) { + MTRKeypadInputCecKeyCodeSelect = 0x00, + MTRKeypadInputCecKeyCodeUp = 0x01, + MTRKeypadInputCecKeyCodeDown = 0x02, + MTRKeypadInputCecKeyCodeLeft = 0x03, + MTRKeypadInputCecKeyCodeRight = 0x04, + MTRKeypadInputCecKeyCodeRightUp = 0x05, + MTRKeypadInputCecKeyCodeRightDown = 0x06, + MTRKeypadInputCecKeyCodeLeftUp = 0x07, + MTRKeypadInputCecKeyCodeLeftDown = 0x08, + MTRKeypadInputCecKeyCodeRootMenu = 0x09, + MTRKeypadInputCecKeyCodeSetupMenu = 0x0A, + MTRKeypadInputCecKeyCodeContentsMenu = 0x0B, + MTRKeypadInputCecKeyCodeFavoriteMenu = 0x0C, + MTRKeypadInputCecKeyCodeExit = 0x0D, + MTRKeypadInputCecKeyCodeMediaTopMenu = 0x10, + MTRKeypadInputCecKeyCodeMediaContextSensitiveMenu = 0x11, + MTRKeypadInputCecKeyCodeNumberEntryMode = 0x1D, + MTRKeypadInputCecKeyCodeNumber11 = 0x1E, + MTRKeypadInputCecKeyCodeNumber12 = 0x1F, + MTRKeypadInputCecKeyCodeNumber0OrNumber10 = 0x20, + MTRKeypadInputCecKeyCodeNumbers1 = 0x21, + MTRKeypadInputCecKeyCodeNumbers2 = 0x22, + MTRKeypadInputCecKeyCodeNumbers3 = 0x23, + MTRKeypadInputCecKeyCodeNumbers4 = 0x24, + MTRKeypadInputCecKeyCodeNumbers5 = 0x25, + MTRKeypadInputCecKeyCodeNumbers6 = 0x26, + MTRKeypadInputCecKeyCodeNumbers7 = 0x27, + MTRKeypadInputCecKeyCodeNumbers8 = 0x28, + MTRKeypadInputCecKeyCodeNumbers9 = 0x29, + MTRKeypadInputCecKeyCodeDot = 0x2A, + MTRKeypadInputCecKeyCodeEnter = 0x2B, + MTRKeypadInputCecKeyCodeClear = 0x2C, + MTRKeypadInputCecKeyCodeNextFavorite = 0x2F, + MTRKeypadInputCecKeyCodeChannelUp = 0x30, + MTRKeypadInputCecKeyCodeChannelDown = 0x31, + MTRKeypadInputCecKeyCodePreviousChannel = 0x32, + MTRKeypadInputCecKeyCodeSoundSelect = 0x33, + MTRKeypadInputCecKeyCodeInputSelect = 0x34, + MTRKeypadInputCecKeyCodeDisplayInformation = 0x35, + MTRKeypadInputCecKeyCodeHelp = 0x36, + MTRKeypadInputCecKeyCodePageUp = 0x37, + MTRKeypadInputCecKeyCodePageDown = 0x38, + MTRKeypadInputCecKeyCodePower = 0x40, + MTRKeypadInputCecKeyCodeVolumeUp = 0x41, + MTRKeypadInputCecKeyCodeVolumeDown = 0x42, + MTRKeypadInputCecKeyCodeMute = 0x43, + MTRKeypadInputCecKeyCodePlay = 0x44, + MTRKeypadInputCecKeyCodeStop = 0x45, + MTRKeypadInputCecKeyCodePause = 0x46, + MTRKeypadInputCecKeyCodeRecord = 0x47, + MTRKeypadInputCecKeyCodeRewind = 0x48, + MTRKeypadInputCecKeyCodeFastForward = 0x49, + MTRKeypadInputCecKeyCodeEject = 0x4A, + MTRKeypadInputCecKeyCodeForward = 0x4B, + MTRKeypadInputCecKeyCodeBackward = 0x4C, + MTRKeypadInputCecKeyCodeStopRecord = 0x4D, + MTRKeypadInputCecKeyCodePauseRecord = 0x4E, + MTRKeypadInputCecKeyCodeReserved = 0x4F, + MTRKeypadInputCecKeyCodeAngle = 0x50, + MTRKeypadInputCecKeyCodeSubPicture = 0x51, + MTRKeypadInputCecKeyCodeVideoOnDemand = 0x52, + MTRKeypadInputCecKeyCodeElectronicProgramGuide = 0x53, + MTRKeypadInputCecKeyCodeTimerProgramming = 0x54, + MTRKeypadInputCecKeyCodeInitialConfiguration = 0x55, + MTRKeypadInputCecKeyCodeSelectBroadcastType = 0x56, + MTRKeypadInputCecKeyCodeSelectSoundPresentation = 0x57, + MTRKeypadInputCecKeyCodePlayFunction = 0x60, + MTRKeypadInputCecKeyCodePausePlayFunction = 0x61, + MTRKeypadInputCecKeyCodeRecordFunction = 0x62, + MTRKeypadInputCecKeyCodePauseRecordFunction = 0x63, + MTRKeypadInputCecKeyCodeStopFunction = 0x64, + MTRKeypadInputCecKeyCodeMuteFunction = 0x65, + MTRKeypadInputCecKeyCodeRestoreVolumeFunction = 0x66, + MTRKeypadInputCecKeyCodeTuneFunction = 0x67, + MTRKeypadInputCecKeyCodeSelectMediaFunction = 0x68, + MTRKeypadInputCecKeyCodeSelectAvInputFunction = 0x69, + MTRKeypadInputCecKeyCodeSelectAudioInputFunction = 0x6A, + MTRKeypadInputCecKeyCodePowerToggleFunction = 0x6B, + MTRKeypadInputCecKeyCodePowerOffFunction = 0x6C, + MTRKeypadInputCecKeyCodePowerOnFunction = 0x6D, + MTRKeypadInputCecKeyCodeF1Blue = 0x71, + MTRKeypadInputCecKeyCodeF2Red = 0x72, + MTRKeypadInputCecKeyCodeF3Green = 0x73, + MTRKeypadInputCecKeyCodeF4Yellow = 0x74, + MTRKeypadInputCecKeyCodeF5 = 0x75, + MTRKeypadInputCecKeyCodeData = 0x76, }; -typedef NS_ENUM(uint8_t, CHIPKeypadInputStatus) { - CHIPKeypadInputStatusSuccess = 0x00, - CHIPKeypadInputStatusUnsupportedKey = 0x01, - CHIPKeypadInputStatusInvalidKeyInCurrentState = 0x02, +typedef NS_ENUM(uint8_t, MTRKeypadInputStatus) { + MTRKeypadInputStatusSuccess = 0x00, + MTRKeypadInputStatusUnsupportedKey = 0x01, + MTRKeypadInputStatusInvalidKeyInCurrentState = 0x02, }; -typedef NS_OPTIONS(uint32_t, CHIPKeypadInputFeature) { - CHIPKeypadInputFeatureNavigationKeyCodes = 0x1, - CHIPKeypadInputFeatureLocationKeys = 0x2, - CHIPKeypadInputFeatureNumberKeys = 0x4, +typedef NS_OPTIONS(uint32_t, MTRKeypadInputFeature) { + MTRKeypadInputFeatureNavigationKeyCodes = 0x1, + MTRKeypadInputFeatureLocationKeys = 0x2, + MTRKeypadInputFeatureNumberKeys = 0x4, }; -typedef NS_ENUM(uint8_t, CHIPContentLauncherContentLaunchStatus) { - CHIPContentLauncherContentLaunchStatusSuccess = 0x00, - CHIPContentLauncherContentLaunchStatusUrlNotAvailable = 0x01, - CHIPContentLauncherContentLaunchStatusAuthFailed = 0x02, +typedef NS_ENUM(uint8_t, MTRContentLauncherContentLaunchStatus) { + MTRContentLauncherContentLaunchStatusSuccess = 0x00, + MTRContentLauncherContentLaunchStatusUrlNotAvailable = 0x01, + MTRContentLauncherContentLaunchStatusAuthFailed = 0x02, }; -typedef NS_ENUM(uint8_t, CHIPContentLauncherMetricType) { - CHIPContentLauncherMetricTypePIXELS = 0x00, - CHIPContentLauncherMetricTypePERCENTAGE = 0x01, +typedef NS_ENUM(uint8_t, MTRContentLauncherMetricType) { + MTRContentLauncherMetricTypePIXELS = 0x00, + MTRContentLauncherMetricTypePERCENTAGE = 0x01, }; -typedef NS_ENUM(uint8_t, CHIPContentLauncherParameter) { - CHIPContentLauncherParameterActor = 0x00, - CHIPContentLauncherParameterChannel = 0x01, - CHIPContentLauncherParameterCharacter = 0x02, - CHIPContentLauncherParameterDirector = 0x03, - CHIPContentLauncherParameterEvent = 0x04, - CHIPContentLauncherParameterFranchise = 0x05, - CHIPContentLauncherParameterGenre = 0x06, - CHIPContentLauncherParameterLeague = 0x07, - CHIPContentLauncherParameterPopularity = 0x08, - CHIPContentLauncherParameterProvider = 0x09, - CHIPContentLauncherParameterSport = 0x0A, - CHIPContentLauncherParameterSportsTeam = 0x0B, - CHIPContentLauncherParameterType = 0x0C, +typedef NS_ENUM(uint8_t, MTRContentLauncherParameter) { + MTRContentLauncherParameterActor = 0x00, + MTRContentLauncherParameterChannel = 0x01, + MTRContentLauncherParameterCharacter = 0x02, + MTRContentLauncherParameterDirector = 0x03, + MTRContentLauncherParameterEvent = 0x04, + MTRContentLauncherParameterFranchise = 0x05, + MTRContentLauncherParameterGenre = 0x06, + MTRContentLauncherParameterLeague = 0x07, + MTRContentLauncherParameterPopularity = 0x08, + MTRContentLauncherParameterProvider = 0x09, + MTRContentLauncherParameterSport = 0x0A, + MTRContentLauncherParameterSportsTeam = 0x0B, + MTRContentLauncherParameterType = 0x0C, }; -typedef NS_OPTIONS(uint32_t, CHIPContentLauncherFeature) { - CHIPContentLauncherFeatureContentSearch = 0x1, - CHIPContentLauncherFeatureURLPlayback = 0x2, +typedef NS_OPTIONS(uint32_t, MTRContentLauncherFeature) { + MTRContentLauncherFeatureContentSearch = 0x1, + MTRContentLauncherFeatureURLPlayback = 0x2, }; -typedef NS_OPTIONS(uint32_t, CHIPContentLauncherSupportedStreamingProtocol) { - CHIPContentLauncherSupportedStreamingProtocolDASH = 0x1, - CHIPContentLauncherSupportedStreamingProtocolHLS = 0x2, +typedef NS_OPTIONS(uint32_t, MTRContentLauncherSupportedStreamingProtocol) { + MTRContentLauncherSupportedStreamingProtocolDASH = 0x1, + MTRContentLauncherSupportedStreamingProtocolHLS = 0x2, }; -typedef NS_ENUM(uint8_t, CHIPAudioOutputOutputType) { - CHIPAudioOutputOutputTypeHdmi = 0x00, - CHIPAudioOutputOutputTypeBt = 0x01, - CHIPAudioOutputOutputTypeOptical = 0x02, - CHIPAudioOutputOutputTypeHeadphone = 0x03, - CHIPAudioOutputOutputTypeInternal = 0x04, - CHIPAudioOutputOutputTypeOther = 0x05, +typedef NS_ENUM(uint8_t, MTRAudioOutputOutputType) { + MTRAudioOutputOutputTypeHdmi = 0x00, + MTRAudioOutputOutputTypeBt = 0x01, + MTRAudioOutputOutputTypeOptical = 0x02, + MTRAudioOutputOutputTypeHeadphone = 0x03, + MTRAudioOutputOutputTypeInternal = 0x04, + MTRAudioOutputOutputTypeOther = 0x05, }; -typedef NS_OPTIONS(uint32_t, CHIPAudioOutputFeature) { - CHIPAudioOutputFeatureNameUpdates = 0x1, +typedef NS_OPTIONS(uint32_t, MTRAudioOutputFeature) { + MTRAudioOutputFeatureNameUpdates = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPApplicationLauncherStatus) { - CHIPApplicationLauncherStatusSuccess = 0x00, - CHIPApplicationLauncherStatusAppNotAvailable = 0x01, - CHIPApplicationLauncherStatusSystemBusy = 0x02, +typedef NS_ENUM(uint8_t, MTRApplicationLauncherStatus) { + MTRApplicationLauncherStatusSuccess = 0x00, + MTRApplicationLauncherStatusAppNotAvailable = 0x01, + MTRApplicationLauncherStatusSystemBusy = 0x02, }; -typedef NS_OPTIONS(uint32_t, CHIPApplicationLauncherFeature) { - CHIPApplicationLauncherFeatureApplicationPlatform = 0x1, +typedef NS_OPTIONS(uint32_t, MTRApplicationLauncherFeature) { + MTRApplicationLauncherFeatureApplicationPlatform = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPApplicationBasicApplicationStatus) { - CHIPApplicationBasicApplicationStatusStopped = 0x00, - CHIPApplicationBasicApplicationStatusActiveVisibleFocus = 0x01, - CHIPApplicationBasicApplicationStatusActiveHidden = 0x02, - CHIPApplicationBasicApplicationStatusActiveVisibleNotFocus = 0x03, +typedef NS_ENUM(uint8_t, MTRApplicationBasicApplicationStatus) { + MTRApplicationBasicApplicationStatusStopped = 0x00, + MTRApplicationBasicApplicationStatusActiveVisibleFocus = 0x01, + MTRApplicationBasicApplicationStatusActiveHidden = 0x02, + MTRApplicationBasicApplicationStatusActiveVisibleNotFocus = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPMessagingEventId) { - CHIPMessagingEventIdMeterCoverRemoved = 0x00, - CHIPMessagingEventIdMeterCoverClosed = 0x01, - CHIPMessagingEventIdStrongMagneticField = 0x02, - CHIPMessagingEventIdNoStrongMagneticField = 0x03, - CHIPMessagingEventIdBatteryFailure = 0x04, - CHIPMessagingEventIdLowBattery = 0x05, - CHIPMessagingEventIdProgramMemoryError = 0x06, - CHIPMessagingEventIdRamError = 0x07, - CHIPMessagingEventIdNvMemoryError = 0x08, - CHIPMessagingEventIdMeasurementSystemError = 0x09, - CHIPMessagingEventIdWatchdogError = 0x0A, - CHIPMessagingEventIdSupplyDisconnectFailure = 0x0B, - CHIPMessagingEventIdSupplyConnectFailure = 0x0C, - CHIPMessagingEventIdMeasurmentSoftwareChanged = 0x0D, - CHIPMessagingEventIdDstEnabled = 0x0E, - CHIPMessagingEventIdDstDisabled = 0x0F, - CHIPMessagingEventIdClockAdjBackward = 0x10, - CHIPMessagingEventIdClockAdjForward = 0x11, - CHIPMessagingEventIdClockInvalid = 0x12, - CHIPMessagingEventIdCommsErrorHan = 0x13, - CHIPMessagingEventIdCommsOkHan = 0x14, - CHIPMessagingEventIdFraudAttempt = 0x15, - CHIPMessagingEventIdPowerLoss = 0x16, - CHIPMessagingEventIdIncorrectProtocol = 0x17, - CHIPMessagingEventIdUnusualHanTraffic = 0x18, - CHIPMessagingEventIdUnexpectedClockChange = 0x19, - CHIPMessagingEventIdCommsUsingUnauthenticatedComponent = 0x1A, - CHIPMessagingEventIdErrorRegClear = 0x1B, - CHIPMessagingEventIdAlarmRegClear = 0x1C, - CHIPMessagingEventIdUnexpectedHwReset = 0x1D, - CHIPMessagingEventIdUnexpectedProgramExecution = 0x1E, - CHIPMessagingEventIdEventLogCleared = 0x1F, - CHIPMessagingEventIdManualDisconnect = 0x20, - CHIPMessagingEventIdManualConnect = 0x21, - CHIPMessagingEventIdRemoteDisconnection = 0x22, - CHIPMessagingEventIdLocalDisconnection = 0x23, - CHIPMessagingEventIdLimitThresholdExceeded = 0x24, - CHIPMessagingEventIdLimitThresholdOk = 0x25, - CHIPMessagingEventIdLimitThresholdChanged = 0x26, - CHIPMessagingEventIdMaximumDemandExceeded = 0x27, - CHIPMessagingEventIdProfileCleared = 0x28, - CHIPMessagingEventIdFirmwareReadyForActivation = 0x29, - CHIPMessagingEventIdFirmwareActivated = 0x2A, - CHIPMessagingEventIdPatchFailure = 0x2B, - CHIPMessagingEventIdTouTariffActivation = 0x2C, - CHIPMessagingEventId8x8Tariffactivated = 0x2D, - CHIPMessagingEventIdSingleTariffRateActivated = 0x2E, - CHIPMessagingEventIdAsynchronousBillingOccurred = 0x2F, - CHIPMessagingEventIdSynchronousBillingOccurred = 0x30, - CHIPMessagingEventIdIncorrectPolarity = 0x80, - CHIPMessagingEventIdCurrentNoVoltage = 0x81, - CHIPMessagingEventIdUnderVoltage = 0x82, - CHIPMessagingEventIdOverVoltage = 0x83, - CHIPMessagingEventIdNormalVoltage = 0x84, - CHIPMessagingEventIdPfBelowThreshold = 0x85, - CHIPMessagingEventIdPfAboveThreshold = 0x86, - CHIPMessagingEventIdTerminalCoverRemoved = 0x87, - CHIPMessagingEventIdTerminalCoverClosed = 0x88, - CHIPMessagingEventIdReverseFlow = 0xA0, - CHIPMessagingEventIdTiltTamper = 0xA1, - CHIPMessagingEventIdBatteryCoverRemoved = 0xA2, - CHIPMessagingEventIdBatteryCoverClosed = 0xA3, - CHIPMessagingEventIdExcessFlow = 0xA4, - CHIPMessagingEventIdCreditOk = 0xC0, - CHIPMessagingEventIdLowCredit = 0xC1, - CHIPMessagingEventIdEmergencyCreditInUse = 0xC0, - CHIPMessagingEventIdEmergencyCreditExhausted = 0xC1, - CHIPMessagingEventIdZeroCreditEcNotSelected = 0xC2, - CHIPMessagingEventIdSupplyOn = 0xC3, - CHIPMessagingEventIdSupplyOffAarmed = 0xC4, - CHIPMessagingEventIdSupplyOff = 0xC5, - CHIPMessagingEventIdDiscountApplied = 0xC6, - CHIPMessagingEventIdManufacturerSpecificA = 0xE0, - CHIPMessagingEventIdManufacturerSpecificB = 0xE1, - CHIPMessagingEventIdManufacturerSpecificC = 0xE2, - CHIPMessagingEventIdManufacturerSpecificD = 0xE3, - CHIPMessagingEventIdManufacturerSpecificE = 0xE4, - CHIPMessagingEventIdManufacturerSpecificF = 0xE5, - CHIPMessagingEventIdManufacturerSpecificG = 0xE6, - CHIPMessagingEventIdManufacturerSpecificH = 0xE7, - CHIPMessagingEventIdManufacturerSpecificI = 0xE8, +typedef NS_ENUM(uint8_t, MTRMessagingEventId) { + MTRMessagingEventIdMeterCoverRemoved = 0x00, + MTRMessagingEventIdMeterCoverClosed = 0x01, + MTRMessagingEventIdStrongMagneticField = 0x02, + MTRMessagingEventIdNoStrongMagneticField = 0x03, + MTRMessagingEventIdBatteryFailure = 0x04, + MTRMessagingEventIdLowBattery = 0x05, + MTRMessagingEventIdProgramMemoryError = 0x06, + MTRMessagingEventIdRamError = 0x07, + MTRMessagingEventIdNvMemoryError = 0x08, + MTRMessagingEventIdMeasurementSystemError = 0x09, + MTRMessagingEventIdWatchdogError = 0x0A, + MTRMessagingEventIdSupplyDisconnectFailure = 0x0B, + MTRMessagingEventIdSupplyConnectFailure = 0x0C, + MTRMessagingEventIdMeasurmentSoftwareChanged = 0x0D, + MTRMessagingEventIdDstEnabled = 0x0E, + MTRMessagingEventIdDstDisabled = 0x0F, + MTRMessagingEventIdClockAdjBackward = 0x10, + MTRMessagingEventIdClockAdjForward = 0x11, + MTRMessagingEventIdClockInvalid = 0x12, + MTRMessagingEventIdCommsErrorHan = 0x13, + MTRMessagingEventIdCommsOkHan = 0x14, + MTRMessagingEventIdFraudAttempt = 0x15, + MTRMessagingEventIdPowerLoss = 0x16, + MTRMessagingEventIdIncorrectProtocol = 0x17, + MTRMessagingEventIdUnusualHanTraffic = 0x18, + MTRMessagingEventIdUnexpectedClockChange = 0x19, + MTRMessagingEventIdCommsUsingUnauthenticatedComponent = 0x1A, + MTRMessagingEventIdErrorRegClear = 0x1B, + MTRMessagingEventIdAlarmRegClear = 0x1C, + MTRMessagingEventIdUnexpectedHwReset = 0x1D, + MTRMessagingEventIdUnexpectedProgramExecution = 0x1E, + MTRMessagingEventIdEventLogCleared = 0x1F, + MTRMessagingEventIdManualDisconnect = 0x20, + MTRMessagingEventIdManualConnect = 0x21, + MTRMessagingEventIdRemoteDisconnection = 0x22, + MTRMessagingEventIdLocalDisconnection = 0x23, + MTRMessagingEventIdLimitThresholdExceeded = 0x24, + MTRMessagingEventIdLimitThresholdOk = 0x25, + MTRMessagingEventIdLimitThresholdChanged = 0x26, + MTRMessagingEventIdMaximumDemandExceeded = 0x27, + MTRMessagingEventIdProfileCleared = 0x28, + MTRMessagingEventIdFirmwareReadyForActivation = 0x29, + MTRMessagingEventIdFirmwareActivated = 0x2A, + MTRMessagingEventIdPatchFailure = 0x2B, + MTRMessagingEventIdTouTariffActivation = 0x2C, + MTRMessagingEventId8x8Tariffactivated = 0x2D, + MTRMessagingEventIdSingleTariffRateActivated = 0x2E, + MTRMessagingEventIdAsynchronousBillingOccurred = 0x2F, + MTRMessagingEventIdSynchronousBillingOccurred = 0x30, + MTRMessagingEventIdIncorrectPolarity = 0x80, + MTRMessagingEventIdCurrentNoVoltage = 0x81, + MTRMessagingEventIdUnderVoltage = 0x82, + MTRMessagingEventIdOverVoltage = 0x83, + MTRMessagingEventIdNormalVoltage = 0x84, + MTRMessagingEventIdPfBelowThreshold = 0x85, + MTRMessagingEventIdPfAboveThreshold = 0x86, + MTRMessagingEventIdTerminalCoverRemoved = 0x87, + MTRMessagingEventIdTerminalCoverClosed = 0x88, + MTRMessagingEventIdReverseFlow = 0xA0, + MTRMessagingEventIdTiltTamper = 0xA1, + MTRMessagingEventIdBatteryCoverRemoved = 0xA2, + MTRMessagingEventIdBatteryCoverClosed = 0xA3, + MTRMessagingEventIdExcessFlow = 0xA4, + MTRMessagingEventIdCreditOk = 0xC0, + MTRMessagingEventIdLowCredit = 0xC1, + MTRMessagingEventIdEmergencyCreditInUse = 0xC0, + MTRMessagingEventIdEmergencyCreditExhausted = 0xC1, + MTRMessagingEventIdZeroCreditEcNotSelected = 0xC2, + MTRMessagingEventIdSupplyOn = 0xC3, + MTRMessagingEventIdSupplyOffAarmed = 0xC4, + MTRMessagingEventIdSupplyOff = 0xC5, + MTRMessagingEventIdDiscountApplied = 0xC6, + MTRMessagingEventIdManufacturerSpecificA = 0xE0, + MTRMessagingEventIdManufacturerSpecificB = 0xE1, + MTRMessagingEventIdManufacturerSpecificC = 0xE2, + MTRMessagingEventIdManufacturerSpecificD = 0xE3, + MTRMessagingEventIdManufacturerSpecificE = 0xE4, + MTRMessagingEventIdManufacturerSpecificF = 0xE5, + MTRMessagingEventIdManufacturerSpecificG = 0xE6, + MTRMessagingEventIdManufacturerSpecificH = 0xE7, + MTRMessagingEventIdManufacturerSpecificI = 0xE8, }; -typedef NS_ENUM(uint8_t, CHIPMessagingControlConfirmation) { - CHIPMessagingControlConfirmationNotRequired = 0x00, - CHIPMessagingControlConfirmationRequired = 0x80, +typedef NS_ENUM(uint8_t, MTRMessagingControlConfirmation) { + MTRMessagingControlConfirmationNotRequired = 0x00, + MTRMessagingControlConfirmationRequired = 0x80, }; -typedef NS_ENUM(uint8_t, CHIPMessagingControlEnhancedConfirmation) { - CHIPMessagingControlEnhancedConfirmationNotRequired = 0x00, - CHIPMessagingControlEnhancedConfirmationRequired = 0x20, +typedef NS_ENUM(uint8_t, MTRMessagingControlEnhancedConfirmation) { + MTRMessagingControlEnhancedConfirmationNotRequired = 0x00, + MTRMessagingControlEnhancedConfirmationRequired = 0x20, }; -typedef NS_ENUM(uint8_t, CHIPMessagingControlImportance) { - CHIPMessagingControlImportanceLow = 0x00, - CHIPMessagingControlImportanceMedium = 0x04, - CHIPMessagingControlImportanceHigh = 0x08, - CHIPMessagingControlImportanceCritical = 0x0C, +typedef NS_ENUM(uint8_t, MTRMessagingControlImportance) { + MTRMessagingControlImportanceLow = 0x00, + MTRMessagingControlImportanceMedium = 0x04, + MTRMessagingControlImportanceHigh = 0x08, + MTRMessagingControlImportanceCritical = 0x0C, }; -typedef NS_ENUM(uint8_t, CHIPMessagingControlTransmission) { - CHIPMessagingControlTransmissionNormal = 0x00, - CHIPMessagingControlTransmissionNormalAndAnonymous = 0x01, - CHIPMessagingControlTransmissionAnonymous = 0x02, - CHIPMessagingControlTransmissionReserved = 0x03, +typedef NS_ENUM(uint8_t, MTRMessagingControlTransmission) { + MTRMessagingControlTransmissionNormal = 0x00, + MTRMessagingControlTransmissionNormalAndAnonymous = 0x01, + MTRMessagingControlTransmissionAnonymous = 0x02, + MTRMessagingControlTransmissionReserved = 0x03, }; -typedef NS_OPTIONS(uint8_t, CHIPMessagingConfirmationControl) { - CHIPMessagingConfirmationControlNoReturned = 0x1, - CHIPMessagingConfirmationControlYesReturned = 0x2, +typedef NS_OPTIONS(uint8_t, MTRMessagingConfirmationControl) { + MTRMessagingConfirmationControlNoReturned = 0x1, + MTRMessagingConfirmationControlYesReturned = 0x2, }; -typedef NS_OPTIONS(uint8_t, CHIPMessagingControlMask) { - CHIPMessagingControlMaskTransMechanism = 0x3, - CHIPMessagingControlMaskMessageUrgency = 0xC, - CHIPMessagingControlMaskEnhancedConfirmationRequest = 0x20, - CHIPMessagingControlMaskMessageConfirmation = 0x80, +typedef NS_OPTIONS(uint8_t, MTRMessagingControlMask) { + MTRMessagingControlMaskTransMechanism = 0x3, + MTRMessagingControlMaskMessageUrgency = 0xC, + MTRMessagingControlMaskEnhancedConfirmationRequest = 0x20, + MTRMessagingControlMaskMessageConfirmation = 0x80, }; -typedef NS_OPTIONS(uint8_t, CHIPMessagingExtendedControlMask) { - CHIPMessagingExtendedControlMaskMessageConfirmationStatus = 0x1, +typedef NS_OPTIONS(uint8_t, MTRMessagingExtendedControlMask) { + MTRMessagingExtendedControlMaskMessageConfirmationStatus = 0x1, }; -typedef NS_ENUM(uint8_t, CHIPApplianceEventsAndAlertEventIdentification) { - CHIPApplianceEventsAndAlertEventIdentificationEndOfCycle = 0x01, - CHIPApplianceEventsAndAlertEventIdentificationTemperatureReached = 0x04, - CHIPApplianceEventsAndAlertEventIdentificationEndOfCooking = 0x05, - CHIPApplianceEventsAndAlertEventIdentificationSwitchingOff = 0x06, - CHIPApplianceEventsAndAlertEventIdentificationWrongData = 0x07, +typedef NS_ENUM(uint8_t, MTRApplianceEventsAndAlertEventIdentification) { + MTRApplianceEventsAndAlertEventIdentificationEndOfCycle = 0x01, + MTRApplianceEventsAndAlertEventIdentificationTemperatureReached = 0x04, + MTRApplianceEventsAndAlertEventIdentificationEndOfCooking = 0x05, + MTRApplianceEventsAndAlertEventIdentificationSwitchingOff = 0x06, + MTRApplianceEventsAndAlertEventIdentificationWrongData = 0x07, }; -typedef NS_OPTIONS(uint8_t, CHIPApplianceEventsAndAlertAlertCount) { - CHIPApplianceEventsAndAlertAlertCountNumberOfAlerts = 0xF, - CHIPApplianceEventsAndAlertAlertCountTypeOfAlert = 0xF0, +typedef NS_OPTIONS(uint8_t, MTRApplianceEventsAndAlertAlertCount) { + MTRApplianceEventsAndAlertAlertCountNumberOfAlerts = 0xF, + MTRApplianceEventsAndAlertAlertCountTypeOfAlert = 0xF0, }; -typedef NS_OPTIONS(uint32_t, CHIPApplianceEventsAndAlertAlertStructure) { - CHIPApplianceEventsAndAlertAlertStructureAlertId = 0xFF, - CHIPApplianceEventsAndAlertAlertStructureCategory = 0xF00, - CHIPApplianceEventsAndAlertAlertStructurePresenceRecovery = 0x3000, +typedef NS_OPTIONS(uint32_t, MTRApplianceEventsAndAlertAlertStructure) { + MTRApplianceEventsAndAlertAlertStructureAlertId = 0xFF, + MTRApplianceEventsAndAlertAlertStructureCategory = 0xF00, + MTRApplianceEventsAndAlertAlertStructurePresenceRecovery = 0x3000, }; -typedef NS_ENUM(uint8_t, CHIPTestClusterSimple) { - CHIPTestClusterSimpleUnspecified = 0x00, - CHIPTestClusterSimpleValueA = 0x01, - CHIPTestClusterSimpleValueB = 0x02, - CHIPTestClusterSimpleValueC = 0x03, +typedef NS_ENUM(uint8_t, MTRTestClusterSimple) { + MTRTestClusterSimpleUnspecified = 0x00, + MTRTestClusterSimpleValueA = 0x01, + MTRTestClusterSimpleValueB = 0x02, + MTRTestClusterSimpleValueC = 0x03, }; -typedef NS_OPTIONS(uint16_t, CHIPTestClusterBitmap16MaskMap) { - CHIPTestClusterBitmap16MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap16MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap16MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap16MaskMapMaskVal4 = 0x4000, +typedef NS_OPTIONS(uint16_t, MTRTestClusterBitmap16MaskMap) { + MTRTestClusterBitmap16MaskMapMaskVal1 = 0x1, + MTRTestClusterBitmap16MaskMapMaskVal2 = 0x2, + MTRTestClusterBitmap16MaskMapMaskVal3 = 0x4, + MTRTestClusterBitmap16MaskMapMaskVal4 = 0x4000, }; -typedef NS_OPTIONS(uint32_t, CHIPTestClusterBitmap32MaskMap) { - CHIPTestClusterBitmap32MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap32MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap32MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap32MaskMapMaskVal4 = 0x40000000, +typedef NS_OPTIONS(uint32_t, MTRTestClusterBitmap32MaskMap) { + MTRTestClusterBitmap32MaskMapMaskVal1 = 0x1, + MTRTestClusterBitmap32MaskMapMaskVal2 = 0x2, + MTRTestClusterBitmap32MaskMapMaskVal3 = 0x4, + MTRTestClusterBitmap32MaskMapMaskVal4 = 0x40000000, }; -typedef NS_OPTIONS(uint64_t, CHIPTestClusterBitmap64MaskMap) { - CHIPTestClusterBitmap64MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap64MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap64MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap64MaskMapMaskVal4 = 0x4000000000000000, +typedef NS_OPTIONS(uint64_t, MTRTestClusterBitmap64MaskMap) { + MTRTestClusterBitmap64MaskMapMaskVal1 = 0x1, + MTRTestClusterBitmap64MaskMapMaskVal2 = 0x2, + MTRTestClusterBitmap64MaskMapMaskVal3 = 0x4, + MTRTestClusterBitmap64MaskMapMaskVal4 = 0x4000000000000000, }; -typedef NS_OPTIONS(uint8_t, CHIPTestClusterBitmap8MaskMap) { - CHIPTestClusterBitmap8MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap8MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap8MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap8MaskMapMaskVal4 = 0x40, +typedef NS_OPTIONS(uint8_t, MTRTestClusterBitmap8MaskMap) { + MTRTestClusterBitmap8MaskMapMaskVal1 = 0x1, + MTRTestClusterBitmap8MaskMapMaskVal2 = 0x2, + MTRTestClusterBitmap8MaskMapMaskVal3 = 0x4, + MTRTestClusterBitmap8MaskMapMaskVal4 = 0x40, }; -typedef NS_OPTIONS(uint8_t, CHIPTestClusterSimpleBitmap) { - CHIPTestClusterSimpleBitmapValueA = 0x1, - CHIPTestClusterSimpleBitmapValueB = 0x2, - CHIPTestClusterSimpleBitmapValueC = 0x4, +typedef NS_OPTIONS(uint8_t, MTRTestClusterSimpleBitmap) { + MTRTestClusterSimpleBitmapValueA = 0x1, + MTRTestClusterSimpleBitmapValueB = 0x2, + MTRTestClusterSimpleBitmapValueC = 0x4, }; NS_ASSUME_NONNULL_END - -#endif /* CHIP_CLUSTERS_H */ diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm similarity index 82% rename from src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm index 363c3ac2684e38..94746c04cb4648 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm @@ -19,14 +19,14 @@ #import -#import "CHIPAttributeCacheContainer_Internal.h" -#import "CHIPCallbackBridge_internal.h" -#import "CHIPCluster_internal.h" -#import "CHIPClustersObjc_internal.h" -#import "CHIPCommandPayloadsObjc.h" -#import "CHIPDevice.h" -#import "CHIPDevice_Internal.h" -#import "CHIPStructsObjc.h" +#import "MTRAttributeCacheContainer_Internal.h" +#import "MTRCallbackBridge_internal.h" +#import "MTRCluster_internal.h" +#import "MTRClustersObjc_internal.h" +#import "MTRCommandPayloadsObjc.h" +#import "MTRDevice.h" +#import "MTRDevice_Internal.h" +#import "MTRStructsObjc.h" #include #include @@ -35,14 +35,14 @@ using chip::Callback::Cancelable; using namespace chip::app::Clusters; // NOLINTBEGIN(clang-analyzer-cplusplus.NewDeleteLeaks): Linter is unable to locate the delete on these objects. -@implementation CHIPIdentify +@implementation MTRIdentify - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)identifyWithParams:(CHIPIdentifyClusterIdentifyParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)identifyWithParams:(MTRIdentifyClusterIdentifyParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -54,20 +54,20 @@ - (void)identifyWithParams:(CHIPIdentifyClusterIdentifyParams *)params completio } request.identifyTime = params.identifyTime.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)triggerEffectWithParams:(CHIPIdentifyClusterTriggerEffectParams *)params +- (void)triggerEffectWithParams:(MTRIdentifyClusterTriggerEffectParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -83,14 +83,14 @@ - (void)triggerEffectWithParams:(CHIPIdentifyClusterTriggerEffectParams *)params request.effectVariant = static_cast>(params.effectVariant.unsignedCharValue); - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -99,10 +99,10 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeIdentifyTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::IdentifyTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -112,17 +112,17 @@ - (void)writeAttributeIdentifyTimeWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeIdentifyTimeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeIdentifyTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -132,20 +132,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Identify::Attributes::IdentifyTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeIdentifyTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -154,23 +154,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::IdentifyTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeIdentifyTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeIdentifyTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Identify::Attributes::IdentifyTime::TypeInfo; @@ -192,21 +192,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeIdentifyTypeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeIdentifyTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -215,23 +215,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeIdentifyTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeIdentifyTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; @@ -253,24 +253,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge( + new MTRIdentifyGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -279,23 +279,23 @@ new CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRIdentifyGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge( + new MTRIdentifyGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -318,24 +318,24 @@ new CHIPIdentifyGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge( + new MTRIdentifyAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -344,23 +344,23 @@ new CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRIdentifyAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge( + new MTRIdentifyAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -383,22 +383,22 @@ new CHIPIdentifyAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyAttributeListListAttributeCallbackBridge( + new MTRIdentifyAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge( + new MTRIdentifyAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -407,23 +407,23 @@ new CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIdentifyAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRIdentifyAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIdentifyAttributeListListAttributeCallbackBridge( + new MTRIdentifyAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -446,21 +446,21 @@ new CHIPIdentifyAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -469,22 +469,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; @@ -506,22 +506,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -530,23 +530,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; @@ -567,16 +567,16 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPGroups +@implementation MTRGroups - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)addGroupWithParams:(CHIPGroupsClusterAddGroupParams *)params +- (void)addGroupWithParams:(MTRGroupsClusterAddGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -589,18 +589,18 @@ - (void)addGroupWithParams:(CHIPGroupsClusterAddGroupParams *)params request.groupId = params.groupId.unsignedShortValue; request.groupName = [self asCharSpan:params.groupName]; - new CHIPGroupsClusterAddGroupResponseCallbackBridge( + new MTRGroupsClusterAddGroupResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)viewGroupWithParams:(CHIPGroupsClusterViewGroupParams *)params +- (void)viewGroupWithParams:(MTRGroupsClusterViewGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterViewGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRGroupsClusterViewGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -612,17 +612,17 @@ - (void)viewGroupWithParams:(CHIPGroupsClusterViewGroupParams *)params } request.groupId = params.groupId.unsignedShortValue; - new CHIPGroupsClusterViewGroupResponseCallbackBridge( + new MTRGroupsClusterViewGroupResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getGroupMembershipWithParams:(CHIPGroupsClusterGetGroupMembershipParams *)params - completionHandler:(void (^)(CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable data, +- (void)getGroupMembershipWithParams:(MTRGroupsClusterGetGroupMembershipParams *)params + completionHandler:(void (^)(MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -656,18 +656,18 @@ - (void)getGroupMembershipWithParams:(CHIPGroupsClusterGetGroupMembershipParams } } - new CHIPGroupsClusterGetGroupMembershipResponseCallbackBridge( + new MTRGroupsClusterGetGroupMembershipResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)removeGroupWithParams:(CHIPGroupsClusterRemoveGroupParams *)params +- (void)removeGroupWithParams:(MTRGroupsClusterRemoveGroupParams *)params completionHandler: - (void (^)(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRGroupsClusterRemoveGroupResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -679,10 +679,10 @@ - (void)removeGroupWithParams:(CHIPGroupsClusterRemoveGroupParams *)params } request.groupId = params.groupId.unsignedShortValue; - new CHIPGroupsClusterRemoveGroupResponseCallbackBridge( + new MTRGroupsClusterRemoveGroupResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -692,7 +692,7 @@ - (void)removeAllGroupsWithCompletionHandler:(StatusCompletion)completionHandler { [self removeAllGroupsWithParams:nil completionHandler:completionHandler]; } -- (void)removeAllGroupsWithParams:(CHIPGroupsClusterRemoveAllGroupsParams * _Nullable)params +- (void)removeAllGroupsWithParams:(MTRGroupsClusterRemoveAllGroupsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -704,20 +704,20 @@ - (void)removeAllGroupsWithParams:(CHIPGroupsClusterRemoveAllGroupsParams * _Nul } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)addGroupIfIdentifyingWithParams:(CHIPGroupsClusterAddGroupIfIdentifyingParams *)params +- (void)addGroupIfIdentifyingWithParams:(MTRGroupsClusterAddGroupIfIdentifyingParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -731,14 +731,14 @@ - (void)addGroupIfIdentifyingWithParams:(CHIPGroupsClusterAddGroupIfIdentifyingP request.groupId = params.groupId.unsignedShortValue; request.groupName = [self asCharSpan:params.groupName]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -747,21 +747,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeNameSupportWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNameSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -770,23 +770,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNameSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNameSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; @@ -808,24 +808,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsGeneratedCommandListListAttributeCallbackBridge( + new MTRGroupsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -834,23 +834,23 @@ new CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsGeneratedCommandListListAttributeCallbackBridge( + new MTRGroupsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -873,24 +873,24 @@ new CHIPGroupsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsAcceptedCommandListListAttributeCallbackBridge( + new MTRGroupsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -899,23 +899,23 @@ new CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsAcceptedCommandListListAttributeCallbackBridge( + new MTRGroupsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -938,22 +938,22 @@ new CHIPGroupsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsAttributeListListAttributeCallbackBridge( + new MTRGroupsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRGroupsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -962,23 +962,23 @@ new CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupsAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRGroupsAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; @@ -1000,21 +1000,21 @@ new CHIPGroupsAttributeListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1023,22 +1023,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; @@ -1060,22 +1060,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1084,23 +1084,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; @@ -1121,16 +1121,16 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPScenes +@implementation MTRScenes - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)addSceneWithParams:(CHIPScenesClusterAddSceneParams *)params +- (void)addSceneWithParams:(MTRScenesClusterAddSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1154,11 +1154,11 @@ - (void)addSceneWithParams:(CHIPScenesClusterAddSceneParams *)params } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.extensionFieldSets.count; ++i_0) { - if (![params.extensionFieldSets[i_0] isKindOfClass:[CHIPScenesClusterExtensionFieldSet class]]) { + if (![params.extensionFieldSets[i_0] isKindOfClass:[MTRScenesClusterExtensionFieldSet class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPScenesClusterExtensionFieldSet *) params.extensionFieldSets[i_0]; + auto element_0 = (MTRScenesClusterExtensionFieldSet *) params.extensionFieldSets[i_0]; listHolder_0->mList[i_0].clusterId = element_0.clusterId.unsignedIntValue; { using ListType_2 = std::remove_reference_tmList[i_0].attributeValueList)>; @@ -1170,11 +1170,11 @@ - (void)addSceneWithParams:(CHIPScenesClusterAddSceneParams *)params } listFreer.add(listHolder_2); for (size_t i_2 = 0; i_2 < element_0.attributeValueList.count; ++i_2) { - if (![element_0.attributeValueList[i_2] isKindOfClass:[CHIPScenesClusterAttributeValuePair class]]) { + if (![element_0.attributeValueList[i_2] isKindOfClass:[MTRScenesClusterAttributeValuePair class]]) { // Wrong kind of value. return; } - auto element_2 = (CHIPScenesClusterAttributeValuePair *) element_0.attributeValueList[i_2]; + auto element_2 = (MTRScenesClusterAttributeValuePair *) element_0.attributeValueList[i_2]; if (element_2.attributeId != nil) { auto & definedValue_4 = listHolder_2->mList[i_2].attributeId.Emplace(); definedValue_4 = element_2.attributeId.unsignedIntValue; @@ -1216,18 +1216,18 @@ - (void)addSceneWithParams:(CHIPScenesClusterAddSceneParams *)params } } - new CHIPScenesClusterAddSceneResponseCallbackBridge( + new MTRScenesClusterAddSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)viewSceneWithParams:(CHIPScenesClusterViewSceneParams *)params +- (void)viewSceneWithParams:(MTRScenesClusterViewSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRScenesClusterViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1240,18 +1240,18 @@ - (void)viewSceneWithParams:(CHIPScenesClusterViewSceneParams *)params request.groupId = params.groupId.unsignedShortValue; request.sceneId = params.sceneId.unsignedCharValue; - new CHIPScenesClusterViewSceneResponseCallbackBridge( + new MTRScenesClusterViewSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)removeSceneWithParams:(CHIPScenesClusterRemoveSceneParams *)params +- (void)removeSceneWithParams:(MTRScenesClusterRemoveSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterRemoveSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRScenesClusterRemoveSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1264,17 +1264,17 @@ - (void)removeSceneWithParams:(CHIPScenesClusterRemoveSceneParams *)params request.groupId = params.groupId.unsignedShortValue; request.sceneId = params.sceneId.unsignedCharValue; - new CHIPScenesClusterRemoveSceneResponseCallbackBridge( + new MTRScenesClusterRemoveSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)removeAllScenesWithParams:(CHIPScenesClusterRemoveAllScenesParams *)params - completionHandler:(void (^)(CHIPScenesClusterRemoveAllScenesResponseParams * _Nullable data, +- (void)removeAllScenesWithParams:(MTRScenesClusterRemoveAllScenesParams *)params + completionHandler:(void (^)(MTRScenesClusterRemoveAllScenesResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -1287,18 +1287,18 @@ - (void)removeAllScenesWithParams:(CHIPScenesClusterRemoveAllScenesParams *)para } request.groupId = params.groupId.unsignedShortValue; - new CHIPScenesClusterRemoveAllScenesResponseCallbackBridge( + new MTRScenesClusterRemoveAllScenesResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)storeSceneWithParams:(CHIPScenesClusterStoreSceneParams *)params +- (void)storeSceneWithParams:(MTRScenesClusterStoreSceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterStoreSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRScenesClusterStoreSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1311,16 +1311,16 @@ - (void)storeSceneWithParams:(CHIPScenesClusterStoreSceneParams *)params request.groupId = params.groupId.unsignedShortValue; request.sceneId = params.sceneId.unsignedCharValue; - new CHIPScenesClusterStoreSceneResponseCallbackBridge( + new MTRScenesClusterStoreSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)recallSceneWithParams:(CHIPScenesClusterRecallSceneParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)recallSceneWithParams:(MTRScenesClusterRecallSceneParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1342,21 +1342,21 @@ - (void)recallSceneWithParams:(CHIPScenesClusterRecallSceneParams *)params compl } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getSceneMembershipWithParams:(CHIPScenesClusterGetSceneMembershipParams *)params - completionHandler:(void (^)(CHIPScenesClusterGetSceneMembershipResponseParams * _Nullable data, +- (void)getSceneMembershipWithParams:(MTRScenesClusterGetSceneMembershipParams *)params + completionHandler:(void (^)(MTRScenesClusterGetSceneMembershipResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -1369,17 +1369,17 @@ - (void)getSceneMembershipWithParams:(CHIPScenesClusterGetSceneMembershipParams } request.groupId = params.groupId.unsignedShortValue; - new CHIPScenesClusterGetSceneMembershipResponseCallbackBridge( + new MTRScenesClusterGetSceneMembershipResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedAddSceneWithParams:(CHIPScenesClusterEnhancedAddSceneParams *)params - completionHandler:(void (^)(CHIPScenesClusterEnhancedAddSceneResponseParams * _Nullable data, +- (void)enhancedAddSceneWithParams:(MTRScenesClusterEnhancedAddSceneParams *)params + completionHandler:(void (^)(MTRScenesClusterEnhancedAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -1404,11 +1404,11 @@ - (void)enhancedAddSceneWithParams:(CHIPScenesClusterEnhancedAddSceneParams *)pa } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.extensionFieldSets.count; ++i_0) { - if (![params.extensionFieldSets[i_0] isKindOfClass:[CHIPScenesClusterExtensionFieldSet class]]) { + if (![params.extensionFieldSets[i_0] isKindOfClass:[MTRScenesClusterExtensionFieldSet class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPScenesClusterExtensionFieldSet *) params.extensionFieldSets[i_0]; + auto element_0 = (MTRScenesClusterExtensionFieldSet *) params.extensionFieldSets[i_0]; listHolder_0->mList[i_0].clusterId = element_0.clusterId.unsignedIntValue; { using ListType_2 = std::remove_reference_tmList[i_0].attributeValueList)>; @@ -1420,11 +1420,11 @@ - (void)enhancedAddSceneWithParams:(CHIPScenesClusterEnhancedAddSceneParams *)pa } listFreer.add(listHolder_2); for (size_t i_2 = 0; i_2 < element_0.attributeValueList.count; ++i_2) { - if (![element_0.attributeValueList[i_2] isKindOfClass:[CHIPScenesClusterAttributeValuePair class]]) { + if (![element_0.attributeValueList[i_2] isKindOfClass:[MTRScenesClusterAttributeValuePair class]]) { // Wrong kind of value. return; } - auto element_2 = (CHIPScenesClusterAttributeValuePair *) element_0.attributeValueList[i_2]; + auto element_2 = (MTRScenesClusterAttributeValuePair *) element_0.attributeValueList[i_2]; if (element_2.attributeId != nil) { auto & definedValue_4 = listHolder_2->mList[i_2].attributeId.Emplace(); definedValue_4 = element_2.attributeId.unsignedIntValue; @@ -1466,17 +1466,17 @@ - (void)enhancedAddSceneWithParams:(CHIPScenesClusterEnhancedAddSceneParams *)pa } } - new CHIPScenesClusterEnhancedAddSceneResponseCallbackBridge( + new MTRScenesClusterEnhancedAddSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedViewSceneWithParams:(CHIPScenesClusterEnhancedViewSceneParams *)params - completionHandler:(void (^)(CHIPScenesClusterEnhancedViewSceneResponseParams * _Nullable data, +- (void)enhancedViewSceneWithParams:(MTRScenesClusterEnhancedViewSceneParams *)params + completionHandler:(void (^)(MTRScenesClusterEnhancedViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -1490,18 +1490,18 @@ - (void)enhancedViewSceneWithParams:(CHIPScenesClusterEnhancedViewSceneParams *) request.groupId = params.groupId.unsignedShortValue; request.sceneId = params.sceneId.unsignedCharValue; - new CHIPScenesClusterEnhancedViewSceneResponseCallbackBridge( + new MTRScenesClusterEnhancedViewSceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)copySceneWithParams:(CHIPScenesClusterCopySceneParams *)params +- (void)copySceneWithParams:(MTRScenesClusterCopySceneParams *)params completionHandler: - (void (^)(CHIPScenesClusterCopySceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRScenesClusterCopySceneResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -1517,10 +1517,10 @@ - (void)copySceneWithParams:(CHIPScenesClusterCopySceneParams *)params request.groupIdTo = params.groupIdTo.unsignedShortValue; request.sceneIdTo = params.sceneIdTo.unsignedCharValue; - new CHIPScenesClusterCopySceneResponseCallbackBridge( + new MTRScenesClusterCopySceneResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -1529,21 +1529,21 @@ new CHIPScenesClusterCopySceneResponseCallbackBridge( - (void)readAttributeSceneCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSceneCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1552,22 +1552,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSceneCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSceneCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; @@ -1589,21 +1589,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCurrentSceneWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentSceneWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1612,23 +1612,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentSceneWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentSceneWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; @@ -1650,21 +1650,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCurrentGroupWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentGroupWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1673,23 +1673,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentGroupWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentGroupWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; @@ -1711,21 +1711,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeSceneValidWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSceneValidWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1734,22 +1734,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSceneValidWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSceneValidWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; @@ -1771,21 +1771,21 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeNameSupportWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNameSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1794,23 +1794,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNameSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNameSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; @@ -1832,23 +1832,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeLastConfiguredByWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLastConfiguredByWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1857,23 +1857,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLastConfiguredByWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastConfiguredByWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; @@ -1895,24 +1895,24 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesGeneratedCommandListListAttributeCallbackBridge( + new MTRScenesGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1921,23 +1921,23 @@ new CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRScenesGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesGeneratedCommandListListAttributeCallbackBridge( + new MTRScenesGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -1960,24 +1960,24 @@ new CHIPScenesGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesAcceptedCommandListListAttributeCallbackBridge( + new MTRScenesAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -1986,23 +1986,23 @@ new CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRScenesAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesAcceptedCommandListListAttributeCallbackBridge( + new MTRScenesAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -2025,22 +2025,22 @@ new CHIPScenesAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesAttributeListListAttributeCallbackBridge( + new MTRScenesAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge( + new MTRScenesAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2049,23 +2049,23 @@ new CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPScenesAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRScenesAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPScenesAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRScenesAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; @@ -2087,21 +2087,21 @@ new CHIPScenesAttributeListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2110,22 +2110,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; @@ -2147,22 +2147,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2171,23 +2171,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; @@ -2208,7 +2208,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOnOff +@implementation MTROnOff - (chip::Controller::ClusterBase *)getCluster { @@ -2219,7 +2219,7 @@ - (void)offWithCompletionHandler:(StatusCompletion)completionHandler { [self offWithParams:nil completionHandler:completionHandler]; } -- (void)offWithParams:(CHIPOnOffClusterOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)offWithParams:(MTROnOffClusterOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -2230,14 +2230,14 @@ - (void)offWithParams:(CHIPOnOffClusterOffParams * _Nullable)params completionHa } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -2247,7 +2247,7 @@ - (void)onWithCompletionHandler:(StatusCompletion)completionHandler { [self onWithParams:nil completionHandler:completionHandler]; } -- (void)onWithParams:(CHIPOnOffClusterOnParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)onWithParams:(MTROnOffClusterOnParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -2258,14 +2258,14 @@ - (void)onWithParams:(CHIPOnOffClusterOnParams * _Nullable)params completionHand } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -2275,7 +2275,7 @@ - (void)toggleWithCompletionHandler:(StatusCompletion)completionHandler { [self toggleWithParams:nil completionHandler:completionHandler]; } -- (void)toggleWithParams:(CHIPOnOffClusterToggleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)toggleWithParams:(MTROnOffClusterToggleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -2286,20 +2286,20 @@ - (void)toggleWithParams:(CHIPOnOffClusterToggleParams * _Nullable)params comple } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)offWithEffectWithParams:(CHIPOnOffClusterOffWithEffectParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)offWithEffectWithParams:(MTROnOffClusterOffWithEffectParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -2313,14 +2313,14 @@ - (void)offWithEffectWithParams:(CHIPOnOffClusterOffWithEffectParams *)params co request.effectVariant = static_cast>(params.effectVariant.unsignedCharValue); - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -2330,7 +2330,7 @@ - (void)onWithRecallGlobalSceneWithCompletionHandler:(StatusCompletion)completio { [self onWithRecallGlobalSceneWithParams:nil completionHandler:completionHandler]; } -- (void)onWithRecallGlobalSceneWithParams:(CHIPOnOffClusterOnWithRecallGlobalSceneParams * _Nullable)params +- (void)onWithRecallGlobalSceneWithParams:(MTROnOffClusterOnWithRecallGlobalSceneParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -2342,21 +2342,20 @@ - (void)onWithRecallGlobalSceneWithParams:(CHIPOnOffClusterOnWithRecallGlobalSce } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)onWithTimedOffWithParams:(CHIPOnOffClusterOnWithTimedOffParams *)params - completionHandler:(StatusCompletion)completionHandler +- (void)onWithTimedOffWithParams:(MTROnOffClusterOnWithTimedOffParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -2371,14 +2370,14 @@ - (void)onWithTimedOffWithParams:(CHIPOnOffClusterOnWithTimedOffParams *)params request.onTime = params.onTime.unsignedShortValue; request.offWaitTime = params.offWaitTime.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -2386,21 +2385,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeOnOffWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOnOffWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2409,22 +2408,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnOffWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnOffWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; @@ -2446,22 +2445,22 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeGlobalSceneControlWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGlobalSceneControlWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2470,23 +2469,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGlobalSceneControlWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGlobalSceneControlWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; @@ -2507,10 +2506,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeOnTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::OnTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -2520,17 +2519,17 @@ - (void)writeAttributeOnTimeWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeOnTimeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOnTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -2540,20 +2539,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OnOff::Attributes::OnTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOnTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2562,22 +2561,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::OnTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::OnTime::TypeInfo; @@ -2599,10 +2598,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOffWaitTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::OffWaitTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -2612,17 +2611,17 @@ - (void)writeAttributeOffWaitTimeWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeOffWaitTimeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOffWaitTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -2632,20 +2631,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OnOff::Attributes::OffWaitTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOffWaitTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2654,23 +2653,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::OffWaitTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOffWaitTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOffWaitTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::OffWaitTime::TypeInfo; @@ -2692,11 +2691,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeStartUpOnOffWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge( + new MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::StartUpOnOff::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -2706,17 +2705,17 @@ - (void)writeAttributeStartUpOnOffWithValue:(NSNumber * _Nullable)value completi [self writeAttributeStartUpOnOffWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeStartUpOnOffWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -2731,20 +2730,20 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedCharValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeStartUpOnOffWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge( + new MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2753,23 +2752,23 @@ new CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge } using TypeInfo = OnOff::Attributes::StartUpOnOff::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartUpOnOffWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpOnOffWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge( + new MTRNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -2792,24 +2791,24 @@ new CHIPNullableOnOffClusterOnOffStartUpOnOffAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffGeneratedCommandListListAttributeCallbackBridge( + new MTROnOffGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2818,23 +2817,23 @@ new CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROnOffGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffGeneratedCommandListListAttributeCallbackBridge( + new MTROnOffGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -2857,24 +2856,24 @@ new CHIPOnOffGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffAcceptedCommandListListAttributeCallbackBridge( + new MTROnOffAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2883,23 +2882,23 @@ new CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROnOffAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffAcceptedCommandListListAttributeCallbackBridge( + new MTROnOffAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -2922,22 +2921,22 @@ new CHIPOnOffAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffAttributeListListAttributeCallbackBridge( + new MTROnOffAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge( + new MTROnOffAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -2946,23 +2945,23 @@ new CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROnOffAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTROnOffAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; @@ -2984,21 +2983,21 @@ new CHIPOnOffAttributeListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3007,22 +3006,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; @@ -3044,22 +3043,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3068,23 +3067,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; @@ -3105,7 +3104,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOnOffSwitchConfiguration +@implementation MTROnOffSwitchConfiguration - (chip::Controller::ClusterBase *)getCluster { @@ -3115,21 +3114,21 @@ @implementation CHIPOnOffSwitchConfiguration - (void)readAttributeSwitchTypeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSwitchTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3138,22 +3137,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSwitchTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSwitchTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; @@ -3175,10 +3174,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSwitchActionsWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -3188,17 +3187,17 @@ - (void)writeAttributeSwitchActionsWithValue:(NSNumber * _Nonnull)value completi [self writeAttributeSwitchActionsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeSwitchActionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -3208,21 +3207,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSwitchActionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3231,23 +3230,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSwitchActionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSwitchActionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo; @@ -3269,24 +3268,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3295,23 +3294,23 @@ new CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscri } using TypeInfo = OnOffSwitchConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -3335,24 +3334,24 @@ new CHIPOnOffSwitchConfigurationGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3361,23 +3360,23 @@ new CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscrip } using TypeInfo = OnOffSwitchConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -3401,22 +3400,22 @@ new CHIPOnOffSwitchConfigurationAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + new MTROnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3425,23 +3424,23 @@ new CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBr } using TypeInfo = OnOffSwitchConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROnOffSwitchConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge( + new MTROnOffSwitchConfigurationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -3464,21 +3463,21 @@ new CHIPOnOffSwitchConfigurationAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3487,22 +3486,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; @@ -3524,22 +3523,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3548,23 +3547,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; @@ -3585,14 +3584,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPLevelControl +@implementation MTRLevelControl - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)moveToLevelWithParams:(CHIPLevelControlClusterMoveToLevelParams *)params +- (void)moveToLevelWithParams:(MTRLevelControlClusterMoveToLevelParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3608,20 +3607,20 @@ - (void)moveToLevelWithParams:(CHIPLevelControlClusterMoveToLevelParams *)params request.optionMask = params.optionMask.unsignedCharValue; request.optionOverride = params.optionOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveWithParams:(CHIPLevelControlClusterMoveParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)moveWithParams:(MTRLevelControlClusterMoveParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -3636,20 +3635,20 @@ - (void)moveWithParams:(CHIPLevelControlClusterMoveParams *)params completionHan request.optionMask = params.optionMask.unsignedCharValue; request.optionOverride = params.optionOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepWithParams:(CHIPLevelControlClusterStepParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)stepWithParams:(MTRLevelControlClusterStepParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -3665,20 +3664,20 @@ - (void)stepWithParams:(CHIPLevelControlClusterStepParams *)params completionHan request.optionMask = params.optionMask.unsignedCharValue; request.optionOverride = params.optionOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stopWithParams:(CHIPLevelControlClusterStopParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)stopWithParams:(MTRLevelControlClusterStopParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -3691,20 +3690,20 @@ - (void)stopWithParams:(CHIPLevelControlClusterStopParams *)params completionHan request.optionMask = params.optionMask.unsignedCharValue; request.optionOverride = params.optionOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToLevelWithOnOffWithParams:(CHIPLevelControlClusterMoveToLevelWithOnOffParams *)params +- (void)moveToLevelWithOnOffWithParams:(MTRLevelControlClusterMoveToLevelWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3718,20 +3717,20 @@ - (void)moveToLevelWithOnOffWithParams:(CHIPLevelControlClusterMoveToLevelWithOn request.level = params.level.unsignedCharValue; request.transitionTime = params.transitionTime.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveWithOnOffWithParams:(CHIPLevelControlClusterMoveWithOnOffParams *)params +- (void)moveWithOnOffWithParams:(MTRLevelControlClusterMoveWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3745,20 +3744,20 @@ - (void)moveWithOnOffWithParams:(CHIPLevelControlClusterMoveWithOnOffParams *)pa request.moveMode = static_cast>(params.moveMode.unsignedCharValue); request.rate = params.rate.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepWithOnOffWithParams:(CHIPLevelControlClusterStepWithOnOffParams *)params +- (void)stepWithOnOffWithParams:(MTRLevelControlClusterStepWithOnOffParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3773,14 +3772,14 @@ - (void)stepWithOnOffWithParams:(CHIPLevelControlClusterStepWithOnOffParams *)pa request.stepSize = params.stepSize.unsignedCharValue; request.transitionTime = params.transitionTime.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -3790,7 +3789,7 @@ - (void)stopWithOnOffWithCompletionHandler:(StatusCompletion)completionHandler { [self stopWithOnOffWithParams:nil completionHandler:completionHandler]; } -- (void)stopWithOnOffWithParams:(CHIPLevelControlClusterStopWithOnOffParams * _Nullable)params +- (void)stopWithOnOffWithParams:(MTRLevelControlClusterStopWithOnOffParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3802,20 +3801,20 @@ - (void)stopWithOnOffWithParams:(CHIPLevelControlClusterStopWithOnOffParams * _N } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToClosestFrequencyWithParams:(CHIPLevelControlClusterMoveToClosestFrequencyParams *)params +- (void)moveToClosestFrequencyWithParams:(MTRLevelControlClusterMoveToClosestFrequencyParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -3828,14 +3827,14 @@ - (void)moveToClosestFrequencyWithParams:(CHIPLevelControlClusterMoveToClosestFr } request.frequency = params.frequency.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -3844,21 +3843,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeCurrentLevelWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3867,23 +3866,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; @@ -3905,22 +3904,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRemainingTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRemainingTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3929,23 +3928,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRemainingTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemainingTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; @@ -3967,21 +3966,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMinLevelWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -3990,22 +3989,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; @@ -4027,21 +4026,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMaxLevelWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4050,22 +4049,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; @@ -4087,22 +4086,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCurrentFrequencyWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4111,23 +4110,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; @@ -4149,21 +4148,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMinFrequencyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4172,23 +4171,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; @@ -4210,21 +4209,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMaxFrequencyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4233,23 +4232,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; @@ -4270,10 +4269,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOptionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::Options::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4283,17 +4282,17 @@ - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeOptionsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4303,20 +4302,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = LevelControl::Attributes::Options::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOptionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4325,22 +4324,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::Options::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOptionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOptionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::Options::TypeInfo; @@ -4362,10 +4361,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOnOffTransitionTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::OnOffTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4375,17 +4374,17 @@ - (void)writeAttributeOnOffTransitionTimeWithValue:(NSNumber * _Nonnull)value co [self writeAttributeOnOffTransitionTimeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOnOffTransitionTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4395,22 +4394,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = LevelControl::Attributes::OnOffTransitionTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOnOffTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4419,23 +4418,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::OnOffTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnOffTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnOffTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::OnOffTransitionTime::TypeInfo; @@ -4456,11 +4455,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOnLevelWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::OnLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4470,17 +4469,17 @@ - (void)writeAttributeOnLevelWithValue:(NSNumber * _Nullable)value completionHan [self writeAttributeOnLevelWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOnLevelWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4495,20 +4494,20 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOnLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4517,22 +4516,22 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::OnLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::OnLevel::TypeInfo; @@ -4554,11 +4553,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeOnTransitionTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::OnTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4568,17 +4567,17 @@ - (void)writeAttributeOnTransitionTimeWithValue:(NSNumber * _Nullable)value comp [self writeAttributeOnTransitionTimeWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOnTransitionTimeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4593,21 +4592,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOnTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4616,23 +4615,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::OnTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::OnTransitionTime::TypeInfo; @@ -4654,11 +4653,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeOffTransitionTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::OffTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4668,17 +4667,17 @@ - (void)writeAttributeOffTransitionTimeWithValue:(NSNumber * _Nullable)value com [self writeAttributeOffTransitionTimeWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOffTransitionTimeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4693,21 +4692,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOffTransitionTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4716,23 +4715,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::OffTransitionTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOffTransitionTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOffTransitionTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::OffTransitionTime::TypeInfo; @@ -4754,11 +4753,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeDefaultMoveRateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::DefaultMoveRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4768,17 +4767,17 @@ - (void)writeAttributeDefaultMoveRateWithValue:(NSNumber * _Nullable)value compl [self writeAttributeDefaultMoveRateWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeDefaultMoveRateWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4793,21 +4792,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeDefaultMoveRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4816,23 +4815,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::DefaultMoveRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDefaultMoveRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultMoveRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::DefaultMoveRate::TypeInfo; @@ -4854,11 +4853,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeStartUpCurrentLevelWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::StartUpCurrentLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -4868,17 +4867,17 @@ - (void)writeAttributeStartUpCurrentLevelWithValue:(NSNumber * _Nullable)value c [self writeAttributeStartUpCurrentLevelWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeStartUpCurrentLevelWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -4893,22 +4892,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeStartUpCurrentLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4917,23 +4916,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::StartUpCurrentLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartUpCurrentLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpCurrentLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::StartUpCurrentLevel::TypeInfo; @@ -4955,24 +4954,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge( + new MTRLevelControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -4981,23 +4980,23 @@ new CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLevelControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge( + new MTRLevelControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -5020,24 +5019,24 @@ new CHIPLevelControlGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge( + new MTRLevelControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5046,23 +5045,23 @@ new CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLevelControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge( + new MTRLevelControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -5085,22 +5084,22 @@ new CHIPLevelControlAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlAttributeListListAttributeCallbackBridge( + new MTRLevelControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRLevelControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5109,23 +5108,23 @@ new CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLevelControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLevelControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLevelControlAttributeListListAttributeCallbackBridge( + new MTRLevelControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -5148,21 +5147,21 @@ new CHIPLevelControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5171,22 +5170,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; @@ -5208,22 +5207,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5232,23 +5231,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; @@ -5269,7 +5268,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBinaryInputBasic +@implementation MTRBinaryInputBasic - (chip::Controller::ClusterBase *)getCluster { @@ -5279,10 +5278,10 @@ @implementation CHIPBinaryInputBasic - (void)readAttributeActiveTextWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::ActiveText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5292,17 +5291,17 @@ - (void)writeAttributeActiveTextWithValue:(NSString * _Nonnull)value completionH [self writeAttributeActiveTextWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeActiveTextWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5312,20 +5311,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::ActiveText::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeActiveTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5334,22 +5333,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::ActiveText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::ActiveText::TypeInfo; @@ -5371,10 +5370,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeDescriptionWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5384,17 +5383,17 @@ - (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completion [self writeAttributeDescriptionWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5404,20 +5403,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::Description::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5426,23 +5425,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::Description::TypeInfo; @@ -5464,10 +5463,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeInactiveTextWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::InactiveText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5477,17 +5476,17 @@ - (void)writeAttributeInactiveTextWithValue:(NSString * _Nonnull)value completio [self writeAttributeInactiveTextWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInactiveTextWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5497,20 +5496,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::InactiveText::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInactiveTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5519,23 +5518,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::InactiveText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInactiveTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInactiveTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::InactiveText::TypeInfo; @@ -5557,10 +5556,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeOutOfServiceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::OutOfService::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5570,17 +5569,17 @@ - (void)writeAttributeOutOfServiceWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeOutOfServiceWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOutOfServiceWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5590,20 +5589,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::OutOfService::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOutOfServiceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5612,23 +5611,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::OutOfService::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOutOfServiceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutOfServiceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::OutOfService::TypeInfo; @@ -5650,21 +5649,21 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributePolarityWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePolarityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5673,22 +5672,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePolarityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePolarityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; @@ -5710,10 +5709,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributePresentValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::PresentValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5723,17 +5722,17 @@ - (void)writeAttributePresentValueWithValue:(NSNumber * _Nonnull)value completio [self writeAttributePresentValueWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributePresentValueWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5743,20 +5742,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::PresentValue::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePresentValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5765,23 +5764,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::PresentValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePresentValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePresentValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::PresentValue::TypeInfo; @@ -5803,10 +5802,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeReliabilityWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::Reliability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -5816,17 +5815,17 @@ - (void)writeAttributeReliabilityWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeReliabilityWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeReliabilityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -5836,20 +5835,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BinaryInputBasic::Attributes::Reliability::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeReliabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5858,23 +5857,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::Reliability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReliabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReliabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::Reliability::TypeInfo; @@ -5896,21 +5895,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeStatusFlagsWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStatusFlagsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5919,23 +5918,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStatusFlagsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusFlagsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; @@ -5957,22 +5956,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeApplicationTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApplicationTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -5981,23 +5980,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApplicationTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; @@ -6019,24 +6018,24 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6045,23 +6044,23 @@ new CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBri } using TypeInfo = BinaryInputBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6084,24 +6083,24 @@ new CHIPBinaryInputBasicGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6110,23 +6109,23 @@ new CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = BinaryInputBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6149,22 +6148,22 @@ new CHIPBinaryInputBasicAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge( + new MTRBinaryInputBasicAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6173,23 +6172,23 @@ new CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBinaryInputBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge( + new MTRBinaryInputBasicAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6212,21 +6211,21 @@ new CHIPBinaryInputBasicAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6235,22 +6234,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; @@ -6272,22 +6271,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6296,23 +6295,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; @@ -6333,7 +6332,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPDescriptor +@implementation MTRDescriptor - (chip::Controller::ClusterBase *)getCluster { @@ -6343,22 +6342,22 @@ @implementation CHIPDescriptor - (void)readAttributeDeviceListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorDeviceListListAttributeCallbackBridge( + new MTRDescriptorDeviceListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDeviceListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorDeviceListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6367,60 +6366,59 @@ new CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorDeviceListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorDeviceListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDeviceListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDeviceListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorDeviceListListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRDescriptorDeviceListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributeServerListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorServerListListAttributeCallbackBridge( + new MTRDescriptorServerListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeServerListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorServerListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6429,60 +6427,59 @@ new CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorServerListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorServerListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeServerListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeServerListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorServerListListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRDescriptorServerListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributeClientListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorClientListListAttributeCallbackBridge( + new MTRDescriptorClientListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClientListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorClientListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6491,60 +6488,59 @@ new CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorClientListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorClientListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClientListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClientListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorClientListListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRDescriptorClientListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributePartsListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorPartsListListAttributeCallbackBridge( + new MTRDescriptorPartsListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePartsListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorPartsListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6553,22 +6549,22 @@ new CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorPartsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorPartsListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePartsListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartsListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorPartsListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRDescriptorPartsListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; @@ -6590,24 +6586,24 @@ new CHIPDescriptorPartsListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge( + new MTRDescriptorGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6616,23 +6612,23 @@ new CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge( + new MTRDescriptorGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6655,24 +6651,24 @@ new CHIPDescriptorGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge( + new MTRDescriptorAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6681,23 +6677,23 @@ new CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge( + new MTRDescriptorAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6720,22 +6716,22 @@ new CHIPDescriptorAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorAttributeListListAttributeCallbackBridge( + new MTRDescriptorAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge( + new MTRDescriptorAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6744,23 +6740,23 @@ new CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDescriptorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDescriptorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDescriptorAttributeListListAttributeCallbackBridge( + new MTRDescriptorAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -6783,21 +6779,21 @@ new CHIPDescriptorAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6806,22 +6802,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; @@ -6843,22 +6839,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -6867,23 +6863,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; @@ -6904,21 +6900,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBinding +@implementation MTRBinding - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)readAttributeBindingWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeBindingWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingBindingListAttributeCallbackBridge( + new MTRBindingBindingListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::Binding::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -6929,17 +6925,17 @@ - (void)writeAttributeBindingWithValue:(NSArray * _Nonnull)value completionHandl [self writeAttributeBindingWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBindingWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -6958,11 +6954,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPBindingClusterTargetStruct class]]) { + if (![value[i_0] isKindOfClass:[MTRBindingClusterTargetStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPBindingClusterTargetStruct *) value[i_0]; + auto element_0 = (MTRBindingClusterTargetStruct *) value[i_0]; if (element_0.node != nil) { auto & definedValue_2 = listHolder_0->mList[i_0].node.Emplace(); definedValue_2 = element_0.node.unsignedLongLongValue; @@ -6986,20 +6982,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBindingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBindingBindingListAttributeCallbackSubscriptionBridge( + new MTRBindingBindingListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7008,22 +7004,22 @@ new CHIPBindingBindingListAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::Binding::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBindingBindingListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBindingBindingListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBindingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBindingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingBindingListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBindingBindingListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Binding::Attributes::Binding::TypeInfo; @@ -7045,24 +7041,24 @@ new CHIPBindingBindingListAttributeCallbackBridge(queue, completionHandler, ^(Ca - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingGeneratedCommandListListAttributeCallbackBridge( + new MTRBindingGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7071,23 +7067,23 @@ new CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBindingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingGeneratedCommandListListAttributeCallbackBridge( + new MTRBindingGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -7110,24 +7106,24 @@ new CHIPBindingGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingAcceptedCommandListListAttributeCallbackBridge( + new MTRBindingAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7136,23 +7132,23 @@ new CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBindingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingAcceptedCommandListListAttributeCallbackBridge( + new MTRBindingAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -7175,22 +7171,22 @@ new CHIPBindingAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingAttributeListListAttributeCallbackBridge( + new MTRBindingAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBindingAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7199,60 +7195,59 @@ new CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBindingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBindingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBindingAttributeListListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRBindingAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7261,22 +7256,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; @@ -7298,22 +7293,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7322,23 +7317,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; @@ -7359,21 +7354,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPAccessControl +@implementation MTRAccessControl - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)readAttributeAclWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeAclWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAclListAttributeCallbackBridge( + new MTRAccessControlAclListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::Acl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -7384,17 +7379,17 @@ - (void)writeAttributeAclWithValue:(NSArray * _Nonnull)value completionHandler:( [self writeAttributeAclWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeAclWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -7413,11 +7408,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPAccessControlClusterAccessControlEntry class]]) { + if (![value[i_0] isKindOfClass:[MTRAccessControlClusterAccessControlEntry class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPAccessControlClusterAccessControlEntry *) value[i_0]; + auto element_0 = (MTRAccessControlClusterAccessControlEntry *) value[i_0]; listHolder_0->mList[i_0].privilege = static_castmList[i_0].privilege)>>( element_0.privilege.unsignedCharValue); @@ -7465,11 +7460,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_3); for (size_t i_3 = 0; i_3 < element_0.targets.count; ++i_3) { - if (![element_0.targets[i_3] isKindOfClass:[CHIPAccessControlClusterTarget class]]) { + if (![element_0.targets[i_3] isKindOfClass:[MTRAccessControlClusterTarget class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_3 = (CHIPAccessControlClusterTarget *) element_0.targets[i_3]; + auto element_3 = (MTRAccessControlClusterTarget *) element_0.targets[i_3]; if (element_3.cluster == nil) { listHolder_3->mList[i_3].cluster.SetNull(); } else { @@ -7502,20 +7497,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeAclWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccessControlAclListAttributeCallbackSubscriptionBridge( + new MTRAccessControlAclListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7524,22 +7519,22 @@ new CHIPAccessControlAclListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::Acl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccessControlAclListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccessControlAclListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAclWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAclWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAclListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRAccessControlAclListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::Acl::TypeInfo; @@ -7558,14 +7553,14 @@ new CHIPAccessControlAclListAttributeCallbackBridge(queue, completionHandler, ^( }); } -- (void)readAttributeExtensionWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeExtensionWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlExtensionListAttributeCallbackBridge( + new MTRAccessControlExtensionListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::Extension::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -7576,17 +7571,17 @@ - (void)writeAttributeExtensionWithValue:(NSArray * _Nonnull)value completionHan [self writeAttributeExtensionWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeExtensionWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -7605,11 +7600,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPAccessControlClusterExtensionEntry class]]) { + if (![value[i_0] isKindOfClass:[MTRAccessControlClusterExtensionEntry class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPAccessControlClusterExtensionEntry *) value[i_0]; + auto element_0 = (MTRAccessControlClusterExtensionEntry *) value[i_0]; listHolder_0->mList[i_0].data = [self asByteSpan:element_0.data]; listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; } @@ -7618,20 +7613,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeExtensionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge( + new MTRAccessControlExtensionListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7640,22 +7635,22 @@ new CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::Extension::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccessControlExtensionListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccessControlExtensionListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeExtensionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExtensionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlExtensionListAttributeCallbackBridge( + new MTRAccessControlExtensionListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -7678,23 +7673,23 @@ new CHIPAccessControlExtensionListAttributeCallbackBridge( - (void)readAttributeSubjectsPerAccessControlEntryWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSubjectsPerAccessControlEntryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7703,23 +7698,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSubjectsPerAccessControlEntryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSubjectsPerAccessControlEntryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; @@ -7741,23 +7736,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTargetsPerAccessControlEntryWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTargetsPerAccessControlEntryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7766,23 +7761,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTargetsPerAccessControlEntryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetsPerAccessControlEntryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; @@ -7804,23 +7799,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAccessControlEntriesPerFabricWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAccessControlEntriesPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7829,23 +7824,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAccessControlEntriesPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAccessControlEntriesPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; @@ -7867,24 +7862,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge( + new MTRAccessControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7893,23 +7888,23 @@ new CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = AccessControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccessControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge( + new MTRAccessControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -7932,24 +7927,24 @@ new CHIPAccessControlGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge( + new MTRAccessControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -7958,23 +7953,23 @@ new CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccessControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge( + new MTRAccessControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -7997,22 +7992,22 @@ new CHIPAccessControlAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAttributeListListAttributeCallbackBridge( + new MTRAccessControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRAccessControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8021,23 +8016,23 @@ new CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccessControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccessControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccessControlAttributeListListAttributeCallbackBridge( + new MTRAccessControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8060,21 +8055,21 @@ new CHIPAccessControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8083,22 +8078,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; @@ -8120,22 +8115,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8144,23 +8139,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; @@ -8181,14 +8176,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBridgedActions +@implementation MTRBridgedActions - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)instantActionWithParams:(CHIPBridgedActionsClusterInstantActionParams *)params +- (void)instantActionWithParams:(MTRBridgedActionsClusterInstantActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8205,20 +8200,20 @@ - (void)instantActionWithParams:(CHIPBridgedActionsClusterInstantActionParams *) definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)instantActionWithTransitionWithParams:(CHIPBridgedActionsClusterInstantActionWithTransitionParams *)params +- (void)instantActionWithTransitionWithParams:(MTRBridgedActionsClusterInstantActionWithTransitionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8236,20 +8231,20 @@ - (void)instantActionWithTransitionWithParams:(CHIPBridgedActionsClusterInstantA } request.transitionTime = params.transitionTime.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)startActionWithParams:(CHIPBridgedActionsClusterStartActionParams *)params +- (void)startActionWithParams:(MTRBridgedActionsClusterStartActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8266,20 +8261,20 @@ - (void)startActionWithParams:(CHIPBridgedActionsClusterStartActionParams *)para definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)startActionWithDurationWithParams:(CHIPBridgedActionsClusterStartActionWithDurationParams *)params +- (void)startActionWithDurationWithParams:(MTRBridgedActionsClusterStartActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8297,20 +8292,20 @@ - (void)startActionWithDurationWithParams:(CHIPBridgedActionsClusterStartActionW } request.duration = params.duration.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stopActionWithParams:(CHIPBridgedActionsClusterStopActionParams *)params +- (void)stopActionWithParams:(MTRBridgedActionsClusterStopActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8327,20 +8322,20 @@ - (void)stopActionWithParams:(CHIPBridgedActionsClusterStopActionParams *)params definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)pauseActionWithParams:(CHIPBridgedActionsClusterPauseActionParams *)params +- (void)pauseActionWithParams:(MTRBridgedActionsClusterPauseActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8357,20 +8352,20 @@ - (void)pauseActionWithParams:(CHIPBridgedActionsClusterPauseActionParams *)para definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)pauseActionWithDurationWithParams:(CHIPBridgedActionsClusterPauseActionWithDurationParams *)params +- (void)pauseActionWithDurationWithParams:(MTRBridgedActionsClusterPauseActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8388,20 +8383,20 @@ - (void)pauseActionWithDurationWithParams:(CHIPBridgedActionsClusterPauseActionW } request.duration = params.duration.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)resumeActionWithParams:(CHIPBridgedActionsClusterResumeActionParams *)params +- (void)resumeActionWithParams:(MTRBridgedActionsClusterResumeActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8418,20 +8413,20 @@ - (void)resumeActionWithParams:(CHIPBridgedActionsClusterResumeActionParams *)pa definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enableActionWithParams:(CHIPBridgedActionsClusterEnableActionParams *)params +- (void)enableActionWithParams:(MTRBridgedActionsClusterEnableActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8448,20 +8443,20 @@ - (void)enableActionWithParams:(CHIPBridgedActionsClusterEnableActionParams *)pa definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enableActionWithDurationWithParams:(CHIPBridgedActionsClusterEnableActionWithDurationParams *)params +- (void)enableActionWithDurationWithParams:(MTRBridgedActionsClusterEnableActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8479,20 +8474,20 @@ - (void)enableActionWithDurationWithParams:(CHIPBridgedActionsClusterEnableActio } request.duration = params.duration.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)disableActionWithParams:(CHIPBridgedActionsClusterDisableActionParams *)params +- (void)disableActionWithParams:(MTRBridgedActionsClusterDisableActionParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8509,20 +8504,20 @@ - (void)disableActionWithParams:(CHIPBridgedActionsClusterDisableActionParams *) definedValue_0 = params.invokeID.unsignedIntValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)disableActionWithDurationWithParams:(CHIPBridgedActionsClusterDisableActionWithDurationParams *)params +- (void)disableActionWithDurationWithParams:(MTRBridgedActionsClusterDisableActionWithDurationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -8540,14 +8535,14 @@ - (void)disableActionWithDurationWithParams:(CHIPBridgedActionsClusterDisableAct } request.duration = params.duration.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -8556,22 +8551,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeActionListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsActionListListAttributeCallbackBridge( + new MTRBridgedActionsActionListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::ActionList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActionListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge( + new MTRBridgedActionsActionListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8580,22 +8575,22 @@ new CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::ActionList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedActionsActionListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedActionsActionListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActionListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActionListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsActionListListAttributeCallbackBridge( + new MTRBridgedActionsActionListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8618,22 +8613,22 @@ new CHIPBridgedActionsActionListListAttributeCallbackBridge( - (void)readAttributeEndpointListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsEndpointListListAttributeCallbackBridge( + new MTRBridgedActionsEndpointListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::EndpointList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEndpointListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge( + new MTRBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8642,23 +8637,23 @@ new CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::EndpointList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedActionsEndpointListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEndpointListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEndpointListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsEndpointListListAttributeCallbackBridge( + new MTRBridgedActionsEndpointListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8681,21 +8676,21 @@ new CHIPBridgedActionsEndpointListListAttributeCallbackBridge( - (void)readAttributeSetupUrlWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSetupUrlWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8704,22 +8699,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSetupUrlWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetupUrlWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; @@ -8741,24 +8736,24 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge( + new MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8767,23 +8762,23 @@ new CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = BridgedActions::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedActionsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge( + new MTRBridgedActionsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8806,24 +8801,24 @@ new CHIPBridgedActionsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge( + new MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8832,23 +8827,23 @@ new CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = BridgedActions::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedActionsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge( + new MTRBridgedActionsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8871,22 +8866,22 @@ new CHIPBridgedActionsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsAttributeListListAttributeCallbackBridge( + new MTRBridgedActionsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8895,23 +8890,23 @@ new CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedActionsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedActionsAttributeListListAttributeCallbackBridge( + new MTRBridgedActionsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -8934,21 +8929,21 @@ new CHIPBridgedActionsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -8957,22 +8952,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; @@ -8994,22 +8989,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9018,23 +9013,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; @@ -9055,7 +9050,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBasic +@implementation MTRBasic - (chip::Controller::ClusterBase *)getCluster { @@ -9066,7 +9061,7 @@ - (void)mfgSpecificPingWithCompletionHandler:(StatusCompletion)completionHandler { [self mfgSpecificPingWithParams:nil completionHandler:completionHandler]; } -- (void)mfgSpecificPingWithParams:(CHIPBasicClusterMfgSpecificPingParams * _Nullable)params +- (void)mfgSpecificPingWithParams:(MTRBasicClusterMfgSpecificPingParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -9078,14 +9073,14 @@ - (void)mfgSpecificPingWithParams:(CHIPBasicClusterMfgSpecificPingParams * _Null } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -9094,22 +9089,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeDataModelRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDataModelRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9118,23 +9113,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDataModelRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDataModelRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; @@ -9156,21 +9151,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeVendorNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9179,22 +9174,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::VendorName::TypeInfo; @@ -9216,21 +9211,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeVendorIDWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPVendorIdAttributeCallbackSubscriptionBridge( + new MTRVendorIdAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9239,22 +9234,22 @@ new CHIPVendorIdAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::VendorID::TypeInfo; @@ -9276,21 +9271,21 @@ new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeProductNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ProductName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9299,23 +9294,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ProductName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ProductName::TypeInfo; @@ -9337,21 +9332,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductIDWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ProductID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9360,22 +9355,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ProductID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ProductID::TypeInfo; @@ -9397,10 +9392,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNodeLabelWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::NodeLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -9410,17 +9405,17 @@ - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value completionHa [self writeAttributeNodeLabelWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -9430,20 +9425,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Basic::Attributes::NodeLabel::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNodeLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9452,22 +9447,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::NodeLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNodeLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNodeLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::NodeLabel::TypeInfo; @@ -9489,10 +9484,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeLocationWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::Location::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -9502,17 +9497,17 @@ - (void)writeAttributeLocationWithValue:(NSString * _Nonnull)value completionHan [self writeAttributeLocationWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLocationWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -9522,20 +9517,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Basic::Attributes::Location::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLocationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9544,22 +9539,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::Location::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::Location::TypeInfo; @@ -9581,22 +9576,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeHardwareVersionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeHardwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9605,23 +9600,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHardwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; @@ -9643,23 +9638,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeHardwareVersionStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeHardwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9668,23 +9663,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHardwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; @@ -9706,22 +9701,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeSoftwareVersionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSoftwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9730,23 +9725,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSoftwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; @@ -9768,23 +9763,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeSoftwareVersionStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSoftwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9793,23 +9788,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSoftwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; @@ -9831,22 +9826,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeManufacturingDateWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeManufacturingDateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9855,23 +9850,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeManufacturingDateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeManufacturingDateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; @@ -9893,21 +9888,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributePartNumberWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePartNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9916,22 +9911,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePartNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; @@ -9953,21 +9948,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductURLWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductURLWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -9976,22 +9971,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductURLWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductURLWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; @@ -10013,21 +10008,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductLabelWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10036,23 +10031,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; @@ -10074,21 +10069,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeSerialNumberWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSerialNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10097,23 +10092,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSerialNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSerialNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; @@ -10135,10 +10130,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeLocalConfigDisabledWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::LocalConfigDisabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -10148,17 +10143,17 @@ - (void)writeAttributeLocalConfigDisabledWithValue:(NSNumber * _Nonnull)value co [self writeAttributeLocalConfigDisabledWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLocalConfigDisabledWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -10168,22 +10163,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Basic::Attributes::LocalConfigDisabled::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLocalConfigDisabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10192,23 +10187,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::LocalConfigDisabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocalConfigDisabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalConfigDisabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::LocalConfigDisabled::TypeInfo; @@ -10230,21 +10225,21 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeReachableWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::Reachable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReachableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10253,22 +10248,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::Reachable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReachableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReachableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::Reachable::TypeInfo; @@ -10290,21 +10285,21 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeUniqueIDWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUniqueIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10313,22 +10308,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUniqueIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUniqueIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; @@ -10347,26 +10342,26 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable }); } -- (void)readAttributeCapabilityMinimaWithCompletionHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, +- (void)readAttributeCapabilityMinimaWithCompletionHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicCapabilityMinimaStructAttributeCallbackBridge( + new MTRBasicCapabilityMinimaStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::CapabilityMinima::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCapabilityMinimaWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, + reportHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge( + new MTRBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10375,23 +10370,23 @@ new CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::CapabilityMinima::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBasicCapabilityMinimaStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCapabilityMinimaWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCapabilityMinimaWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, + completionHandler:(void (^)(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicCapabilityMinimaStructAttributeCallbackBridge( + new MTRBasicCapabilityMinimaStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -10414,24 +10409,24 @@ new CHIPBasicCapabilityMinimaStructAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBasicGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10440,23 +10435,23 @@ new CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBasicGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -10479,24 +10474,24 @@ new CHIPBasicGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBasicAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10505,23 +10500,23 @@ new CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBasicAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -10544,22 +10539,22 @@ new CHIPBasicAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicAttributeListListAttributeCallbackBridge( + new MTRBasicAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBasicAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10568,23 +10563,23 @@ new CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBasicAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBasicAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; @@ -10606,21 +10601,21 @@ new CHIPBasicAttributeListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10629,22 +10624,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; @@ -10666,22 +10661,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10690,23 +10685,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; @@ -10727,15 +10722,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOtaSoftwareUpdateProvider +@implementation MTROtaSoftwareUpdateProvider - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)queryImageWithParams:(CHIPOtaSoftwareUpdateProviderClusterQueryImageParams *)params - completionHandler:(void (^)(CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, +- (void)queryImageWithParams:(MTROtaSoftwareUpdateProviderClusterQueryImageParams *)params + completionHandler:(void (^)(MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -10789,17 +10784,17 @@ - (void)queryImageWithParams:(CHIPOtaSoftwareUpdateProviderClusterQueryImagePara definedValue_0 = [self asByteSpan:params.metadataForProvider]; } - new CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge( + new MTROtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)applyUpdateRequestWithParams:(CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestParams *)params - completionHandler:(void (^)(CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable data, +- (void)applyUpdateRequestWithParams:(MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams *)params + completionHandler:(void (^)(MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -10813,16 +10808,16 @@ - (void)applyUpdateRequestWithParams:(CHIPOtaSoftwareUpdateProviderClusterApplyU request.updateToken = [self asByteSpan:params.updateToken]; request.newVersion = params.newVersion.unsignedIntValue; - new CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge( + new MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)notifyUpdateAppliedWithParams:(CHIPOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams *)params +- (void)notifyUpdateAppliedWithParams:(MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -10836,14 +10831,14 @@ - (void)notifyUpdateAppliedWithParams:(CHIPOtaSoftwareUpdateProviderClusterNotif request.updateToken = [self asByteSpan:params.updateToken]; request.softwareVersion = params.softwareVersion.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -10852,24 +10847,24 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateProvider::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10878,23 +10873,23 @@ new CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscr } using TypeInfo = OtaSoftwareUpdateProvider::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -10918,24 +10913,24 @@ new CHIPOtaSoftwareUpdateProviderGeneratedCommandListListAttributeCallbackBridge - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -10944,23 +10939,23 @@ new CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscri } using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -10984,22 +10979,22 @@ new CHIPOtaSoftwareUpdateProviderAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11008,23 +11003,23 @@ new CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionB } using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11047,21 +11042,21 @@ new CHIPOtaSoftwareUpdateProviderAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11070,22 +11065,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; @@ -11107,22 +11102,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11131,23 +11126,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; @@ -11168,14 +11163,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOtaSoftwareUpdateRequestor +@implementation MTROtaSoftwareUpdateRequestor - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)announceOtaProviderWithParams:(CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params +- (void)announceOtaProviderWithParams:(MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -11196,27 +11191,27 @@ - (void)announceOtaProviderWithParams:(CHIPOtaSoftwareUpdateRequestorClusterAnno } request.endpoint = params.endpoint.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)readAttributeDefaultOtaProvidersWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeDefaultOtaProvidersWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProviders::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -11227,17 +11222,17 @@ - (void)writeAttributeDefaultOtaProvidersWithValue:(NSArray * _Nonnull)value com [self writeAttributeDefaultOtaProvidersWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeDefaultOtaProvidersWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -11256,11 +11251,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPOtaSoftwareUpdateRequestorClusterProviderLocation class]]) { + if (![value[i_0] isKindOfClass:[MTROtaSoftwareUpdateRequestorClusterProviderLocation class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPOtaSoftwareUpdateRequestorClusterProviderLocation *) value[i_0]; + auto element_0 = (MTROtaSoftwareUpdateRequestorClusterProviderLocation *) value[i_0]; listHolder_0->mList[i_0].providerNodeID = element_0.providerNodeID.unsignedLongLongValue; listHolder_0->mList[i_0].endpoint = element_0.endpoint.unsignedShortValue; listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; @@ -11270,22 +11265,22 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeDefaultOtaProvidersWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11294,23 +11289,23 @@ new CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscr } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProviders::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDefaultOtaProvidersWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultOtaProvidersWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11334,22 +11329,22 @@ new CHIPOtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge - (void)readAttributeUpdatePossibleWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUpdatePossibleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11358,23 +11353,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUpdatePossibleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdatePossibleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; @@ -11396,23 +11391,23 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeUpdateStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUpdateStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11422,10 +11417,10 @@ new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubs using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge:: + MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -11433,13 +11428,13 @@ new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeUpdateStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdateStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11463,24 +11458,24 @@ new CHIPOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBrid - (void)readAttributeUpdateStateProgressWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUpdateStateProgressWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11489,23 +11484,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUpdateStateProgressWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpdateStateProgressWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; @@ -11527,24 +11522,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11553,24 +11548,23 @@ new CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubsc } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11594,24 +11588,24 @@ new CHIPOtaSoftwareUpdateRequestorGeneratedCommandListListAttributeCallbackBridg - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11620,23 +11614,23 @@ new CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscr } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11660,22 +11654,22 @@ new CHIPOtaSoftwareUpdateRequestorAcceptedCommandListListAttributeCallbackBridge - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge( + new MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11684,23 +11678,23 @@ new CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscription } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge( + new MTROtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -11723,21 +11717,21 @@ new CHIPOtaSoftwareUpdateRequestorAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11746,22 +11740,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; @@ -11783,22 +11777,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11807,23 +11801,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; @@ -11844,7 +11838,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPLocalizationConfiguration +@implementation MTRLocalizationConfiguration - (chip::Controller::ClusterBase *)getCluster { @@ -11854,10 +11848,10 @@ @implementation CHIPLocalizationConfiguration - (void)readAttributeActiveLocaleWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::ActiveLocale::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -11867,17 +11861,17 @@ - (void)writeAttributeActiveLocaleWithValue:(NSString * _Nonnull)value completio [self writeAttributeActiveLocaleWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeActiveLocaleWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -11887,20 +11881,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = LocalizationConfiguration::Attributes::ActiveLocale::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeActiveLocaleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11909,23 +11903,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = LocalizationConfiguration::Attributes::ActiveLocale::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveLocaleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveLocaleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LocalizationConfiguration::Attributes::ActiveLocale::TypeInfo; @@ -11947,23 +11941,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeSupportedLocalesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge( + new MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::SupportedLocales::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportedLocalesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge( + new MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -11972,23 +11966,23 @@ new CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscripti } using TypeInfo = LocalizationConfiguration::Attributes::SupportedLocales::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedLocalesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedLocalesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge( + new MTRLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12011,24 +12005,24 @@ new CHIPLocalizationConfigurationSupportedLocalesListAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12037,23 +12031,23 @@ new CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscr } using TypeInfo = LocalizationConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12077,24 +12071,24 @@ new CHIPLocalizationConfigurationGeneratedCommandListListAttributeCallbackBridge - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12103,23 +12097,23 @@ new CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscri } using TypeInfo = LocalizationConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12143,22 +12137,22 @@ new CHIPLocalizationConfigurationAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge( + new MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + new MTRLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12167,23 +12161,23 @@ new CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionB } using TypeInfo = LocalizationConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLocalizationConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge( + new MTRLocalizationConfigurationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12206,21 +12200,21 @@ new CHIPLocalizationConfigurationAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12229,22 +12223,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; @@ -12266,22 +12260,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12290,23 +12284,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; @@ -12327,7 +12321,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPTimeFormatLocalization +@implementation MTRTimeFormatLocalization - (chip::Controller::ClusterBase *)getCluster { @@ -12337,11 +12331,11 @@ @implementation CHIPTimeFormatLocalization - (void)readAttributeHourFormatWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge( + new MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::HourFormat::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -12351,17 +12345,17 @@ - (void)writeAttributeHourFormatWithValue:(NSNumber * _Nonnull)value completionH [self writeAttributeHourFormatWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeHourFormatWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -12371,20 +12365,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TimeFormatLocalization::Attributes::HourFormat::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeHourFormatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12393,22 +12387,22 @@ new CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBrid } using TypeInfo = TimeFormatLocalization::Attributes::HourFormat::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHourFormatWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHourFormatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge( + new MTRTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12431,11 +12425,11 @@ new CHIPTimeFormatLocalizationClusterHourFormatAttributeCallbackBridge( - (void)readAttributeActiveCalendarTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge( + new MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::ActiveCalendarType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -12445,17 +12439,17 @@ - (void)writeAttributeActiveCalendarTypeWithValue:(NSNumber * _Nonnull)value com [self writeAttributeActiveCalendarTypeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeActiveCalendarTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -12465,21 +12459,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TimeFormatLocalization::Attributes::ActiveCalendarType::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeActiveCalendarTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12488,23 +12482,23 @@ new CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBr } using TypeInfo = TimeFormatLocalization::Attributes::ActiveCalendarType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveCalendarTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCalendarTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge( + new MTRTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12527,24 +12521,24 @@ new CHIPTimeFormatLocalizationClusterCalendarTypeAttributeCallbackBridge( - (void)readAttributeSupportedCalendarTypesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge( + new MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::SupportedCalendarTypes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportedCalendarTypesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12553,23 +12547,23 @@ new CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscri } using TypeInfo = TimeFormatLocalization::Attributes::SupportedCalendarTypes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedCalendarTypesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedCalendarTypesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge( + new MTRTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12593,24 +12587,24 @@ new CHIPTimeFormatLocalizationSupportedCalendarTypesListAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12619,23 +12613,23 @@ new CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscript } using TypeInfo = TimeFormatLocalization::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12658,24 +12652,24 @@ new CHIPTimeFormatLocalizationGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12684,23 +12678,23 @@ new CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscripti } using TypeInfo = TimeFormatLocalization::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12723,22 +12717,22 @@ new CHIPTimeFormatLocalizationAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge( + new MTRTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12747,23 +12741,23 @@ new CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBrid } using TypeInfo = TimeFormatLocalization::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTimeFormatLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge( + new MTRTimeFormatLocalizationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -12786,21 +12780,21 @@ new CHIPTimeFormatLocalizationAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12809,22 +12803,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; @@ -12846,22 +12840,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12870,23 +12864,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; @@ -12907,7 +12901,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPUnitLocalization +@implementation MTRUnitLocalization - (chip::Controller::ClusterBase *)getCluster { @@ -12917,11 +12911,11 @@ @implementation CHIPUnitLocalization - (void)readAttributeTemperatureUnitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge( + new MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::TemperatureUnit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -12931,17 +12925,17 @@ - (void)writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull)value comple [self writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeTemperatureUnitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -12951,21 +12945,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = UnitLocalization::Attributes::TemperatureUnit::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeTemperatureUnitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge( + new MTRUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -12974,23 +12968,23 @@ new CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge( } using TypeInfo = UnitLocalization::Attributes::TemperatureUnit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUnitLocalizationClusterTempUnitAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTemperatureUnitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureUnitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge( + new MTRUnitLocalizationClusterTempUnitAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13013,24 +13007,24 @@ new CHIPUnitLocalizationClusterTempUnitAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge( + new MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13039,23 +13033,23 @@ new CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBri } using TypeInfo = UnitLocalization::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUnitLocalizationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge( + new MTRUnitLocalizationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13078,24 +13072,24 @@ new CHIPUnitLocalizationGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge( + new MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13104,23 +13098,23 @@ new CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = UnitLocalization::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUnitLocalizationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge( + new MTRUnitLocalizationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13143,22 +13137,22 @@ new CHIPUnitLocalizationAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationAttributeListListAttributeCallbackBridge( + new MTRUnitLocalizationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge( + new MTRUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13167,23 +13161,23 @@ new CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = UnitLocalization::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUnitLocalizationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUnitLocalizationAttributeListListAttributeCallbackBridge( + new MTRUnitLocalizationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13206,21 +13200,21 @@ new CHIPUnitLocalizationAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13229,22 +13223,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; @@ -13266,22 +13260,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13290,23 +13284,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; @@ -13327,7 +13321,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPPowerSourceConfiguration +@implementation MTRPowerSourceConfiguration - (chip::Controller::ClusterBase *)getCluster { @@ -13336,22 +13330,22 @@ @implementation CHIPPowerSourceConfiguration - (void)readAttributeSourcesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge( + new MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::Sources::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSourcesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13360,22 +13354,22 @@ new CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSourceConfiguration::Attributes::Sources::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceConfigurationSourcesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSourcesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSourcesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge( + new MTRPowerSourceConfigurationSourcesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13398,24 +13392,24 @@ new CHIPPowerSourceConfigurationSourcesListAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13424,23 +13418,23 @@ new CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscri } using TypeInfo = PowerSourceConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13464,24 +13458,24 @@ new CHIPPowerSourceConfigurationGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13490,23 +13484,23 @@ new CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscrip } using TypeInfo = PowerSourceConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13530,22 +13524,22 @@ new CHIPPowerSourceConfigurationAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13554,23 +13548,23 @@ new CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBr } using TypeInfo = PowerSourceConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceConfigurationAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge( + new MTRPowerSourceConfigurationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -13593,21 +13587,21 @@ new CHIPPowerSourceConfigurationAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13616,22 +13610,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; @@ -13653,22 +13647,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13677,23 +13671,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; @@ -13714,7 +13708,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPPowerSource +@implementation MTRPowerSource - (chip::Controller::ClusterBase *)getCluster { @@ -13723,21 +13717,21 @@ @implementation CHIPPowerSource - (void)readAttributeStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::Status::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13746,22 +13740,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::Status::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::Status::TypeInfo; @@ -13782,21 +13776,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOrderWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::Order::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOrderWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13805,22 +13799,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::Order::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOrderWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOrderWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::Order::TypeInfo; @@ -13842,21 +13836,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeDescriptionWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13865,23 +13859,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::Description::TypeInfo; @@ -13903,23 +13897,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeWiredAssessedInputVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredAssessedInputVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13928,23 +13922,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredAssessedInputVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedInputVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; @@ -13966,23 +13960,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWiredAssessedInputFrequencyWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredAssessedInputFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -13991,23 +13985,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredAssessedInputFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedInputFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; @@ -14029,22 +14023,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWiredCurrentTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredCurrentTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14053,23 +14047,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredCurrentTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredCurrentTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; @@ -14091,23 +14085,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeWiredAssessedCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredAssessedCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14116,23 +14110,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredAssessedCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredAssessedCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; @@ -14154,23 +14148,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWiredNominalVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredNominalVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14179,23 +14173,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredNominalVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredNominalVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; @@ -14217,23 +14211,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWiredMaximumCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredMaximumCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14242,23 +14236,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredMaximumCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredMaximumCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; @@ -14280,21 +14274,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWiredPresentWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiredPresentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14303,23 +14297,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWiredPresentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiredPresentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; @@ -14341,23 +14335,23 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeActiveWiredFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::ActiveWiredFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveWiredFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14366,23 +14360,23 @@ new CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::ActiveWiredFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceActiveWiredFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveWiredFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveWiredFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveWiredFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -14405,22 +14399,22 @@ new CHIPPowerSourceActiveWiredFaultsListAttributeCallbackBridge( - (void)readAttributeBatteryVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14429,23 +14423,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; @@ -14467,23 +14461,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryPercentRemainingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryPercentRemainingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14492,23 +14486,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryPercentRemainingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryPercentRemainingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; @@ -14530,23 +14524,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBatteryTimeRemainingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryTimeRemainingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14555,23 +14549,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryTimeRemainingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryTimeRemainingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; @@ -14593,22 +14587,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryChargeLevelWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryChargeLevelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14617,23 +14611,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryChargeLevelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargeLevelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; @@ -14655,23 +14649,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBatteryReplacementNeededWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryReplacementNeededWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14680,23 +14674,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryReplacementNeededWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplacementNeededWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; @@ -14718,23 +14712,23 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeBatteryReplaceabilityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryReplaceabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14743,23 +14737,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryReplaceabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplaceabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; @@ -14781,22 +14775,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBatteryPresentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryPresentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14805,23 +14799,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryPresentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryPresentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; @@ -14843,24 +14837,24 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeActiveBatteryFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::ActiveBatteryFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveBatteryFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14869,23 +14863,23 @@ new CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::ActiveBatteryFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceActiveBatteryFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveBatteryFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveBatteryFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveBatteryFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -14908,23 +14902,23 @@ new CHIPPowerSourceActiveBatteryFaultsListAttributeCallbackBridge( - (void)readAttributeBatteryReplacementDescriptionWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryReplacementDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14933,23 +14927,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryReplacementDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryReplacementDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; @@ -14971,23 +14965,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeBatteryCommonDesignationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryCommonDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -14996,23 +14990,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryCommonDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryCommonDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; @@ -15034,23 +15028,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryANSIDesignationWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryANSIDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15059,23 +15053,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryANSIDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryANSIDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; @@ -15097,23 +15091,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeBatteryIECDesignationWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryIECDesignationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15122,23 +15116,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryIECDesignationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryIECDesignationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; @@ -15160,23 +15154,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeBatteryApprovedChemistryWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryApprovedChemistryWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15185,23 +15179,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryApprovedChemistryWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryApprovedChemistryWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; @@ -15223,22 +15217,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryCapacityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15247,23 +15241,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; @@ -15285,22 +15279,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryQuantityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryQuantityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15309,23 +15303,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryQuantityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryQuantityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; @@ -15347,22 +15341,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBatteryChargeStateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryChargeStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15371,23 +15365,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryChargeStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargeStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; @@ -15409,23 +15403,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBatteryTimeToFullChargeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryTimeToFullChargeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15434,23 +15428,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryTimeToFullChargeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryTimeToFullChargeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; @@ -15472,23 +15466,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBatteryFunctionalWhileChargingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryFunctionalWhileChargingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15497,23 +15491,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryFunctionalWhileChargingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryFunctionalWhileChargingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; @@ -15535,23 +15529,23 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeBatteryChargingCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBatteryChargingCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15560,23 +15554,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBatteryChargingCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBatteryChargingCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; @@ -15598,24 +15592,24 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActiveBatteryChargeFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::ActiveBatteryChargeFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveBatteryChargeFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15624,23 +15618,23 @@ new CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBri } using TypeInfo = PowerSource::Attributes::ActiveBatteryChargeFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveBatteryChargeFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveBatteryChargeFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge( + new MTRPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -15663,24 +15657,24 @@ new CHIPPowerSourceActiveBatteryChargeFaultsListAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge( + new MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15689,23 +15683,23 @@ new CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge( + new MTRPowerSourceGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -15728,24 +15722,24 @@ new CHIPPowerSourceGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge( + new MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15754,23 +15748,23 @@ new CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge( + new MTRPowerSourceAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -15793,22 +15787,22 @@ new CHIPPowerSourceAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceAttributeListListAttributeCallbackBridge( + new MTRPowerSourceAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge( + new MTRPowerSourceAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15817,23 +15811,23 @@ new CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPowerSourceAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPowerSourceAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPowerSourceAttributeListListAttributeCallbackBridge( + new MTRPowerSourceAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -15856,21 +15850,21 @@ new CHIPPowerSourceAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15879,22 +15873,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; @@ -15916,22 +15910,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -15940,23 +15934,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; @@ -15977,15 +15971,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPGeneralCommissioning +@implementation MTRGeneralCommissioning - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)armFailSafeWithParams:(CHIPGeneralCommissioningClusterArmFailSafeParams *)params - completionHandler:(void (^)(CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, +- (void)armFailSafeWithParams:(MTRGeneralCommissioningClusterArmFailSafeParams *)params + completionHandler:(void (^)(MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -15999,17 +15993,17 @@ - (void)armFailSafeWithParams:(CHIPGeneralCommissioningClusterArmFailSafeParams request.expiryLengthSeconds = params.expiryLengthSeconds.unsignedShortValue; request.breadcrumb = params.breadcrumb.unsignedLongLongValue; - new CHIPGeneralCommissioningClusterArmFailSafeResponseCallbackBridge( + new MTRGeneralCommissioningClusterArmFailSafeResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setRegulatoryConfigWithParams:(CHIPGeneralCommissioningClusterSetRegulatoryConfigParams *)params - completionHandler:(void (^)(CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable data, +- (void)setRegulatoryConfigWithParams:(MTRGeneralCommissioningClusterSetRegulatoryConfigParams *)params + completionHandler:(void (^)(MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16025,25 +16019,24 @@ - (void)setRegulatoryConfigWithParams:(CHIPGeneralCommissioningClusterSetRegulat request.countryCode = [self asCharSpan:params.countryCode]; request.breadcrumb = params.breadcrumb.unsignedLongLongValue; - new CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge( + new MTRGeneralCommissioningClusterSetRegulatoryConfigResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } - (void)commissioningCompleteWithCompletionHandler: - (void (^)(CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, + (void (^)(MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self commissioningCompleteWithParams:nil completionHandler:completionHandler]; } -- (void)commissioningCompleteWithParams:(CHIPGeneralCommissioningClusterCommissioningCompleteParams * _Nullable)params +- (void)commissioningCompleteWithParams:(MTRGeneralCommissioningClusterCommissioningCompleteParams * _Nullable)params completionHandler: - (void (^)(CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, + (void (^)(MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16055,11 +16048,11 @@ - (void)commissioningCompleteWithParams:(CHIPGeneralCommissioningClusterCommissi } } - new CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge( + new MTRGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -16068,10 +16061,10 @@ new CHIPGeneralCommissioningClusterCommissioningCompleteResponseCallbackBridge( - (void)readAttributeBreadcrumbWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::Breadcrumb::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -16081,17 +16074,17 @@ - (void)writeAttributeBreadcrumbWithValue:(NSNumber * _Nonnull)value completionH [self writeAttributeBreadcrumbWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBreadcrumbWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -16101,20 +16094,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = GeneralCommissioning::Attributes::Breadcrumb::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBreadcrumbWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16123,22 +16116,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralCommissioning::Attributes::Breadcrumb::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBreadcrumbWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBreadcrumbWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralCommissioning::Attributes::Breadcrumb::TypeInfo; @@ -16158,13 +16151,13 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s } - (void)readAttributeBasicCommissioningInfoWithCompletionHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( + new MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::BasicCommissioningInfo::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -16172,13 +16165,13 @@ new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( - (void) subscribeAttributeBasicCommissioningInfoWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16187,24 +16180,24 @@ new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscri } using TypeInfo = GeneralCommissioning::Attributes::BasicCommissioningInfo::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBasicCommissioningInfoWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBasicCommissioningInfoWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: - (void (^)(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, + (void (^)(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( + new MTRGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16228,23 +16221,23 @@ new CHIPGeneralCommissioningBasicCommissioningInfoStructAttributeCallbackBridge( - (void)readAttributeRegulatoryConfigWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::RegulatoryConfig::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRegulatoryConfigWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16253,23 +16246,23 @@ new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscr } using TypeInfo = GeneralCommissioning::Attributes::RegulatoryConfig::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRegulatoryConfigWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRegulatoryConfigWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16293,23 +16286,23 @@ new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge - (void)readAttributeLocationCapabilityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::LocationCapability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLocationCapabilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16318,23 +16311,23 @@ new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscr } using TypeInfo = GeneralCommissioning::Attributes::LocationCapability::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocationCapabilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocationCapabilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( + new MTRGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16358,23 +16351,23 @@ new CHIPGeneralCommissioningClusterRegulatoryLocationTypeAttributeCallbackBridge - (void)readAttributeSupportsConcurrentConnectionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportsConcurrentConnectionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16383,23 +16376,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportsConcurrentConnectionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportsConcurrentConnectionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; @@ -16421,24 +16414,24 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16447,23 +16440,23 @@ new CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptio } using TypeInfo = GeneralCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16486,24 +16479,24 @@ new CHIPGeneralCommissioningGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16512,23 +16505,23 @@ new CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscription } using TypeInfo = GeneralCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16551,22 +16544,22 @@ new CHIPGeneralCommissioningAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge( + new MTRGeneralCommissioningAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge( + new MTRGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16575,23 +16568,23 @@ new CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge } using TypeInfo = GeneralCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge( + new MTRGeneralCommissioningAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -16614,21 +16607,21 @@ new CHIPGeneralCommissioningAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16637,22 +16630,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; @@ -16674,22 +16667,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16698,23 +16691,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; @@ -16735,15 +16728,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPNetworkCommissioning +@implementation MTRNetworkCommissioning - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)scanNetworksWithParams:(CHIPNetworkCommissioningClusterScanNetworksParams * _Nullable)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, +- (void)scanNetworksWithParams:(MTRNetworkCommissioningClusterScanNetworksParams * _Nullable)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16770,17 +16763,17 @@ - (void)scanNetworksWithParams:(CHIPNetworkCommissioningClusterScanNetworksParam } } - new CHIPNetworkCommissioningClusterScanNetworksResponseCallbackBridge( + new MTRNetworkCommissioningClusterScanNetworksResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)addOrUpdateWiFiNetworkWithParams:(CHIPNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)addOrUpdateWiFiNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16798,17 +16791,17 @@ - (void)addOrUpdateWiFiNetworkWithParams:(CHIPNetworkCommissioningClusterAddOrUp definedValue_0 = params.breadcrumb.unsignedLongLongValue; } - new CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( + new MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)addOrUpdateThreadNetworkWithParams:(CHIPNetworkCommissioningClusterAddOrUpdateThreadNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)addOrUpdateThreadNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16825,17 +16818,17 @@ - (void)addOrUpdateThreadNetworkWithParams:(CHIPNetworkCommissioningClusterAddOr definedValue_0 = params.breadcrumb.unsignedLongLongValue; } - new CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( + new MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)removeNetworkWithParams:(CHIPNetworkCommissioningClusterRemoveNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)removeNetworkWithParams:(MTRNetworkCommissioningClusterRemoveNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16852,17 +16845,17 @@ - (void)removeNetworkWithParams:(CHIPNetworkCommissioningClusterRemoveNetworkPar definedValue_0 = params.breadcrumb.unsignedLongLongValue; } - new CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( + new MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)connectNetworkWithParams:(CHIPNetworkCommissioningClusterConnectNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable data, +- (void)connectNetworkWithParams:(MTRNetworkCommissioningClusterConnectNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16879,17 +16872,17 @@ - (void)connectNetworkWithParams:(CHIPNetworkCommissioningClusterConnectNetworkP definedValue_0 = params.breadcrumb.unsignedLongLongValue; } - new CHIPNetworkCommissioningClusterConnectNetworkResponseCallbackBridge( + new MTRNetworkCommissioningClusterConnectNetworkResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)reorderNetworkWithParams:(CHIPNetworkCommissioningClusterReorderNetworkParams *)params - completionHandler:(void (^)(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, +- (void)reorderNetworkWithParams:(MTRNetworkCommissioningClusterReorderNetworkParams *)params + completionHandler:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -16907,10 +16900,10 @@ - (void)reorderNetworkWithParams:(CHIPNetworkCommissioningClusterReorderNetworkP definedValue_0 = params.breadcrumb.unsignedLongLongValue; } - new CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( + new MTRNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -16919,21 +16912,21 @@ new CHIPNetworkCommissioningClusterNetworkConfigResponseCallbackBridge( - (void)readAttributeMaxNetworksWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxNetworksWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -16942,23 +16935,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxNetworksWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxNetworksWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; @@ -16979,22 +16972,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNetworksWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningNetworksListAttributeCallbackBridge( + new MTRNetworkCommissioningNetworksListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::Networks::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNetworksWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge( + new MTRNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17003,22 +16996,22 @@ new CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::Networks::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNetworkCommissioningNetworksListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNetworksWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworksWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningNetworksListAttributeCallbackBridge( + new MTRNetworkCommissioningNetworksListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17041,22 +17034,22 @@ new CHIPNetworkCommissioningNetworksListAttributeCallbackBridge( - (void)readAttributeScanMaxTimeSecondsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeScanMaxTimeSecondsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17065,23 +17058,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeScanMaxTimeSecondsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScanMaxTimeSecondsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; @@ -17103,23 +17096,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeConnectMaxTimeSecondsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeConnectMaxTimeSecondsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17128,23 +17121,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeConnectMaxTimeSecondsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeConnectMaxTimeSecondsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; @@ -17166,10 +17159,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeInterfaceEnabledWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::InterfaceEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -17179,17 +17172,17 @@ - (void)writeAttributeInterfaceEnabledWithValue:(NSNumber * _Nonnull)value compl [self writeAttributeInterfaceEnabledWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInterfaceEnabledWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -17199,21 +17192,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = NetworkCommissioning::Attributes::InterfaceEnabled::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInterfaceEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17222,23 +17215,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::InterfaceEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInterfaceEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInterfaceEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::InterfaceEnabled::TypeInfo; @@ -17260,25 +17253,25 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeLastNetworkingStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge( + new MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::LastNetworkingStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLastNetworkingStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( + new MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17288,10 +17281,10 @@ new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCa using TypeInfo = NetworkCommissioning::Attributes::LastNetworkingStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge:: + MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -17299,13 +17292,13 @@ new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCa subscriptionEstablishedHandler); } -+ (void)readAttributeLastNetworkingStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastNetworkingStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge( + new MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17330,22 +17323,22 @@ new CHIPNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCa - (void)readAttributeLastNetworkIDWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge( + new MTRNullableOctetStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLastNetworkIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( + new MTRNullableOctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17354,23 +17347,23 @@ new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLastNetworkIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastNetworkIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; @@ -17392,24 +17385,24 @@ new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeLastConnectErrorValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge( + new MTRNullableInt32sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLastConnectErrorValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( + new MTRNullableInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17418,23 +17411,23 @@ new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLastConnectErrorValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLastConnectErrorValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; @@ -17456,24 +17449,24 @@ new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17482,23 +17475,23 @@ new CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptio } using TypeInfo = NetworkCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17521,24 +17514,24 @@ new CHIPNetworkCommissioningGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17547,23 +17540,23 @@ new CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscription } using TypeInfo = NetworkCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17586,22 +17579,22 @@ new CHIPNetworkCommissioningAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge( + new MTRNetworkCommissioningAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge( + new MTRNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17610,23 +17603,23 @@ new CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge } using TypeInfo = NetworkCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNetworkCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge( + new MTRNetworkCommissioningAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17649,21 +17642,21 @@ new CHIPNetworkCommissioningAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17672,22 +17665,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; @@ -17709,22 +17702,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17733,23 +17726,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; @@ -17770,15 +17763,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPDiagnosticLogs +@implementation MTRDiagnosticLogs - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)retrieveLogsRequestWithParams:(CHIPDiagnosticLogsClusterRetrieveLogsRequestParams *)params - completionHandler:(void (^)(CHIPDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, +- (void)retrieveLogsRequestWithParams:(MTRDiagnosticLogsClusterRetrieveLogsRequestParams *)params + completionHandler:(void (^)(MTRDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -17794,10 +17787,10 @@ - (void)retrieveLogsRequestWithParams:(CHIPDiagnosticLogsClusterRetrieveLogsRequ = static_cast>(params.requestedProtocol.unsignedCharValue); request.transferFileDesignator = [self asByteSpan:params.transferFileDesignator]; - new CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge( + new MTRDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -17806,24 +17799,24 @@ new CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge( + new MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DiagnosticLogs::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17832,23 +17825,23 @@ new CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = DiagnosticLogs::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge( + new MTRDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17871,24 +17864,24 @@ new CHIPDiagnosticLogsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge( + new MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DiagnosticLogs::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17897,23 +17890,23 @@ new CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = DiagnosticLogs::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge( + new MTRDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17936,22 +17929,22 @@ new CHIPDiagnosticLogsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge( + new MTRDiagnosticLogsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DiagnosticLogs::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -17960,23 +17953,23 @@ new CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = DiagnosticLogs::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDiagnosticLogsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge( + new MTRDiagnosticLogsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -17999,21 +17992,21 @@ new CHIPDiagnosticLogsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18022,22 +18015,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; @@ -18059,22 +18052,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18083,23 +18076,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; @@ -18120,14 +18113,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPGeneralDiagnostics +@implementation MTRGeneralDiagnostics - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)testEventTriggerWithParams:(CHIPGeneralDiagnosticsClusterTestEventTriggerParams *)params +- (void)testEventTriggerWithParams:(MTRGeneralDiagnosticsClusterTestEventTriggerParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -18141,14 +18134,14 @@ - (void)testEventTriggerWithParams:(CHIPGeneralDiagnosticsClusterTestEventTrigge request.enableKey = [self asByteSpan:params.enableKey]; request.eventTrigger = params.eventTrigger.unsignedLongLongValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -18157,23 +18150,23 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeNetworkInterfacesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge( + new MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNetworkInterfacesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18182,23 +18175,23 @@ new CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBrid } using TypeInfo = GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNetworkInterfacesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworkInterfacesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge( + new MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18221,21 +18214,21 @@ new CHIPGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge( - (void)readAttributeRebootCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRebootCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18244,23 +18237,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRebootCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRebootCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; @@ -18281,21 +18274,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeUpTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUpTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18304,22 +18297,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUpTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUpTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; @@ -18341,23 +18334,23 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTotalOperationalHoursWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTotalOperationalHoursWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18366,23 +18359,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTotalOperationalHoursWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalOperationalHoursWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; @@ -18404,21 +18397,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBootReasonsWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBootReasonsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18427,23 +18420,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBootReasonsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBootReasonsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; @@ -18465,24 +18458,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeActiveHardwareFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::ActiveHardwareFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveHardwareFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18491,23 +18484,23 @@ new CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionB } using TypeInfo = GeneralDiagnostics::Attributes::ActiveHardwareFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveHardwareFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveHardwareFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18530,23 +18523,23 @@ new CHIPGeneralDiagnosticsActiveHardwareFaultsListAttributeCallbackBridge( - (void)readAttributeActiveRadioFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::ActiveRadioFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveRadioFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18555,23 +18548,23 @@ new CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBrid } using TypeInfo = GeneralDiagnostics::Attributes::ActiveRadioFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveRadioFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveRadioFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18594,24 +18587,24 @@ new CHIPGeneralDiagnosticsActiveRadioFaultsListAttributeCallbackBridge( - (void)readAttributeActiveNetworkFaultsWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::ActiveNetworkFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveNetworkFaultsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18620,23 +18613,23 @@ new CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBr } using TypeInfo = GeneralDiagnostics::Attributes::ActiveNetworkFaults::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveNetworkFaultsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveNetworkFaultsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge( + new MTRGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18659,23 +18652,23 @@ new CHIPGeneralDiagnosticsActiveNetworkFaultsListAttributeCallbackBridge( - (void)readAttributeTestEventTriggersEnabledWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTestEventTriggersEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18684,23 +18677,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTestEventTriggersEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTestEventTriggersEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; @@ -18722,24 +18715,24 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18748,23 +18741,23 @@ new CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = GeneralDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18787,24 +18780,24 @@ new CHIPGeneralDiagnosticsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18813,23 +18806,23 @@ new CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBr } using TypeInfo = GeneralDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18852,22 +18845,22 @@ new CHIPGeneralDiagnosticsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18876,23 +18869,23 @@ new CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGeneralDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRGeneralDiagnosticsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -18915,21 +18908,21 @@ new CHIPGeneralDiagnosticsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18938,22 +18931,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; @@ -18975,22 +18968,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -18999,23 +18992,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; @@ -19036,7 +19029,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPSoftwareDiagnostics +@implementation MTRSoftwareDiagnostics - (chip::Controller::ClusterBase *)getCluster { @@ -19047,7 +19040,7 @@ - (void)resetWatermarksWithCompletionHandler:(StatusCompletion)completionHandler { [self resetWatermarksWithParams:nil completionHandler:completionHandler]; } -- (void)resetWatermarksWithParams:(CHIPSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params +- (void)resetWatermarksWithParams:(MTRSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -19059,14 +19052,14 @@ - (void)resetWatermarksWithParams:(CHIPSoftwareDiagnosticsClusterResetWatermarks } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -19075,22 +19068,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeThreadMetricsWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::ThreadMetrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeThreadMetricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge( + new MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19099,23 +19092,23 @@ new CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::ThreadMetrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeThreadMetricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThreadMetricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -19138,22 +19131,22 @@ new CHIPSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge( - (void)readAttributeCurrentHeapFreeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentHeapFreeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19162,23 +19155,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentHeapFreeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapFreeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; @@ -19200,22 +19193,22 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentHeapUsedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentHeapUsedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19224,23 +19217,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentHeapUsedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapUsedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; @@ -19262,23 +19255,23 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentHeapHighWatermarkWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentHeapHighWatermarkWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19287,23 +19280,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentHeapHighWatermarkWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHeapHighWatermarkWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; @@ -19325,24 +19318,24 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19351,23 +19344,23 @@ new CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscription } using TypeInfo = SoftwareDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -19390,24 +19383,24 @@ new CHIPSoftwareDiagnosticsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19416,23 +19409,23 @@ new CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = SoftwareDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -19455,22 +19448,22 @@ new CHIPSoftwareDiagnosticsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19479,23 +19472,23 @@ new CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSoftwareDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRSoftwareDiagnosticsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -19518,21 +19511,21 @@ new CHIPSoftwareDiagnosticsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19541,22 +19534,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; @@ -19578,22 +19571,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19602,23 +19595,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; @@ -19639,7 +19632,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPThreadNetworkDiagnostics +@implementation MTRThreadNetworkDiagnostics - (chip::Controller::ClusterBase *)getCluster { @@ -19650,7 +19643,7 @@ - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler { [self resetCountsWithParams:nil completionHandler:completionHandler]; } -- (void)resetCountsWithParams:(CHIPThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTRThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -19662,14 +19655,14 @@ - (void)resetCountsWithParams:(CHIPThreadNetworkDiagnosticsClusterResetCountsPar } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -19677,22 +19670,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeChannelWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeChannelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19701,22 +19694,22 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeChannelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; @@ -19738,22 +19731,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeRoutingRoleWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge( + new MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRoutingRoleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( + new MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19762,24 +19755,23 @@ new CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubsc } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRoutingRoleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRoutingRoleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge( + new MTRNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -19803,22 +19795,22 @@ new CHIPNullableThreadNetworkDiagnosticsClusterRoutingRoleAttributeCallbackBridg - (void)readAttributeNetworkNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableCharStringAttributeCallbackBridge( + new MTRNullableCharStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNetworkNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableCharStringAttributeCallbackSubscriptionBridge( + new MTRNullableCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19827,23 +19819,23 @@ new CHIPNullableCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNetworkNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNetworkNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; @@ -19864,22 +19856,22 @@ new CHIPNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Ca - (void)readAttributePanIdWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePanIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19888,22 +19880,22 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePanIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePanIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; @@ -19925,23 +19917,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeExtendedPanIdWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeExtendedPanIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -19950,23 +19942,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeExtendedPanIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExtendedPanIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; @@ -19988,23 +19980,23 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMeshLocalPrefixWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge( + new MTRNullableOctetStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeshLocalPrefixWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( + new MTRNullableOctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20013,23 +20005,23 @@ new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeshLocalPrefixWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeshLocalPrefixWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; @@ -20051,21 +20043,21 @@ new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeOverrunCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20074,23 +20066,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; @@ -20112,23 +20104,23 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNeighborTableListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNeighborTableListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20137,23 +20129,23 @@ new CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscripti } using TypeInfo = ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNeighborTableListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNeighborTableListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -20176,23 +20168,23 @@ new CHIPThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge( - (void)readAttributeRouteTableListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRouteTableListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20201,23 +20193,23 @@ new CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionB } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRouteTableListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRouteTableListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -20240,22 +20232,22 @@ new CHIPThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge( - (void)readAttributePartitionIdWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePartitionIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20264,23 +20256,23 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePartitionIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartitionIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; @@ -20302,22 +20294,22 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeWeightingWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWeightingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20326,22 +20318,22 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWeightingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWeightingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; @@ -20363,22 +20355,22 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeDataVersionWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDataVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20387,23 +20379,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDataVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDataVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; @@ -20425,23 +20417,23 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeStableDataVersionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStableDataVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20450,23 +20442,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStableDataVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStableDataVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; @@ -20488,23 +20480,23 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeLeaderRouterIdWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLeaderRouterIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20513,23 +20505,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLeaderRouterIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLeaderRouterIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; @@ -20551,22 +20543,22 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeDetachedRoleCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDetachedRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20575,23 +20567,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDetachedRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDetachedRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; @@ -20613,22 +20605,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeChildRoleCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeChildRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20637,23 +20629,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeChildRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChildRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; @@ -20675,22 +20667,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRouterRoleCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRouterRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20699,23 +20691,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRouterRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRouterRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; @@ -20737,22 +20729,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeLeaderRoleCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLeaderRoleCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20761,23 +20753,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLeaderRoleCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLeaderRoleCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; @@ -20799,22 +20791,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAttachAttemptCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttachAttemptCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20823,23 +20815,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttachAttemptCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttachAttemptCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; @@ -20861,23 +20853,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePartitionIdChangeCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePartitionIdChangeCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20886,23 +20878,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePartitionIdChangeCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartitionIdChangeCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; @@ -20924,23 +20916,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBetterPartitionAttachAttemptCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBetterPartitionAttachAttemptCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -20949,23 +20941,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBetterPartitionAttachAttemptCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBetterPartitionAttachAttemptCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; @@ -20987,22 +20979,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeParentChangeCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeParentChangeCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21011,23 +21003,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeParentChangeCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeParentChangeCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; @@ -21049,21 +21041,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxTotalCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxTotalCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21072,23 +21064,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxTotalCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxTotalCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; @@ -21110,22 +21102,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxUnicastCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxUnicastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21134,23 +21126,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxUnicastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxUnicastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; @@ -21172,22 +21164,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxBroadcastCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxBroadcastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21196,23 +21188,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxBroadcastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBroadcastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; @@ -21234,23 +21226,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxAckRequestedCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxAckRequestedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21259,23 +21251,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxAckRequestedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxAckRequestedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; @@ -21297,21 +21289,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxAckedCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxAckedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21320,23 +21312,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxAckedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxAckedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; @@ -21358,23 +21350,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxNoAckRequestedCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxNoAckRequestedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21383,23 +21375,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxNoAckRequestedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxNoAckRequestedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; @@ -21421,21 +21413,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxDataCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxDataCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21444,23 +21436,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxDataCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDataCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; @@ -21482,22 +21474,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxDataPollCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxDataPollCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21506,23 +21498,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxDataPollCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDataPollCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; @@ -21544,22 +21536,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxBeaconCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxBeaconCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21568,23 +21560,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxBeaconCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBeaconCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; @@ -21606,23 +21598,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxBeaconRequestCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxBeaconRequestCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21631,23 +21623,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxBeaconRequestCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxBeaconRequestCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; @@ -21669,21 +21661,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxOtherCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21692,23 +21684,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; @@ -21730,21 +21722,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxRetryCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxRetryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21753,23 +21745,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxRetryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxRetryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; @@ -21791,23 +21783,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxDirectMaxRetryExpiryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21816,23 +21808,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxDirectMaxRetryExpiryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxDirectMaxRetryExpiryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; @@ -21854,23 +21846,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxIndirectMaxRetryExpiryCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21879,23 +21871,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxIndirectMaxRetryExpiryCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxIndirectMaxRetryExpiryCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; @@ -21917,22 +21909,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxErrCcaCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxErrCcaCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -21941,23 +21933,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxErrCcaCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrCcaCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; @@ -21979,22 +21971,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxErrAbortCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxErrAbortCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22003,23 +21995,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxErrAbortCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrAbortCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; @@ -22041,23 +22033,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxErrBusyChannelCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxErrBusyChannelCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22066,23 +22058,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxErrBusyChannelCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrBusyChannelCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; @@ -22104,21 +22096,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxTotalCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxTotalCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22127,23 +22119,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxTotalCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxTotalCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; @@ -22165,22 +22157,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxUnicastCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxUnicastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22189,23 +22181,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxUnicastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxUnicastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; @@ -22227,22 +22219,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxBroadcastCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxBroadcastCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22251,23 +22243,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxBroadcastCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBroadcastCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; @@ -22289,21 +22281,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxDataCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxDataCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22312,23 +22304,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxDataCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDataCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; @@ -22350,22 +22342,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxDataPollCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxDataPollCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22374,23 +22366,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxDataPollCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDataPollCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; @@ -22412,22 +22404,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxBeaconCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxBeaconCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22436,23 +22428,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxBeaconCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBeaconCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; @@ -22474,23 +22466,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxBeaconRequestCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxBeaconRequestCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22499,23 +22491,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxBeaconRequestCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxBeaconRequestCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; @@ -22537,21 +22529,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxOtherCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22560,23 +22552,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; @@ -22598,23 +22590,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxAddressFilteredCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxAddressFilteredCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22623,23 +22615,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxAddressFilteredCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxAddressFilteredCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; @@ -22661,23 +22653,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxDestAddrFilteredCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxDestAddrFilteredCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22686,23 +22678,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxDestAddrFilteredCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDestAddrFilteredCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; @@ -22724,22 +22716,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxDuplicatedCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxDuplicatedCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22748,23 +22740,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxDuplicatedCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxDuplicatedCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; @@ -22786,22 +22778,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrNoFrameCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrNoFrameCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22810,23 +22802,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrNoFrameCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrNoFrameCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; @@ -22848,23 +22840,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrUnknownNeighborCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrUnknownNeighborCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22873,23 +22865,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrUnknownNeighborCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrUnknownNeighborCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; @@ -22911,23 +22903,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrInvalidSrcAddrCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22936,23 +22928,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrInvalidSrcAddrCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrInvalidSrcAddrCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; @@ -22974,22 +22966,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrSecCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrSecCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -22998,23 +22990,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrSecCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrSecCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; @@ -23036,22 +23028,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrFcsCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrFcsCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23060,23 +23052,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrFcsCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrFcsCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; @@ -23098,22 +23090,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRxErrOtherCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRxErrOtherCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23122,23 +23114,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRxErrOtherCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRxErrOtherCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; @@ -23160,23 +23152,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActiveTimestampWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23185,23 +23177,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; @@ -23223,23 +23215,23 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributePendingTimestampWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePendingTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23248,23 +23240,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePendingTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePendingTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; @@ -23285,22 +23277,22 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23309,22 +23301,22 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; @@ -23344,26 +23336,26 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel } - (void)readAttributeSecurityPolicyWithCompletionHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler + (void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSecurityPolicyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, + (void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23372,23 +23364,23 @@ new CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptio } using TypeInfo = ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSecurityPolicyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSecurityPolicyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, + completionHandler:(void (^)(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23411,22 +23403,22 @@ new CHIPThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge( - (void)readAttributeChannelMaskWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge( + new MTRNullableOctetStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeChannelMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( + new MTRNullableOctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23435,22 +23427,22 @@ new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeChannelMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; @@ -23470,15 +23462,15 @@ new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(C } - (void)readAttributeOperationalDatasetComponentsWithCompletionHandler: - (void (^)(CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + (void (^)(MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -23486,15 +23478,15 @@ new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallb - (void) subscribeAttributeOperationalDatasetComponentsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23504,10 +23496,10 @@ new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallb using TypeInfo = ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge:: + MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -23516,15 +23508,15 @@ new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallb } + (void) - readAttributeOperationalDatasetComponentsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer + readAttributeOperationalDatasetComponentsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23549,25 +23541,25 @@ new CHIPThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallb - (void)readAttributeActiveNetworkFaultsListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveNetworkFaultsListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23577,10 +23569,10 @@ new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubs using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge:: + MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -23588,13 +23580,13 @@ new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeActiveNetworkFaultsListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveNetworkFaultsListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23618,24 +23610,24 @@ new CHIPThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallbackBrid - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23644,23 +23636,23 @@ new CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscri } using TypeInfo = ThreadNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23684,24 +23676,24 @@ new CHIPThreadNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23710,23 +23702,23 @@ new CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscrip } using TypeInfo = ThreadNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23750,22 +23742,22 @@ new CHIPThreadNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23774,23 +23766,23 @@ new CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBr } using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -23813,21 +23805,21 @@ new CHIPThreadNetworkDiagnosticsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23836,22 +23828,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; @@ -23873,22 +23865,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23897,23 +23889,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; @@ -23934,7 +23926,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPWiFiNetworkDiagnostics +@implementation MTRWiFiNetworkDiagnostics - (chip::Controller::ClusterBase *)getCluster { @@ -23945,7 +23937,7 @@ - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler { [self resetCountsWithParams:nil completionHandler:completionHandler]; } -- (void)resetCountsWithParams:(CHIPWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTRWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -23957,14 +23949,14 @@ - (void)resetCountsWithParams:(CHIPWiFiNetworkDiagnosticsClusterResetCountsParam } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -23972,22 +23964,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeBssidWithCompletionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge( + new MTRNullableOctetStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBssidWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( + new MTRNullableOctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -23996,22 +23988,22 @@ new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBssidWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBssidWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; @@ -24033,22 +24025,22 @@ new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeSecurityTypeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSecurityTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24057,23 +24049,23 @@ new CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscr } using TypeInfo = WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSecurityTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSecurityTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -24097,23 +24089,23 @@ new CHIPNullableWiFiNetworkDiagnosticsClusterSecurityTypeAttributeCallbackBridge - (void)readAttributeWiFiVersionWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWiFiVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24123,10 +24115,10 @@ new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSub using TypeInfo = WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge:: + MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -24134,13 +24126,13 @@ new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackSub subscriptionEstablishedHandler); } -+ (void)readAttributeWiFiVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWiFiVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge( + new MTRNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -24164,23 +24156,23 @@ new CHIPNullableWiFiNetworkDiagnosticsClusterWiFiVersionTypeAttributeCallbackBri - (void)readAttributeChannelNumberWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeChannelNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24189,23 +24181,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeChannelNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; @@ -24226,22 +24218,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeRssiWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge( + new MTRNullableInt8sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRssiWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( + new MTRNullableInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24250,22 +24242,22 @@ new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRssiWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRssiWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; @@ -24287,22 +24279,22 @@ new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeBeaconLostCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBeaconLostCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24311,23 +24303,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBeaconLostCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBeaconLostCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; @@ -24349,22 +24341,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBeaconRxCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBeaconRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24373,23 +24365,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBeaconRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBeaconRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; @@ -24411,23 +24403,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePacketMulticastRxCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketMulticastRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24436,23 +24428,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketMulticastRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketMulticastRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; @@ -24474,23 +24466,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePacketMulticastTxCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketMulticastTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24499,23 +24491,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketMulticastTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketMulticastTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; @@ -24537,23 +24529,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePacketUnicastRxCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketUnicastRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24562,23 +24554,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketUnicastRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketUnicastRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; @@ -24600,23 +24592,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePacketUnicastTxCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketUnicastTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24625,23 +24617,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketUnicastTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketUnicastTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; @@ -24663,22 +24655,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentMaxRateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentMaxRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24687,23 +24679,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentMaxRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentMaxRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; @@ -24725,21 +24717,21 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOverrunCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24748,23 +24740,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; @@ -24786,24 +24778,24 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24812,23 +24804,23 @@ new CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscript } using TypeInfo = WiFiNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -24851,24 +24843,24 @@ new CHIPWiFiNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24877,23 +24869,23 @@ new CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscripti } using TypeInfo = WiFiNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -24916,22 +24908,22 @@ new CHIPWiFiNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + new MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -24940,23 +24932,23 @@ new CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBrid } using TypeInfo = WiFiNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTRWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -24979,21 +24971,21 @@ new CHIPWiFiNetworkDiagnosticsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25002,22 +24994,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; @@ -25039,22 +25031,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25063,23 +25055,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; @@ -25100,7 +25092,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPEthernetNetworkDiagnostics +@implementation MTREthernetNetworkDiagnostics - (chip::Controller::ClusterBase *)getCluster { @@ -25111,7 +25103,7 @@ - (void)resetCountsWithCompletionHandler:(StatusCompletion)completionHandler { [self resetCountsWithParams:nil completionHandler:completionHandler]; } -- (void)resetCountsWithParams:(CHIPEthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params +- (void)resetCountsWithParams:(MTREthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -25123,14 +25115,14 @@ - (void)resetCountsWithParams:(CHIPEthernetNetworkDiagnosticsClusterResetCountsP } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -25138,23 +25130,23 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributePHYRateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge( + new MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePHYRateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( + new MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25164,10 +25156,10 @@ new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSub using TypeInfo = EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge:: + MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -25175,12 +25167,12 @@ new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackSub subscriptionEstablishedHandler); } -+ (void)readAttributePHYRateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePHYRateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge( + new MTRNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -25204,22 +25196,22 @@ new CHIPNullableEthernetNetworkDiagnosticsClusterPHYRateTypeAttributeCallbackBri - (void)readAttributeFullDuplexWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge( + new MTRNullableBooleanAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFullDuplexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( + new MTRNullableBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25228,22 +25220,22 @@ new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFullDuplexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFullDuplexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; @@ -25265,22 +25257,22 @@ new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cance - (void)readAttributePacketRxCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketRxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25289,23 +25281,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketRxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketRxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; @@ -25327,22 +25319,22 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePacketTxCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePacketTxCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25351,23 +25343,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePacketTxCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePacketTxCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; @@ -25389,21 +25381,21 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTxErrCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTxErrCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25412,22 +25404,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTxErrCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTxErrCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; @@ -25449,22 +25441,22 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCollisionCountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCollisionCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25473,23 +25465,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCollisionCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCollisionCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; @@ -25511,21 +25503,21 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOverrunCountWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOverrunCountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25534,23 +25526,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOverrunCountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverrunCountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; @@ -25572,23 +25564,23 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCarrierDetectWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge( + new MTRNullableBooleanAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCarrierDetectWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( + new MTRNullableBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25597,23 +25589,23 @@ new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCarrierDetectWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCarrierDetectWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; @@ -25635,22 +25627,22 @@ new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cance - (void)readAttributeTimeSinceResetWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTimeSinceResetWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25659,23 +25651,23 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTimeSinceResetWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTimeSinceResetWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; @@ -25697,24 +25689,24 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25723,24 +25715,23 @@ new CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubsc } using TypeInfo = EthernetNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -25764,24 +25755,24 @@ new CHIPEthernetNetworkDiagnosticsGeneratedCommandListListAttributeCallbackBridg - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25790,23 +25781,23 @@ new CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscr } using TypeInfo = EthernetNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -25830,22 +25821,22 @@ new CHIPEthernetNetworkDiagnosticsAcceptedCommandListListAttributeCallbackBridge - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( + new MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25854,23 +25845,23 @@ new CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscription } using TypeInfo = EthernetNetworkDiagnostics::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge( + new MTREthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -25893,21 +25884,21 @@ new CHIPEthernetNetworkDiagnosticsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25916,22 +25907,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; @@ -25953,22 +25944,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -25977,23 +25968,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; @@ -26014,7 +26005,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBridgedDeviceBasic +@implementation MTRBridgedDeviceBasic - (chip::Controller::ClusterBase *)getCluster { @@ -26024,21 +26015,21 @@ @implementation CHIPBridgedDeviceBasic - (void)readAttributeVendorNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26047,22 +26038,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; @@ -26084,21 +26075,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeVendorIDWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPVendorIdAttributeCallbackSubscriptionBridge( + new MTRVendorIdAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26107,22 +26098,22 @@ new CHIPVendorIdAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; @@ -26144,21 +26135,21 @@ new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeProductNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26167,23 +26158,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; @@ -26205,10 +26196,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeNodeLabelWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::NodeLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -26218,17 +26209,17 @@ - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value completionHa [self writeAttributeNodeLabelWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNodeLabelWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -26238,20 +26229,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BridgedDeviceBasic::Attributes::NodeLabel::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNodeLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26260,22 +26251,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::NodeLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNodeLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNodeLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::NodeLabel::TypeInfo; @@ -26297,22 +26288,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeHardwareVersionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeHardwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26321,23 +26312,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHardwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; @@ -26359,23 +26350,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeHardwareVersionStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeHardwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26384,23 +26375,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHardwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHardwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; @@ -26422,22 +26413,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeSoftwareVersionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSoftwareVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26446,23 +26437,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSoftwareVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; @@ -26484,23 +26475,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeSoftwareVersionStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSoftwareVersionStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26509,23 +26500,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSoftwareVersionStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoftwareVersionStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; @@ -26547,22 +26538,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeManufacturingDateWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeManufacturingDateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26571,23 +26562,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeManufacturingDateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeManufacturingDateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; @@ -26609,21 +26600,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributePartNumberWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePartNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26632,22 +26623,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePartNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePartNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; @@ -26669,21 +26660,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductURLWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductURLWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26692,22 +26683,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductURLWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductURLWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; @@ -26729,21 +26720,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductLabelWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductLabelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26752,23 +26743,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductLabelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductLabelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; @@ -26790,21 +26781,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeSerialNumberWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSerialNumberWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26813,23 +26804,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSerialNumberWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSerialNumberWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; @@ -26851,21 +26842,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeReachableWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReachableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26874,22 +26865,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReachableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReachableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; @@ -26911,21 +26902,21 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeUniqueIDWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUniqueIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26934,22 +26925,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUniqueIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUniqueIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; @@ -26971,24 +26962,24 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -26997,23 +26988,23 @@ new CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = BridgedDeviceBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -27036,24 +27027,24 @@ new CHIPBridgedDeviceBasicGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27062,23 +27053,23 @@ new CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBr } using TypeInfo = BridgedDeviceBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -27101,22 +27092,22 @@ new CHIPBridgedDeviceBasicAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27125,23 +27116,23 @@ new CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBridgedDeviceBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge( + new MTRBridgedDeviceBasicAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -27164,21 +27155,21 @@ new CHIPBridgedDeviceBasicAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27187,22 +27178,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; @@ -27224,22 +27215,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27248,23 +27239,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; @@ -27285,7 +27276,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPSwitch +@implementation MTRSwitch - (chip::Controller::ClusterBase *)getCluster { @@ -27295,22 +27286,22 @@ @implementation CHIPSwitch - (void)readAttributeNumberOfPositionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfPositionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27319,23 +27310,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfPositionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPositionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; @@ -27357,22 +27348,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCurrentPositionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27381,23 +27372,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; @@ -27419,22 +27410,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMultiPressMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMultiPressMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27443,23 +27434,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMultiPressMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMultiPressMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; @@ -27481,24 +27472,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchGeneratedCommandListListAttributeCallbackBridge( + new MTRSwitchGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27507,23 +27498,23 @@ new CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSwitchGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchGeneratedCommandListListAttributeCallbackBridge( + new MTRSwitchGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -27546,24 +27537,24 @@ new CHIPSwitchGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchAcceptedCommandListListAttributeCallbackBridge( + new MTRSwitchAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27572,23 +27563,23 @@ new CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSwitchAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchAcceptedCommandListListAttributeCallbackBridge( + new MTRSwitchAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -27611,22 +27602,22 @@ new CHIPSwitchAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchAttributeListListAttributeCallbackBridge( + new MTRSwitchAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge( + new MTRSwitchAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27635,23 +27626,23 @@ new CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPSwitchAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRSwitchAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPSwitchAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRSwitchAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; @@ -27673,21 +27664,21 @@ new CHIPSwitchAttributeListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27696,22 +27687,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; @@ -27733,22 +27724,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27757,23 +27748,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; @@ -27794,14 +27785,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPAdministratorCommissioning +@implementation MTRAdministratorCommissioning - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)openCommissioningWindowWithParams:(CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams *)params +- (void)openCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenCommissioningWindowParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -27821,20 +27812,20 @@ - (void)openCommissioningWindowWithParams:(CHIPAdministratorCommissioningCluster request.iterations = params.iterations.unsignedIntValue; request.salt = [self asByteSpan:params.salt]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)openBasicCommissioningWindowWithParams:(CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams *)params +- (void)openBasicCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -27850,14 +27841,14 @@ - (void)openBasicCommissioningWindowWithParams:(CHIPAdministratorCommissioningCl } request.commissioningTimeout = params.commissioningTimeout.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -27867,7 +27858,7 @@ - (void)revokeCommissioningWithCompletionHandler:(StatusCompletion)completionHan { [self revokeCommissioningWithParams:nil completionHandler:completionHandler]; } -- (void)revokeCommissioningWithParams:(CHIPAdministratorCommissioningClusterRevokeCommissioningParams * _Nullable)params +- (void)revokeCommissioningWithParams:(MTRAdministratorCommissioningClusterRevokeCommissioningParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -27882,14 +27873,14 @@ - (void)revokeCommissioningWithParams:(CHIPAdministratorCommissioningClusterRevo timedInvokeTimeoutMs.SetValue(10000); } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -27898,21 +27889,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeWindowStatusWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWindowStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27921,23 +27912,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWindowStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindowStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; @@ -27959,22 +27950,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAdminFabricIndexWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAdminFabricIndexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -27983,23 +27974,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAdminFabricIndexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAdminFabricIndexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; @@ -28021,22 +28012,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAdminVendorIdWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAdminVendorIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28045,23 +28036,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAdminVendorIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAdminVendorIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; @@ -28083,24 +28074,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28109,24 +28100,23 @@ new CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubsc } using TypeInfo = AdministratorCommissioning::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge( + new MTRAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28150,24 +28140,24 @@ new CHIPAdministratorCommissioningGeneratedCommandListListAttributeCallbackBridg - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28176,23 +28166,23 @@ new CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscr } using TypeInfo = AdministratorCommissioning::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge( + new MTRAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28216,22 +28206,22 @@ new CHIPAdministratorCommissioningAcceptedCommandListListAttributeCallbackBridge - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge( + new MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge( + new MTRAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28240,23 +28230,23 @@ new CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscription } using TypeInfo = AdministratorCommissioning::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAdministratorCommissioningAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge( + new MTRAdministratorCommissioningAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28279,21 +28269,21 @@ new CHIPAdministratorCommissioningAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28302,22 +28292,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; @@ -28339,22 +28329,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28363,23 +28353,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; @@ -28400,15 +28390,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOperationalCredentials +@implementation MTROperationalCredentials - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)attestationRequestWithParams:(CHIPOperationalCredentialsClusterAttestationRequestParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterAttestationResponseParams * _Nullable data, +- (void)attestationRequestWithParams:(MTROperationalCredentialsClusterAttestationRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterAttestationResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28421,19 +28411,18 @@ - (void)attestationRequestWithParams:(CHIPOperationalCredentialsClusterAttestati } request.attestationNonce = [self asByteSpan:params.attestationNonce]; - new CHIPOperationalCredentialsClusterAttestationResponseCallbackBridge( + new MTROperationalCredentialsClusterAttestationResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)certificateChainRequestWithParams:(CHIPOperationalCredentialsClusterCertificateChainRequestParams *)params - completionHandler: - (void (^)(CHIPOperationalCredentialsClusterCertificateChainResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler +- (void)certificateChainRequestWithParams:(MTROperationalCredentialsClusterCertificateChainRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterCertificateChainResponseParams * _Nullable data, + NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -28445,18 +28434,17 @@ - (void)certificateChainRequestWithParams:(CHIPOperationalCredentialsClusterCert } request.certificateType = params.certificateType.unsignedCharValue; - new CHIPOperationalCredentialsClusterCertificateChainResponseCallbackBridge( + new MTROperationalCredentialsClusterCertificateChainResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)CSRRequestWithParams:(CHIPOperationalCredentialsClusterCSRRequestParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterCSRResponseParams * _Nullable data, +- (void)CSRRequestWithParams:(MTROperationalCredentialsClusterCSRRequestParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterCSRResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28473,17 +28461,17 @@ - (void)CSRRequestWithParams:(CHIPOperationalCredentialsClusterCSRRequestParams definedValue_0 = params.isForUpdateNOC.boolValue; } - new CHIPOperationalCredentialsClusterCSRResponseCallbackBridge( + new MTROperationalCredentialsClusterCSRResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)addNOCWithParams:(CHIPOperationalCredentialsClusterAddNOCParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)addNOCWithParams:(MTROperationalCredentialsClusterAddNOCParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28504,17 +28492,17 @@ - (void)addNOCWithParams:(CHIPOperationalCredentialsClusterAddNOCParams *)params request.adminVendorId = static_cast>(params.adminVendorId.unsignedShortValue); - new CHIPOperationalCredentialsClusterNOCResponseCallbackBridge( + new MTROperationalCredentialsClusterNOCResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)updateNOCWithParams:(CHIPOperationalCredentialsClusterUpdateNOCParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)updateNOCWithParams:(MTROperationalCredentialsClusterUpdateNOCParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28531,17 +28519,17 @@ - (void)updateNOCWithParams:(CHIPOperationalCredentialsClusterUpdateNOCParams *) definedValue_0 = [self asByteSpan:params.icacValue]; } - new CHIPOperationalCredentialsClusterNOCResponseCallbackBridge( + new MTROperationalCredentialsClusterNOCResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)updateFabricLabelWithParams:(CHIPOperationalCredentialsClusterUpdateFabricLabelParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)updateFabricLabelWithParams:(MTROperationalCredentialsClusterUpdateFabricLabelParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28554,17 +28542,17 @@ - (void)updateFabricLabelWithParams:(CHIPOperationalCredentialsClusterUpdateFabr } request.label = [self asCharSpan:params.label]; - new CHIPOperationalCredentialsClusterNOCResponseCallbackBridge( + new MTROperationalCredentialsClusterNOCResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)removeFabricWithParams:(CHIPOperationalCredentialsClusterRemoveFabricParams *)params - completionHandler:(void (^)(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable data, +- (void)removeFabricWithParams:(MTROperationalCredentialsClusterRemoveFabricParams *)params + completionHandler:(void (^)(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28577,16 +28565,16 @@ - (void)removeFabricWithParams:(CHIPOperationalCredentialsClusterRemoveFabricPar } request.fabricIndex = params.fabricIndex.unsignedCharValue; - new CHIPOperationalCredentialsClusterNOCResponseCallbackBridge( + new MTROperationalCredentialsClusterNOCResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)addTrustedRootCertificateWithParams:(CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams *)params +- (void)addTrustedRootCertificateWithParams:(MTROperationalCredentialsClusterAddTrustedRootCertificateParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -28599,27 +28587,27 @@ - (void)addTrustedRootCertificateWithParams:(CHIPOperationalCredentialsClusterAd } request.rootCertificate = [self asByteSpan:params.rootCertificate]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)readAttributeNOCsWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeNOCsWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsNOCsListAttributeCallbackBridge( + new MTROperationalCredentialsNOCsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::NOCs::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -28627,11 +28615,11 @@ new CHIPOperationalCredentialsNOCsListAttributeCallbackBridge( - (void)subscribeAttributeNOCsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28640,22 +28628,22 @@ new CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::NOCs::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROperationalCredentialsNOCsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNOCsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNOCsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsNOCsListAttributeCallbackBridge( + new MTROperationalCredentialsNOCsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28675,14 +28663,14 @@ new CHIPOperationalCredentialsNOCsListAttributeCallbackBridge( }); } -- (void)readAttributeFabricsWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeFabricsWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsFabricsListAttributeCallbackBridge( + new MTROperationalCredentialsFabricsListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::Fabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -28690,11 +28678,11 @@ new CHIPOperationalCredentialsFabricsListAttributeCallbackBridge( - (void)subscribeAttributeFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28703,22 +28691,22 @@ new CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::Fabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROperationalCredentialsFabricsListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsFabricsListAttributeCallbackBridge( + new MTROperationalCredentialsFabricsListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28741,22 +28729,22 @@ new CHIPOperationalCredentialsFabricsListAttributeCallbackBridge( - (void)readAttributeSupportedFabricsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportedFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28765,23 +28753,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; @@ -28803,23 +28791,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCommissionedFabricsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCommissionedFabricsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28828,23 +28816,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCommissionedFabricsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCommissionedFabricsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; @@ -28866,24 +28854,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeTrustedRootCertificatesWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge( + new MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTrustedRootCertificatesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28892,23 +28880,23 @@ new CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscr } using TypeInfo = OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTrustedRootCertificatesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTrustedRootCertificatesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge( + new MTROperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -28932,22 +28920,22 @@ new CHIPOperationalCredentialsTrustedRootCertificatesListAttributeCallbackBridge - (void)readAttributeCurrentFabricIndexWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentFabricIndexWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -28956,23 +28944,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentFabricIndexWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentFabricIndexWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; @@ -28994,24 +28982,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge( + new MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29020,23 +29008,23 @@ new CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscript } using TypeInfo = OperationalCredentials::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTROperationalCredentialsGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge( + new MTROperationalCredentialsGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29059,24 +29047,24 @@ new CHIPOperationalCredentialsGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge( + new MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29085,23 +29073,23 @@ new CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscripti } using TypeInfo = OperationalCredentials::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTROperationalCredentialsAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge( + new MTROperationalCredentialsAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29124,22 +29112,22 @@ new CHIPOperationalCredentialsAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge( + new MTROperationalCredentialsAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge( + new MTROperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29148,23 +29136,23 @@ new CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBrid } using TypeInfo = OperationalCredentials::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROperationalCredentialsAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge( + new MTROperationalCredentialsAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29187,21 +29175,21 @@ new CHIPOperationalCredentialsAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29210,22 +29198,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; @@ -29247,22 +29235,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29271,23 +29259,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; @@ -29308,14 +29296,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPGroupKeyManagement +@implementation MTRGroupKeyManagement - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)keySetWriteWithParams:(CHIPGroupKeyManagementClusterKeySetWriteParams *)params +- (void)keySetWriteWithParams:(MTRGroupKeyManagementClusterKeySetWriteParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -29367,21 +29355,21 @@ - (void)keySetWriteWithParams:(CHIPGroupKeyManagementClusterKeySetWriteParams *) nonNullValue_1 = params.groupKeySet.epochStartTime2.unsignedLongLongValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)keySetReadWithParams:(CHIPGroupKeyManagementClusterKeySetReadParams *)params - completionHandler:(void (^)(CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable data, +- (void)keySetReadWithParams:(MTRGroupKeyManagementClusterKeySetReadParams *)params + completionHandler:(void (^)(MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -29394,16 +29382,16 @@ - (void)keySetReadWithParams:(CHIPGroupKeyManagementClusterKeySetReadParams *)pa } request.groupKeySetID = params.groupKeySetID.unsignedShortValue; - new CHIPGroupKeyManagementClusterKeySetReadResponseCallbackBridge( + new MTRGroupKeyManagementClusterKeySetReadResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)keySetRemoveWithParams:(CHIPGroupKeyManagementClusterKeySetRemoveParams *)params +- (void)keySetRemoveWithParams:(MTRGroupKeyManagementClusterKeySetRemoveParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -29416,21 +29404,21 @@ - (void)keySetRemoveWithParams:(CHIPGroupKeyManagementClusterKeySetRemoveParams } request.groupKeySetID = params.groupKeySetID.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)keySetReadAllIndicesWithParams:(CHIPGroupKeyManagementClusterKeySetReadAllIndicesParams *)params - completionHandler:(void (^)(CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable data, +- (void)keySetReadAllIndicesWithParams:(MTRGroupKeyManagementClusterKeySetReadAllIndicesParams *)params + completionHandler:(void (^)(MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -29464,24 +29452,23 @@ - (void)keySetReadAllIndicesWithParams:(CHIPGroupKeyManagementClusterKeySetReadA } } - new CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge( + new MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)readAttributeGroupKeyMapWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeGroupKeyMapWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge( + new MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::GroupKeyMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -29492,17 +29479,17 @@ - (void)writeAttributeGroupKeyMapWithValue:(NSArray * _Nonnull)value completionH [self writeAttributeGroupKeyMapWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeGroupKeyMapWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -29521,11 +29508,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPGroupKeyManagementClusterGroupKeyMapStruct class]]) { + if (![value[i_0] isKindOfClass:[MTRGroupKeyManagementClusterGroupKeyMapStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPGroupKeyManagementClusterGroupKeyMapStruct *) value[i_0]; + auto element_0 = (MTRGroupKeyManagementClusterGroupKeyMapStruct *) value[i_0]; listHolder_0->mList[i_0].groupId = element_0.groupId.unsignedShortValue; listHolder_0->mList[i_0].groupKeySetID = element_0.groupKeySetID.unsignedShortValue; listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; @@ -29535,20 +29522,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeGroupKeyMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge( + new MTRGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29557,22 +29544,22 @@ new CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::GroupKeyMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupKeyManagementGroupKeyMapListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGroupKeyMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGroupKeyMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge( + new MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29592,14 +29579,14 @@ new CHIPGroupKeyManagementGroupKeyMapListAttributeCallbackBridge( }); } -- (void)readAttributeGroupTableWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeGroupTableWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge( + new MTRGroupKeyManagementGroupTableListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::GroupTable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -29607,11 +29594,11 @@ new CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge( - (void)subscribeAttributeGroupTableWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge( + new MTRGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29620,22 +29607,22 @@ new CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::GroupTable::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupKeyManagementGroupTableListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGroupTableWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGroupTableWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge( + new MTRGroupKeyManagementGroupTableListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29658,22 +29645,22 @@ new CHIPGroupKeyManagementGroupTableListAttributeCallbackBridge( - (void)readAttributeMaxGroupsPerFabricWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxGroupsPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29682,23 +29669,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxGroupsPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxGroupsPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; @@ -29720,23 +29707,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMaxGroupKeysPerFabricWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxGroupKeysPerFabricWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29745,23 +29732,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxGroupKeysPerFabricWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxGroupKeysPerFabricWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; @@ -29783,24 +29770,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge( + new MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29809,23 +29796,23 @@ new CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = GroupKeyManagement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge( + new MTRGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29848,24 +29835,24 @@ new CHIPGroupKeyManagementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge( + new MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29874,23 +29861,23 @@ new CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBr } using TypeInfo = GroupKeyManagement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge( + new MTRGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29913,22 +29900,22 @@ new CHIPGroupKeyManagementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge( + new MTRGroupKeyManagementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29937,23 +29924,23 @@ new CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRGroupKeyManagementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge( + new MTRGroupKeyManagementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -29976,21 +29963,21 @@ new CHIPGroupKeyManagementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -29999,22 +29986,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; @@ -30036,22 +30023,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30060,23 +30047,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; @@ -30097,7 +30084,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPFixedLabel +@implementation MTRFixedLabel - (chip::Controller::ClusterBase *)getCluster { @@ -30107,22 +30094,22 @@ @implementation CHIPFixedLabel - (void)readAttributeLabelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelLabelListListAttributeCallbackBridge( + new MTRFixedLabelLabelListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLabelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge( + new MTRFixedLabelLabelListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30131,22 +30118,22 @@ new CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFixedLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFixedLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLabelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLabelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelLabelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRFixedLabelLabelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; @@ -30168,24 +30155,24 @@ new CHIPFixedLabelLabelListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge( + new MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30194,23 +30181,23 @@ new CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFixedLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge( + new MTRFixedLabelGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30233,24 +30220,24 @@ new CHIPFixedLabelGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge( + new MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30259,23 +30246,23 @@ new CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFixedLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge( + new MTRFixedLabelAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30298,22 +30285,22 @@ new CHIPFixedLabelAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelAttributeListListAttributeCallbackBridge( + new MTRFixedLabelAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge( + new MTRFixedLabelAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30322,23 +30309,23 @@ new CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFixedLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFixedLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFixedLabelAttributeListListAttributeCallbackBridge( + new MTRFixedLabelAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30361,21 +30348,21 @@ new CHIPFixedLabelAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30384,22 +30371,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; @@ -30421,22 +30408,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30445,23 +30432,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; @@ -30482,7 +30469,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPUserLabel +@implementation MTRUserLabel - (chip::Controller::ClusterBase *)getCluster { @@ -30492,11 +30479,11 @@ @implementation CHIPUserLabel - (void)readAttributeLabelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelLabelListListAttributeCallbackBridge( + new MTRUserLabelLabelListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::LabelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -30506,17 +30493,17 @@ - (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHan [self writeAttributeLabelListWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -30535,11 +30522,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPUserLabelClusterLabelStruct class]]) { + if (![value[i_0] isKindOfClass:[MTRUserLabelClusterLabelStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPUserLabelClusterLabelStruct *) value[i_0]; + auto element_0 = (MTRUserLabelClusterLabelStruct *) value[i_0]; listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; listHolder_0->mList[i_0].value = [self asCharSpan:element_0.value]; } @@ -30548,20 +30535,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLabelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge( + new MTRUserLabelLabelListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30570,22 +30557,22 @@ new CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::LabelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUserLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUserLabelLabelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLabelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLabelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelLabelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRUserLabelLabelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = UserLabel::Attributes::LabelList::TypeInfo; @@ -30607,24 +30594,24 @@ new CHIPUserLabelLabelListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge( + new MTRUserLabelGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30633,23 +30620,23 @@ new CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUserLabelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge( + new MTRUserLabelGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30672,24 +30659,24 @@ new CHIPUserLabelGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge( + new MTRUserLabelAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30698,23 +30685,23 @@ new CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUserLabelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge( + new MTRUserLabelAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30737,22 +30724,22 @@ new CHIPUserLabelAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelAttributeListListAttributeCallbackBridge( + new MTRUserLabelAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge( + new MTRUserLabelAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30761,23 +30748,23 @@ new CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPUserLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRUserLabelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPUserLabelAttributeListListAttributeCallbackBridge( + new MTRUserLabelAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -30800,21 +30787,21 @@ new CHIPUserLabelAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30823,22 +30810,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; @@ -30860,22 +30847,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30884,23 +30871,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; @@ -30921,7 +30908,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBooleanState +@implementation MTRBooleanState - (chip::Controller::ClusterBase *)getCluster { @@ -30931,21 +30918,21 @@ @implementation CHIPBooleanState - (void)readAttributeStateValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStateValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -30954,22 +30941,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStateValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStateValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; @@ -30991,24 +30978,24 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge( + new MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31017,23 +31004,23 @@ new CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanStateGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge( + new MTRBooleanStateGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31056,24 +31043,24 @@ new CHIPBooleanStateGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge( + new MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31082,23 +31069,23 @@ new CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanStateAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge( + new MTRBooleanStateAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31121,22 +31108,22 @@ new CHIPBooleanStateAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateAttributeListListAttributeCallbackBridge( + new MTRBooleanStateAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBooleanStateAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31145,23 +31132,23 @@ new CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanStateAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanStateAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanStateAttributeListListAttributeCallbackBridge( + new MTRBooleanStateAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31184,21 +31171,21 @@ new CHIPBooleanStateAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31207,22 +31194,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; @@ -31244,22 +31231,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31268,23 +31255,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; @@ -31305,14 +31292,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPModeSelect +@implementation MTRModeSelect - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)changeToModeWithParams:(CHIPModeSelectClusterChangeToModeParams *)params +- (void)changeToModeWithParams:(MTRModeSelectClusterChangeToModeParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -31325,14 +31312,14 @@ - (void)changeToModeWithParams:(CHIPModeSelectClusterChangeToModeParams *)params } request.newMode = params.newMode.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -31341,21 +31328,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeDescriptionWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDescriptionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31364,23 +31351,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDescriptionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDescriptionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; @@ -31402,23 +31389,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeStandardNamespaceWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStandardNamespaceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31427,23 +31414,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStandardNamespaceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStandardNamespaceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; @@ -31465,23 +31452,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeSupportedModesWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectSupportedModesListAttributeCallbackBridge( + new MTRModeSelectSupportedModesListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::SupportedModes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportedModesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge( + new MTRModeSelectSupportedModesListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31490,23 +31477,23 @@ new CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::SupportedModes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPModeSelectSupportedModesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRModeSelectSupportedModesListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedModesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedModesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectSupportedModesListAttributeCallbackBridge( + new MTRModeSelectSupportedModesListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31529,21 +31516,21 @@ new CHIPModeSelectSupportedModesListAttributeCallbackBridge( - (void)readAttributeCurrentModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31552,23 +31539,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; @@ -31590,11 +31577,11 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeStartUpModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::StartUpMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -31604,17 +31591,17 @@ - (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completio [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -31629,20 +31616,20 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeStartUpModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31651,23 +31638,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::StartUpMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartUpModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::StartUpMode::TypeInfo; @@ -31688,11 +31675,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeOnModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::OnMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -31702,17 +31689,17 @@ - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completionHand [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -31727,20 +31714,20 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOnModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31749,22 +31736,22 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::OnMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOnModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOnModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::OnMode::TypeInfo; @@ -31786,24 +31773,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge( + new MTRModeSelectGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31812,23 +31799,23 @@ new CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRModeSelectGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge( + new MTRModeSelectGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31851,24 +31838,24 @@ new CHIPModeSelectGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge( + new MTRModeSelectAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31877,23 +31864,23 @@ new CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRModeSelectAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge( + new MTRModeSelectAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31916,22 +31903,22 @@ new CHIPModeSelectAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectAttributeListListAttributeCallbackBridge( + new MTRModeSelectAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge( + new MTRModeSelectAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -31940,23 +31927,23 @@ new CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPModeSelectAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRModeSelectAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPModeSelectAttributeListListAttributeCallbackBridge( + new MTRModeSelectAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -31979,21 +31966,21 @@ new CHIPModeSelectAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32002,22 +31989,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; @@ -32039,22 +32026,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32063,23 +32050,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; @@ -32100,14 +32087,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPDoorLock +@implementation MTRDoorLock - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)lockDoorWithParams:(CHIPDoorLockClusterLockDoorParams * _Nullable)params +- (void)lockDoorWithParams:(MTRDoorLockClusterLockDoorParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32128,20 +32115,20 @@ - (void)lockDoorWithParams:(CHIPDoorLockClusterLockDoorParams * _Nullable)params } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)unlockDoorWithParams:(CHIPDoorLockClusterUnlockDoorParams * _Nullable)params +- (void)unlockDoorWithParams:(MTRDoorLockClusterUnlockDoorParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32162,20 +32149,20 @@ - (void)unlockDoorWithParams:(CHIPDoorLockClusterUnlockDoorParams * _Nullable)pa } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)unlockWithTimeoutWithParams:(CHIPDoorLockClusterUnlockWithTimeoutParams *)params +- (void)unlockWithTimeoutWithParams:(MTRDoorLockClusterUnlockWithTimeoutParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32195,20 +32182,20 @@ - (void)unlockWithTimeoutWithParams:(CHIPDoorLockClusterUnlockWithTimeoutParams definedValue_0 = [self asByteSpan:params.pinCode]; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setWeekDayScheduleWithParams:(CHIPDoorLockClusterSetWeekDayScheduleParams *)params +- (void)setWeekDayScheduleWithParams:(MTRDoorLockClusterSetWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32227,21 +32214,21 @@ - (void)setWeekDayScheduleWithParams:(CHIPDoorLockClusterSetWeekDayScheduleParam request.endHour = params.endHour.unsignedCharValue; request.endMinute = params.endMinute.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getWeekDayScheduleWithParams:(CHIPDoorLockClusterGetWeekDayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable data, +- (void)getWeekDayScheduleWithParams:(MTRDoorLockClusterGetWeekDayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32255,16 +32242,16 @@ - (void)getWeekDayScheduleWithParams:(CHIPDoorLockClusterGetWeekDayScheduleParam request.weekDayIndex = params.weekDayIndex.unsignedCharValue; request.userIndex = params.userIndex.unsignedShortValue; - new CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge( + new MTRDoorLockClusterGetWeekDayScheduleResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearWeekDayScheduleWithParams:(CHIPDoorLockClusterClearWeekDayScheduleParams *)params +- (void)clearWeekDayScheduleWithParams:(MTRDoorLockClusterClearWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32278,20 +32265,20 @@ - (void)clearWeekDayScheduleWithParams:(CHIPDoorLockClusterClearWeekDayScheduleP request.weekDayIndex = params.weekDayIndex.unsignedCharValue; request.userIndex = params.userIndex.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setYearDayScheduleWithParams:(CHIPDoorLockClusterSetYearDayScheduleParams *)params +- (void)setYearDayScheduleWithParams:(MTRDoorLockClusterSetYearDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32307,21 +32294,21 @@ - (void)setYearDayScheduleWithParams:(CHIPDoorLockClusterSetYearDayScheduleParam request.localStartTime = params.localStartTime.unsignedIntValue; request.localEndTime = params.localEndTime.unsignedIntValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getYearDayScheduleWithParams:(CHIPDoorLockClusterGetYearDayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable data, +- (void)getYearDayScheduleWithParams:(MTRDoorLockClusterGetYearDayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32335,16 +32322,16 @@ - (void)getYearDayScheduleWithParams:(CHIPDoorLockClusterGetYearDayScheduleParam request.yearDayIndex = params.yearDayIndex.unsignedCharValue; request.userIndex = params.userIndex.unsignedShortValue; - new CHIPDoorLockClusterGetYearDayScheduleResponseCallbackBridge( + new MTRDoorLockClusterGetYearDayScheduleResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearYearDayScheduleWithParams:(CHIPDoorLockClusterClearYearDayScheduleParams *)params +- (void)clearYearDayScheduleWithParams:(MTRDoorLockClusterClearYearDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32358,20 +32345,20 @@ - (void)clearYearDayScheduleWithParams:(CHIPDoorLockClusterClearYearDayScheduleP request.yearDayIndex = params.yearDayIndex.unsignedCharValue; request.userIndex = params.userIndex.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setHolidayScheduleWithParams:(CHIPDoorLockClusterSetHolidayScheduleParams *)params +- (void)setHolidayScheduleWithParams:(MTRDoorLockClusterSetHolidayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32388,21 +32375,21 @@ - (void)setHolidayScheduleWithParams:(CHIPDoorLockClusterSetHolidayScheduleParam request.operatingMode = static_cast>(params.operatingMode.unsignedCharValue); - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getHolidayScheduleWithParams:(CHIPDoorLockClusterGetHolidayScheduleParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable data, +- (void)getHolidayScheduleWithParams:(MTRDoorLockClusterGetHolidayScheduleParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32415,16 +32402,16 @@ - (void)getHolidayScheduleWithParams:(CHIPDoorLockClusterGetHolidayScheduleParam } request.holidayIndex = params.holidayIndex.unsignedCharValue; - new CHIPDoorLockClusterGetHolidayScheduleResponseCallbackBridge( + new MTRDoorLockClusterGetHolidayScheduleResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearHolidayScheduleWithParams:(CHIPDoorLockClusterClearHolidayScheduleParams *)params +- (void)clearHolidayScheduleWithParams:(MTRDoorLockClusterClearHolidayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32437,20 +32424,20 @@ - (void)clearHolidayScheduleWithParams:(CHIPDoorLockClusterClearHolidayScheduleP } request.holidayIndex = params.holidayIndex.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)setUserWithParams:(MTRDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -32497,22 +32484,22 @@ - (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionH nonNullValue_0 = static_cast>(params.credentialRule.unsignedCharValue); } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params +- (void)getUserWithParams:(MTRDoorLockClusterGetUserParams *)params completionHandler: - (void (^)(CHIPDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -32524,16 +32511,16 @@ - (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params } request.userIndex = params.userIndex.unsignedShortValue; - new CHIPDoorLockClusterGetUserResponseCallbackBridge( + new MTRDoorLockClusterGetUserResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearUserWithParams:(CHIPDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)clearUserWithParams:(MTRDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -32548,21 +32535,21 @@ - (void)clearUserWithParams:(CHIPDoorLockClusterClearUserParams *)params complet } request.userIndex = params.userIndex.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setCredentialWithParams:(CHIPDoorLockClusterSetCredentialParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable data, +- (void)setCredentialWithParams:(MTRDoorLockClusterSetCredentialParams *)params + completionHandler:(void (^)(MTRDoorLockClusterSetCredentialResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32601,17 +32588,17 @@ - (void)setCredentialWithParams:(CHIPDoorLockClusterSetCredentialParams *)params nonNullValue_0 = static_cast>(params.userType.unsignedCharValue); } - new CHIPDoorLockClusterSetCredentialResponseCallbackBridge( + new MTRDoorLockClusterSetCredentialResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getCredentialStatusWithParams:(CHIPDoorLockClusterGetCredentialStatusParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable data, +- (void)getCredentialStatusWithParams:(MTRDoorLockClusterGetCredentialStatusParams *)params + completionHandler:(void (^)(MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32626,16 +32613,16 @@ - (void)getCredentialStatusWithParams:(CHIPDoorLockClusterGetCredentialStatusPar params.credential.credentialType.unsignedCharValue); request.credential.credentialIndex = params.credential.credentialIndex.unsignedShortValue; - new CHIPDoorLockClusterGetCredentialStatusResponseCallbackBridge( + new MTRDoorLockClusterGetCredentialStatusResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearCredentialWithParams:(CHIPDoorLockClusterClearCredentialParams *)params +- (void)clearCredentialWithParams:(MTRDoorLockClusterClearCredentialParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -32658,14 +32645,14 @@ - (void)clearCredentialWithParams:(CHIPDoorLockClusterClearCredentialParams *)pa nonNullValue_0.credentialIndex = params.credential.credentialIndex.unsignedShortValue; } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -32674,22 +32661,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeLockStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge( + new MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::LockState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLockStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge( + new MTRNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32698,22 +32685,22 @@ new CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::LockState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableDoorLockClusterDlLockStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLockStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLockStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge( + new MTRNullableDoorLockClusterDlLockStateAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -32736,22 +32723,22 @@ new CHIPNullableDoorLockClusterDlLockStateAttributeCallbackBridge( - (void)readAttributeLockTypeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge( + new MTRDoorLockClusterDlLockTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::LockType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLockTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge( + new MTRDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32760,22 +32747,22 @@ new CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::LockType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockClusterDlLockTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLockTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLockTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge( + new MTRDoorLockClusterDlLockTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -32798,22 +32785,22 @@ new CHIPDoorLockClusterDlLockTypeAttributeCallbackBridge( - (void)readAttributeActuatorEnabledWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActuatorEnabledWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32822,23 +32809,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActuatorEnabledWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActuatorEnabledWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; @@ -32860,22 +32847,22 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeDoorStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge( + new MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::DoorState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDoorStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge( + new MTRNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32884,22 +32871,22 @@ new CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::DoorState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableDoorLockClusterDlDoorStateAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDoorStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge( + new MTRNullableDoorLockClusterDlDoorStateAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -32922,10 +32909,10 @@ new CHIPNullableDoorLockClusterDlDoorStateAttributeCallbackBridge( - (void)readAttributeDoorOpenEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::DoorOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -32935,17 +32922,17 @@ - (void)writeAttributeDoorOpenEventsWithValue:(NSNumber * _Nonnull)value complet [self writeAttributeDoorOpenEventsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeDoorOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -32955,21 +32942,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::DoorOpenEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeDoorOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -32978,23 +32965,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::DoorOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDoorOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::DoorOpenEvents::TypeInfo; @@ -33016,10 +33003,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDoorClosedEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::DoorClosedEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -33029,17 +33016,17 @@ - (void)writeAttributeDoorClosedEventsWithValue:(NSNumber * _Nonnull)value compl [self writeAttributeDoorClosedEventsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeDoorClosedEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -33049,21 +33036,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::DoorClosedEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeDoorClosedEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33072,23 +33059,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::DoorClosedEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDoorClosedEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDoorClosedEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::DoorClosedEvents::TypeInfo; @@ -33110,10 +33097,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOpenPeriodWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::OpenPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -33123,17 +33110,17 @@ - (void)writeAttributeOpenPeriodWithValue:(NSNumber * _Nonnull)value completionH [self writeAttributeOpenPeriodWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOpenPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -33143,20 +33130,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::OpenPeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOpenPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33165,22 +33152,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::OpenPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOpenPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOpenPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::OpenPeriod::TypeInfo; @@ -33202,23 +33189,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfTotalUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33227,23 +33214,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfTotalUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfTotalUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; @@ -33265,23 +33252,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNumberOfPINUsersSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfPINUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33290,23 +33277,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfPINUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPINUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; @@ -33328,23 +33315,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNumberOfRFIDUsersSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfRFIDUsersSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33353,23 +33340,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfRFIDUsersSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfRFIDUsersSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; @@ -33391,23 +33378,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33416,10 +33403,10 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -33427,13 +33414,13 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } + (void)readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; @@ -33455,23 +33442,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfYearDaySchedulesSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33480,10 +33467,10 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -33491,13 +33478,13 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } + (void)readAttributeNumberOfYearDaySchedulesSupportedPerUserWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; @@ -33519,23 +33506,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNumberOfHolidaySchedulesSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfHolidaySchedulesSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33544,23 +33531,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfHolidaySchedulesSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfHolidaySchedulesSupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; @@ -33582,22 +33569,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMaxPINCodeLengthWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxPINCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33606,23 +33593,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxPINCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxPINCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; @@ -33644,22 +33631,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMinPINCodeLengthWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinPINCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33668,23 +33655,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinPINCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinPINCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; @@ -33706,22 +33693,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMaxRFIDCodeLengthWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxRFIDCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33730,23 +33717,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxRFIDCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxRFIDCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; @@ -33768,22 +33755,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeMinRFIDCodeLengthWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinRFIDCodeLengthWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33792,23 +33779,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinRFIDCodeLengthWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinRFIDCodeLengthWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; @@ -33830,24 +33817,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCredentialRulesSupportWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge( + new MTRDoorLockCredentialRulesSupportAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::CredentialRulesSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCredentialRulesSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge( + new MTRDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33856,23 +33843,23 @@ new CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::CredentialRulesSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockCredentialRulesSupportAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCredentialRulesSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCredentialRulesSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge( + new MTRDoorLockCredentialRulesSupportAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -33895,23 +33882,23 @@ new CHIPDoorLockCredentialRulesSupportAttributeCallbackBridge( - (void)readAttributeNumberOfCredentialsSupportedPerUserWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfCredentialsSupportedPerUserWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -33920,23 +33907,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfCredentialsSupportedPerUserWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfCredentialsSupportedPerUserWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; @@ -33958,10 +33945,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeLanguageWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::Language::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -33971,17 +33958,17 @@ - (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value completionHan [self writeAttributeLanguageWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -33991,20 +33978,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::Language::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLanguageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34013,22 +34000,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::Language::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLanguageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLanguageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::Language::TypeInfo; @@ -34050,10 +34037,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeLEDSettingsWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::LEDSettings::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34063,17 +34050,17 @@ - (void)writeAttributeLEDSettingsWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeLEDSettingsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLEDSettingsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34083,20 +34070,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::LEDSettings::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLEDSettingsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34105,23 +34092,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::LEDSettings::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLEDSettingsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLEDSettingsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::LEDSettings::TypeInfo; @@ -34143,10 +34130,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAutoRelockTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::AutoRelockTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34156,17 +34143,17 @@ - (void)writeAttributeAutoRelockTimeWithValue:(NSNumber * _Nonnull)value complet [self writeAttributeAutoRelockTimeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeAutoRelockTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34176,21 +34163,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::AutoRelockTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeAutoRelockTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34199,23 +34186,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::AutoRelockTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAutoRelockTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAutoRelockTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::AutoRelockTime::TypeInfo; @@ -34237,10 +34224,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeSoundVolumeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::SoundVolume::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34250,17 +34237,17 @@ - (void)writeAttributeSoundVolumeWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeSoundVolumeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeSoundVolumeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34270,20 +34257,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::SoundVolume::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSoundVolumeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34292,23 +34279,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::SoundVolume::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSoundVolumeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSoundVolumeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::SoundVolume::TypeInfo; @@ -34330,11 +34317,11 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOperatingModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge( + new MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::OperatingMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34344,17 +34331,17 @@ - (void)writeAttributeOperatingModeWithValue:(NSNumber * _Nonnull)value completi [self writeAttributeOperatingModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOperatingModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34364,21 +34351,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::OperatingMode::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOperatingModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge( + new MTRDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34387,23 +34374,23 @@ new CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::OperatingMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockClusterDlOperatingModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOperatingModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperatingModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge( + new MTRDoorLockClusterDlOperatingModeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -34426,24 +34413,24 @@ new CHIPDoorLockClusterDlOperatingModeAttributeCallbackBridge( - (void)readAttributeSupportedOperatingModesWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge( + new MTRDoorLockSupportedOperatingModesAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::SupportedOperatingModes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSupportedOperatingModesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge( + new MTRDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34452,23 +34439,23 @@ new CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::SupportedOperatingModes::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockSupportedOperatingModesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedOperatingModesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedOperatingModesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge( + new MTRDoorLockSupportedOperatingModesAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -34491,24 +34478,24 @@ new CHIPDoorLockSupportedOperatingModesAttributeCallbackBridge( - (void)readAttributeDefaultConfigurationRegisterWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge( + new MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::DefaultConfigurationRegister::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDefaultConfigurationRegisterWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge( + new MTRDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34517,23 +34504,23 @@ new CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::DefaultConfigurationRegister::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockDefaultConfigurationRegisterAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDefaultConfigurationRegisterWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDefaultConfigurationRegisterWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge( + new MTRDoorLockDefaultConfigurationRegisterAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -34556,10 +34543,10 @@ new CHIPDoorLockDefaultConfigurationRegisterAttributeCallbackBridge( - (void)readAttributeEnableLocalProgrammingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::EnableLocalProgramming::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34570,17 +34557,17 @@ - (void)writeAttributeEnableLocalProgrammingWithValue:(NSNumber * _Nonnull)value [self writeAttributeEnableLocalProgrammingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnableLocalProgrammingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34590,22 +34577,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::EnableLocalProgramming::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnableLocalProgrammingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34614,23 +34601,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::EnableLocalProgramming::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnableLocalProgrammingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableLocalProgrammingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::EnableLocalProgramming::TypeInfo; @@ -34652,10 +34639,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeEnableOneTouchLockingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::EnableOneTouchLocking::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34666,17 +34653,17 @@ - (void)writeAttributeEnableOneTouchLockingWithValue:(NSNumber * _Nonnull)value [self writeAttributeEnableOneTouchLockingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnableOneTouchLockingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34686,22 +34673,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::EnableOneTouchLocking::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnableOneTouchLockingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34710,23 +34697,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::EnableOneTouchLocking::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnableOneTouchLockingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableOneTouchLockingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::EnableOneTouchLocking::TypeInfo; @@ -34748,10 +34735,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeEnableInsideStatusLEDWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::EnableInsideStatusLED::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34762,17 +34749,17 @@ - (void)writeAttributeEnableInsideStatusLEDWithValue:(NSNumber * _Nonnull)value [self writeAttributeEnableInsideStatusLEDWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnableInsideStatusLEDWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34782,22 +34769,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::EnableInsideStatusLED::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnableInsideStatusLEDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34806,23 +34793,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::EnableInsideStatusLED::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnableInsideStatusLEDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnableInsideStatusLEDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::EnableInsideStatusLED::TypeInfo; @@ -34844,10 +34831,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeEnablePrivacyModeButtonWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::EnablePrivacyModeButton::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34860,17 +34847,17 @@ - (void)writeAttributeEnablePrivacyModeButtonWithValue:(NSNumber * _Nonnull)valu completionHandler:completionHandler]; } - (void)writeAttributeEnablePrivacyModeButtonWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34880,22 +34867,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::EnablePrivacyModeButton::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnablePrivacyModeButtonWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -34904,23 +34891,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::EnablePrivacyModeButton::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnablePrivacyModeButtonWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnablePrivacyModeButtonWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::EnablePrivacyModeButton::TypeInfo; @@ -34942,11 +34929,11 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeLocalProgrammingFeaturesWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge( + new MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::LocalProgrammingFeatures::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -34959,17 +34946,17 @@ - (void)writeAttributeLocalProgrammingFeaturesWithValue:(NSNumber * _Nonnull)val completionHandler:completionHandler]; } - (void)writeAttributeLocalProgrammingFeaturesWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -34979,22 +34966,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::LocalProgrammingFeatures::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLocalProgrammingFeaturesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge( + new MTRDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35003,23 +34990,23 @@ new CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::LocalProgrammingFeatures::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocalProgrammingFeaturesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalProgrammingFeaturesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge( + new MTRDoorLockLocalProgrammingFeaturesAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -35042,10 +35029,10 @@ new CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackBridge( - (void)readAttributeWrongCodeEntryLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::WrongCodeEntryLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -35055,17 +35042,17 @@ - (void)writeAttributeWrongCodeEntryLimitWithValue:(NSNumber * _Nonnull)value co [self writeAttributeWrongCodeEntryLimitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeWrongCodeEntryLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -35075,22 +35062,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::WrongCodeEntryLimit::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeWrongCodeEntryLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35099,23 +35086,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::WrongCodeEntryLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWrongCodeEntryLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWrongCodeEntryLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::WrongCodeEntryLimit::TypeInfo; @@ -35137,10 +35124,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeUserCodeTemporaryDisableTimeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::UserCodeTemporaryDisableTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -35153,17 +35140,17 @@ - (void)writeAttributeUserCodeTemporaryDisableTimeWithValue:(NSNumber * _Nonnull completionHandler:completionHandler]; } - (void)writeAttributeUserCodeTemporaryDisableTimeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -35173,22 +35160,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::UserCodeTemporaryDisableTime::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUserCodeTemporaryDisableTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35197,23 +35184,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::UserCodeTemporaryDisableTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUserCodeTemporaryDisableTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUserCodeTemporaryDisableTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::UserCodeTemporaryDisableTime::TypeInfo; @@ -35235,10 +35222,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSendPINOverTheAirWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::SendPINOverTheAir::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -35248,17 +35235,17 @@ - (void)writeAttributeSendPINOverTheAirWithValue:(NSNumber * _Nonnull)value comp [self writeAttributeSendPINOverTheAirWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeSendPINOverTheAirWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -35268,21 +35255,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::SendPINOverTheAir::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSendPINOverTheAirWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35291,23 +35278,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::SendPINOverTheAir::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSendPINOverTheAirWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSendPINOverTheAirWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::SendPINOverTheAir::TypeInfo; @@ -35329,10 +35316,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeRequirePINforRemoteOperationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::RequirePINforRemoteOperation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -35345,17 +35332,17 @@ - (void)writeAttributeRequirePINforRemoteOperationWithValue:(NSNumber * _Nonnull completionHandler:completionHandler]; } - (void)writeAttributeRequirePINforRemoteOperationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -35365,22 +35352,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::RequirePINforRemoteOperation::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRequirePINforRemoteOperationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35389,23 +35376,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::RequirePINforRemoteOperation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRequirePINforRemoteOperationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRequirePINforRemoteOperationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::RequirePINforRemoteOperation::TypeInfo; @@ -35427,10 +35414,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeExpiringUserTimeoutWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::ExpiringUserTimeout::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -35440,17 +35427,17 @@ - (void)writeAttributeExpiringUserTimeoutWithValue:(NSNumber * _Nonnull)value co [self writeAttributeExpiringUserTimeoutWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeExpiringUserTimeoutWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -35460,22 +35447,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = DoorLock::Attributes::ExpiringUserTimeout::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeExpiringUserTimeoutWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35484,23 +35471,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::ExpiringUserTimeout::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeExpiringUserTimeoutWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeExpiringUserTimeoutWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::ExpiringUserTimeout::TypeInfo; @@ -35522,24 +35509,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge( + new MTRDoorLockGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35548,23 +35535,23 @@ new CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge( + new MTRDoorLockGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -35587,24 +35574,24 @@ new CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge( + new MTRDoorLockAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35613,23 +35600,23 @@ new CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge( + new MTRDoorLockAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -35652,22 +35639,22 @@ new CHIPDoorLockAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockAttributeListListAttributeCallbackBridge( + new MTRDoorLockAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge( + new MTRDoorLockAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35676,23 +35663,23 @@ new CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoorLockAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoorLockAttributeListListAttributeCallbackBridge( + new MTRDoorLockAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -35715,21 +35702,21 @@ new CHIPDoorLockAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35738,22 +35725,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; @@ -35775,22 +35762,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -35799,23 +35786,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; @@ -35836,7 +35823,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPWindowCovering +@implementation MTRWindowCovering - (chip::Controller::ClusterBase *)getCluster { @@ -35847,7 +35834,7 @@ - (void)upOrOpenWithCompletionHandler:(StatusCompletion)completionHandler { [self upOrOpenWithParams:nil completionHandler:completionHandler]; } -- (void)upOrOpenWithParams:(CHIPWindowCoveringClusterUpOrOpenParams * _Nullable)params +- (void)upOrOpenWithParams:(MTRWindowCoveringClusterUpOrOpenParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35859,14 +35846,14 @@ - (void)upOrOpenWithParams:(CHIPWindowCoveringClusterUpOrOpenParams * _Nullable) } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -35876,7 +35863,7 @@ - (void)downOrCloseWithCompletionHandler:(StatusCompletion)completionHandler { [self downOrCloseWithParams:nil completionHandler:completionHandler]; } -- (void)downOrCloseWithParams:(CHIPWindowCoveringClusterDownOrCloseParams * _Nullable)params +- (void)downOrCloseWithParams:(MTRWindowCoveringClusterDownOrCloseParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35888,14 +35875,14 @@ - (void)downOrCloseWithParams:(CHIPWindowCoveringClusterDownOrCloseParams * _Nul } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -35905,7 +35892,7 @@ - (void)stopMotionWithCompletionHandler:(StatusCompletion)completionHandler { [self stopMotionWithParams:nil completionHandler:completionHandler]; } -- (void)stopMotionWithParams:(CHIPWindowCoveringClusterStopMotionParams * _Nullable)params +- (void)stopMotionWithParams:(MTRWindowCoveringClusterStopMotionParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35917,20 +35904,20 @@ - (void)stopMotionWithParams:(CHIPWindowCoveringClusterStopMotionParams * _Nulla } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)goToLiftValueWithParams:(CHIPWindowCoveringClusterGoToLiftValueParams *)params +- (void)goToLiftValueWithParams:(MTRWindowCoveringClusterGoToLiftValueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35943,20 +35930,20 @@ - (void)goToLiftValueWithParams:(CHIPWindowCoveringClusterGoToLiftValueParams *) } request.liftValue = params.liftValue.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)goToLiftPercentageWithParams:(CHIPWindowCoveringClusterGoToLiftPercentageParams *)params +- (void)goToLiftPercentageWithParams:(MTRWindowCoveringClusterGoToLiftPercentageParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35969,20 +35956,20 @@ - (void)goToLiftPercentageWithParams:(CHIPWindowCoveringClusterGoToLiftPercentag } request.liftPercent100thsValue = params.liftPercent100thsValue.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)goToTiltValueWithParams:(CHIPWindowCoveringClusterGoToTiltValueParams *)params +- (void)goToTiltValueWithParams:(MTRWindowCoveringClusterGoToTiltValueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -35995,20 +35982,20 @@ - (void)goToTiltValueWithParams:(CHIPWindowCoveringClusterGoToTiltValueParams *) } request.tiltValue = params.tiltValue.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)goToTiltPercentageWithParams:(CHIPWindowCoveringClusterGoToTiltPercentageParams *)params +- (void)goToTiltPercentageWithParams:(MTRWindowCoveringClusterGoToTiltPercentageParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -36021,14 +36008,14 @@ - (void)goToTiltPercentageWithParams:(CHIPWindowCoveringClusterGoToTiltPercentag } request.tiltPercent100thsValue = params.tiltPercent100thsValue.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -36036,22 +36023,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringClusterTypeAttributeCallbackBridge( + new MTRWindowCoveringClusterTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::Type::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36060,22 +36047,22 @@ new CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::Type::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringClusterTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringClusterTypeAttributeCallbackBridge( + new MTRWindowCoveringClusterTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -36098,23 +36085,23 @@ new CHIPWindowCoveringClusterTypeAttributeCallbackBridge( - (void)readAttributePhysicalClosedLimitLiftWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePhysicalClosedLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36123,23 +36110,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePhysicalClosedLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhysicalClosedLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; @@ -36161,23 +36148,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePhysicalClosedLimitTiltWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePhysicalClosedLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36186,23 +36173,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePhysicalClosedLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhysicalClosedLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; @@ -36224,24 +36211,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentPositionLiftWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36250,23 +36237,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; @@ -36288,24 +36275,24 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeCurrentPositionTiltWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36314,23 +36301,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; @@ -36352,23 +36339,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNumberOfActuationsLiftWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfActuationsLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36377,23 +36364,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfActuationsLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfActuationsLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; @@ -36415,23 +36402,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNumberOfActuationsTiltWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfActuationsTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36440,23 +36427,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfActuationsTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfActuationsTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; @@ -36478,22 +36465,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeConfigStatusWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringConfigStatusAttributeCallbackBridge( + new MTRWindowCoveringConfigStatusAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::ConfigStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeConfigStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36502,23 +36489,23 @@ new CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::ConfigStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringConfigStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeConfigStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeConfigStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringConfigStatusAttributeCallbackBridge( + new MTRWindowCoveringConfigStatusAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -36541,24 +36528,24 @@ new CHIPWindowCoveringConfigStatusAttributeCallbackBridge( - (void)readAttributeCurrentPositionLiftPercentageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionLiftPercentageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36567,23 +36554,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionLiftPercentageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftPercentageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; @@ -36605,24 +36592,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeCurrentPositionTiltPercentageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionTiltPercentageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36631,23 +36618,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionTiltPercentageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltPercentageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; @@ -36669,23 +36656,23 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeOperationalStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringOperationalStatusAttributeCallbackBridge( + new MTRWindowCoveringOperationalStatusAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::OperationalStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOperationalStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36694,23 +36681,23 @@ new CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::OperationalStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringOperationalStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOperationalStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperationalStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringOperationalStatusAttributeCallbackBridge( + new MTRWindowCoveringOperationalStatusAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -36733,24 +36720,24 @@ new CHIPWindowCoveringOperationalStatusAttributeCallbackBridge( - (void)readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTargetPositionLiftPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36759,23 +36746,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTargetPositionLiftPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetPositionLiftPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; @@ -36797,24 +36784,24 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTargetPositionTiltPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36823,23 +36810,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTargetPositionTiltPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetPositionTiltPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; @@ -36861,23 +36848,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeEndProductTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge( + new MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::EndProductType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEndProductTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36886,23 +36873,23 @@ new CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::EndProductType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringClusterEndProductTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEndProductTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEndProductTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge( + new MTRWindowCoveringClusterEndProductTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -36925,24 +36912,24 @@ new CHIPWindowCoveringClusterEndProductTypeAttributeCallbackBridge( - (void)readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionLiftPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -36951,23 +36938,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionLiftPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionLiftPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; @@ -36989,24 +36976,24 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentPositionTiltPercent100thsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37015,23 +37002,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentPositionTiltPercent100thsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentPositionTiltPercent100thsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; @@ -37053,23 +37040,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeInstalledOpenLimitLiftWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstalledOpenLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37078,23 +37065,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstalledOpenLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledOpenLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; @@ -37116,23 +37103,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstalledClosedLimitLiftWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstalledClosedLimitLiftWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37141,23 +37128,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstalledClosedLimitLiftWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledClosedLimitLiftWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; @@ -37179,23 +37166,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstalledOpenLimitTiltWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstalledOpenLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37204,23 +37191,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstalledOpenLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledOpenLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; @@ -37242,23 +37229,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstalledClosedLimitTiltWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstalledClosedLimitTiltWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37267,23 +37254,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstalledClosedLimitTiltWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstalledClosedLimitTiltWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; @@ -37304,11 +37291,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringModeAttributeCallbackBridge( + new MTRWindowCoveringModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::Mode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -37318,17 +37305,17 @@ - (void)writeAttributeModeWithValue:(NSNumber * _Nonnull)value completionHandler [self writeAttributeModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -37338,20 +37325,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = WindowCovering::Attributes::Mode::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37360,22 +37347,22 @@ new CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::Mode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringModeAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRWindowCoveringModeAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::Mode::TypeInfo; @@ -37397,22 +37384,22 @@ new CHIPWindowCoveringModeAttributeCallbackBridge(queue, completionHandler, ^(Ca - (void)readAttributeSafetyStatusWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringSafetyStatusAttributeCallbackBridge( + new MTRWindowCoveringSafetyStatusAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::SafetyStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSafetyStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37421,23 +37408,23 @@ new CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::SafetyStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringSafetyStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSafetyStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSafetyStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringSafetyStatusAttributeCallbackBridge( + new MTRWindowCoveringSafetyStatusAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -37460,24 +37447,24 @@ new CHIPWindowCoveringSafetyStatusAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge( + new MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37486,23 +37473,23 @@ new CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = WindowCovering::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge( + new MTRWindowCoveringGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -37525,24 +37512,24 @@ new CHIPWindowCoveringGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge( + new MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37551,23 +37538,23 @@ new CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = WindowCovering::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge( + new MTRWindowCoveringAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -37590,22 +37577,22 @@ new CHIPWindowCoveringAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringAttributeListListAttributeCallbackBridge( + new MTRWindowCoveringAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge( + new MTRWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37614,23 +37601,23 @@ new CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWindowCoveringAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWindowCoveringAttributeListListAttributeCallbackBridge( + new MTRWindowCoveringAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -37653,21 +37640,21 @@ new CHIPWindowCoveringAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37676,22 +37663,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; @@ -37713,22 +37700,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37737,23 +37724,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; @@ -37774,14 +37761,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPBarrierControl +@implementation MTRBarrierControl - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)barrierControlGoToPercentWithParams:(CHIPBarrierControlClusterBarrierControlGoToPercentParams *)params +- (void)barrierControlGoToPercentWithParams:(MTRBarrierControlClusterBarrierControlGoToPercentParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -37794,14 +37781,14 @@ - (void)barrierControlGoToPercentWithParams:(CHIPBarrierControlClusterBarrierCon } request.percentOpen = params.percentOpen.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -37811,7 +37798,7 @@ - (void)barrierControlStopWithCompletionHandler:(StatusCompletion)completionHand { [self barrierControlStopWithParams:nil completionHandler:completionHandler]; } -- (void)barrierControlStopWithParams:(CHIPBarrierControlClusterBarrierControlStopParams * _Nullable)params +- (void)barrierControlStopWithParams:(MTRBarrierControlClusterBarrierControlStopParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -37823,14 +37810,14 @@ - (void)barrierControlStopWithParams:(CHIPBarrierControlClusterBarrierControlSto } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -37839,22 +37826,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeBarrierMovingStateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBarrierMovingStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37863,23 +37850,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierMovingStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierMovingStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; @@ -37901,23 +37888,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBarrierSafetyStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBarrierSafetyStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37926,23 +37913,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierSafetyStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierSafetyStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; @@ -37964,23 +37951,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierCapabilitiesWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBarrierCapabilitiesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -37989,23 +37976,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierCapabilitiesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCapabilitiesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; @@ -38027,10 +38014,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeBarrierOpenEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38040,17 +38027,17 @@ - (void)writeAttributeBarrierOpenEventsWithValue:(NSNumber * _Nonnull)value comp [self writeAttributeBarrierOpenEventsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBarrierOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38060,21 +38047,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierOpenEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38083,23 +38070,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierOpenEvents::TypeInfo; @@ -38121,10 +38108,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierCloseEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierCloseEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38134,17 +38121,17 @@ - (void)writeAttributeBarrierCloseEventsWithValue:(NSNumber * _Nonnull)value com [self writeAttributeBarrierCloseEventsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBarrierCloseEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38154,21 +38141,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierCloseEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierCloseEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38177,23 +38164,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierCloseEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierCloseEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCloseEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierCloseEvents::TypeInfo; @@ -38215,10 +38202,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierCommandOpenEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierCommandOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38231,17 +38218,17 @@ - (void)writeAttributeBarrierCommandOpenEventsWithValue:(NSNumber * _Nonnull)val completionHandler:completionHandler]; } - (void)writeAttributeBarrierCommandOpenEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38251,22 +38238,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierCommandOpenEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierCommandOpenEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38275,23 +38262,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierCommandOpenEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierCommandOpenEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCommandOpenEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierCommandOpenEvents::TypeInfo; @@ -38313,10 +38300,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierCommandCloseEventsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierCommandCloseEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38329,17 +38316,17 @@ - (void)writeAttributeBarrierCommandCloseEventsWithValue:(NSNumber * _Nonnull)va completionHandler:completionHandler]; } - (void)writeAttributeBarrierCommandCloseEventsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38349,22 +38336,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierCommandCloseEvents::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierCommandCloseEventsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38373,23 +38360,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierCommandCloseEvents::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierCommandCloseEventsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierCommandCloseEventsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierCommandCloseEvents::TypeInfo; @@ -38411,10 +38398,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierOpenPeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierOpenPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38424,17 +38411,17 @@ - (void)writeAttributeBarrierOpenPeriodWithValue:(NSNumber * _Nonnull)value comp [self writeAttributeBarrierOpenPeriodWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBarrierOpenPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38444,21 +38431,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierOpenPeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierOpenPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38467,23 +38454,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierOpenPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierOpenPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierOpenPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierOpenPeriod::TypeInfo; @@ -38505,10 +38492,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierClosePeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierClosePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -38518,17 +38505,17 @@ - (void)writeAttributeBarrierClosePeriodWithValue:(NSNumber * _Nonnull)value com [self writeAttributeBarrierClosePeriodWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBarrierClosePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -38538,21 +38525,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = BarrierControl::Attributes::BarrierClosePeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBarrierClosePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38561,23 +38548,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierClosePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierClosePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierClosePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierClosePeriod::TypeInfo; @@ -38599,22 +38586,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeBarrierPositionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeBarrierPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38623,23 +38610,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBarrierPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBarrierPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; @@ -38661,24 +38648,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge( + new MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38687,23 +38674,23 @@ new CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = BarrierControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBarrierControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge( + new MTRBarrierControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -38726,24 +38713,24 @@ new CHIPBarrierControlGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge( + new MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38752,23 +38739,23 @@ new CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = BarrierControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBarrierControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge( + new MTRBarrierControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -38791,22 +38778,22 @@ new CHIPBarrierControlAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlAttributeListListAttributeCallbackBridge( + new MTRBarrierControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRBarrierControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38815,23 +38802,23 @@ new CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBarrierControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBarrierControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBarrierControlAttributeListListAttributeCallbackBridge( + new MTRBarrierControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -38854,21 +38841,21 @@ new CHIPBarrierControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38877,22 +38864,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; @@ -38914,22 +38901,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -38938,23 +38925,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; @@ -38975,7 +38962,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPPumpConfigurationAndControl +@implementation MTRPumpConfigurationAndControl - (chip::Controller::ClusterBase *)getCluster { @@ -38985,22 +38972,22 @@ @implementation CHIPPumpConfigurationAndControl - (void)readAttributeMaxPressureWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39009,23 +38996,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; @@ -39047,22 +39034,22 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxSpeedWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39071,22 +39058,22 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; @@ -39107,22 +39094,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxFlowWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39131,22 +39118,22 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; @@ -39168,23 +39155,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinConstPressureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinConstPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39193,23 +39180,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinConstPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; @@ -39231,23 +39218,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxConstPressureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxConstPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39256,23 +39243,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxConstPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; @@ -39294,23 +39281,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinCompPressureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinCompPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39319,23 +39306,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinCompPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinCompPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; @@ -39357,23 +39344,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxCompPressureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxCompPressureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39382,23 +39369,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxCompPressureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxCompPressureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; @@ -39420,23 +39407,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinConstSpeedWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinConstSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39445,23 +39432,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinConstSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; @@ -39483,23 +39470,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxConstSpeedWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxConstSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39508,23 +39495,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxConstSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; @@ -39546,22 +39533,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinConstFlowWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinConstFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39570,23 +39557,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinConstFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; @@ -39608,22 +39595,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxConstFlowWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxConstFlowWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39632,23 +39619,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxConstFlowWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstFlowWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; @@ -39670,22 +39657,22 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinConstTempWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinConstTempWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39694,23 +39681,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinConstTempWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinConstTempWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; @@ -39732,22 +39719,22 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxConstTempWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxConstTempWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39756,23 +39743,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxConstTempWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxConstTempWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; @@ -39794,22 +39781,22 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributePumpStatusWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge( + new MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePumpStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39818,22 +39805,22 @@ new CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge } using TypeInfo = PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPumpConfigurationAndControlPumpStatusAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePumpStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePumpStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge( + new MTRPumpConfigurationAndControlPumpStatusAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -39856,25 +39843,25 @@ new CHIPPumpConfigurationAndControlPumpStatusAttributeCallbackBridge( - (void)readAttributeEffectiveOperationModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEffectiveOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39884,10 +39871,10 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubs using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge:: + MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -39895,13 +39882,13 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeEffectiveOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEffectiveOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -39925,24 +39912,24 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBrid - (void)readAttributeEffectiveControlModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEffectiveControlModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -39951,23 +39938,23 @@ new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscr } using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEffectiveControlModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEffectiveControlModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -39991,22 +39978,22 @@ new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge - (void)readAttributeCapacityWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40015,22 +40002,22 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; @@ -40051,22 +40038,22 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeSpeedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40075,22 +40062,22 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; @@ -40112,11 +40099,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeLifetimeRunningHoursWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeRunningHours::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -40127,17 +40114,17 @@ - (void)writeAttributeLifetimeRunningHoursWithValue:(NSNumber * _Nullable)value [self writeAttributeLifetimeRunningHoursWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLifetimeRunningHoursWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -40152,22 +40139,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedIntValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLifetimeRunningHoursWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40176,23 +40163,23 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeRunningHours::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLifetimeRunningHoursWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLifetimeRunningHoursWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeRunningHours::TypeInfo; @@ -40213,22 +40200,22 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributePowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40237,22 +40224,22 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; @@ -40274,11 +40261,11 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeLifetimeEnergyConsumedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -40291,17 +40278,17 @@ - (void)writeAttributeLifetimeEnergyConsumedWithValue:(NSNumber * _Nullable)valu completionHandler:completionHandler]; } - (void)writeAttributeLifetimeEnergyConsumedWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -40316,22 +40303,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedIntValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLifetimeEnergyConsumedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40340,23 +40327,23 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLifetimeEnergyConsumedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLifetimeEnergyConsumedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo; @@ -40378,12 +40365,12 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeOperationModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -40393,17 +40380,17 @@ - (void)writeAttributeOperationModeWithValue:(NSNumber * _Nonnull)value completi [self writeAttributeOperationModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOperationModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -40413,21 +40400,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40437,10 +40424,10 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubs using TypeInfo = PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge:: + MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -40448,13 +40435,13 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -40478,11 +40465,11 @@ new CHIPPumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBrid - (void)readAttributeControlModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -40492,17 +40479,17 @@ - (void)writeAttributeControlModeWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeControlModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeControlModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -40512,20 +40499,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeControlModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40534,23 +40521,23 @@ new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscr } using TypeInfo = PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeControlModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeControlModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( + new MTRPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -40574,25 +40561,25 @@ new CHIPPumpConfigurationAndControlClusterPumpControlModeAttributeCallbackBridge - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40602,10 +40589,10 @@ new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubs using TypeInfo = PumpConfigurationAndControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge:: + MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -40613,13 +40600,13 @@ new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -40643,24 +40630,24 @@ new CHIPPumpConfigurationAndControlGeneratedCommandListListAttributeCallbackBrid - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40669,24 +40656,23 @@ new CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubsc } using TypeInfo = PumpConfigurationAndControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -40710,22 +40696,22 @@ new CHIPPumpConfigurationAndControlAcceptedCommandListListAttributeCallbackBridg - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40734,23 +40720,23 @@ new CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptio } using TypeInfo = PumpConfigurationAndControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPumpConfigurationAndControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge( + new MTRPumpConfigurationAndControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -40773,21 +40759,21 @@ new CHIPPumpConfigurationAndControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40796,22 +40782,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; @@ -40833,22 +40819,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -40857,23 +40843,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; @@ -40894,14 +40880,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPThermostat +@implementation MTRThermostat - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)setpointRaiseLowerWithParams:(CHIPThermostatClusterSetpointRaiseLowerParams *)params +- (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -40915,20 +40901,20 @@ - (void)setpointRaiseLowerWithParams:(CHIPThermostatClusterSetpointRaiseLowerPar request.mode = static_cast>(params.mode.unsignedCharValue); request.amount = params.amount.charValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)setWeeklyScheduleWithParams:(CHIPThermostatClusterSetWeeklyScheduleParams *)params +- (void)setWeeklyScheduleWithParams:(MTRThermostatClusterSetWeeklyScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -40954,11 +40940,11 @@ - (void)setWeeklyScheduleWithParams:(CHIPThermostatClusterSetWeeklyScheduleParam } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.transitions.count; ++i_0) { - if (![params.transitions[i_0] isKindOfClass:[CHIPThermostatClusterThermostatScheduleTransition class]]) { + if (![params.transitions[i_0] isKindOfClass:[MTRThermostatClusterThermostatScheduleTransition class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPThermostatClusterThermostatScheduleTransition *) params.transitions[i_0]; + auto element_0 = (MTRThermostatClusterThermostatScheduleTransition *) params.transitions[i_0]; listHolder_0->mList[i_0].transitionTime = element_0.transitionTime.unsignedShortValue; if (element_0.heatSetpoint == nil) { listHolder_0->mList[i_0].heatSetpoint.SetNull(); @@ -40979,21 +40965,21 @@ - (void)setWeeklyScheduleWithParams:(CHIPThermostatClusterSetWeeklyScheduleParam } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getWeeklyScheduleWithParams:(CHIPThermostatClusterGetWeeklyScheduleParams *)params - completionHandler:(void (^)(CHIPThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, +- (void)getWeeklyScheduleWithParams:(MTRThermostatClusterGetWeeklyScheduleParams *)params + completionHandler:(void (^)(MTRThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -41009,10 +40995,10 @@ - (void)getWeeklyScheduleWithParams:(CHIPThermostatClusterGetWeeklyScheduleParam request.modeToReturn = static_cast>(params.modeToReturn.unsignedCharValue); - new CHIPThermostatClusterGetWeeklyScheduleResponseCallbackBridge( + new MTRThermostatClusterGetWeeklyScheduleResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -41022,7 +41008,7 @@ - (void)clearWeeklyScheduleWithCompletionHandler:(StatusCompletion)completionHan { [self clearWeeklyScheduleWithParams:nil completionHandler:completionHandler]; } -- (void)clearWeeklyScheduleWithParams:(CHIPThermostatClusterClearWeeklyScheduleParams * _Nullable)params +- (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklyScheduleParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -41034,14 +41020,14 @@ - (void)clearWeeklyScheduleWithParams:(CHIPThermostatClusterClearWeeklyScheduleP } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -41050,23 +41036,23 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeLocalTemperatureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLocalTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41075,23 +41061,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocalTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; @@ -41113,23 +41099,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeOutdoorTemperatureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOutdoorTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41138,23 +41124,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOutdoorTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutdoorTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; @@ -41176,21 +41162,21 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeOccupancyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupancyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41199,22 +41185,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupancyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; @@ -41236,23 +41222,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAbsMinHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41261,23 +41247,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAbsMinHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMinHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; @@ -41299,23 +41285,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAbsMaxHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41324,23 +41310,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAbsMaxHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMaxHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; @@ -41362,23 +41348,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAbsMinCoolSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAbsMinCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41387,23 +41373,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAbsMinCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMinCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; @@ -41425,23 +41411,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAbsMaxCoolSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAbsMaxCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41450,23 +41436,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAbsMaxCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAbsMaxCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; @@ -41488,22 +41474,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePICoolingDemandWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePICoolingDemandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41512,23 +41498,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePICoolingDemandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePICoolingDemandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; @@ -41550,22 +41536,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributePIHeatingDemandWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePIHeatingDemandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41574,23 +41560,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePIHeatingDemandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePIHeatingDemandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; @@ -41612,10 +41598,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeHVACSystemTypeConfigurationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -41628,17 +41614,17 @@ - (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull) completionHandler:completionHandler]; } - (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -41648,22 +41634,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeHVACSystemTypeConfigurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41672,23 +41658,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; @@ -41710,10 +41696,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeLocalTemperatureCalibrationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::LocalTemperatureCalibration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -41726,17 +41712,17 @@ - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull) completionHandler:completionHandler]; } - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -41746,22 +41732,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::LocalTemperatureCalibration::TypeInfo; TypeInfo::Type cppValue; cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLocalTemperatureCalibrationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41770,23 +41756,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::LocalTemperatureCalibration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLocalTemperatureCalibrationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLocalTemperatureCalibrationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::LocalTemperatureCalibration::TypeInfo; @@ -41808,10 +41794,10 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOccupiedCoolingSetpointWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -41824,17 +41810,17 @@ - (void)writeAttributeOccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)valu completionHandler:completionHandler]; } - (void)writeAttributeOccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -41844,22 +41830,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOccupiedCoolingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41868,23 +41854,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupiedCoolingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedCoolingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo; @@ -41906,10 +41892,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOccupiedHeatingSetpointWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -41922,17 +41908,17 @@ - (void)writeAttributeOccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)valu completionHandler:completionHandler]; } - (void)writeAttributeOccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -41942,22 +41928,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOccupiedHeatingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -41966,23 +41952,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupiedHeatingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedHeatingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo; @@ -42004,10 +41990,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::UnoccupiedCoolingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42020,17 +42006,17 @@ - (void)writeAttributeUnoccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)va completionHandler:completionHandler]; } - (void)writeAttributeUnoccupiedCoolingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42040,22 +42026,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::UnoccupiedCoolingSetpoint::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUnoccupiedCoolingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42064,23 +42050,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::UnoccupiedCoolingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnoccupiedCoolingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedCoolingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::UnoccupiedCoolingSetpoint::TypeInfo; @@ -42102,10 +42088,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::UnoccupiedHeatingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42118,17 +42104,17 @@ - (void)writeAttributeUnoccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)va completionHandler:completionHandler]; } - (void)writeAttributeUnoccupiedHeatingSetpointWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42138,22 +42124,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::UnoccupiedHeatingSetpoint::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUnoccupiedHeatingSetpointWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42162,23 +42148,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::UnoccupiedHeatingSetpoint::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnoccupiedHeatingSetpointWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedHeatingSetpointWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::UnoccupiedHeatingSetpoint::TypeInfo; @@ -42200,10 +42186,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMinHeatSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42213,17 +42199,17 @@ - (void)writeAttributeMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value c [self writeAttributeMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42233,22 +42219,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeMinHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42257,23 +42243,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo; @@ -42295,10 +42281,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMaxHeatSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42308,17 +42294,17 @@ - (void)writeAttributeMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value c [self writeAttributeMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42328,22 +42314,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeMaxHeatSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42352,23 +42338,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxHeatSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxHeatSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo; @@ -42390,10 +42376,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMinCoolSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42403,17 +42389,17 @@ - (void)writeAttributeMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value c [self writeAttributeMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42423,22 +42409,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeMinCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42447,23 +42433,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo; @@ -42485,10 +42471,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMaxCoolSetpointLimitWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42498,17 +42484,17 @@ - (void)writeAttributeMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value c [self writeAttributeMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42518,22 +42504,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeMaxCoolSetpointLimitWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42542,23 +42528,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxCoolSetpointLimitWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxCoolSetpointLimitWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo; @@ -42580,10 +42566,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMinSetpointDeadBandWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::MinSetpointDeadBand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42593,17 +42579,17 @@ - (void)writeAttributeMinSetpointDeadBandWithValue:(NSNumber * _Nonnull)value co [self writeAttributeMinSetpointDeadBandWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeMinSetpointDeadBandWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42613,22 +42599,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::MinSetpointDeadBand::TypeInfo; TypeInfo::Type cppValue; cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeMinSetpointDeadBandWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42637,23 +42623,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::MinSetpointDeadBand::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinSetpointDeadBandWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinSetpointDeadBandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::MinSetpointDeadBand::TypeInfo; @@ -42675,10 +42661,10 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRemoteSensingWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::RemoteSensing::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42688,17 +42674,17 @@ - (void)writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull)value completi [self writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42708,21 +42694,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::RemoteSensing::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRemoteSensingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42731,23 +42717,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::RemoteSensing::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRemoteSensingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemoteSensingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::RemoteSensing::TypeInfo; @@ -42769,11 +42755,11 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeControlSequenceOfOperationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge( + new MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42786,17 +42772,17 @@ - (void)writeAttributeControlSequenceOfOperationWithValue:(NSNumber * _Nonnull)v completionHandler:completionHandler]; } - (void)writeAttributeControlSequenceOfOperationWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42806,22 +42792,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeControlSequenceOfOperationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( + new MTRThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42830,23 +42816,23 @@ new CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionB } using TypeInfo = Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThermostatClusterThermostatControlSequenceAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeControlSequenceOfOperationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeControlSequenceOfOperationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge( + new MTRThermostatClusterThermostatControlSequenceAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -42869,10 +42855,10 @@ new CHIPThermostatClusterThermostatControlSequenceAttributeCallbackBridge( - (void)readAttributeSystemModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::SystemMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -42882,17 +42868,17 @@ - (void)writeAttributeSystemModeWithValue:(NSNumber * _Nonnull)value completionH [self writeAttributeSystemModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeSystemModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -42902,20 +42888,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::SystemMode::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSystemModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42924,22 +42910,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::SystemMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSystemModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSystemModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::SystemMode::TypeInfo; @@ -42961,23 +42947,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeThermostatRunningModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeThermostatRunningModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -42986,23 +42972,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeThermostatRunningModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatRunningModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; @@ -43024,21 +43010,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeStartOfWeekWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStartOfWeekWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43047,23 +43033,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartOfWeekWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartOfWeekWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; @@ -43085,23 +43071,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNumberOfWeeklyTransitionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfWeeklyTransitionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43110,23 +43096,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfWeeklyTransitionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfWeeklyTransitionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; @@ -43148,23 +43134,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNumberOfDailyTransitionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfDailyTransitionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43173,23 +43159,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfDailyTransitionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfDailyTransitionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; @@ -43211,10 +43197,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeTemperatureSetpointHoldWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::TemperatureSetpointHold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -43227,17 +43213,17 @@ - (void)writeAttributeTemperatureSetpointHoldWithValue:(NSNumber * _Nonnull)valu completionHandler:completionHandler]; } - (void)writeAttributeTemperatureSetpointHoldWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -43247,22 +43233,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::TemperatureSetpointHold::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeTemperatureSetpointHoldWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43271,23 +43257,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::TemperatureSetpointHold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTemperatureSetpointHoldWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureSetpointHoldWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::TemperatureSetpointHold::TypeInfo; @@ -43309,11 +43295,11 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeTemperatureSetpointHoldDurationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldDuration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -43326,17 +43312,17 @@ - (void)writeAttributeTemperatureSetpointHoldDurationWithValue:(NSNumber * _Null completionHandler:completionHandler]; } - (void)writeAttributeTemperatureSetpointHoldDurationWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -43351,22 +43337,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeTemperatureSetpointHoldDurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43375,23 +43361,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldDuration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTemperatureSetpointHoldDurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureSetpointHoldDurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldDuration::TypeInfo; @@ -43413,10 +43399,10 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeThermostatProgrammingOperationModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ThermostatProgrammingOperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -43429,17 +43415,17 @@ - (void)writeAttributeThermostatProgrammingOperationModeWithValue:(NSNumber * _N completionHandler:completionHandler]; } - (void)writeAttributeThermostatProgrammingOperationModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -43449,22 +43435,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ThermostatProgrammingOperationMode::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeThermostatProgrammingOperationModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43473,23 +43459,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ThermostatProgrammingOperationMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeThermostatProgrammingOperationModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatProgrammingOperationModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ThermostatProgrammingOperationMode::TypeInfo; @@ -43511,23 +43497,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeThermostatRunningStateWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeThermostatRunningStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43536,23 +43522,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeThermostatRunningStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeThermostatRunningStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; @@ -43574,23 +43560,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeSetpointChangeSourceWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSetpointChangeSourceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43599,23 +43585,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSetpointChangeSourceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeSourceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; @@ -43637,24 +43623,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSetpointChangeAmountWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSetpointChangeAmountWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43663,23 +43649,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSetpointChangeAmountWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeAmountWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; @@ -43701,23 +43687,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeSetpointChangeSourceTimestampWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSetpointChangeSourceTimestampWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43726,23 +43712,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSetpointChangeSourceTimestampWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSetpointChangeSourceTimestampWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; @@ -43764,11 +43750,11 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOccupiedSetbackWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OccupiedSetback::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -43778,17 +43764,17 @@ - (void)writeAttributeOccupiedSetbackWithValue:(NSNumber * _Nullable)value compl [self writeAttributeOccupiedSetbackWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOccupiedSetbackWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -43803,21 +43789,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOccupiedSetbackWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43826,23 +43812,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OccupiedSetback::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupiedSetbackWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OccupiedSetback::TypeInfo; @@ -43864,23 +43850,23 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeOccupiedSetbackMinWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupiedSetbackMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43889,23 +43875,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupiedSetbackMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; @@ -43927,23 +43913,23 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeOccupiedSetbackMaxWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupiedSetbackMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -43952,23 +43938,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupiedSetbackMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupiedSetbackMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; @@ -43990,11 +43976,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeUnoccupiedSetbackWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::UnoccupiedSetback::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44004,17 +43990,17 @@ - (void)writeAttributeUnoccupiedSetbackWithValue:(NSNumber * _Nullable)value com [self writeAttributeUnoccupiedSetbackWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeUnoccupiedSetbackWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44029,21 +44015,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUnoccupiedSetbackWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44052,23 +44038,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::UnoccupiedSetback::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnoccupiedSetbackWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::UnoccupiedSetback::TypeInfo; @@ -44090,24 +44076,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeUnoccupiedSetbackMinWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUnoccupiedSetbackMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44116,23 +44102,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnoccupiedSetbackMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; @@ -44154,24 +44140,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeUnoccupiedSetbackMaxWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeUnoccupiedSetbackMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44180,23 +44166,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnoccupiedSetbackMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnoccupiedSetbackMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; @@ -44218,10 +44204,10 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeEmergencyHeatDeltaWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::EmergencyHeatDelta::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44231,17 +44217,17 @@ - (void)writeAttributeEmergencyHeatDeltaWithValue:(NSNumber * _Nonnull)value com [self writeAttributeEmergencyHeatDeltaWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEmergencyHeatDeltaWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44251,21 +44237,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::EmergencyHeatDelta::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEmergencyHeatDeltaWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44274,23 +44260,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::EmergencyHeatDelta::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEmergencyHeatDeltaWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEmergencyHeatDeltaWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::EmergencyHeatDelta::TypeInfo; @@ -44311,10 +44297,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeACTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44324,17 +44310,17 @@ - (void)writeAttributeACTypeWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeACTypeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44344,20 +44330,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACType::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44366,22 +44352,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACType::TypeInfo; @@ -44403,10 +44389,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeACCapacityWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACCapacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44416,17 +44402,17 @@ - (void)writeAttributeACCapacityWithValue:(NSNumber * _Nonnull)value completionH [self writeAttributeACCapacityWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACCapacityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44436,20 +44422,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACCapacity::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACCapacityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44458,22 +44444,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACCapacity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACCapacityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCapacityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACCapacity::TypeInfo; @@ -44495,10 +44481,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeACRefrigerantTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44508,17 +44494,17 @@ - (void)writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull)value comp [self writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44528,21 +44514,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACRefrigerantTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44551,23 +44537,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACRefrigerantTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACRefrigerantTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; @@ -44589,10 +44575,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeACCompressorTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44602,17 +44588,17 @@ - (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value compl [self writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44622,21 +44608,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACCompressorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44645,23 +44631,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACCompressorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCompressorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; @@ -44683,10 +44669,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeACErrorCodeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44696,17 +44682,17 @@ - (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44716,20 +44702,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACErrorCodeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44738,23 +44724,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACErrorCodeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACErrorCodeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; @@ -44776,10 +44762,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeACLouverPositionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44789,17 +44775,17 @@ - (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value compl [self writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44809,21 +44795,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACLouverPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44832,23 +44818,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACLouverPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACLouverPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; @@ -44870,23 +44856,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeACCoilTemperatureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeACCoilTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44895,23 +44881,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACCoilTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCoilTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; @@ -44933,10 +44919,10 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeACCapacityformatWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -44946,17 +44932,17 @@ - (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value compl [self writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -44966,21 +44952,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeACCapacityformatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -44989,23 +44975,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeACCapacityformatWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeACCapacityformatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; @@ -45027,24 +45013,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatGeneratedCommandListListAttributeCallbackBridge( + new MTRThermostatGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45053,23 +45039,23 @@ new CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThermostatGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatGeneratedCommandListListAttributeCallbackBridge( + new MTRThermostatGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -45092,24 +45078,24 @@ new CHIPThermostatGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatAcceptedCommandListListAttributeCallbackBridge( + new MTRThermostatAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45118,23 +45104,23 @@ new CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThermostatAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatAcceptedCommandListListAttributeCallbackBridge( + new MTRThermostatAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -45157,22 +45143,22 @@ new CHIPThermostatAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatAttributeListListAttributeCallbackBridge( + new MTRThermostatAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge( + new MTRThermostatAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45181,23 +45167,23 @@ new CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRThermostatAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatAttributeListListAttributeCallbackBridge( + new MTRThermostatAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -45220,21 +45206,21 @@ new CHIPThermostatAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45243,22 +45229,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; @@ -45280,22 +45266,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45304,23 +45290,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; @@ -45341,7 +45327,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPFanControl +@implementation MTRFanControl - (chip::Controller::ClusterBase *)getCluster { @@ -45350,11 +45336,11 @@ @implementation CHIPFanControl - (void)readAttributeFanModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlClusterFanModeTypeAttributeCallbackBridge( + new MTRFanControlClusterFanModeTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::FanMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -45364,17 +45350,17 @@ - (void)writeAttributeFanModeWithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeFanModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeFanModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -45384,20 +45370,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = FanControl::Attributes::FanMode::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeFanModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge( + new MTRFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45406,22 +45392,22 @@ new CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::FanMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFanControlClusterFanModeTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFanModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFanModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlClusterFanModeTypeAttributeCallbackBridge( + new MTRFanControlClusterFanModeTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -45444,11 +45430,11 @@ new CHIPFanControlClusterFanModeTypeAttributeCallbackBridge( - (void)readAttributeFanModeSequenceWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge( + new MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::FanModeSequence::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -45458,17 +45444,17 @@ - (void)writeAttributeFanModeSequenceWithValue:(NSNumber * _Nonnull)value comple [self writeAttributeFanModeSequenceWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeFanModeSequenceWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -45478,21 +45464,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = FanControl::Attributes::FanModeSequence::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeFanModeSequenceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge( + new MTRFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45501,23 +45487,23 @@ new CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::FanModeSequence::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFanControlClusterFanModeSequenceTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFanModeSequenceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFanModeSequenceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge( + new MTRFanControlClusterFanModeSequenceTypeAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -45540,11 +45526,11 @@ new CHIPFanControlClusterFanModeSequenceTypeAttributeCallbackBridge( - (void)readAttributePercentSettingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::PercentSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -45554,17 +45540,17 @@ - (void)writeAttributePercentSettingWithValue:(NSNumber * _Nullable)value comple [self writeAttributePercentSettingWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributePercentSettingWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -45579,21 +45565,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePercentSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45602,23 +45588,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::PercentSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePercentSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePercentSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::PercentSetting::TypeInfo; @@ -45640,22 +45626,22 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePercentCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePercentCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45664,23 +45650,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePercentCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePercentCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; @@ -45702,21 +45688,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSpeedMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSpeedMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45725,22 +45711,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSpeedMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; @@ -45762,11 +45748,11 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSpeedSettingWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::SpeedSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -45776,17 +45762,17 @@ - (void)writeAttributeSpeedSettingWithValue:(NSNumber * _Nullable)value completi [self writeAttributeSpeedSettingWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeSpeedSettingWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -45801,20 +45787,20 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSpeedSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45823,23 +45809,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::SpeedSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSpeedSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::SpeedSetting::TypeInfo; @@ -45861,21 +45847,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeSpeedCurrentWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSpeedCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45884,23 +45870,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSpeedCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSpeedCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; @@ -45922,21 +45908,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRockSupportWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRockSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -45945,23 +45931,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRockSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRockSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; @@ -45983,10 +45969,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRockSettingWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::RockSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -45996,17 +45982,17 @@ - (void)writeAttributeRockSettingWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeRockSettingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRockSettingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -46016,20 +46002,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = FanControl::Attributes::RockSetting::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRockSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46038,23 +46024,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::RockSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRockSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRockSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::RockSetting::TypeInfo; @@ -46076,21 +46062,21 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeWindSupportWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeWindSupportWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46099,23 +46085,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWindSupportWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindSupportWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; @@ -46137,10 +46123,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeWindSettingWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::WindSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -46150,17 +46136,17 @@ - (void)writeAttributeWindSettingWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeWindSettingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeWindSettingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -46170,20 +46156,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = FanControl::Attributes::WindSetting::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeWindSettingWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46192,23 +46178,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::WindSetting::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWindSettingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWindSettingWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::WindSetting::TypeInfo; @@ -46230,24 +46216,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlGeneratedCommandListListAttributeCallbackBridge( + new MTRFanControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46256,23 +46242,23 @@ new CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFanControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlGeneratedCommandListListAttributeCallbackBridge( + new MTRFanControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -46295,24 +46281,24 @@ new CHIPFanControlGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlAcceptedCommandListListAttributeCallbackBridge( + new MTRFanControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46321,23 +46307,23 @@ new CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFanControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlAcceptedCommandListListAttributeCallbackBridge( + new MTRFanControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -46360,22 +46346,22 @@ new CHIPFanControlAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlAttributeListListAttributeCallbackBridge( + new MTRFanControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRFanControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46384,23 +46370,23 @@ new CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFanControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFanControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFanControlAttributeListListAttributeCallbackBridge( + new MTRFanControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -46423,21 +46409,21 @@ new CHIPFanControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46446,22 +46432,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; @@ -46483,22 +46469,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46507,23 +46493,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; @@ -46544,7 +46530,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPThermostatUserInterfaceConfiguration +@implementation MTRThermostatUserInterfaceConfiguration - (chip::Controller::ClusterBase *)getCluster { @@ -46554,10 +46540,10 @@ @implementation CHIPThermostatUserInterfaceConfiguration - (void)readAttributeTemperatureDisplayModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -46568,17 +46554,17 @@ - (void)writeAttributeTemperatureDisplayModeWithValue:(NSNumber * _Nonnull)value [self writeAttributeTemperatureDisplayModeWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeTemperatureDisplayModeWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -46588,22 +46574,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeTemperatureDisplayModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46612,23 +46598,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTemperatureDisplayModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTemperatureDisplayModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo; @@ -46650,10 +46636,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeKeypadLockoutWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -46663,17 +46649,17 @@ - (void)writeAttributeKeypadLockoutWithValue:(NSNumber * _Nonnull)value completi [self writeAttributeKeypadLockoutWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeKeypadLockoutWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -46683,21 +46669,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeKeypadLockoutWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46706,23 +46692,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeKeypadLockoutWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeKeypadLockoutWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo; @@ -46744,10 +46730,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeScheduleProgrammingVisibilityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -46760,17 +46746,17 @@ - (void)writeAttributeScheduleProgrammingVisibilityWithValue:(NSNumber * _Nonnul completionHandler:completionHandler]; } - (void)writeAttributeScheduleProgrammingVisibilityWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -46780,22 +46766,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeScheduleProgrammingVisibilityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46804,23 +46790,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeScheduleProgrammingVisibilityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScheduleProgrammingVisibilityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo; @@ -46842,25 +46828,25 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46870,10 +46856,10 @@ new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCal using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge:: + MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -46881,13 +46867,13 @@ new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCal subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -46912,25 +46898,25 @@ new CHIPThermostatUserInterfaceConfigurationGeneratedCommandListListAttributeCal - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -46940,10 +46926,10 @@ new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCall using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge:: + MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -46951,13 +46937,13 @@ new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCall subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -46982,23 +46968,23 @@ new CHIPThermostatUserInterfaceConfigurationAcceptedCommandListListAttributeCall - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( + new MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47008,10 +46994,10 @@ new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSu using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge:: + MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -47019,13 +47005,13 @@ new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackSu subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge( + new MTRThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -47049,21 +47035,21 @@ new CHIPThermostatUserInterfaceConfigurationAttributeListListAttributeCallbackBr - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47072,22 +47058,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; @@ -47109,22 +47095,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47133,23 +47119,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; @@ -47170,14 +47156,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPColorControl +@implementation MTRColorControl - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)moveToHueWithParams:(CHIPColorControlClusterMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)moveToHueWithParams:(MTRColorControlClusterMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -47193,20 +47179,20 @@ - (void)moveToHueWithParams:(CHIPColorControlClusterMoveToHueParams *)params com request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveHueWithParams:(CHIPColorControlClusterMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)moveHueWithParams:(MTRColorControlClusterMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -47221,20 +47207,20 @@ - (void)moveHueWithParams:(CHIPColorControlClusterMoveHueParams *)params complet request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepHueWithParams:(CHIPColorControlClusterStepHueParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)stepHueWithParams:(MTRColorControlClusterStepHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -47250,20 +47236,20 @@ - (void)stepHueWithParams:(CHIPColorControlClusterStepHueParams *)params complet request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToSaturationWithParams:(CHIPColorControlClusterMoveToSaturationParams *)params +- (void)moveToSaturationWithParams:(MTRColorControlClusterMoveToSaturationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47279,20 +47265,20 @@ - (void)moveToSaturationWithParams:(CHIPColorControlClusterMoveToSaturationParam request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveSaturationWithParams:(CHIPColorControlClusterMoveSaturationParams *)params +- (void)moveSaturationWithParams:(MTRColorControlClusterMoveSaturationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47308,20 +47294,20 @@ - (void)moveSaturationWithParams:(CHIPColorControlClusterMoveSaturationParams *) request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepSaturationWithParams:(CHIPColorControlClusterStepSaturationParams *)params +- (void)stepSaturationWithParams:(MTRColorControlClusterStepSaturationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47338,20 +47324,20 @@ - (void)stepSaturationWithParams:(CHIPColorControlClusterStepSaturationParams *) request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToHueAndSaturationWithParams:(CHIPColorControlClusterMoveToHueAndSaturationParams *)params +- (void)moveToHueAndSaturationWithParams:(MTRColorControlClusterMoveToHueAndSaturationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47368,20 +47354,20 @@ - (void)moveToHueAndSaturationWithParams:(CHIPColorControlClusterMoveToHueAndSat request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToColorWithParams:(CHIPColorControlClusterMoveToColorParams *)params +- (void)moveToColorWithParams:(MTRColorControlClusterMoveToColorParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47398,20 +47384,20 @@ - (void)moveToColorWithParams:(CHIPColorControlClusterMoveToColorParams *)params request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveColorWithParams:(CHIPColorControlClusterMoveColorParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)moveColorWithParams:(MTRColorControlClusterMoveColorParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -47426,20 +47412,20 @@ - (void)moveColorWithParams:(CHIPColorControlClusterMoveColorParams *)params com request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepColorWithParams:(CHIPColorControlClusterStepColorParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)stepColorWithParams:(MTRColorControlClusterStepColorParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -47455,20 +47441,20 @@ - (void)stepColorWithParams:(CHIPColorControlClusterStepColorParams *)params com request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveToColorTemperatureWithParams:(CHIPColorControlClusterMoveToColorTemperatureParams *)params +- (void)moveToColorTemperatureWithParams:(MTRColorControlClusterMoveToColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47484,20 +47470,20 @@ - (void)moveToColorTemperatureWithParams:(CHIPColorControlClusterMoveToColorTemp request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedMoveToHueWithParams:(CHIPColorControlClusterEnhancedMoveToHueParams *)params +- (void)enhancedMoveToHueWithParams:(MTRColorControlClusterEnhancedMoveToHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47514,20 +47500,20 @@ - (void)enhancedMoveToHueWithParams:(CHIPColorControlClusterEnhancedMoveToHuePar request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedMoveHueWithParams:(CHIPColorControlClusterEnhancedMoveHueParams *)params +- (void)enhancedMoveHueWithParams:(MTRColorControlClusterEnhancedMoveHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47543,20 +47529,20 @@ - (void)enhancedMoveHueWithParams:(CHIPColorControlClusterEnhancedMoveHueParams request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedStepHueWithParams:(CHIPColorControlClusterEnhancedStepHueParams *)params +- (void)enhancedStepHueWithParams:(MTRColorControlClusterEnhancedStepHueParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47573,20 +47559,20 @@ - (void)enhancedStepHueWithParams:(CHIPColorControlClusterEnhancedStepHueParams request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)enhancedMoveToHueAndSaturationWithParams:(CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams *)params +- (void)enhancedMoveToHueAndSaturationWithParams:(MTRColorControlClusterEnhancedMoveToHueAndSaturationParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47603,20 +47589,20 @@ - (void)enhancedMoveToHueAndSaturationWithParams:(CHIPColorControlClusterEnhance request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)colorLoopSetWithParams:(CHIPColorControlClusterColorLoopSetParams *)params +- (void)colorLoopSetWithParams:(MTRColorControlClusterColorLoopSetParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47635,20 +47621,20 @@ - (void)colorLoopSetWithParams:(CHIPColorControlClusterColorLoopSetParams *)para request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stopMoveStepWithParams:(CHIPColorControlClusterStopMoveStepParams *)params +- (void)stopMoveStepWithParams:(MTRColorControlClusterStopMoveStepParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47662,20 +47648,20 @@ - (void)stopMoveStepWithParams:(CHIPColorControlClusterStopMoveStepParams *)para request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)moveColorTemperatureWithParams:(CHIPColorControlClusterMoveColorTemperatureParams *)params +- (void)moveColorTemperatureWithParams:(MTRColorControlClusterMoveColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47693,20 +47679,20 @@ - (void)moveColorTemperatureWithParams:(CHIPColorControlClusterMoveColorTemperat request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stepColorTemperatureWithParams:(CHIPColorControlClusterStepColorTemperatureParams *)params +- (void)stepColorTemperatureWithParams:(MTRColorControlClusterStepColorTemperatureParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -47725,14 +47711,14 @@ - (void)stepColorTemperatureWithParams:(CHIPColorControlClusterStepColorTemperat request.optionsMask = params.optionsMask.unsignedCharValue; request.optionsOverride = params.optionsOverride.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -47741,21 +47727,21 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeCurrentHueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47764,22 +47750,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; @@ -47801,22 +47787,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCurrentSaturationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentSaturationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47825,23 +47811,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentSaturationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentSaturationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; @@ -47863,22 +47849,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRemainingTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRemainingTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47887,23 +47873,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRemainingTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRemainingTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; @@ -47925,21 +47911,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentXWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -47948,22 +47934,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; @@ -47985,21 +47971,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentYWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48008,22 +47994,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; @@ -48045,22 +48031,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDriftCompensationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDriftCompensationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48069,23 +48055,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDriftCompensationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDriftCompensationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; @@ -48107,22 +48093,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeCompensationTextWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCompensationTextWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48131,23 +48117,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCompensationTextWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCompensationTextWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; @@ -48169,22 +48155,22 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeColorTemperatureWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorTemperatureWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48193,23 +48179,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorTemperatureWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; @@ -48231,21 +48217,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorModeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48254,22 +48240,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; @@ -48290,10 +48276,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOptionsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Options::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -48303,17 +48289,17 @@ - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeOptionsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOptionsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -48323,20 +48309,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::Options::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOptionsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48345,22 +48331,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Options::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOptionsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOptionsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Options::TypeInfo; @@ -48382,23 +48368,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeNumberOfPrimariesWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNumberOfPrimariesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48407,23 +48393,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNumberOfPrimariesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNumberOfPrimariesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; @@ -48445,21 +48431,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary1XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary1XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48468,22 +48454,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary1XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; @@ -48505,21 +48491,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary1YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary1YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48528,22 +48514,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary1YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; @@ -48565,23 +48551,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary1IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary1IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48590,23 +48576,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary1IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary1IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; @@ -48628,21 +48614,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary2XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary2XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48651,22 +48637,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary2XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; @@ -48688,21 +48674,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary2YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary2YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48711,22 +48697,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary2YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; @@ -48748,23 +48734,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary2IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary2IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48773,23 +48759,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary2IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary2IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; @@ -48811,21 +48797,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary3XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary3XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48834,22 +48820,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary3XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; @@ -48871,21 +48857,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary3YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary3YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48894,22 +48880,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary3YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; @@ -48931,23 +48917,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary3IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary3IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -48956,23 +48942,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary3IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary3IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; @@ -48994,21 +48980,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary4XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary4XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49017,22 +49003,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary4XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; @@ -49054,21 +49040,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary4YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary4YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49077,22 +49063,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary4YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; @@ -49114,23 +49100,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary4IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary4IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49139,23 +49125,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary4IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary4IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; @@ -49177,21 +49163,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary5XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary5XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49200,22 +49186,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary5XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; @@ -49237,21 +49223,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary5YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary5YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49260,22 +49246,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary5YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; @@ -49297,23 +49283,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary5IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary5IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49322,23 +49308,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary5IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary5IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; @@ -49360,21 +49346,21 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributePrimary6XWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary6XWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49383,22 +49369,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary6XWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6XWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; @@ -49420,21 +49406,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary6YWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary6YWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49443,22 +49429,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary6YWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6YWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; @@ -49480,23 +49466,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePrimary6IntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePrimary6IntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49505,23 +49491,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePrimary6IntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePrimary6IntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; @@ -49543,10 +49529,10 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeWhitePointXWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::WhitePointX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -49556,17 +49542,17 @@ - (void)writeAttributeWhitePointXWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeWhitePointXWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeWhitePointXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -49576,20 +49562,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::WhitePointX::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeWhitePointXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49598,23 +49584,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::WhitePointX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWhitePointXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWhitePointXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::WhitePointX::TypeInfo; @@ -49636,10 +49622,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeWhitePointYWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::WhitePointY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -49649,17 +49635,17 @@ - (void)writeAttributeWhitePointYWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeWhitePointYWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeWhitePointYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -49669,20 +49655,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::WhitePointY::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeWhitePointYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49691,23 +49677,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::WhitePointY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeWhitePointYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeWhitePointYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::WhitePointY::TypeInfo; @@ -49729,10 +49715,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointRXWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointRX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -49742,17 +49728,17 @@ - (void)writeAttributeColorPointRXWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointRXWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointRXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -49762,20 +49748,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointRX::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointRXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49784,23 +49770,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointRX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointRXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointRX::TypeInfo; @@ -49822,10 +49808,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointRYWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointRY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -49835,17 +49821,17 @@ - (void)writeAttributeColorPointRYWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointRYWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointRYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -49855,20 +49841,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointRY::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointRYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49877,23 +49863,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointRY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointRYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointRY::TypeInfo; @@ -49915,11 +49901,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointRIntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointRIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -49930,17 +49916,17 @@ - (void)writeAttributeColorPointRIntensityWithValue:(NSNumber * _Nullable)value [self writeAttributeColorPointRIntensityWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointRIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -49955,22 +49941,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointRIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -49979,23 +49965,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointRIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointRIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointRIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointRIntensity::TypeInfo; @@ -50017,10 +50003,10 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeColorPointGXWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointGX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50030,17 +50016,17 @@ - (void)writeAttributeColorPointGXWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointGXWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointGXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50050,20 +50036,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointGX::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointGXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50072,23 +50058,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointGX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointGXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointGX::TypeInfo; @@ -50110,10 +50096,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointGYWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointGY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50123,17 +50109,17 @@ - (void)writeAttributeColorPointGYWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointGYWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointGYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50143,20 +50129,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointGY::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointGYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50165,23 +50151,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointGY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointGYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointGY::TypeInfo; @@ -50203,11 +50189,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointGIntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointGIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50218,17 +50204,17 @@ - (void)writeAttributeColorPointGIntensityWithValue:(NSNumber * _Nullable)value [self writeAttributeColorPointGIntensityWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointGIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50243,22 +50229,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointGIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50267,23 +50253,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointGIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointGIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointGIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointGIntensity::TypeInfo; @@ -50305,10 +50291,10 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeColorPointBXWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointBX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50318,17 +50304,17 @@ - (void)writeAttributeColorPointBXWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointBXWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointBXWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50338,20 +50324,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointBX::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointBXWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50360,23 +50346,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointBX::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointBXWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBXWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointBX::TypeInfo; @@ -50398,10 +50384,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointBYWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointBY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50411,17 +50397,17 @@ - (void)writeAttributeColorPointBYWithValue:(NSNumber * _Nonnull)value completio [self writeAttributeColorPointBYWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointBYWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50431,20 +50417,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::ColorPointBY::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointBYWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50453,23 +50439,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointBY::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointBYWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBYWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointBY::TypeInfo; @@ -50491,11 +50477,11 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorPointBIntensityWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorPointBIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -50506,17 +50492,17 @@ - (void)writeAttributeColorPointBIntensityWithValue:(NSNumber * _Nullable)value [self writeAttributeColorPointBIntensityWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeColorPointBIntensityWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -50531,22 +50517,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeColorPointBIntensityWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50555,23 +50541,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorPointBIntensity::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorPointBIntensityWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorPointBIntensityWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorPointBIntensity::TypeInfo; @@ -50593,22 +50579,22 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeEnhancedCurrentHueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEnhancedCurrentHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50617,23 +50603,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnhancedCurrentHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnhancedCurrentHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; @@ -50655,22 +50641,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeEnhancedColorModeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeEnhancedColorModeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50679,23 +50665,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnhancedColorModeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnhancedColorModeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; @@ -50717,22 +50703,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeColorLoopActiveWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorLoopActiveWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50741,23 +50727,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorLoopActiveWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopActiveWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; @@ -50779,22 +50765,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeColorLoopDirectionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorLoopDirectionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50803,23 +50789,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorLoopDirectionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopDirectionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; @@ -50841,22 +50827,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeColorLoopTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorLoopTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50865,23 +50851,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorLoopTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; @@ -50903,23 +50889,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorLoopStartEnhancedHueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorLoopStartEnhancedHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50928,23 +50914,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorLoopStartEnhancedHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopStartEnhancedHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; @@ -50966,23 +50952,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorLoopStoredEnhancedHueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -50991,23 +50977,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorLoopStoredEnhancedHueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorLoopStoredEnhancedHueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; @@ -51029,22 +51015,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorCapabilitiesWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorCapabilitiesWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51053,23 +51039,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorCapabilitiesWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorCapabilitiesWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; @@ -51091,23 +51077,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorTempPhysicalMinMiredsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorTempPhysicalMinMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51116,23 +51102,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorTempPhysicalMinMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTempPhysicalMinMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; @@ -51154,23 +51140,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeColorTempPhysicalMaxMiredsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeColorTempPhysicalMaxMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51179,23 +51165,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeColorTempPhysicalMaxMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeColorTempPhysicalMaxMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; @@ -51217,23 +51203,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCoupleColorTempToLevelMinMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51242,23 +51228,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCoupleColorTempToLevelMinMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCoupleColorTempToLevelMinMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; @@ -51280,10 +51266,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -51296,17 +51282,17 @@ - (void)writeAttributeStartUpColorTemperatureMiredsWithValue:(NSNumber * _Nonnul completionHandler:completionHandler]; } - (void)writeAttributeStartUpColorTemperatureMiredsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -51316,22 +51302,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeStartUpColorTemperatureMiredsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51340,23 +51326,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartUpColorTemperatureMiredsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartUpColorTemperatureMiredsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo; @@ -51378,24 +51364,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlGeneratedCommandListListAttributeCallbackBridge( + new MTRColorControlGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51404,23 +51390,23 @@ new CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRColorControlGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlGeneratedCommandListListAttributeCallbackBridge( + new MTRColorControlGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -51443,24 +51429,24 @@ new CHIPColorControlGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlAcceptedCommandListListAttributeCallbackBridge( + new MTRColorControlAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51469,23 +51455,23 @@ new CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRColorControlAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlAcceptedCommandListListAttributeCallbackBridge( + new MTRColorControlAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -51508,22 +51494,22 @@ new CHIPColorControlAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlAttributeListListAttributeCallbackBridge( + new MTRColorControlAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge( + new MTRColorControlAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51532,23 +51518,23 @@ new CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPColorControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRColorControlAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPColorControlAttributeListListAttributeCallbackBridge( + new MTRColorControlAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -51571,21 +51557,21 @@ new CHIPColorControlAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51594,22 +51580,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; @@ -51631,22 +51617,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51655,23 +51641,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; @@ -51692,7 +51678,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPIlluminanceMeasurement +@implementation MTRIlluminanceMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -51702,23 +51688,23 @@ @implementation CHIPIlluminanceMeasurement - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51727,23 +51713,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; @@ -51765,23 +51751,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51790,23 +51776,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; @@ -51828,23 +51814,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51853,23 +51839,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; @@ -51891,21 +51877,21 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeToleranceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51914,22 +51900,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; @@ -51951,23 +51937,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeLightSensorTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLightSensorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -51976,23 +51962,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLightSensorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLightSensorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; @@ -52014,24 +52000,24 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52040,23 +52026,23 @@ new CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscript } using TypeInfo = IlluminanceMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52079,24 +52065,24 @@ new CHIPIlluminanceMeasurementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52105,23 +52091,23 @@ new CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscripti } using TypeInfo = IlluminanceMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52144,22 +52130,22 @@ new CHIPIlluminanceMeasurementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52168,23 +52154,23 @@ new CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBrid } using TypeInfo = IlluminanceMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRIlluminanceMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge( + new MTRIlluminanceMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52207,21 +52193,21 @@ new CHIPIlluminanceMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52230,22 +52216,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; @@ -52267,22 +52253,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52291,23 +52277,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -52328,7 +52314,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPTemperatureMeasurement +@implementation MTRTemperatureMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -52338,23 +52324,23 @@ @implementation CHIPTemperatureMeasurement - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52363,23 +52349,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; @@ -52401,23 +52387,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52426,23 +52412,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; @@ -52464,23 +52450,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52489,23 +52475,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; @@ -52527,21 +52513,21 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeToleranceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52550,22 +52536,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; @@ -52587,24 +52573,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52613,23 +52599,23 @@ new CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscript } using TypeInfo = TemperatureMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52652,24 +52638,24 @@ new CHIPTemperatureMeasurementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52678,23 +52664,23 @@ new CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscripti } using TypeInfo = TemperatureMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52717,22 +52703,22 @@ new CHIPTemperatureMeasurementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge( + new MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52741,23 +52727,23 @@ new CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBrid } using TypeInfo = TemperatureMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTemperatureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge( + new MTRTemperatureMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -52780,21 +52766,21 @@ new CHIPTemperatureMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52803,22 +52789,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; @@ -52840,22 +52826,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52864,23 +52850,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -52901,7 +52887,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPPressureMeasurement +@implementation MTRPressureMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -52911,23 +52897,23 @@ @implementation CHIPPressureMeasurement - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52936,23 +52922,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; @@ -52974,23 +52960,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -52999,23 +52985,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; @@ -53037,23 +53023,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53062,23 +53048,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; @@ -53100,21 +53086,21 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeToleranceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53123,22 +53109,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; @@ -53160,22 +53146,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeScaledValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53184,23 +53170,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; @@ -53222,23 +53208,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinScaledValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53247,23 +53233,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; @@ -53285,23 +53271,23 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxScaledValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxScaledValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53310,23 +53296,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxScaledValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxScaledValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; @@ -53348,22 +53334,22 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeScaledToleranceWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeScaledToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53372,23 +53358,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeScaledToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaledToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; @@ -53409,21 +53395,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeScaleWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeScaleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53432,22 +53418,22 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeScaleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeScaleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; @@ -53469,24 +53455,24 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53495,23 +53481,23 @@ new CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscription } using TypeInfo = PressureMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPressureMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRPressureMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -53534,24 +53520,24 @@ new CHIPPressureMeasurementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53560,23 +53546,23 @@ new CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = PressureMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPressureMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRPressureMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -53599,22 +53585,22 @@ new CHIPPressureMeasurementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementAttributeListListAttributeCallbackBridge( + new MTRPressureMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53623,23 +53609,23 @@ new CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRPressureMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPPressureMeasurementAttributeListListAttributeCallbackBridge( + new MTRPressureMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -53662,21 +53648,21 @@ new CHIPPressureMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53685,22 +53671,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; @@ -53722,22 +53708,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53746,23 +53732,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -53783,7 +53769,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPFlowMeasurement +@implementation MTRFlowMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -53793,23 +53779,23 @@ @implementation CHIPFlowMeasurement - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53818,23 +53804,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; @@ -53856,23 +53842,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53881,23 +53867,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; @@ -53919,23 +53905,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -53944,23 +53930,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; @@ -53982,21 +53968,21 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeToleranceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54005,22 +53991,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; @@ -54042,24 +54028,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54068,23 +54054,23 @@ new CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = FlowMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFlowMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRFlowMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54107,24 +54093,24 @@ new CHIPFlowMeasurementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54133,23 +54119,23 @@ new CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = FlowMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFlowMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRFlowMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54172,22 +54158,22 @@ new CHIPFlowMeasurementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementAttributeListListAttributeCallbackBridge( + new MTRFlowMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54196,23 +54182,23 @@ new CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFlowMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFlowMeasurementAttributeListListAttributeCallbackBridge( + new MTRFlowMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54235,21 +54221,21 @@ new CHIPFlowMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54258,22 +54244,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; @@ -54295,22 +54281,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54319,23 +54305,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -54356,7 +54342,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPRelativeHumidityMeasurement +@implementation MTRRelativeHumidityMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -54366,23 +54352,23 @@ @implementation CHIPRelativeHumidityMeasurement - (void)readAttributeMeasuredValueWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54391,23 +54377,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; @@ -54429,23 +54415,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMinMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMinMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54454,23 +54440,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMinMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMinMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; @@ -54492,23 +54478,23 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeMaxMeasuredValueWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMaxMeasuredValueWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54517,23 +54503,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMaxMeasuredValueWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMaxMeasuredValueWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; @@ -54555,21 +54541,21 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeToleranceWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeToleranceWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54578,22 +54564,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeToleranceWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeToleranceWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; @@ -54615,25 +54601,25 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54643,10 +54629,10 @@ new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubs using TypeInfo = RelativeHumidityMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge:: + MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge:: OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); @@ -54654,13 +54640,13 @@ new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackSubs subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54684,24 +54670,24 @@ new CHIPRelativeHumidityMeasurementGeneratedCommandListListAttributeCallbackBrid - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54710,24 +54696,23 @@ new CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubsc } using TypeInfo = RelativeHumidityMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished, + MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54751,22 +54736,22 @@ new CHIPRelativeHumidityMeasurementAcceptedCommandListListAttributeCallbackBridg - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54775,23 +54760,23 @@ new CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptio } using TypeInfo = RelativeHumidityMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge( + new MTRRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -54814,21 +54799,21 @@ new CHIPRelativeHumidityMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54837,22 +54822,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; @@ -54874,22 +54859,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54898,23 +54883,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -54935,7 +54920,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPOccupancySensing +@implementation MTROccupancySensing - (chip::Controller::ClusterBase *)getCluster { @@ -54945,21 +54930,21 @@ @implementation CHIPOccupancySensing - (void)readAttributeOccupancyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupancyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -54968,22 +54953,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupancyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; @@ -55005,23 +54990,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOccupancySensorTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupancySensorTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55030,23 +55015,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupancySensorTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancySensorTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; @@ -55068,23 +55053,23 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeOccupancySensorTypeBitmapWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOccupancySensorTypeBitmapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55093,23 +55078,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOccupancySensorTypeBitmapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOccupancySensorTypeBitmapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; @@ -55131,10 +55116,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributePirOccupiedToUnoccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55147,17 +55132,17 @@ - (void)writeAttributePirOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull completionHandler:completionHandler]; } - (void)writeAttributePirOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55167,22 +55152,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePirOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55191,23 +55176,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePirOccupiedToUnoccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirOccupiedToUnoccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo; @@ -55229,10 +55214,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePirUnoccupiedToOccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55245,17 +55230,17 @@ - (void)writeAttributePirUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull completionHandler:completionHandler]; } - (void)writeAttributePirUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55265,22 +55250,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePirUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55289,23 +55274,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePirUnoccupiedToOccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirUnoccupiedToOccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo; @@ -55327,10 +55312,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePirUnoccupiedToOccupiedThresholdWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55343,17 +55328,17 @@ - (void)writeAttributePirUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Non completionHandler:completionHandler]; } - (void)writeAttributePirUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55363,22 +55348,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePirUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55387,23 +55372,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePirUnoccupiedToOccupiedThresholdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePirUnoccupiedToOccupiedThresholdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo; @@ -55425,10 +55410,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeUltrasonicOccupiedToUnoccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55441,17 +55426,17 @@ - (void)writeAttributeUltrasonicOccupiedToUnoccupiedDelayWithValue:(NSNumber * _ completionHandler:completionHandler]; } - (void)writeAttributeUltrasonicOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55461,22 +55446,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUltrasonicOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55485,23 +55470,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUltrasonicOccupiedToUnoccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicOccupiedToUnoccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo; @@ -55523,10 +55508,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeUltrasonicUnoccupiedToOccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55539,17 +55524,17 @@ - (void)writeAttributeUltrasonicUnoccupiedToOccupiedDelayWithValue:(NSNumber * _ completionHandler:completionHandler]; } - (void)writeAttributeUltrasonicUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55559,22 +55544,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUltrasonicUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55583,23 +55568,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUltrasonicUnoccupiedToOccupiedDelayWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicUnoccupiedToOccupiedDelayWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo; @@ -55621,10 +55606,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55637,17 +55622,17 @@ - (void)writeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithValue:(NSNumber completionHandler:completionHandler]; } - (void)writeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55657,22 +55642,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUltrasonicUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55681,24 +55666,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo; @@ -55720,10 +55704,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributePhysicalContactOccupiedToUnoccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55736,17 +55720,17 @@ - (void)writeAttributePhysicalContactOccupiedToUnoccupiedDelayWithValue:(NSNumbe completionHandler:completionHandler]; } - (void)writeAttributePhysicalContactOccupiedToUnoccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55756,22 +55740,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePhysicalContactOccupiedToUnoccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55780,10 +55764,10 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -55791,13 +55775,13 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } + (void)readAttributePhysicalContactOccupiedToUnoccupiedDelayWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo; @@ -55819,10 +55803,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePhysicalContactUnoccupiedToOccupiedDelayWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55835,17 +55819,17 @@ - (void)writeAttributePhysicalContactUnoccupiedToOccupiedDelayWithValue:(NSNumbe completionHandler:completionHandler]; } - (void)writeAttributePhysicalContactUnoccupiedToOccupiedDelayWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55855,22 +55839,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePhysicalContactUnoccupiedToOccupiedDelayWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55879,10 +55863,10 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -55890,13 +55874,13 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } + (void)readAttributePhysicalContactUnoccupiedToOccupiedDelayWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo; @@ -55918,10 +55902,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithCompletionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -55934,17 +55918,17 @@ - (void)writeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithValue:(NSN completionHandler:completionHandler]; } - (void)writeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -55954,22 +55938,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributePhysicalContactUnoccupiedToOccupiedThresholdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -55978,10 +55962,10 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -55989,13 +55973,13 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } + (void)readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::TypeInfo; @@ -56017,24 +56001,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge( + new MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTROccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56043,23 +56027,23 @@ new CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBri } using TypeInfo = OccupancySensing::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROccupancySensingGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge( + new MTROccupancySensingGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56082,24 +56066,24 @@ new CHIPOccupancySensingGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge( + new MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTROccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56108,23 +56092,23 @@ new CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = OccupancySensing::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROccupancySensingAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge( + new MTROccupancySensingAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56147,22 +56131,22 @@ new CHIPOccupancySensingAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingAttributeListListAttributeCallbackBridge( + new MTROccupancySensingAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge( + new MTROccupancySensingAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56171,23 +56155,23 @@ new CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOccupancySensingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROccupancySensingAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOccupancySensingAttributeListListAttributeCallbackBridge( + new MTROccupancySensingAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56210,21 +56194,21 @@ new CHIPOccupancySensingAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56233,22 +56217,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; @@ -56270,22 +56254,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56294,23 +56278,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; @@ -56331,7 +56315,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPWakeOnLan +@implementation MTRWakeOnLan - (chip::Controller::ClusterBase *)getCluster { @@ -56341,21 +56325,21 @@ @implementation CHIPWakeOnLan - (void)readAttributeMACAddressWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMACAddressWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56364,22 +56348,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMACAddressWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMACAddressWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; @@ -56401,24 +56385,24 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge( + new MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56427,23 +56411,23 @@ new CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWakeOnLanGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge( + new MTRWakeOnLanGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56466,24 +56450,24 @@ new CHIPWakeOnLanGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge( + new MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56492,23 +56476,23 @@ new CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWakeOnLanAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge( + new MTRWakeOnLanAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56531,22 +56515,22 @@ new CHIPWakeOnLanAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanAttributeListListAttributeCallbackBridge( + new MTRWakeOnLanAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge( + new MTRWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56555,23 +56539,23 @@ new CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRWakeOnLanAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPWakeOnLanAttributeListListAttributeCallbackBridge( + new MTRWakeOnLanAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56594,21 +56578,21 @@ new CHIPWakeOnLanAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56617,22 +56601,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; @@ -56654,22 +56638,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56678,23 +56662,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; @@ -56715,15 +56699,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPChannel +@implementation MTRChannel - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)changeChannelWithParams:(CHIPChannelClusterChangeChannelParams *)params - completionHandler:(void (^)(CHIPChannelClusterChangeChannelResponseParams * _Nullable data, +- (void)changeChannelWithParams:(MTRChannelClusterChangeChannelParams *)params + completionHandler:(void (^)(MTRChannelClusterChangeChannelResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -56736,16 +56720,16 @@ - (void)changeChannelWithParams:(CHIPChannelClusterChangeChannelParams *)params } request.match = [self asCharSpan:params.match]; - new CHIPChannelClusterChangeChannelResponseCallbackBridge( + new MTRChannelClusterChangeChannelResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)changeChannelByNumberWithParams:(CHIPChannelClusterChangeChannelByNumberParams *)params +- (void)changeChannelByNumberWithParams:(MTRChannelClusterChangeChannelByNumberParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -56759,20 +56743,20 @@ - (void)changeChannelByNumberWithParams:(CHIPChannelClusterChangeChannelByNumber request.majorNumber = params.majorNumber.unsignedShortValue; request.minorNumber = params.minorNumber.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)skipChannelWithParams:(CHIPChannelClusterSkipChannelParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)skipChannelWithParams:(MTRChannelClusterSkipChannelParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -56784,14 +56768,14 @@ - (void)skipChannelWithParams:(CHIPChannelClusterSkipChannelParams *)params comp } request.count = params.count.unsignedShortValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -56800,22 +56784,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeChannelListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelChannelListListAttributeCallbackBridge( + new MTRChannelChannelListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeChannelListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelChannelListListAttributeCallbackSubscriptionBridge( + new MTRChannelChannelListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56824,22 +56808,22 @@ new CHIPChannelChannelListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelChannelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelChannelListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeChannelListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeChannelListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelChannelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRChannelChannelListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; @@ -56858,26 +56842,26 @@ new CHIPChannelChannelListListAttributeCallbackBridge(queue, completionHandler, }); } -- (void)readAttributeLineupWithCompletionHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, +- (void)readAttributeLineupWithCompletionHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelLineupStructAttributeCallbackBridge( + new MTRChannelLineupStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::Lineup::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLineupWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, + reportHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelLineupStructAttributeCallbackSubscriptionBridge( + new MTRChannelLineupStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56886,23 +56870,23 @@ new CHIPChannelLineupStructAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::Lineup::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelLineupStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelLineupStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLineupWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineupWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPChannelClusterLineupInfo * _Nullable value, + completionHandler:(void (^)(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelLineupStructAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRChannelLineupStructAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Channel::Attributes::Lineup::TypeInfo; @@ -56921,26 +56905,26 @@ new CHIPChannelLineupStructAttributeCallbackBridge(queue, completionHandler, ^(C }); } -- (void)readAttributeCurrentChannelWithCompletionHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, +- (void)readAttributeCurrentChannelWithCompletionHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelCurrentChannelStructAttributeCallbackBridge( + new MTRChannelCurrentChannelStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::CurrentChannel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentChannelWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, + reportHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge( + new MTRChannelCurrentChannelStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -56949,23 +56933,23 @@ new CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::CurrentChannel::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelCurrentChannelStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelCurrentChannelStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentChannelWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentChannelWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPChannelClusterChannelInfo * _Nullable value, + completionHandler:(void (^)(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelCurrentChannelStructAttributeCallbackBridge( + new MTRChannelCurrentChannelStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -56988,24 +56972,24 @@ new CHIPChannelCurrentChannelStructAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelGeneratedCommandListListAttributeCallbackBridge( + new MTRChannelGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57014,23 +56998,23 @@ new CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelGeneratedCommandListListAttributeCallbackBridge( + new MTRChannelGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57053,24 +57037,24 @@ new CHIPChannelGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelAcceptedCommandListListAttributeCallbackBridge( + new MTRChannelAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57079,23 +57063,23 @@ new CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelAcceptedCommandListListAttributeCallbackBridge( + new MTRChannelAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57118,22 +57102,22 @@ new CHIPChannelAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelAttributeListListAttributeCallbackBridge( + new MTRChannelAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge( + new MTRChannelAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57142,60 +57126,59 @@ new CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPChannelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRChannelAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPChannelAttributeListListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRChannelAttributeListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57204,22 +57187,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; @@ -57241,22 +57224,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57265,23 +57248,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; @@ -57302,15 +57285,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPTargetNavigator +@implementation MTRTargetNavigator - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)navigateTargetWithParams:(CHIPTargetNavigatorClusterNavigateTargetParams *)params - completionHandler:(void (^)(CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, +- (void)navigateTargetWithParams:(MTRTargetNavigatorClusterNavigateTargetParams *)params + completionHandler:(void (^)(MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -57327,10 +57310,10 @@ - (void)navigateTargetWithParams:(CHIPTargetNavigatorClusterNavigateTargetParams definedValue_0 = [self asCharSpan:params.data]; } - new CHIPTargetNavigatorClusterNavigateTargetResponseCallbackBridge( + new MTRTargetNavigatorClusterNavigateTargetResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -57339,22 +57322,22 @@ new CHIPTargetNavigatorClusterNavigateTargetResponseCallbackBridge( - (void)readAttributeTargetListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorTargetListListAttributeCallbackBridge( + new MTRTargetNavigatorTargetListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::TargetList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTargetListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge( + new MTRTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57363,22 +57346,22 @@ new CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge( } using TypeInfo = TargetNavigator::Attributes::TargetList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTargetNavigatorTargetListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTargetListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTargetListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorTargetListListAttributeCallbackBridge( + new MTRTargetNavigatorTargetListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57401,22 +57384,22 @@ new CHIPTargetNavigatorTargetListListAttributeCallbackBridge( - (void)readAttributeCurrentTargetWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentTargetWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57425,23 +57408,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentTargetWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentTargetWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; @@ -57463,24 +57446,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge( + new MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57489,23 +57472,23 @@ new CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = TargetNavigator::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTargetNavigatorGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge( + new MTRTargetNavigatorGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57528,24 +57511,24 @@ new CHIPTargetNavigatorGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge( + new MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57554,23 +57537,23 @@ new CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = TargetNavigator::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTargetNavigatorAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge( + new MTRTargetNavigatorAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57593,22 +57576,22 @@ new CHIPTargetNavigatorAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorAttributeListListAttributeCallbackBridge( + new MTRTargetNavigatorAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge( + new MTRTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57617,23 +57600,23 @@ new CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = TargetNavigator::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTargetNavigatorAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTargetNavigatorAttributeListListAttributeCallbackBridge( + new MTRTargetNavigatorAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -57656,21 +57639,21 @@ new CHIPTargetNavigatorAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57679,22 +57662,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; @@ -57716,22 +57699,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -57740,23 +57723,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; @@ -57777,21 +57760,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPMediaPlayback +@implementation MTRMediaPlayback - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)playWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)playWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self playWithParams:nil completionHandler:completionHandler]; } -- (void)playWithParams:(CHIPMediaPlaybackClusterPlayParams * _Nullable)params +- (void)playWithParams:(MTRMediaPlaybackClusterPlayParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57802,23 +57785,23 @@ - (void)playWithParams:(CHIPMediaPlaybackClusterPlayParams * _Nullable)params } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)pauseWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)pauseWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self pauseWithParams:nil completionHandler:completionHandler]; } -- (void)pauseWithParams:(CHIPMediaPlaybackClusterPauseParams * _Nullable)params +- (void)pauseWithParams:(MTRMediaPlaybackClusterPauseParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57829,22 +57812,22 @@ - (void)pauseWithParams:(CHIPMediaPlaybackClusterPauseParams * _Nullable)params } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stopPlaybackWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)stopPlaybackWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self stopPlaybackWithParams:nil completionHandler:completionHandler]; } -- (void)stopPlaybackWithParams:(CHIPMediaPlaybackClusterStopPlaybackParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)stopPlaybackWithParams:(MTRMediaPlaybackClusterStopPlaybackParams * _Nullable)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -57856,23 +57839,23 @@ - (void)stopPlaybackWithParams:(CHIPMediaPlaybackClusterStopPlaybackParams * _Nu } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)startOverWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)startOverWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self startOverWithParams:nil completionHandler:completionHandler]; } -- (void)startOverWithParams:(CHIPMediaPlaybackClusterStartOverParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler +- (void)startOverWithParams:(MTRMediaPlaybackClusterStartOverParams * _Nullable)params + completionHandler: + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57883,23 +57866,23 @@ - (void)startOverWithParams:(CHIPMediaPlaybackClusterStartOverParams * _Nullable } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)previousWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)previousWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self previousWithParams:nil completionHandler:completionHandler]; } -- (void)previousWithParams:(CHIPMediaPlaybackClusterPreviousParams * _Nullable)params +- (void)previousWithParams:(MTRMediaPlaybackClusterPreviousParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57910,23 +57893,23 @@ - (void)previousWithParams:(CHIPMediaPlaybackClusterPreviousParams * _Nullable)p } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)nextWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)nextWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self nextWithParams:nil completionHandler:completionHandler]; } -- (void)nextWithParams:(CHIPMediaPlaybackClusterNextParams * _Nullable)params +- (void)nextWithParams:(MTRMediaPlaybackClusterNextParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57937,23 +57920,23 @@ - (void)nextWithParams:(CHIPMediaPlaybackClusterNextParams * _Nullable)params } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)rewindWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)rewindWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self rewindWithParams:nil completionHandler:completionHandler]; } -- (void)rewindWithParams:(CHIPMediaPlaybackClusterRewindParams * _Nullable)params +- (void)rewindWithParams:(MTRMediaPlaybackClusterRewindParams * _Nullable)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -57964,22 +57947,22 @@ - (void)rewindWithParams:(CHIPMediaPlaybackClusterRewindParams * _Nullable)param } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)fastForwardWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)fastForwardWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self fastForwardWithParams:nil completionHandler:completionHandler]; } -- (void)fastForwardWithParams:(CHIPMediaPlaybackClusterFastForwardParams * _Nullable)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)fastForwardWithParams:(MTRMediaPlaybackClusterFastForwardParams * _Nullable)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -57991,17 +57974,17 @@ - (void)fastForwardWithParams:(CHIPMediaPlaybackClusterFastForwardParams * _Null } } - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)skipForwardWithParams:(CHIPMediaPlaybackClusterSkipForwardParams *)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)skipForwardWithParams:(MTRMediaPlaybackClusterSkipForwardParams *)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -58014,17 +57997,17 @@ - (void)skipForwardWithParams:(CHIPMediaPlaybackClusterSkipForwardParams *)param } request.deltaPositionMilliseconds = params.deltaPositionMilliseconds.unsignedLongLongValue; - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)skipBackwardWithParams:(CHIPMediaPlaybackClusterSkipBackwardParams *)params - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, +- (void)skipBackwardWithParams:(MTRMediaPlaybackClusterSkipBackwardParams *)params + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -58037,18 +58020,18 @@ - (void)skipBackwardWithParams:(CHIPMediaPlaybackClusterSkipBackwardParams *)par } request.deltaPositionMilliseconds = params.deltaPositionMilliseconds.unsignedLongLongValue; - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)seekWithParams:(CHIPMediaPlaybackClusterSeekParams *)params +- (void)seekWithParams:(MTRMediaPlaybackClusterSeekParams *)params completionHandler: - (void (^)(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -58060,10 +58043,10 @@ - (void)seekWithParams:(CHIPMediaPlaybackClusterSeekParams *)params } request.position = params.position.unsignedLongLongValue; - new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( + new MTRMediaPlaybackClusterPlaybackResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -58072,22 +58055,22 @@ new CHIPMediaPlaybackClusterPlaybackResponseCallbackBridge( - (void)readAttributeCurrentStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge( + new MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::CurrentState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentStateWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge( + new MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58096,23 +58079,23 @@ new CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge } using TypeInfo = MediaPlayback::Attributes::CurrentState::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentStateWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentStateWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge( + new MTRMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -58135,22 +58118,22 @@ new CHIPMediaPlaybackClusterPlaybackStateEnumAttributeCallbackBridge( - (void)readAttributeStartTimeWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStartTimeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58159,22 +58142,22 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStartTimeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStartTimeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; @@ -58196,22 +58179,22 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeDurationWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58220,22 +58203,22 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDurationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; @@ -58254,26 +58237,26 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel }); } -- (void)readAttributeSampledPositionWithCompletionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, +- (void)readAttributeSampledPositionWithCompletionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge( + new MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::SampledPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSampledPositionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, + reportHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge( + new MTRMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58282,23 +58265,23 @@ new CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::SampledPosition::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaPlaybackSampledPositionStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSampledPositionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSampledPositionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, + completionHandler:(void (^)(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge( + new MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -58321,22 +58304,22 @@ new CHIPMediaPlaybackSampledPositionStructAttributeCallbackBridge( - (void)readAttributePlaybackSpeedWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFloatAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRFloatAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePlaybackSpeedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFloatAttributeCallbackSubscriptionBridge( + new MTRFloatAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58345,23 +58328,23 @@ new CHIPFloatAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePlaybackSpeedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePlaybackSpeedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; @@ -58383,22 +58366,22 @@ new CHIPFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeSeekRangeEndWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSeekRangeEndWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58407,23 +58390,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSeekRangeEndWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSeekRangeEndWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; @@ -58445,23 +58428,23 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeSeekRangeStartWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeSeekRangeStartWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58470,23 +58453,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSeekRangeStartWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSeekRangeStartWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; @@ -58508,24 +58491,24 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge( + new MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58534,23 +58517,23 @@ new CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge } using TypeInfo = MediaPlayback::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaPlaybackGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge( + new MTRMediaPlaybackGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -58573,24 +58556,24 @@ new CHIPMediaPlaybackGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge( + new MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58599,23 +58582,23 @@ new CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaPlaybackAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge( + new MTRMediaPlaybackAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -58638,22 +58621,22 @@ new CHIPMediaPlaybackAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackAttributeListListAttributeCallbackBridge( + new MTRMediaPlaybackAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge( + new MTRMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58662,23 +58645,23 @@ new CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaPlaybackAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaPlaybackAttributeListListAttributeCallbackBridge( + new MTRMediaPlaybackAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -58701,21 +58684,21 @@ new CHIPMediaPlaybackAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58724,22 +58707,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; @@ -58761,22 +58744,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58785,23 +58768,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; @@ -58822,14 +58805,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPMediaInput +@implementation MTRMediaInput - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)selectInputWithParams:(CHIPMediaInputClusterSelectInputParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)selectInputWithParams:(MTRMediaInputClusterSelectInputParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -58841,14 +58824,14 @@ - (void)selectInputWithParams:(CHIPMediaInputClusterSelectInputParams *)params c } request.index = params.index.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -58858,7 +58841,7 @@ - (void)showInputStatusWithCompletionHandler:(StatusCompletion)completionHandler { [self showInputStatusWithParams:nil completionHandler:completionHandler]; } -- (void)showInputStatusWithParams:(CHIPMediaInputClusterShowInputStatusParams * _Nullable)params +- (void)showInputStatusWithParams:(MTRMediaInputClusterShowInputStatusParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -58870,14 +58853,14 @@ - (void)showInputStatusWithParams:(CHIPMediaInputClusterShowInputStatusParams * } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -58887,7 +58870,7 @@ - (void)hideInputStatusWithCompletionHandler:(StatusCompletion)completionHandler { [self hideInputStatusWithParams:nil completionHandler:completionHandler]; } -- (void)hideInputStatusWithParams:(CHIPMediaInputClusterHideInputStatusParams * _Nullable)params +- (void)hideInputStatusWithParams:(MTRMediaInputClusterHideInputStatusParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -58899,20 +58882,20 @@ - (void)hideInputStatusWithParams:(CHIPMediaInputClusterHideInputStatusParams * } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)renameInputWithParams:(CHIPMediaInputClusterRenameInputParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)renameInputWithParams:(MTRMediaInputClusterRenameInputParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -58925,14 +58908,14 @@ - (void)renameInputWithParams:(CHIPMediaInputClusterRenameInputParams *)params c request.index = params.index.unsignedCharValue; request.name = [self asCharSpan:params.name]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -58941,22 +58924,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeInputListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputInputListListAttributeCallbackBridge( + new MTRMediaInputInputListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInputListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge( + new MTRMediaInputInputListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -58965,22 +58948,22 @@ new CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaInputInputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaInputInputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInputListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInputListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputInputListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRMediaInputInputListListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; @@ -59002,21 +58985,21 @@ new CHIPMediaInputInputListListAttributeCallbackBridge(queue, completionHandler, - (void)readAttributeCurrentInputWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentInputWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59025,23 +59008,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentInputWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentInputWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; @@ -59063,24 +59046,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge( + new MTRMediaInputGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59089,23 +59072,23 @@ new CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge( + new MTRMediaInputGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59128,24 +59111,24 @@ new CHIPMediaInputGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge( + new MTRMediaInputAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59154,23 +59137,23 @@ new CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge( + new MTRMediaInputAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59193,22 +59176,22 @@ new CHIPMediaInputAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputAttributeListListAttributeCallbackBridge( + new MTRMediaInputAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge( + new MTRMediaInputAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59217,23 +59200,23 @@ new CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPMediaInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRMediaInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPMediaInputAttributeListListAttributeCallbackBridge( + new MTRMediaInputAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59256,21 +59239,21 @@ new CHIPMediaInputAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59279,22 +59262,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; @@ -59316,22 +59299,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59340,23 +59323,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; @@ -59377,7 +59360,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPLowPower +@implementation MTRLowPower - (chip::Controller::ClusterBase *)getCluster { @@ -59388,7 +59371,7 @@ - (void)sleepWithCompletionHandler:(StatusCompletion)completionHandler { [self sleepWithParams:nil completionHandler:completionHandler]; } -- (void)sleepWithParams:(CHIPLowPowerClusterSleepParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)sleepWithParams:(MTRLowPowerClusterSleepParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -59399,14 +59382,14 @@ - (void)sleepWithParams:(CHIPLowPowerClusterSleepParams * _Nullable)params compl } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -59415,24 +59398,24 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge( + new MTRLowPowerGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LowPower::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59441,23 +59424,23 @@ new CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LowPower::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLowPowerGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge( + new MTRLowPowerGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59480,24 +59463,24 @@ new CHIPLowPowerGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge( + new MTRLowPowerAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LowPower::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59506,23 +59489,23 @@ new CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LowPower::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLowPowerAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge( + new MTRLowPowerAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59545,22 +59528,22 @@ new CHIPLowPowerAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerAttributeListListAttributeCallbackBridge( + new MTRLowPowerAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LowPower::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge( + new MTRLowPowerAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59569,23 +59552,23 @@ new CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = LowPower::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPLowPowerAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRLowPowerAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPLowPowerAttributeListListAttributeCallbackBridge( + new MTRLowPowerAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59608,21 +59591,21 @@ new CHIPLowPowerAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59631,22 +59614,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; @@ -59668,22 +59651,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59692,23 +59675,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; @@ -59729,16 +59712,16 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPKeypadInput +@implementation MTRKeypadInput - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)sendKeyWithParams:(CHIPKeypadInputClusterSendKeyParams *)params +- (void)sendKeyWithParams:(MTRKeypadInputClusterSendKeyParams *)params completionHandler: - (void (^)(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable data, NSError * _Nullable error))completionHandler + (void (^)(MTRKeypadInputClusterSendKeyResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -59750,10 +59733,10 @@ - (void)sendKeyWithParams:(CHIPKeypadInputClusterSendKeyParams *)params } request.keyCode = static_cast>(params.keyCode.unsignedCharValue); - new CHIPKeypadInputClusterSendKeyResponseCallbackBridge( + new MTRKeypadInputClusterSendKeyResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -59762,24 +59745,24 @@ new CHIPKeypadInputClusterSendKeyResponseCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge( + new MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = KeypadInput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59788,23 +59771,23 @@ new CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = KeypadInput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRKeypadInputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge( + new MTRKeypadInputGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59827,24 +59810,24 @@ new CHIPKeypadInputGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge( + new MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = KeypadInput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59853,23 +59836,23 @@ new CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = KeypadInput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRKeypadInputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge( + new MTRKeypadInputAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59892,22 +59875,22 @@ new CHIPKeypadInputAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputAttributeListListAttributeCallbackBridge( + new MTRKeypadInputAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = KeypadInput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge( + new MTRKeypadInputAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59916,23 +59899,23 @@ new CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = KeypadInput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPKeypadInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRKeypadInputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPKeypadInputAttributeListListAttributeCallbackBridge( + new MTRKeypadInputAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -59955,21 +59938,21 @@ new CHIPKeypadInputAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -59978,22 +59961,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; @@ -60015,22 +59998,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60039,23 +60022,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; @@ -60076,15 +60059,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPContentLauncher +@implementation MTRContentLauncher - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)launchContentWithParams:(CHIPContentLauncherClusterLaunchContentParams *)params - completionHandler:(void (^)(CHIPContentLauncherClusterLaunchResponseParams * _Nullable data, +- (void)launchContentWithParams:(MTRContentLauncherClusterLaunchContentParams *)params + completionHandler:(void (^)(MTRContentLauncherClusterLaunchResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -60105,11 +60088,11 @@ - (void)launchContentWithParams:(CHIPContentLauncherClusterLaunchContentParams * } listFreer.add(listHolder_1); for (size_t i_1 = 0; i_1 < params.search.parameterList.count; ++i_1) { - if (![params.search.parameterList[i_1] isKindOfClass:[CHIPContentLauncherClusterParameter class]]) { + if (![params.search.parameterList[i_1] isKindOfClass:[MTRContentLauncherClusterParameter class]]) { // Wrong kind of value. return; } - auto element_1 = (CHIPContentLauncherClusterParameter *) params.search.parameterList[i_1]; + auto element_1 = (MTRContentLauncherClusterParameter *) params.search.parameterList[i_1]; listHolder_1->mList[i_1].type = static_castmList[i_1].type)>>( element_1.type.unsignedCharValue); listHolder_1->mList[i_1].value = [self asCharSpan:element_1.value]; @@ -60126,11 +60109,11 @@ - (void)launchContentWithParams:(CHIPContentLauncherClusterLaunchContentParams * listFreer.add(listHolder_4); for (size_t i_4 = 0; i_4 < element_1.externalIDList.count; ++i_4) { if (![element_1.externalIDList[i_4] - isKindOfClass:[CHIPContentLauncherClusterAdditionalInfo class]]) { + isKindOfClass:[MTRContentLauncherClusterAdditionalInfo class]]) { // Wrong kind of value. return; } - auto element_4 = (CHIPContentLauncherClusterAdditionalInfo *) element_1.externalIDList[i_4]; + auto element_4 = (MTRContentLauncherClusterAdditionalInfo *) element_1.externalIDList[i_4]; listHolder_4->mList[i_4].name = [self asCharSpan:element_4.name]; listHolder_4->mList[i_4].value = [self asCharSpan:element_4.value]; } @@ -60152,18 +60135,18 @@ - (void)launchContentWithParams:(CHIPContentLauncherClusterLaunchContentParams * definedValue_0 = [self asCharSpan:params.data]; } - new CHIPContentLauncherClusterLaunchResponseCallbackBridge( + new MTRContentLauncherClusterLaunchResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)launchURLWithParams:(CHIPContentLauncherClusterLaunchURLParams *)params - completionHandler:(void (^)(CHIPContentLauncherClusterLaunchResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler +- (void)launchURLWithParams:(MTRContentLauncherClusterLaunchURLParams *)params + completionHandler: + (void (^)(MTRContentLauncherClusterLaunchResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -60273,10 +60256,10 @@ - (void)launchURLWithParams:(CHIPContentLauncherClusterLaunchURLParams *)params } } - new CHIPContentLauncherClusterLaunchResponseCallbackBridge( + new MTRContentLauncherClusterLaunchResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -60285,22 +60268,22 @@ new CHIPContentLauncherClusterLaunchResponseCallbackBridge( - (void)readAttributeAcceptHeaderWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge( + new MTRContentLauncherAcceptHeaderListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::AcceptHeader::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptHeaderWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge( + new MTRContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60309,23 +60292,23 @@ new CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge( } using TypeInfo = ContentLauncher::Attributes::AcceptHeader::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRContentLauncherAcceptHeaderListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptHeaderWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptHeaderWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge( + new MTRContentLauncherAcceptHeaderListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -60348,10 +60331,10 @@ new CHIPContentLauncherAcceptHeaderListAttributeCallbackBridge( - (void)readAttributeSupportedStreamingProtocolsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::SupportedStreamingProtocols::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -60364,17 +60347,17 @@ - (void)writeAttributeSupportedStreamingProtocolsWithValue:(NSNumber * _Nonnull) completionHandler:completionHandler]; } - (void)writeAttributeSupportedStreamingProtocolsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -60384,22 +60367,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ContentLauncher::Attributes::SupportedStreamingProtocols::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeSupportedStreamingProtocolsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60408,23 +60391,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ContentLauncher::Attributes::SupportedStreamingProtocols::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeSupportedStreamingProtocolsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeSupportedStreamingProtocolsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ContentLauncher::Attributes::SupportedStreamingProtocols::TypeInfo; @@ -60446,24 +60429,24 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge( + new MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60472,23 +60455,23 @@ new CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = ContentLauncher::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRContentLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge( + new MTRContentLauncherGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -60511,24 +60494,24 @@ new CHIPContentLauncherGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge( + new MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60537,23 +60520,23 @@ new CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridg } using TypeInfo = ContentLauncher::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRContentLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge( + new MTRContentLauncherAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -60576,22 +60559,22 @@ new CHIPContentLauncherAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAttributeListListAttributeCallbackBridge( + new MTRContentLauncherAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge( + new MTRContentLauncherAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60600,23 +60583,23 @@ new CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ContentLauncher::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPContentLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRContentLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPContentLauncherAttributeListListAttributeCallbackBridge( + new MTRContentLauncherAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -60639,21 +60622,21 @@ new CHIPContentLauncherAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60662,22 +60645,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; @@ -60699,22 +60682,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60723,23 +60706,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; @@ -60760,14 +60743,14 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPAudioOutput +@implementation MTRAudioOutput - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)selectOutputWithParams:(CHIPAudioOutputClusterSelectOutputParams *)params +- (void)selectOutputWithParams:(MTRAudioOutputClusterSelectOutputParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -60780,20 +60763,20 @@ - (void)selectOutputWithParams:(CHIPAudioOutputClusterSelectOutputParams *)param } request.index = params.index.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)renameOutputWithParams:(CHIPAudioOutputClusterRenameOutputParams *)params +- (void)renameOutputWithParams:(MTRAudioOutputClusterRenameOutputParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -60807,14 +60790,14 @@ - (void)renameOutputWithParams:(CHIPAudioOutputClusterRenameOutputParams *)param request.index = params.index.unsignedCharValue; request.name = [self asCharSpan:params.name]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -60823,22 +60806,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeOutputListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputOutputListListAttributeCallbackBridge( + new MTRAudioOutputOutputListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::OutputList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeOutputListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge( + new MTRAudioOutputOutputListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60847,22 +60830,22 @@ new CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::OutputList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAudioOutputOutputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAudioOutputOutputListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOutputListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOutputListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputOutputListListAttributeCallbackBridge( + new MTRAudioOutputOutputListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -60885,22 +60868,22 @@ new CHIPAudioOutputOutputListListAttributeCallbackBridge( - (void)readAttributeCurrentOutputWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentOutputWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60909,23 +60892,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentOutputWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentOutputWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; @@ -60947,24 +60930,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge( + new MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -60973,23 +60956,23 @@ new CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAudioOutputGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge( + new MTRAudioOutputGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61012,24 +60995,24 @@ new CHIPAudioOutputGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge( + new MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61038,23 +61021,23 @@ new CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAudioOutputAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge( + new MTRAudioOutputAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61077,22 +61060,22 @@ new CHIPAudioOutputAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputAttributeListListAttributeCallbackBridge( + new MTRAudioOutputAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge( + new MTRAudioOutputAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61101,23 +61084,23 @@ new CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAudioOutputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAudioOutputAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAudioOutputAttributeListListAttributeCallbackBridge( + new MTRAudioOutputAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61140,21 +61123,21 @@ new CHIPAudioOutputAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61163,22 +61146,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; @@ -61200,22 +61183,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61224,23 +61207,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; @@ -61261,15 +61244,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPApplicationLauncher +@implementation MTRApplicationLauncher - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)launchAppWithParams:(CHIPApplicationLauncherClusterLaunchAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)launchAppWithParams:(MTRApplicationLauncherClusterLaunchAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -61287,17 +61270,17 @@ - (void)launchAppWithParams:(CHIPApplicationLauncherClusterLaunchAppParams *)par definedValue_0 = [self asByteSpan:params.data]; } - new CHIPApplicationLauncherClusterLauncherResponseCallbackBridge( + new MTRApplicationLauncherClusterLauncherResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)stopAppWithParams:(CHIPApplicationLauncherClusterStopAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)stopAppWithParams:(MTRApplicationLauncherClusterStopAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -61311,17 +61294,17 @@ - (void)stopAppWithParams:(CHIPApplicationLauncherClusterStopAppParams *)params request.application.catalogVendorId = params.application.catalogVendorId.unsignedShortValue; request.application.applicationId = [self asCharSpan:params.application.applicationId]; - new CHIPApplicationLauncherClusterLauncherResponseCallbackBridge( + new MTRApplicationLauncherClusterLauncherResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)hideAppWithParams:(CHIPApplicationLauncherClusterHideAppParams *)params - completionHandler:(void (^)(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable data, +- (void)hideAppWithParams:(MTRApplicationLauncherClusterHideAppParams *)params + completionHandler:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -61335,10 +61318,10 @@ - (void)hideAppWithParams:(CHIPApplicationLauncherClusterHideAppParams *)params request.application.catalogVendorId = params.application.catalogVendorId.unsignedShortValue; request.application.applicationId = [self asCharSpan:params.application.applicationId]; - new CHIPApplicationLauncherClusterLauncherResponseCallbackBridge( + new MTRApplicationLauncherClusterLauncherResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -61347,22 +61330,22 @@ new CHIPApplicationLauncherClusterLauncherResponseCallbackBridge( - (void)readAttributeCatalogListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherCatalogListListAttributeCallbackBridge( + new MTRApplicationLauncherCatalogListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::CatalogList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCatalogListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge( + new MTRApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61371,22 +61354,22 @@ new CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationLauncher::Attributes::CatalogList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationLauncherCatalogListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCatalogListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCatalogListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherCatalogListListAttributeCallbackBridge( + new MTRApplicationLauncherCatalogListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61406,37 +61389,37 @@ new CHIPApplicationLauncherCatalogListListAttributeCallbackBridge( }); } -- (void)readAttributeCurrentAppWithCompletionHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, +- (void)readAttributeCurrentAppWithCompletionHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge( + new MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::CurrentApp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } -- (void)writeAttributeCurrentAppWithValue:(CHIPApplicationLauncherClusterApplicationEP * _Nullable)value +- (void)writeAttributeCurrentAppWithValue:(MTRApplicationLauncherClusterApplicationEP * _Nullable)value completionHandler:(StatusCompletion)completionHandler { - [self writeAttributeCurrentAppWithValue:(CHIPApplicationLauncherClusterApplicationEP * _Nullable) value + [self writeAttributeCurrentAppWithValue:(MTRApplicationLauncherClusterApplicationEP * _Nullable) value params:nil completionHandler:completionHandler]; } -- (void)writeAttributeCurrentAppWithValue:(CHIPApplicationLauncherClusterApplicationEP * _Nullable)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeCurrentAppWithValue:(MTRApplicationLauncherClusterApplicationEP * _Nullable)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -61456,21 +61439,21 @@ new CHIPDefaultSuccessCallbackBridge( definedValue_2 = value.endpoint.unsignedShortValue; } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeCurrentAppWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, + reportHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge( + new MTRApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61479,23 +61462,23 @@ new CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationLauncher::Attributes::CurrentApp::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationLauncherCurrentAppStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentAppWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentAppWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, + completionHandler:(void (^)(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge( + new MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61518,24 +61501,24 @@ new CHIPApplicationLauncherCurrentAppStructAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge( + new MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61544,23 +61527,23 @@ new CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscription } using TypeInfo = ApplicationLauncher::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationLauncherGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge( + new MTRApplicationLauncherGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61583,24 +61566,24 @@ new CHIPApplicationLauncherGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge( + new MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61609,23 +61592,23 @@ new CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionB } using TypeInfo = ApplicationLauncher::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationLauncherAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge( + new MTRApplicationLauncherAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61648,22 +61631,22 @@ new CHIPApplicationLauncherAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherAttributeListListAttributeCallbackBridge( + new MTRApplicationLauncherAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge( + new MTRApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61672,23 +61655,23 @@ new CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationLauncher::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationLauncherAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationLauncherAttributeListListAttributeCallbackBridge( + new MTRApplicationLauncherAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -61711,21 +61694,21 @@ new CHIPApplicationLauncherAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61734,22 +61717,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; @@ -61771,22 +61754,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61795,23 +61778,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; @@ -61832,7 +61815,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPApplicationBasic +@implementation MTRApplicationBasic - (chip::Controller::ClusterBase *)getCluster { @@ -61842,21 +61825,21 @@ @implementation CHIPApplicationBasic - (void)readAttributeVendorNameWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61865,22 +61848,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; @@ -61902,21 +61885,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeVendorIDWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVendorIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61925,22 +61908,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; @@ -61962,22 +61945,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeApplicationNameWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApplicationNameWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -61986,23 +61969,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApplicationNameWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationNameWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; @@ -62024,21 +62007,21 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeProductIDWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeProductIDWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62047,22 +62030,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeProductIDWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeProductIDWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; @@ -62082,26 +62065,26 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s } - (void)readAttributeApplicationWithCompletionHandler: - (void (^)(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))completionHandler + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicApplicationStructAttributeCallbackBridge( + new MTRApplicationBasicApplicationStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::Application::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApplicationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: - (void (^)(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62110,24 +62093,24 @@ new CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::Application::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicApplicationStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApplicationWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: - (void (^)(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, + (void (^)(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicApplicationStructAttributeCallbackBridge( + new MTRApplicationBasicApplicationStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62149,22 +62132,22 @@ new CHIPApplicationBasicApplicationStructAttributeCallbackBridge( - (void)readAttributeStatusWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge( + new MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::Status::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeStatusWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62173,22 +62156,22 @@ new CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptio } using TypeInfo = ApplicationBasic::Attributes::Status::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStatusWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStatusWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge( + new MTRApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62211,22 +62194,22 @@ new CHIPApplicationBasicClusterApplicationStatusEnumAttributeCallbackBridge( - (void)readAttributeApplicationVersionWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApplicationVersionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62235,23 +62218,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApplicationVersionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApplicationVersionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; @@ -62273,23 +62256,23 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeAllowedVendorListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge( + new MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::AllowedVendorList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAllowedVendorListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62298,23 +62281,23 @@ new CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge } using TypeInfo = ApplicationBasic::Attributes::AllowedVendorList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicAllowedVendorListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAllowedVendorListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAllowedVendorListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge( + new MTRApplicationBasicAllowedVendorListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62337,24 +62320,24 @@ new CHIPApplicationBasicAllowedVendorListListAttributeCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62363,23 +62346,23 @@ new CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBri } using TypeInfo = ApplicationBasic::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge( + new MTRApplicationBasicGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62402,24 +62385,24 @@ new CHIPApplicationBasicGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62428,23 +62411,23 @@ new CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBrid } using TypeInfo = ApplicationBasic::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge( + new MTRApplicationBasicAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62467,22 +62450,22 @@ new CHIPApplicationBasicAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAttributeListListAttributeCallbackBridge( + new MTRApplicationBasicAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge( + new MTRApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62491,23 +62474,23 @@ new CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRApplicationBasicAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPApplicationBasicAttributeListListAttributeCallbackBridge( + new MTRApplicationBasicAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62530,21 +62513,21 @@ new CHIPApplicationBasicAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62553,22 +62536,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; @@ -62590,22 +62573,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62614,23 +62597,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; @@ -62651,15 +62634,15 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPAccountLogin +@implementation MTRAccountLogin - (chip::Controller::ClusterBase *)getCluster { return &_cppCluster; } -- (void)getSetupPINWithParams:(CHIPAccountLoginClusterGetSetupPINParams *)params - completionHandler:(void (^)(CHIPAccountLoginClusterGetSetupPINResponseParams * _Nullable data, +- (void)getSetupPINWithParams:(MTRAccountLoginClusterGetSetupPINParams *)params + completionHandler:(void (^)(MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -62675,16 +62658,16 @@ - (void)getSetupPINWithParams:(CHIPAccountLoginClusterGetSetupPINParams *)params } request.tempAccountIdentifier = [self asCharSpan:params.tempAccountIdentifier]; - new CHIPAccountLoginClusterGetSetupPINResponseCallbackBridge( + new MTRAccountLoginClusterGetSetupPINResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)loginWithParams:(CHIPAccountLoginClusterLoginParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)loginWithParams:(MTRAccountLoginClusterLoginParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -62700,14 +62683,14 @@ - (void)loginWithParams:(CHIPAccountLoginClusterLoginParams *)params completionH request.tempAccountIdentifier = [self asCharSpan:params.tempAccountIdentifier]; request.setupPIN = [self asCharSpan:params.setupPIN]; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -62717,7 +62700,7 @@ - (void)logoutWithCompletionHandler:(StatusCompletion)completionHandler { [self logoutWithParams:nil completionHandler:completionHandler]; } -- (void)logoutWithParams:(CHIPAccountLoginClusterLogoutParams * _Nullable)params +- (void)logoutWithParams:(MTRAccountLoginClusterLogoutParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -62732,14 +62715,14 @@ - (void)logoutWithParams:(CHIPAccountLoginClusterLogoutParams * _Nullable)params timedInvokeTimeoutMs.SetValue(10000); } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -62748,24 +62731,24 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge( + new MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccountLogin::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62774,23 +62757,23 @@ new CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccountLogin::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccountLoginGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge( + new MTRAccountLoginGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62813,24 +62796,24 @@ new CHIPAccountLoginGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge( + new MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccountLogin::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62839,23 +62822,23 @@ new CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccountLogin::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccountLoginAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge( + new MTRAccountLoginAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62878,22 +62861,22 @@ new CHIPAccountLoginAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginAttributeListListAttributeCallbackBridge( + new MTRAccountLoginAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccountLogin::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge( + new MTRAccountLoginAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62902,23 +62885,23 @@ new CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = AccountLogin::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPAccountLoginAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRAccountLoginAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPAccountLoginAttributeListListAttributeCallbackBridge( + new MTRAccountLoginAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -62941,21 +62924,21 @@ new CHIPAccountLoginAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -62964,22 +62947,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; @@ -63001,22 +62984,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63025,23 +63008,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; @@ -63062,7 +63045,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPElectricalMeasurement +@implementation MTRElectricalMeasurement - (chip::Controller::ClusterBase *)getCluster { @@ -63073,7 +63056,7 @@ - (void)getProfileInfoCommandWithCompletionHandler:(StatusCompletion)completionH { [self getProfileInfoCommandWithParams:nil completionHandler:completionHandler]; } -- (void)getProfileInfoCommandWithParams:(CHIPElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params +- (void)getProfileInfoCommandWithParams:(MTRElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -63085,20 +63068,20 @@ - (void)getProfileInfoCommandWithParams:(CHIPElectricalMeasurementClusterGetProf } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)getMeasurementProfileCommandWithParams:(CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams *)params +- (void)getMeasurementProfileCommandWithParams:(MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -63113,14 +63096,14 @@ - (void)getMeasurementProfileCommandWithParams:(CHIPElectricalMeasurementCluster request.startTime = params.startTime.unsignedIntValue; request.numberOfIntervals = params.numberOfIntervals.unsignedCharValue; - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -63129,22 +63112,22 @@ new CHIPCommandSuccessCallbackBridge( - (void)readAttributeMeasurementTypeWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasurementTypeWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63153,23 +63136,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasurementTypeWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasurementTypeWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; @@ -63191,21 +63174,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcVoltageWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63214,22 +63197,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; @@ -63251,21 +63234,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcVoltageMinWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcVoltageMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63274,23 +63257,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcVoltageMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; @@ -63312,21 +63295,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcVoltageMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcVoltageMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63335,23 +63318,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcVoltageMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; @@ -63373,21 +63356,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcCurrentWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63396,22 +63379,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; @@ -63433,21 +63416,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcCurrentMinWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcCurrentMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63456,23 +63439,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcCurrentMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; @@ -63494,21 +63477,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcCurrentMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcCurrentMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63517,23 +63500,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcCurrentMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; @@ -63554,21 +63537,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcPowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63577,22 +63560,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; @@ -63614,21 +63597,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcPowerMinWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcPowerMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63637,22 +63620,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcPowerMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; @@ -63674,21 +63657,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcPowerMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcPowerMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63697,22 +63680,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcPowerMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; @@ -63734,23 +63717,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcVoltageMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcVoltageMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63759,23 +63742,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcVoltageMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; @@ -63797,22 +63780,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcVoltageDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcVoltageDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63821,23 +63804,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcVoltageDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcVoltageDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; @@ -63859,23 +63842,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcCurrentMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63884,23 +63867,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; @@ -63922,22 +63905,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcCurrentDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcCurrentDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -63946,23 +63929,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcCurrentDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcCurrentDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; @@ -63984,22 +63967,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcPowerMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcPowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64008,23 +63991,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcPowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; @@ -64046,22 +64029,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeDcPowerDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeDcPowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64070,23 +64053,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeDcPowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeDcPowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; @@ -64108,21 +64091,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcFrequencyWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcFrequencyWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64131,23 +64114,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcFrequencyWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; @@ -64169,22 +64152,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcFrequencyMinWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcFrequencyMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64193,23 +64176,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcFrequencyMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; @@ -64231,22 +64214,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcFrequencyMaxWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcFrequencyMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64255,23 +64238,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcFrequencyMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; @@ -64293,22 +64276,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeNeutralCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeNeutralCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64317,23 +64300,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNeutralCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNeutralCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; @@ -64355,22 +64338,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTotalActivePowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTotalActivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32sAttributeCallbackSubscriptionBridge( + new MTRInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64379,23 +64362,23 @@ new CHIPInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTotalActivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalActivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; @@ -64417,22 +64400,22 @@ new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTotalReactivePowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTotalReactivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32sAttributeCallbackSubscriptionBridge( + new MTRInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64441,23 +64424,23 @@ new CHIPInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTotalReactivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalReactivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; @@ -64479,22 +64462,22 @@ new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeTotalApparentPowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeTotalApparentPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64503,23 +64486,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTotalApparentPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTotalApparentPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; @@ -64541,23 +64524,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured1stHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured1stHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64566,23 +64549,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured1stHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured1stHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; @@ -64604,23 +64587,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured3rdHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured3rdHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64629,23 +64612,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured3rdHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured3rdHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; @@ -64667,23 +64650,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured5thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured5thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64692,23 +64675,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured5thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured5thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; @@ -64730,23 +64713,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured7thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured7thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64755,23 +64738,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured7thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured7thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; @@ -64793,23 +64776,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured9thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured9thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64818,23 +64801,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured9thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured9thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; @@ -64856,23 +64839,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasured11thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasured11thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64881,23 +64864,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasured11thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasured11thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; @@ -64919,23 +64902,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase1stHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase1stHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -64944,23 +64927,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase1stHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase1stHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; @@ -64982,23 +64965,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase3rdHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase3rdHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65007,23 +64990,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase3rdHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase3rdHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; @@ -65045,23 +65028,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase5thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase5thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65070,23 +65053,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase5thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase5thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; @@ -65108,23 +65091,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase7thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase7thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65133,23 +65116,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase7thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase7thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; @@ -65171,23 +65154,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase9thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase9thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65196,23 +65179,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase9thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase9thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; @@ -65234,23 +65217,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeMeasuredPhase11thHarmonicCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeMeasuredPhase11thHarmonicCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65259,23 +65242,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeMeasuredPhase11thHarmonicCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeMeasuredPhase11thHarmonicCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; @@ -65297,23 +65280,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcFrequencyMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcFrequencyMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65322,23 +65305,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcFrequencyMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; @@ -65360,22 +65343,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcFrequencyDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcFrequencyDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65384,23 +65367,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcFrequencyDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcFrequencyDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; @@ -65422,22 +65405,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePowerMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65446,23 +65429,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; @@ -65484,21 +65467,21 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePowerDivisorWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65507,23 +65490,23 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; @@ -65545,23 +65528,23 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeHarmonicCurrentMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeHarmonicCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65570,23 +65553,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeHarmonicCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeHarmonicCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; @@ -65608,23 +65591,23 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributePhaseHarmonicCurrentMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePhaseHarmonicCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65633,23 +65616,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePhaseHarmonicCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePhaseHarmonicCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; @@ -65671,23 +65654,23 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeInstantaneousVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstantaneousVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65696,23 +65679,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstantaneousVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; @@ -65734,23 +65717,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstantaneousLineCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstantaneousLineCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65759,23 +65742,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstantaneousLineCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousLineCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; @@ -65797,23 +65780,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstantaneousActiveCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstantaneousActiveCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65822,23 +65805,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstantaneousActiveCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousActiveCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; @@ -65860,23 +65843,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstantaneousReactiveCurrentWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstantaneousReactiveCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65885,23 +65868,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstantaneousReactiveCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousReactiveCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; @@ -65923,22 +65906,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInstantaneousPowerWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeInstantaneousPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -65947,23 +65930,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInstantaneousPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInstantaneousPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; @@ -65985,21 +65968,21 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66008,22 +65991,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; @@ -66045,22 +66028,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMinWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66069,23 +66052,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; @@ -66107,22 +66090,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66131,23 +66114,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; @@ -66169,21 +66152,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66192,22 +66175,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; @@ -66229,22 +66212,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMinWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66253,23 +66236,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; @@ -66291,22 +66274,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMaxWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66315,23 +66298,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; @@ -66353,21 +66336,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66376,23 +66359,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; @@ -66414,22 +66397,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMinWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMinWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66438,23 +66421,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMinWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; @@ -66476,22 +66459,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMaxWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMaxWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66500,23 +66483,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMaxWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; @@ -66538,22 +66521,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeReactivePowerWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReactivePowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66562,23 +66545,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReactivePowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; @@ -66600,22 +66583,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeApparentPowerWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApparentPowerWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66624,23 +66607,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApparentPowerWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; @@ -66662,21 +66645,21 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePowerFactorWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerFactorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66685,23 +66668,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerFactorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; @@ -66723,10 +66706,10 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAverageRmsVoltageMeasurementPeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -66739,17 +66722,17 @@ - (void)writeAttributeAverageRmsVoltageMeasurementPeriodWithValue:(NSNumber * _N completionHandler:completionHandler]; } - (void)writeAttributeAverageRmsVoltageMeasurementPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -66759,22 +66742,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66783,23 +66766,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsVoltageMeasurementPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsVoltageMeasurementPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo; @@ -66821,10 +66804,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsUnderVoltageCounterWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounter::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -66837,17 +66820,17 @@ - (void)writeAttributeAverageRmsUnderVoltageCounterWithValue:(NSNumber * _Nonnul completionHandler:completionHandler]; } - (void)writeAttributeAverageRmsUnderVoltageCounterWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -66857,22 +66840,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounter::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeAverageRmsUnderVoltageCounterWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66881,23 +66864,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounter::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsUnderVoltageCounterWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounter::TypeInfo; @@ -66919,10 +66902,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeOverVoltagePeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -66935,17 +66918,17 @@ - (void)writeAttributeRmsExtremeOverVoltagePeriodWithValue:(NSNumber * _Nonnull) completionHandler:completionHandler]; } - (void)writeAttributeRmsExtremeOverVoltagePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -66955,22 +66938,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRmsExtremeOverVoltagePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -66979,23 +66962,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeOverVoltagePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriod::TypeInfo; @@ -67017,10 +67000,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeUnderVoltagePeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -67033,17 +67016,17 @@ - (void)writeAttributeRmsExtremeUnderVoltagePeriodWithValue:(NSNumber * _Nonnull completionHandler:completionHandler]; } - (void)writeAttributeRmsExtremeUnderVoltagePeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -67053,22 +67036,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67077,23 +67060,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeUnderVoltagePeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo; @@ -67115,10 +67098,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSagPeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -67128,17 +67111,17 @@ - (void)writeAttributeRmsVoltageSagPeriodWithValue:(NSNumber * _Nonnull)value co [self writeAttributeRmsVoltageSagPeriodWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRmsVoltageSagPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -67148,22 +67131,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRmsVoltageSagPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67172,23 +67155,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSagPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriod::TypeInfo; @@ -67210,10 +67193,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSwellPeriodWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -67224,17 +67207,17 @@ - (void)writeAttributeRmsVoltageSwellPeriodWithValue:(NSNumber * _Nonnull)value [self writeAttributeRmsVoltageSwellPeriodWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRmsVoltageSwellPeriodWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -67244,22 +67227,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriod::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRmsVoltageSwellPeriodWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67268,23 +67251,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriod::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSwellPeriodWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriod::TypeInfo; @@ -67306,23 +67289,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcVoltageMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcVoltageMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67331,23 +67314,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcVoltageMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; @@ -67369,22 +67352,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcVoltageDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcVoltageDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67393,23 +67376,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcVoltageDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; @@ -67431,23 +67414,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcCurrentMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcCurrentMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67456,23 +67439,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcCurrentMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; @@ -67494,22 +67477,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcCurrentDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcCurrentDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67518,23 +67501,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcCurrentDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; @@ -67556,22 +67539,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcPowerMultiplierWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcPowerMultiplierWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67580,23 +67563,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcPowerMultiplierWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcPowerMultiplierWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; @@ -67618,22 +67601,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcPowerDivisorWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcPowerDivisorWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67642,23 +67625,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcPowerDivisorWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcPowerDivisorWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; @@ -67680,10 +67663,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOverloadAlarmsMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::OverloadAlarmsMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -67693,17 +67676,17 @@ - (void)writeAttributeOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value com [self writeAttributeOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -67713,21 +67696,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::OverloadAlarmsMask::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOverloadAlarmsMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67736,23 +67719,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::OverloadAlarmsMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOverloadAlarmsMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOverloadAlarmsMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::OverloadAlarmsMask::TypeInfo; @@ -67774,22 +67757,22 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeVoltageOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeVoltageOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67798,23 +67781,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVoltageOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVoltageOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; @@ -67836,22 +67819,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeCurrentOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeCurrentOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67860,23 +67843,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCurrentOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCurrentOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; @@ -67898,10 +67881,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcOverloadAlarmsMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcOverloadAlarmsMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -67911,17 +67894,17 @@ - (void)writeAttributeAcOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value c [self writeAttributeAcOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeAcOverloadAlarmsMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -67931,22 +67914,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = ElectricalMeasurement::Attributes::AcOverloadAlarmsMask::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeAcOverloadAlarmsMaskWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -67955,23 +67938,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcOverloadAlarmsMask::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcOverloadAlarmsMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcOverloadAlarmsMaskWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcOverloadAlarmsMask::TypeInfo; @@ -67993,22 +67976,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcVoltageOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcVoltageOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68017,23 +68000,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcVoltageOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcVoltageOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; @@ -68055,22 +68038,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcCurrentOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcCurrentOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68079,23 +68062,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcCurrentOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcCurrentOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; @@ -68117,23 +68100,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcActivePowerOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcActivePowerOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68142,23 +68125,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcActivePowerOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcActivePowerOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; @@ -68180,23 +68163,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAcReactivePowerOverloadWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcReactivePowerOverloadWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68205,23 +68188,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcReactivePowerOverloadWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcReactivePowerOverloadWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; @@ -68243,23 +68226,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsOverVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsOverVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68268,23 +68251,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsOverVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; @@ -68306,23 +68289,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsUnderVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsUnderVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68331,23 +68314,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsUnderVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; @@ -68369,23 +68352,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeOverVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeOverVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68394,23 +68377,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeOverVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; @@ -68432,23 +68415,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeUnderVoltageWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeUnderVoltageWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68457,23 +68440,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeUnderVoltageWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltageWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; @@ -68495,22 +68478,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSagWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSagWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68519,23 +68502,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSagWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; @@ -68557,22 +68540,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSwellWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSwellWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68581,23 +68564,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSwellWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; @@ -68619,22 +68602,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeLineCurrentPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLineCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68643,23 +68626,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLineCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; @@ -68681,23 +68664,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActiveCurrentPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68706,23 +68689,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; @@ -68744,23 +68727,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeReactiveCurrentPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReactiveCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68769,23 +68752,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReactiveCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactiveCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; @@ -68807,22 +68790,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltagePhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltagePhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68831,23 +68814,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltagePhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltagePhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; @@ -68869,23 +68852,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMinPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68894,23 +68877,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; @@ -68932,23 +68915,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMaxPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -68957,23 +68940,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; @@ -68995,22 +68978,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69019,23 +69002,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; @@ -69057,23 +69040,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMinPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69082,23 +69065,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; @@ -69120,23 +69103,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMaxPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69145,23 +69128,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; @@ -69183,22 +69166,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69207,23 +69190,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; @@ -69245,23 +69228,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMinPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMinPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69270,23 +69253,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMinPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; @@ -69308,23 +69291,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMaxPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMaxPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69333,23 +69316,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMaxPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; @@ -69371,23 +69354,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeReactivePowerPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReactivePowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69396,23 +69379,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReactivePowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; @@ -69434,23 +69417,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeApparentPowerPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApparentPowerPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69459,23 +69442,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApparentPowerPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; @@ -69497,22 +69480,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePowerFactorPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerFactorPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69521,23 +69504,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerFactorPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; @@ -69559,23 +69542,23 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69584,10 +69567,10 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -69595,13 +69578,13 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } + (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; @@ -69623,23 +69606,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsOverVoltageCounterPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsOverVoltageCounterPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69648,23 +69631,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsOverVoltageCounterPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageCounterPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; @@ -69686,23 +69669,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsUnderVoltageCounterPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsUnderVoltageCounterPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69711,23 +69694,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsUnderVoltageCounterPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; @@ -69749,23 +69732,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeOverVoltagePeriodPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeOverVoltagePeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69774,23 +69757,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; @@ -69812,23 +69795,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69837,23 +69820,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; @@ -69875,23 +69858,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSagPeriodPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSagPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69900,23 +69883,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSagPeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; @@ -69938,23 +69921,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSwellPeriodPhaseBWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSwellPeriodPhaseBWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -69963,23 +69946,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSwellPeriodPhaseBWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodPhaseBWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; @@ -70001,22 +69984,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeLineCurrentPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeLineCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70025,23 +70008,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLineCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLineCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; @@ -70063,23 +70046,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActiveCurrentPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActiveCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70088,23 +70071,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActiveCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActiveCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; @@ -70126,23 +70109,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeReactiveCurrentPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReactiveCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70151,23 +70134,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReactiveCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactiveCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; @@ -70189,22 +70172,22 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltagePhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltagePhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70213,23 +70196,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltagePhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltagePhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; @@ -70251,23 +70234,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMinPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70276,23 +70259,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; @@ -70314,23 +70297,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageMaxPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70339,23 +70322,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; @@ -70377,22 +70360,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70401,23 +70384,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; @@ -70439,23 +70422,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMinPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70464,23 +70447,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; @@ -70502,23 +70485,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsCurrentMaxPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsCurrentMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70527,23 +70510,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsCurrentMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsCurrentMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; @@ -70565,22 +70548,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70589,23 +70572,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; @@ -70627,23 +70610,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMinPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMinPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70652,23 +70635,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMinPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMinPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; @@ -70690,23 +70673,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeActivePowerMaxPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeActivePowerMaxPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70715,23 +70698,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeActivePowerMaxPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeActivePowerMaxPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; @@ -70753,23 +70736,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeReactivePowerPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeReactivePowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70778,23 +70761,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeReactivePowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeReactivePowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; @@ -70816,23 +70799,23 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeApparentPowerPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeApparentPowerPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70841,23 +70824,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeApparentPowerPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeApparentPowerPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; @@ -70879,22 +70862,22 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributePowerFactorPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributePowerFactorPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70903,23 +70886,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributePowerFactorPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributePowerFactorPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; @@ -70941,23 +70924,23 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable) subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -70966,10 +70949,10 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, @@ -70977,13 +70960,13 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } + (void)readAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithAttributeCache: - (CHIPAttributeCacheContainer *)attributeCacheContainer + (MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; @@ -71005,23 +70988,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsOverVoltageCounterPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsOverVoltageCounterPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71030,23 +71013,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsOverVoltageCounterPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsOverVoltageCounterPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; @@ -71068,23 +71051,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeAverageRmsUnderVoltageCounterPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAverageRmsUnderVoltageCounterPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71093,23 +71076,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAverageRmsUnderVoltageCounterPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAverageRmsUnderVoltageCounterPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; @@ -71131,23 +71114,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeOverVoltagePeriodPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeOverVoltagePeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71156,23 +71139,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeOverVoltagePeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; @@ -71194,23 +71177,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71219,23 +71202,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; @@ -71257,23 +71240,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSagPeriodPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSagPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71282,23 +71265,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSagPeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSagPeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; @@ -71320,23 +71303,23 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRmsVoltageSwellPeriodPhaseCWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeRmsVoltageSwellPeriodPhaseCWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71345,23 +71328,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRmsVoltageSwellPeriodPhaseCWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRmsVoltageSwellPeriodPhaseCWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; @@ -71383,24 +71366,24 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71409,23 +71392,23 @@ new CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscripti } using TypeInfo = ElectricalMeasurement::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], + MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge( + new MTRElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -71448,24 +71431,24 @@ new CHIPElectricalMeasurementGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71474,23 +71457,23 @@ new CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptio } using TypeInfo = ElectricalMeasurement::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge( + new MTRElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -71513,22 +71496,22 @@ new CHIPElectricalMeasurementAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge( + new MTRElectricalMeasurementAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge( + new MTRElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71537,23 +71520,23 @@ new CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridg } using TypeInfo = ElectricalMeasurement::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRElectricalMeasurementAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge( + new MTRElectricalMeasurementAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -71576,21 +71559,21 @@ new CHIPElectricalMeasurementAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71599,22 +71582,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; @@ -71636,22 +71619,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -71660,23 +71643,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; @@ -71697,7 +71680,7 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s @end -@implementation CHIPTestCluster +@implementation MTRTestCluster - (chip::Controller::ClusterBase *)getCluster { @@ -71708,7 +71691,7 @@ - (void)testWithCompletionHandler:(StatusCompletion)completionHandler { [self testWithParams:nil completionHandler:completionHandler]; } -- (void)testWithParams:(CHIPTestClusterClusterTestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler +- (void)testWithParams:(MTRTestClusterClusterTestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; @@ -71719,14 +71702,14 @@ - (void)testWithParams:(CHIPTestClusterClusterTestParams * _Nullable)params comp } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -71736,7 +71719,7 @@ - (void)testNotHandledWithCompletionHandler:(StatusCompletion)completionHandler { [self testNotHandledWithParams:nil completionHandler:completionHandler]; } -- (void)testNotHandledWithParams:(CHIPTestClusterClusterTestNotHandledParams * _Nullable)params +- (void)testNotHandledWithParams:(MTRTestClusterClusterTestNotHandledParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71748,26 +71731,26 @@ - (void)testNotHandledWithParams:(CHIPTestClusterClusterTestNotHandledParams * _ } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testSpecificWithCompletionHandler:(void (^)(CHIPTestClusterClusterTestSpecificResponseParams * _Nullable data, +- (void)testSpecificWithCompletionHandler:(void (^)(MTRTestClusterClusterTestSpecificResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { [self testSpecificWithParams:nil completionHandler:completionHandler]; } -- (void)testSpecificWithParams:(CHIPTestClusterClusterTestSpecificParams * _Nullable)params - completionHandler:(void (^)(CHIPTestClusterClusterTestSpecificResponseParams * _Nullable data, +- (void)testSpecificWithParams:(MTRTestClusterClusterTestSpecificParams * _Nullable)params + completionHandler:(void (^)(MTRTestClusterClusterTestSpecificResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71779,10 +71762,10 @@ - (void)testSpecificWithParams:(CHIPTestClusterClusterTestSpecificParams * _Null } } - new CHIPTestClusterClusterTestSpecificResponseCallbackBridge( + new MTRTestClusterClusterTestSpecificResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -71792,7 +71775,7 @@ - (void)testUnknownCommandWithCompletionHandler:(StatusCompletion)completionHand { [self testUnknownCommandWithParams:nil completionHandler:completionHandler]; } -- (void)testUnknownCommandWithParams:(CHIPTestClusterClusterTestUnknownCommandParams * _Nullable)params +- (void)testUnknownCommandWithParams:(MTRTestClusterClusterTestUnknownCommandParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71804,21 +71787,21 @@ - (void)testUnknownCommandWithParams:(CHIPTestClusterClusterTestUnknownCommandPa } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testAddArgumentsWithParams:(CHIPTestClusterClusterTestAddArgumentsParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable data, +- (void)testAddArgumentsWithParams:(MTRTestClusterClusterTestAddArgumentsParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71832,17 +71815,17 @@ - (void)testAddArgumentsWithParams:(CHIPTestClusterClusterTestAddArgumentsParams request.arg1 = params.arg1.unsignedCharValue; request.arg2 = params.arg2.unsignedCharValue; - new CHIPTestClusterClusterTestAddArgumentsResponseCallbackBridge( + new MTRTestClusterClusterTestAddArgumentsResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testSimpleArgumentRequestWithParams:(CHIPTestClusterClusterTestSimpleArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestSimpleArgumentResponseParams * _Nullable data, +- (void)testSimpleArgumentRequestWithParams:(MTRTestClusterClusterTestSimpleArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestSimpleArgumentResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71855,18 +71838,18 @@ - (void)testSimpleArgumentRequestWithParams:(CHIPTestClusterClusterTestSimpleArg } request.arg1 = params.arg1.boolValue; - new CHIPTestClusterClusterTestSimpleArgumentResponseCallbackBridge( + new MTRTestClusterClusterTestSimpleArgumentResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStructArrayArgumentRequestParams *)params +- (void)testStructArrayArgumentRequestWithParams:(MTRTestClusterClusterTestStructArrayArgumentRequestParams *)params completionHandler: - (void (^)(CHIPTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable data, + (void (^)(MTRTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -71887,11 +71870,11 @@ - (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStru } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.arg1.count; ++i_0) { - if (![params.arg1[i_0] isKindOfClass:[CHIPTestClusterClusterNestedStructList class]]) { + if (![params.arg1[i_0] isKindOfClass:[MTRTestClusterClusterNestedStructList class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPTestClusterClusterNestedStructList *) params.arg1[i_0]; + auto element_0 = (MTRTestClusterClusterNestedStructList *) params.arg1[i_0]; listHolder_0->mList[i_0].a = element_0.a.unsignedCharValue; listHolder_0->mList[i_0].b = element_0.b.boolValue; listHolder_0->mList[i_0].c.a = element_0.c.a.unsignedCharValue; @@ -71914,11 +71897,11 @@ - (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStru } listFreer.add(listHolder_2); for (size_t i_2 = 0; i_2 < element_0.d.count; ++i_2) { - if (![element_0.d[i_2] isKindOfClass:[CHIPTestClusterClusterSimpleStruct class]]) { + if (![element_0.d[i_2] isKindOfClass:[MTRTestClusterClusterSimpleStruct class]]) { // Wrong kind of value. return; } - auto element_2 = (CHIPTestClusterClusterSimpleStruct *) element_0.d[i_2]; + auto element_2 = (MTRTestClusterClusterSimpleStruct *) element_0.d[i_2]; listHolder_2->mList[i_2].a = element_2.a.unsignedCharValue; listHolder_2->mList[i_2].b = element_2.b.boolValue; listHolder_2->mList[i_2].c = static_castmList[i_2].c)>>( @@ -72017,11 +72000,11 @@ - (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStru } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.arg2.count; ++i_0) { - if (![params.arg2[i_0] isKindOfClass:[CHIPTestClusterClusterSimpleStruct class]]) { + if (![params.arg2[i_0] isKindOfClass:[MTRTestClusterClusterSimpleStruct class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPTestClusterClusterSimpleStruct *) params.arg2[i_0]; + auto element_0 = (MTRTestClusterClusterSimpleStruct *) params.arg2[i_0]; listHolder_0->mList[i_0].a = element_0.a.unsignedCharValue; listHolder_0->mList[i_0].b = element_0.b.boolValue; listHolder_0->mList[i_0].c @@ -72086,17 +72069,17 @@ - (void)testStructArrayArgumentRequestWithParams:(CHIPTestClusterClusterTestStru request.arg5 = static_cast>(params.arg5.unsignedCharValue); request.arg6 = params.arg6.boolValue; - new CHIPTestClusterClusterTestStructArrayArgumentResponseCallbackBridge( + new MTRTestClusterClusterTestStructArrayArgumentResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testStructArgumentRequestWithParams:(CHIPTestClusterClusterTestStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testStructArgumentRequestWithParams:(MTRTestClusterClusterTestStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72116,17 +72099,17 @@ - (void)testStructArgumentRequestWithParams:(CHIPTestClusterClusterTestStructArg request.arg1.g = params.arg1.g.floatValue; request.arg1.h = params.arg1.h.doubleValue; - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testNestedStructArgumentRequestWithParams:(CHIPTestClusterClusterTestNestedStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testNestedStructArgumentRequestWithParams:(MTRTestClusterClusterTestNestedStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72148,17 +72131,17 @@ - (void)testNestedStructArgumentRequestWithParams:(CHIPTestClusterClusterTestNes request.arg1.c.g = params.arg1.c.g.floatValue; request.arg1.c.h = params.arg1.c.h.doubleValue; - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testListStructArgumentRequestWithParams:(CHIPTestClusterClusterTestListStructArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testListStructArgumentRequestWithParams:(MTRTestClusterClusterTestListStructArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72179,11 +72162,11 @@ - (void)testListStructArgumentRequestWithParams:(CHIPTestClusterClusterTestListS } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.arg1.count; ++i_0) { - if (![params.arg1[i_0] isKindOfClass:[CHIPTestClusterClusterSimpleStruct class]]) { + if (![params.arg1[i_0] isKindOfClass:[MTRTestClusterClusterSimpleStruct class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPTestClusterClusterSimpleStruct *) params.arg1[i_0]; + auto element_0 = (MTRTestClusterClusterSimpleStruct *) params.arg1[i_0]; listHolder_0->mList[i_0].a = element_0.a.unsignedCharValue; listHolder_0->mList[i_0].b = element_0.b.boolValue; listHolder_0->mList[i_0].c @@ -72201,17 +72184,17 @@ - (void)testListStructArgumentRequestWithParams:(CHIPTestClusterClusterTestListS } } - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testListInt8UArgumentRequestWithParams:(CHIPTestClusterClusterTestListInt8UArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testListInt8UArgumentRequestWithParams:(MTRTestClusterClusterTestListInt8UArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72245,17 +72228,17 @@ - (void)testListInt8UArgumentRequestWithParams:(CHIPTestClusterClusterTestListIn } } - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testNestedStructListArgumentRequestWithParams:(CHIPTestClusterClusterTestNestedStructListArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, +- (void)testNestedStructListArgumentRequestWithParams:(MTRTestClusterClusterTestNestedStructListArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72286,11 +72269,11 @@ - (void)testNestedStructListArgumentRequestWithParams:(CHIPTestClusterClusterTes } listFreer.add(listHolder_1); for (size_t i_1 = 0; i_1 < params.arg1.d.count; ++i_1) { - if (![params.arg1.d[i_1] isKindOfClass:[CHIPTestClusterClusterSimpleStruct class]]) { + if (![params.arg1.d[i_1] isKindOfClass:[MTRTestClusterClusterSimpleStruct class]]) { // Wrong kind of value. return; } - auto element_1 = (CHIPTestClusterClusterSimpleStruct *) params.arg1.d[i_1]; + auto element_1 = (MTRTestClusterClusterSimpleStruct *) params.arg1.d[i_1]; listHolder_1->mList[i_1].a = element_1.a.unsignedCharValue; listHolder_1->mList[i_1].b = element_1.b.boolValue; listHolder_1->mList[i_1].c @@ -72374,18 +72357,18 @@ - (void)testNestedStructListArgumentRequestWithParams:(CHIPTestClusterClusterTes } } - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } - (void)testListNestedStructListArgumentRequestWithParams: - (CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterBooleanResponseParams * _Nullable data, + (MTRTestClusterClusterTestListNestedStructListArgumentRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterBooleanResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72406,11 +72389,11 @@ - (void)testListNestedStructListArgumentRequestWithParams: } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < params.arg1.count; ++i_0) { - if (![params.arg1[i_0] isKindOfClass:[CHIPTestClusterClusterNestedStructList class]]) { + if (![params.arg1[i_0] isKindOfClass:[MTRTestClusterClusterNestedStructList class]]) { // Wrong kind of value. return; } - auto element_0 = (CHIPTestClusterClusterNestedStructList *) params.arg1[i_0]; + auto element_0 = (MTRTestClusterClusterNestedStructList *) params.arg1[i_0]; listHolder_0->mList[i_0].a = element_0.a.unsignedCharValue; listHolder_0->mList[i_0].b = element_0.b.boolValue; listHolder_0->mList[i_0].c.a = element_0.c.a.unsignedCharValue; @@ -72433,11 +72416,11 @@ - (void)testListNestedStructListArgumentRequestWithParams: } listFreer.add(listHolder_2); for (size_t i_2 = 0; i_2 < element_0.d.count; ++i_2) { - if (![element_0.d[i_2] isKindOfClass:[CHIPTestClusterClusterSimpleStruct class]]) { + if (![element_0.d[i_2] isKindOfClass:[MTRTestClusterClusterSimpleStruct class]]) { // Wrong kind of value. return; } - auto element_2 = (CHIPTestClusterClusterSimpleStruct *) element_0.d[i_2]; + auto element_2 = (MTRTestClusterClusterSimpleStruct *) element_0.d[i_2]; listHolder_2->mList[i_2].a = element_2.a.unsignedCharValue; listHolder_2->mList[i_2].b = element_2.b.boolValue; listHolder_2->mList[i_2].c = static_castmList[i_2].c)>>( @@ -72527,17 +72510,17 @@ - (void)testListNestedStructListArgumentRequestWithParams: } } - new CHIPTestClusterClusterBooleanResponseCallbackBridge( + new MTRTestClusterClusterBooleanResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testListInt8UReverseRequestWithParams:(CHIPTestClusterClusterTestListInt8UReverseRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestListInt8UReverseResponseParams * _Nullable data, +- (void)testListInt8UReverseRequestWithParams:(MTRTestClusterClusterTestListInt8UReverseRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestListInt8UReverseResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72571,17 +72554,17 @@ - (void)testListInt8UReverseRequestWithParams:(CHIPTestClusterClusterTestListInt } } - new CHIPTestClusterClusterTestListInt8UReverseResponseCallbackBridge( + new MTRTestClusterClusterTestListInt8UReverseResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testEnumsRequestWithParams:(CHIPTestClusterClusterTestEnumsRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestEnumsResponseParams * _Nullable data, +- (void)testEnumsRequestWithParams:(MTRTestClusterClusterTestEnumsRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestEnumsResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72595,17 +72578,17 @@ - (void)testEnumsRequestWithParams:(CHIPTestClusterClusterTestEnumsRequestParams request.arg1 = static_cast>(params.arg1.unsignedShortValue); request.arg2 = static_cast>(params.arg2.unsignedCharValue); - new CHIPTestClusterClusterTestEnumsResponseCallbackBridge( + new MTRTestClusterClusterTestEnumsResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testNullableOptionalRequestWithParams:(CHIPTestClusterClusterTestNullableOptionalRequestParams * _Nullable)params - completionHandler:(void (^)(CHIPTestClusterClusterTestNullableOptionalResponseParams * _Nullable data, +- (void)testNullableOptionalRequestWithParams:(MTRTestClusterClusterTestNullableOptionalRequestParams * _Nullable)params + completionHandler:(void (^)(MTRTestClusterClusterTestNullableOptionalResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72628,18 +72611,18 @@ - (void)testNullableOptionalRequestWithParams:(CHIPTestClusterClusterTestNullabl } } - new CHIPTestClusterClusterTestNullableOptionalResponseCallbackBridge( + new MTRTestClusterClusterTestNullableOptionalResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testComplexNullableOptionalRequestWithParams:(CHIPTestClusterClusterTestComplexNullableOptionalRequestParams *)params +- (void)testComplexNullableOptionalRequestWithParams:(MTRTestClusterClusterTestComplexNullableOptionalRequestParams *)params completionHandler: - (void (^)(CHIPTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable data, + (void (^)(MTRTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72820,18 +72803,17 @@ - (void)testComplexNullableOptionalRequestWithParams:(CHIPTestClusterClusterTest } } - new CHIPTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge( + new MTRTestClusterClusterTestComplexNullableOptionalResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)simpleStructEchoRequestWithParams:(CHIPTestClusterClusterSimpleStructEchoRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStructResponseParams * _Nullable data, +- (void)simpleStructEchoRequestWithParams:(MTRTestClusterClusterSimpleStructEchoRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterSimpleStructResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72851,10 +72833,10 @@ - (void)simpleStructEchoRequestWithParams:(CHIPTestClusterClusterSimpleStructEch request.arg1.g = params.arg1.g.floatValue; request.arg1.h = params.arg1.h.doubleValue; - new CHIPTestClusterClusterSimpleStructResponseCallbackBridge( + new MTRTestClusterClusterSimpleStructResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -72864,7 +72846,7 @@ - (void)timedInvokeRequestWithCompletionHandler:(StatusCompletion)completionHand { [self timedInvokeRequestWithParams:nil completionHandler:completionHandler]; } -- (void)timedInvokeRequestWithParams:(CHIPTestClusterClusterTimedInvokeRequestParams * _Nullable)params +- (void)timedInvokeRequestWithParams:(MTRTestClusterClusterTimedInvokeRequestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72879,21 +72861,20 @@ - (void)timedInvokeRequestWithParams:(CHIPTestClusterClusterTimedInvokeRequestPa timedInvokeTimeoutMs.SetValue(10000); } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testSimpleOptionalArgumentRequestWithParams: - (CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams * _Nullable)params +- (void)testSimpleOptionalArgumentRequestWithParams:(MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72911,21 +72892,21 @@ - (void)testSimpleOptionalArgumentRequestWithParams: } } - new CHIPCommandSuccessCallbackBridge( + new MTRCommandSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable value, NSError * _Nullable error) { completionHandler(error); }, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testEmitTestEventRequestWithParams:(CHIPTestClusterClusterTestEmitTestEventRequestParams *)params - completionHandler:(void (^)(CHIPTestClusterClusterTestEmitTestEventResponseParams * _Nullable data, +- (void)testEmitTestEventRequestWithParams:(MTRTestClusterClusterTestEmitTestEventRequestParams *)params + completionHandler:(void (^)(MTRTestClusterClusterTestEmitTestEventResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72940,19 +72921,19 @@ - (void)testEmitTestEventRequestWithParams:(CHIPTestClusterClusterTestEmitTestEv request.arg2 = static_cast>(params.arg2.unsignedCharValue); request.arg3 = params.arg3.boolValue; - new CHIPTestClusterClusterTestEmitTestEventResponseCallbackBridge( + new MTRTestClusterClusterTestEmitTestEventResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)testEmitTestFabricScopedEventRequestWithParams:(CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams *)params +- (void)testEmitTestFabricScopedEventRequestWithParams:(MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams *)params completionHandler: (void (^)( - CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable data, + MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; @@ -72965,11 +72946,10 @@ - (void)testEmitTestFabricScopedEventRequestWithParams:(CHIPTestClusterClusterTe } request.arg1 = params.arg1.unsignedCharValue; - new CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge( + new MTRTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn - = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); @@ -72977,10 +72957,10 @@ new CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseCallbackBridge( - (void)readAttributeBooleanWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Boolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -72990,17 +72970,17 @@ - (void)writeAttributeBooleanWithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeBooleanWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73010,20 +72990,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Boolean::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73032,22 +73012,22 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Boolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Boolean::TypeInfo; @@ -73068,11 +73048,11 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeBitmap8WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap8AttributeCallbackBridge( + new MTRTestClusterBitmap8AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Bitmap8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73082,17 +73062,17 @@ - (void)writeAttributeBitmap8WithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeBitmap8WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBitmap8WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73102,20 +73082,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Bitmap8::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBitmap8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge( + new MTRTestClusterBitmap8AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73124,22 +73104,22 @@ new CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Bitmap8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBitmap8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap8AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRTestClusterBitmap8AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Bitmap8::TypeInfo; @@ -73161,11 +73141,11 @@ new CHIPTestClusterBitmap8AttributeCallbackBridge(queue, completionHandler, ^(Ca - (void)readAttributeBitmap16WithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap16AttributeCallbackBridge( + new MTRTestClusterBitmap16AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Bitmap16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73175,17 +73155,17 @@ - (void)writeAttributeBitmap16WithValue:(NSNumber * _Nonnull)value completionHan [self writeAttributeBitmap16WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBitmap16WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73195,20 +73175,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Bitmap16::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBitmap16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge( + new MTRTestClusterBitmap16AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73217,22 +73197,22 @@ new CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Bitmap16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBitmap16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap16AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRTestClusterBitmap16AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Bitmap16::TypeInfo; @@ -73254,11 +73234,11 @@ new CHIPTestClusterBitmap16AttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeBitmap32WithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap32AttributeCallbackBridge( + new MTRTestClusterBitmap32AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Bitmap32::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73268,17 +73248,17 @@ - (void)writeAttributeBitmap32WithValue:(NSNumber * _Nonnull)value completionHan [self writeAttributeBitmap32WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBitmap32WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73288,20 +73268,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Bitmap32::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedIntValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBitmap32WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge( + new MTRTestClusterBitmap32AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73310,22 +73290,22 @@ new CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Bitmap32::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBitmap32WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap32WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap32AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRTestClusterBitmap32AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Bitmap32::TypeInfo; @@ -73347,11 +73327,11 @@ new CHIPTestClusterBitmap32AttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeBitmap64WithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap64AttributeCallbackBridge( + new MTRTestClusterBitmap64AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Bitmap64::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73361,17 +73341,17 @@ - (void)writeAttributeBitmap64WithValue:(NSNumber * _Nonnull)value completionHan [self writeAttributeBitmap64WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeBitmap64WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73381,20 +73361,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Bitmap64::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedLongLongValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeBitmap64WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge( + new MTRTestClusterBitmap64AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73403,22 +73383,22 @@ new CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Bitmap64::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeBitmap64WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeBitmap64WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterBitmap64AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRTestClusterBitmap64AttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Bitmap64::TypeInfo; @@ -73439,10 +73419,10 @@ new CHIPTestClusterBitmap64AttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73452,17 +73432,17 @@ - (void)writeAttributeInt8uWithValue:(NSNumber * _Nonnull)value completionHandle [self writeAttributeInt8uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt8uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73472,20 +73452,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int8u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73494,22 +73474,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int8u::TypeInfo; @@ -73530,10 +73510,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeInt16uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73543,17 +73523,17 @@ - (void)writeAttributeInt16uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt16uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt16uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73563,20 +73543,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int16u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73585,22 +73565,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int16u::TypeInfo; @@ -73621,10 +73601,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt24uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int24u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73634,17 +73614,17 @@ - (void)writeAttributeInt24uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt24uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt24uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73654,20 +73634,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int24u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt24uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73676,22 +73656,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int24u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt24uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt24uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int24u::TypeInfo; @@ -73712,10 +73692,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt32uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int32u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73725,17 +73705,17 @@ - (void)writeAttributeInt32uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt32uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt32uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73745,20 +73725,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int32u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt32uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73767,22 +73747,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int32u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt32uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt32uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int32u::TypeInfo; @@ -73803,10 +73783,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt40uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int40u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73816,17 +73796,17 @@ - (void)writeAttributeInt40uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt40uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt40uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73836,20 +73816,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int40u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt40uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73858,22 +73838,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int40u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt40uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt40uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int40u::TypeInfo; @@ -73894,10 +73874,10 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt48uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int48u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73907,17 +73887,17 @@ - (void)writeAttributeInt48uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt48uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt48uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -73927,20 +73907,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int48u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt48uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -73949,22 +73929,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int48u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt48uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt48uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int48u::TypeInfo; @@ -73985,10 +73965,10 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt56uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int56u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -73998,17 +73978,17 @@ - (void)writeAttributeInt56uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt56uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt56uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74018,20 +73998,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int56u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt56uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74040,22 +74020,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int56u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt56uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt56uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int56u::TypeInfo; @@ -74076,10 +74056,10 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt64uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int64u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74089,17 +74069,17 @@ - (void)writeAttributeInt64uWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt64uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt64uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74109,20 +74089,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int64u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt64uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74131,22 +74111,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int64u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt64uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt64uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int64u::TypeInfo; @@ -74167,10 +74147,10 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt8sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74180,17 +74160,17 @@ - (void)writeAttributeInt8sWithValue:(NSNumber * _Nonnull)value completionHandle [self writeAttributeInt8sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt8sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74200,20 +74180,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int8s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74222,22 +74202,22 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int8s::TypeInfo; @@ -74258,10 +74238,10 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeInt16sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74271,17 +74251,17 @@ - (void)writeAttributeInt16sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt16sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt16sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74291,20 +74271,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int16s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74313,22 +74293,22 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int16s::TypeInfo; @@ -74349,10 +74329,10 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt24sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int24s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74362,17 +74342,17 @@ - (void)writeAttributeInt24sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt24sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt24sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74382,20 +74362,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int24s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt24sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32sAttributeCallbackSubscriptionBridge( + new MTRInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74404,22 +74384,22 @@ new CHIPInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int24s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt24sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt24sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int24s::TypeInfo; @@ -74440,10 +74420,10 @@ new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt32sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int32s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74453,17 +74433,17 @@ - (void)writeAttributeInt32sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt32sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt32sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74473,20 +74453,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int32s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt32sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32sAttributeCallbackSubscriptionBridge( + new MTRInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74495,22 +74475,22 @@ new CHIPInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int32s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt32sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt32sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int32s::TypeInfo; @@ -74531,10 +74511,10 @@ new CHIPInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt40sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int40s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74544,17 +74524,17 @@ - (void)writeAttributeInt40sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt40sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt40sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74564,20 +74544,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int40s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.longLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt40sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64sAttributeCallbackSubscriptionBridge( + new MTRInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74586,22 +74566,22 @@ new CHIPInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int40s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt40sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt40sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int40s::TypeInfo; @@ -74622,10 +74602,10 @@ new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt48sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int48s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74635,17 +74615,17 @@ - (void)writeAttributeInt48sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt48sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt48sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74655,20 +74635,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int48s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.longLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt48sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64sAttributeCallbackSubscriptionBridge( + new MTRInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74677,22 +74657,22 @@ new CHIPInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int48s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt48sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt48sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int48s::TypeInfo; @@ -74713,10 +74693,10 @@ new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt56sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int56s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74726,17 +74706,17 @@ - (void)writeAttributeInt56sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt56sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt56sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74746,20 +74726,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int56s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.longLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt56sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64sAttributeCallbackSubscriptionBridge( + new MTRInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74768,22 +74748,22 @@ new CHIPInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int56s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt56sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt56sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int56s::TypeInfo; @@ -74804,10 +74784,10 @@ new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeInt64sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Int64s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74817,17 +74797,17 @@ - (void)writeAttributeInt64sWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeInt64sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeInt64sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74837,20 +74817,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Int64s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.longLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeInt64sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64sAttributeCallbackSubscriptionBridge( + new MTRInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74859,22 +74839,22 @@ new CHIPInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Int64s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeInt64sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeInt64sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Int64s::TypeInfo; @@ -74895,10 +74875,10 @@ new CHIPInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeEnum8WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Enum8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74908,17 +74888,17 @@ - (void)writeAttributeEnum8WithValue:(NSNumber * _Nonnull)value completionHandle [self writeAttributeEnum8WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnum8WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -74928,20 +74908,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Enum8::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnum8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -74950,22 +74930,22 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Enum8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnum8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnum8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Enum8::TypeInfo; @@ -74986,10 +74966,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeEnum16WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Enum16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -74999,17 +74979,17 @@ - (void)writeAttributeEnum16WithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeEnum16WithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnum16WithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75019,20 +74999,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Enum16::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnum16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75041,22 +75021,22 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Enum16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnum16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnum16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Enum16::TypeInfo; @@ -75078,10 +75058,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeFloatSingleWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFloatAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRFloatAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::FloatSingle::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75091,17 +75071,17 @@ - (void)writeAttributeFloatSingleWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeFloatSingleWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeFloatSingleWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75111,20 +75091,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::FloatSingle::TypeInfo; TypeInfo::Type cppValue; cppValue = value.floatValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeFloatSingleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPFloatAttributeCallbackSubscriptionBridge( + new MTRFloatAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75133,23 +75113,23 @@ new CHIPFloatAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::FloatSingle::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFloatSingleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFloatSingleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::FloatSingle::TypeInfo; @@ -75171,10 +75151,10 @@ new CHIPFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeFloatDoubleWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoubleAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRDoubleAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::FloatDouble::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75184,17 +75164,17 @@ - (void)writeAttributeFloatDoubleWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeFloatDoubleWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeFloatDoubleWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75204,20 +75184,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::FloatDouble::TypeInfo; TypeInfo::Type cppValue; cppValue = value.doubleValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeFloatDoubleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPDoubleAttributeCallbackSubscriptionBridge( + new MTRDoubleAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75226,23 +75206,23 @@ new CHIPDoubleAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::FloatDouble::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFloatDoubleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFloatDoubleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::FloatDouble::TypeInfo; @@ -75264,13 +75244,12 @@ new CHIPDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeOctetStringWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOctetStringAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = TestCluster::Attributes::OctetString::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); + new MTROctetStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + using TypeInfo = TestCluster::Attributes::OctetString::TypeInfo; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); + }); } - (void)writeAttributeOctetStringWithValue:(NSData * _Nonnull)value completionHandler:(StatusCompletion)completionHandler @@ -75278,17 +75257,17 @@ - (void)writeAttributeOctetStringWithValue:(NSData * _Nonnull)value completionHa [self writeAttributeOctetStringWithValue:(NSData * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeOctetStringWithValue:(NSData * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75298,20 +75277,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::OctetString::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asByteSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOctetStringAttributeCallbackSubscriptionBridge( + new MTROctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75320,22 +75299,22 @@ new CHIPOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::OctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTROctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::OctetString::TypeInfo; @@ -75357,11 +75336,11 @@ new CHIPOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelabl - (void)readAttributeListInt8uWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListInt8uListAttributeCallbackBridge( + new MTRTestClusterListInt8uListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75371,17 +75350,17 @@ - (void)writeAttributeListInt8uWithValue:(NSArray * _Nonnull)value completionHan [self writeAttributeListInt8uWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeListInt8uWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75412,20 +75391,20 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListInt8uListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75434,49 +75413,48 @@ new CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ListInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListInt8uListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterListInt8uListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListInt8uListAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = TestCluster::Attributes::ListInt8u::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; + new MTRTestClusterListInt8uListAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + if (attributeCacheContainer.cppAttributeCache) { + chip::app::ConcreteAttributePath path; + using TypeInfo = TestCluster::Attributes::ListInt8u::TypeInfo; + path.mEndpointId = static_cast([endpoint unsignedShortValue]); + path.mClusterId = TypeInfo::GetClusterId(); + path.mAttributeId = TypeInfo::GetAttributeId(); + TypeInfo::DecodableType value; + CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); + auto successFn = Callback::FromCancelable(success); + if (err == CHIP_NO_ERROR) { + successFn->mCall(successFn->mContext, value); } - return CHIP_ERROR_NOT_FOUND; - }); + return err; + } + return CHIP_ERROR_NOT_FOUND; + }); } - (void)readAttributeListOctetStringWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListOctetStringListAttributeCallbackBridge( + new MTRTestClusterListOctetStringListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75486,17 +75464,17 @@ - (void)writeAttributeListOctetStringWithValue:(NSArray * _Nonnull)value complet [self writeAttributeListOctetStringWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeListOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75527,21 +75505,21 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListOctetStringListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75550,23 +75528,23 @@ new CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ListOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterListOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListOctetStringListAttributeCallbackBridge( + new MTRTestClusterListOctetStringListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -75589,11 +75567,11 @@ new CHIPTestClusterListOctetStringListAttributeCallbackBridge( - (void)readAttributeListStructOctetStringWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListStructOctetStringListAttributeCallbackBridge( + new MTRTestClusterListStructOctetStringListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListStructOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75603,17 +75581,17 @@ - (void)writeAttributeListStructOctetStringWithValue:(NSArray * _Nonnull)value c [self writeAttributeListStructOctetStringWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeListStructOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75632,11 +75610,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPTestClusterClusterTestListStructOctet class]]) { + if (![value[i_0] isKindOfClass:[MTRTestClusterClusterTestListStructOctet class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPTestClusterClusterTestListStructOctet *) value[i_0]; + auto element_0 = (MTRTestClusterClusterTestListStructOctet *) value[i_0]; listHolder_0->mList[i_0].member1 = element_0.member1.unsignedLongLongValue; listHolder_0->mList[i_0].member2 = [self asByteSpan:element_0.member2]; } @@ -75645,22 +75623,22 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListStructOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75669,23 +75647,23 @@ new CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ListStructOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterListStructOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListStructOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListStructOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListStructOctetStringListAttributeCallbackBridge( + new MTRTestClusterListStructOctetStringListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -75708,13 +75686,12 @@ new CHIPTestClusterListStructOctetStringListAttributeCallbackBridge( - (void)readAttributeLongOctetStringWithCompletionHandler:(void (^)( NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOctetStringAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = TestCluster::Attributes::LongOctetString::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); + new MTROctetStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + using TypeInfo = TestCluster::Attributes::LongOctetString::TypeInfo; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); + }); } - (void)writeAttributeLongOctetStringWithValue:(NSData * _Nonnull)value completionHandler:(StatusCompletion)completionHandler @@ -75722,17 +75699,17 @@ - (void)writeAttributeLongOctetStringWithValue:(NSData * _Nonnull)value completi [self writeAttributeLongOctetStringWithValue:(NSData * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLongOctetStringWithValue:(NSData * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75742,21 +75719,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::LongOctetString::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asByteSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLongOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPOctetStringAttributeCallbackSubscriptionBridge( + new MTROctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75765,23 +75742,23 @@ new CHIPOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::LongOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTROctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLongOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLongOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTROctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::LongOctetString::TypeInfo; @@ -75803,10 +75780,10 @@ new CHIPOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelabl - (void)readAttributeCharStringWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::CharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75816,17 +75793,17 @@ - (void)writeAttributeCharStringWithValue:(NSString * _Nonnull)value completionH [self writeAttributeCharStringWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeCharStringWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75836,20 +75813,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::CharString::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75858,22 +75835,22 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::CharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::CharString::TypeInfo; @@ -75895,10 +75872,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeLongCharStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::LongCharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -75908,17 +75885,17 @@ - (void)writeAttributeLongCharStringWithValue:(NSString * _Nonnull)value complet [self writeAttributeLongCharStringWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeLongCharStringWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -75928,21 +75905,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::LongCharString::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeLongCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPCharStringAttributeCallbackSubscriptionBridge( + new MTRCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -75951,23 +75928,23 @@ new CHIPCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::LongCharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeLongCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeLongCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::LongCharString::TypeInfo; @@ -75988,10 +75965,10 @@ new CHIPCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable - (void)readAttributeEpochUsWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::EpochUs::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76001,17 +75978,17 @@ - (void)writeAttributeEpochUsWithValue:(NSNumber * _Nonnull)value completionHand [self writeAttributeEpochUsWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEpochUsWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76021,20 +75998,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::EpochUs::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEpochUsWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt64uAttributeCallbackSubscriptionBridge( + new MTRInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76043,22 +76020,22 @@ new CHIPInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::EpochUs::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEpochUsWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEpochUsWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::EpochUs::TypeInfo; @@ -76079,10 +76056,10 @@ new CHIPInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeEpochSWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::EpochS::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76092,17 +76069,17 @@ - (void)writeAttributeEpochSWithValue:(NSNumber * _Nonnull)value completionHandl [self writeAttributeEpochSWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEpochSWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76112,20 +76089,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::EpochS::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEpochSWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76134,22 +76111,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::EpochS::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEpochSWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEpochSWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::EpochS::TypeInfo; @@ -76171,10 +76148,10 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeVendorIdWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::VendorId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76184,17 +76161,17 @@ - (void)writeAttributeVendorIdWithValue:(NSNumber * _Nonnull)value completionHan [self writeAttributeVendorIdWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeVendorIdWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76204,20 +76181,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::VendorId::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeVendorIdWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPVendorIdAttributeCallbackSubscriptionBridge( + new MTRVendorIdAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76226,22 +76203,22 @@ new CHIPVendorIdAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::VendorId::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRVendorIdAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeVendorIdWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeVendorIdWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::VendorId::TypeInfo; @@ -76263,11 +76240,11 @@ new CHIPVendorIdAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeListNullablesAndOptionalsStructWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge( + new MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListNullablesAndOptionalsStruct::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76280,17 +76257,17 @@ - (void)writeAttributeListNullablesAndOptionalsStructWithValue:(NSArray * _Nonnu completionHandler:completionHandler]; } - (void)writeAttributeListNullablesAndOptionalsStructWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76309,11 +76286,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPTestClusterClusterNullablesAndOptionalsStruct class]]) { + if (![value[i_0] isKindOfClass:[MTRTestClusterClusterNullablesAndOptionalsStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPTestClusterClusterNullablesAndOptionalsStruct *) value[i_0]; + auto element_0 = (MTRTestClusterClusterNullablesAndOptionalsStruct *) value[i_0]; if (element_0.nullableInt == nil) { listHolder_0->mList[i_0].nullableInt.SetNull(); } else { @@ -76493,22 +76470,22 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListNullablesAndOptionalsStructWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76517,23 +76494,23 @@ new CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscript } using TypeInfo = TestCluster::Attributes::ListNullablesAndOptionalsStruct::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, + MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListNullablesAndOptionalsStructWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListNullablesAndOptionalsStructWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge( + new MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -76556,11 +76533,11 @@ new CHIPTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge( - (void)readAttributeEnumAttrWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge( + new MTRTestClusterClusterSimpleEnumAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::EnumAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76570,17 +76547,17 @@ - (void)writeAttributeEnumAttrWithValue:(NSNumber * _Nonnull)value completionHan [self writeAttributeEnumAttrWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeEnumAttrWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76590,20 +76567,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::EnumAttr::TypeInfo; TypeInfo::Type cppValue; cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeEnumAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( + new MTRTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76612,22 +76589,22 @@ new CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::EnumAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeEnumAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeEnumAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge( + new MTRTestClusterClusterSimpleEnumAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -76647,37 +76624,37 @@ new CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge( }); } -- (void)readAttributeStructAttrWithCompletionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, +- (void)readAttributeStructAttrWithCompletionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterStructAttrStructAttributeCallbackBridge( + new MTRTestClusterStructAttrStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::StructAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } -- (void)writeAttributeStructAttrWithValue:(CHIPTestClusterClusterSimpleStruct * _Nonnull)value +- (void)writeAttributeStructAttrWithValue:(MTRTestClusterClusterSimpleStruct * _Nonnull)value completionHandler:(StatusCompletion)completionHandler { - [self writeAttributeStructAttrWithValue:(CHIPTestClusterClusterSimpleStruct * _Nonnull) value + [self writeAttributeStructAttrWithValue:(MTRTestClusterClusterSimpleStruct * _Nonnull) value params:nil completionHandler:completionHandler]; } -- (void)writeAttributeStructAttrWithValue:(CHIPTestClusterClusterSimpleStruct * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeStructAttrWithValue:(MTRTestClusterClusterSimpleStruct * _Nonnull)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76694,21 +76671,21 @@ new CHIPDefaultSuccessCallbackBridge( cppValue.f = static_cast>(value.f.unsignedCharValue); cppValue.g = value.g.floatValue; cppValue.h = value.h.doubleValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeStructAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + reportHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge( + new MTRTestClusterStructAttrStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76717,23 +76694,23 @@ new CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::StructAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterStructAttrStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterStructAttrStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeStructAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeStructAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + completionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterStructAttrStructAttributeCallbackBridge( + new MTRTestClusterStructAttrStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -76756,10 +76733,10 @@ new CHIPTestClusterStructAttrStructAttributeCallbackBridge( - (void)readAttributeRangeRestrictedInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76769,17 +76746,17 @@ - (void)writeAttributeRangeRestrictedInt8uWithValue:(NSNumber * _Nonnull)value c [self writeAttributeRangeRestrictedInt8uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRangeRestrictedInt8uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76789,22 +76766,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRangeRestrictedInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8uAttributeCallbackSubscriptionBridge( + new MTRInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76813,23 +76790,23 @@ new CHIPInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRangeRestrictedInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8u::TypeInfo; @@ -76851,10 +76828,10 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRangeRestrictedInt8sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76864,17 +76841,17 @@ - (void)writeAttributeRangeRestrictedInt8sWithValue:(NSNumber * _Nonnull)value c [self writeAttributeRangeRestrictedInt8sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRangeRestrictedInt8sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76884,22 +76861,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRangeRestrictedInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt8sAttributeCallbackSubscriptionBridge( + new MTRInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -76908,23 +76885,23 @@ new CHIPInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRangeRestrictedInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::RangeRestrictedInt8s::TypeInfo; @@ -76946,10 +76923,10 @@ new CHIPInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su - (void)readAttributeRangeRestrictedInt16uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -76960,17 +76937,17 @@ - (void)writeAttributeRangeRestrictedInt16uWithValue:(NSNumber * _Nonnull)value [self writeAttributeRangeRestrictedInt16uWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRangeRestrictedInt16uWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -76980,22 +76957,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16u::TypeInfo; TypeInfo::Type cppValue; cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRangeRestrictedInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77004,23 +76981,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRangeRestrictedInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16u::TypeInfo; @@ -77042,10 +77019,10 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeRangeRestrictedInt16sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77056,17 +77033,17 @@ - (void)writeAttributeRangeRestrictedInt16sWithValue:(NSNumber * _Nonnull)value [self writeAttributeRangeRestrictedInt16sWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeRangeRestrictedInt16sWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77076,22 +77053,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16s::TypeInfo; TypeInfo::Type cppValue; cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeRangeRestrictedInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16sAttributeCallbackSubscriptionBridge( + new MTRInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77100,23 +77077,23 @@ new CHIPInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeRangeRestrictedInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeRangeRestrictedInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::RangeRestrictedInt16s::TypeInfo; @@ -77138,11 +77115,11 @@ new CHIPInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeListLongOctetStringWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListLongOctetStringListAttributeCallbackBridge( + new MTRTestClusterListLongOctetStringListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListLongOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77152,17 +77129,17 @@ - (void)writeAttributeListLongOctetStringWithValue:(NSArray * _Nonnull)value com [self writeAttributeListLongOctetStringWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeListLongOctetStringWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77193,22 +77170,22 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListLongOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77217,23 +77194,23 @@ new CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ListLongOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterListLongOctetStringListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListLongOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListLongOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListLongOctetStringListAttributeCallbackBridge( + new MTRTestClusterListLongOctetStringListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -77253,14 +77230,14 @@ new CHIPTestClusterListLongOctetStringListAttributeCallbackBridge( }); } -- (void)readAttributeListFabricScopedWithParams:(CHIPReadParams * _Nullable)params +- (void)readAttributeListFabricScopedWithParams:(MTRReadParams * _Nullable)params completionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListFabricScopedListAttributeCallbackBridge( + new MTRTestClusterListFabricScopedListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ListFabricScoped::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue]); }); @@ -77271,17 +77248,17 @@ - (void)writeAttributeListFabricScopedWithValue:(NSArray * _Nonnull)value comple [self writeAttributeListFabricScopedWithValue:(NSArray * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeListFabricScopedWithValue:(NSArray * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77300,11 +77277,11 @@ new CHIPDefaultSuccessCallbackBridge( } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPTestClusterClusterTestFabricScoped class]]) { + if (![value[i_0] isKindOfClass:[MTRTestClusterClusterTestFabricScoped class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (CHIPTestClusterClusterTestFabricScoped *) value[i_0]; + auto element_0 = (MTRTestClusterClusterTestFabricScoped *) value[i_0]; listHolder_0->mList[i_0].fabricSensitiveInt8u = element_0.fabricSensitiveInt8u.unsignedCharValue; if (element_0.optionalFabricSensitiveInt8u != nil) { auto & definedValue_2 = listHolder_0->mList[i_0].optionalFabricSensitiveInt8u.Emplace(); @@ -77368,21 +77345,21 @@ new CHIPDefaultSuccessCallbackBridge( cppValue = ListType_0(); } } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeListFabricScopedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge( + new MTRTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77391,23 +77368,23 @@ new CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ListFabricScoped::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterListFabricScopedListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeListFabricScopedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeListFabricScopedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterListFabricScopedListAttributeCallbackBridge( + new MTRTestClusterListFabricScopedListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -77430,10 +77407,10 @@ new CHIPTestClusterListFabricScopedListAttributeCallbackBridge( - (void)readAttributeTimedWriteBooleanWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::TimedWriteBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77443,17 +77420,17 @@ - (void)writeAttributeTimedWriteBooleanWithValue:(NSNumber * _Nonnull)value comp [self writeAttributeTimedWriteBooleanWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeTimedWriteBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77463,21 +77440,21 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::TimedWriteBoolean::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeTimedWriteBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77486,23 +77463,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::TimedWriteBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeTimedWriteBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeTimedWriteBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::TimedWriteBoolean::TypeInfo; @@ -77524,10 +77501,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeGeneralErrorBooleanWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::GeneralErrorBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77537,17 +77514,17 @@ - (void)writeAttributeGeneralErrorBooleanWithValue:(NSNumber * _Nonnull)value co [self writeAttributeGeneralErrorBooleanWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeGeneralErrorBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77557,22 +77534,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::GeneralErrorBoolean::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeGeneralErrorBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77581,23 +77558,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::GeneralErrorBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneralErrorBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneralErrorBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::GeneralErrorBoolean::TypeInfo; @@ -77619,10 +77596,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeClusterErrorBooleanWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ClusterErrorBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77632,17 +77609,17 @@ - (void)writeAttributeClusterErrorBooleanWithValue:(NSNumber * _Nonnull)value co [self writeAttributeClusterErrorBooleanWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeClusterErrorBooleanWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77652,22 +77629,22 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::ClusterErrorBoolean::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeClusterErrorBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77676,23 +77653,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ClusterErrorBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterErrorBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterErrorBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::ClusterErrorBoolean::TypeInfo; @@ -77714,10 +77691,10 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeUnsupportedWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::Unsupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77727,17 +77704,17 @@ - (void)writeAttributeUnsupportedWithValue:(NSNumber * _Nonnull)value completion [self writeAttributeUnsupportedWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeUnsupportedWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77747,20 +77724,20 @@ new CHIPDefaultSuccessCallbackBridge( using TypeInfo = TestCluster::Attributes::Unsupported::TypeInfo; TypeInfo::Type cppValue; cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeUnsupportedWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPBooleanAttributeCallbackSubscriptionBridge( + new MTRBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77769,23 +77746,23 @@ new CHIPBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::Unsupported::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeUnsupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeUnsupportedWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::Unsupported::TypeInfo; @@ -77807,11 +77784,11 @@ new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * - (void)readAttributeNullableBooleanWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge( + new MTRNullableBooleanAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77821,17 +77798,17 @@ - (void)writeAttributeNullableBooleanWithValue:(NSNumber * _Nullable)value compl [self writeAttributeNullableBooleanWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableBooleanWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77846,21 +77823,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.boolValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableBooleanWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( + new MTRNullableBooleanAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77869,23 +77846,23 @@ new CHIPNullableBooleanAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableBoolean::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableBooleanWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBooleanWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableBoolean::TypeInfo; @@ -77907,11 +77884,11 @@ new CHIPNullableBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cance - (void)readAttributeNullableBitmap8WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap8AttributeCallbackBridge( + new MTRTestClusterNullableBitmap8AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableBitmap8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -77921,17 +77898,17 @@ - (void)writeAttributeNullableBitmap8WithValue:(NSNumber * _Nullable)value compl [self writeAttributeNullableBitmap8WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableBitmap8WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -77946,21 +77923,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedCharValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableBitmap8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge( + new MTRTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -77969,23 +77946,23 @@ new CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableBitmap8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterNullableBitmap8AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableBitmap8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap8AttributeCallbackBridge( + new MTRTestClusterNullableBitmap8AttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -78008,11 +77985,11 @@ new CHIPTestClusterNullableBitmap8AttributeCallbackBridge( - (void)readAttributeNullableBitmap16WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap16AttributeCallbackBridge( + new MTRTestClusterNullableBitmap16AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableBitmap16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78022,17 +77999,17 @@ - (void)writeAttributeNullableBitmap16WithValue:(NSNumber * _Nullable)value comp [self writeAttributeNullableBitmap16WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableBitmap16WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78047,21 +78024,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedShortValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableBitmap16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge( + new MTRTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78070,23 +78047,23 @@ new CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableBitmap16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterNullableBitmap16AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableBitmap16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap16AttributeCallbackBridge( + new MTRTestClusterNullableBitmap16AttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -78109,11 +78086,11 @@ new CHIPTestClusterNullableBitmap16AttributeCallbackBridge( - (void)readAttributeNullableBitmap32WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap32AttributeCallbackBridge( + new MTRTestClusterNullableBitmap32AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableBitmap32::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78123,17 +78100,17 @@ - (void)writeAttributeNullableBitmap32WithValue:(NSNumber * _Nullable)value comp [self writeAttributeNullableBitmap32WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableBitmap32WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78148,21 +78125,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedIntValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableBitmap32WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge( + new MTRTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78171,23 +78148,23 @@ new CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableBitmap32::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterNullableBitmap32AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableBitmap32WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap32WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap32AttributeCallbackBridge( + new MTRTestClusterNullableBitmap32AttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -78210,11 +78187,11 @@ new CHIPTestClusterNullableBitmap32AttributeCallbackBridge( - (void)readAttributeNullableBitmap64WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap64AttributeCallbackBridge( + new MTRTestClusterNullableBitmap64AttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableBitmap64::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78224,17 +78201,17 @@ - (void)writeAttributeNullableBitmap64WithValue:(NSNumber * _Nullable)value comp [self writeAttributeNullableBitmap64WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableBitmap64WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78249,21 +78226,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedLongLongValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableBitmap64WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge( + new MTRTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78272,23 +78249,23 @@ new CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableBitmap64::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterNullableBitmap64AttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableBitmap64WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableBitmap64WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableBitmap64AttributeCallbackBridge( + new MTRTestClusterNullableBitmap64AttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -78311,11 +78288,11 @@ new CHIPTestClusterNullableBitmap64AttributeCallbackBridge( - (void)readAttributeNullableInt8uWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78325,17 +78302,17 @@ - (void)writeAttributeNullableInt8uWithValue:(NSNumber * _Nullable)value complet [self writeAttributeNullableInt8uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt8uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78350,21 +78327,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78373,23 +78350,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt8u::TypeInfo; @@ -78411,11 +78388,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableInt16uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78425,17 +78402,17 @@ - (void)writeAttributeNullableInt16uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt16uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt16uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78450,21 +78427,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78473,23 +78450,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt16u::TypeInfo; @@ -78511,11 +78488,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt24uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt24u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78525,17 +78502,17 @@ - (void)writeAttributeNullableInt24uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt24uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt24uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78550,21 +78527,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedIntValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt24uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78573,23 +78550,23 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt24u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt24uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt24uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt24u::TypeInfo; @@ -78611,11 +78588,11 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt32uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge( + new MTRNullableInt32uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt32u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78625,17 +78602,17 @@ - (void)writeAttributeNullableInt32uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt32uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt32uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78650,21 +78627,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedIntValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt32uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( + new MTRNullableInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78673,23 +78650,23 @@ new CHIPNullableInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt32u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt32uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt32uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt32u::TypeInfo; @@ -78711,11 +78688,11 @@ new CHIPNullableInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt40uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt40u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78725,17 +78702,17 @@ - (void)writeAttributeNullableInt40uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt40uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt40uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78750,21 +78727,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedLongLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt40uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78773,23 +78750,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt40u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt40uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt40uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt40u::TypeInfo; @@ -78811,11 +78788,11 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt48uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt48u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78825,17 +78802,17 @@ - (void)writeAttributeNullableInt48uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt48uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt48uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78850,21 +78827,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedLongLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt48uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78873,23 +78850,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt48u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt48uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt48uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt48u::TypeInfo; @@ -78911,11 +78888,11 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt56uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt56u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -78925,17 +78902,17 @@ - (void)writeAttributeNullableInt56uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt56uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt56uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -78950,21 +78927,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedLongLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt56uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -78973,23 +78950,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt56u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt56uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt56uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt56u::TypeInfo; @@ -79011,11 +78988,11 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt64uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge( + new MTRNullableInt64uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt64u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79025,17 +79002,17 @@ - (void)writeAttributeNullableInt64uWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt64uWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt64uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79050,21 +79027,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedLongLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt64uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( + new MTRNullableInt64uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79073,23 +79050,23 @@ new CHIPNullableInt64uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt64u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt64uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt64uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt64u::TypeInfo; @@ -79111,11 +79088,11 @@ new CHIPNullableInt64uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt8sWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge( + new MTRNullableInt8sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79125,17 +79102,17 @@ - (void)writeAttributeNullableInt8sWithValue:(NSNumber * _Nullable)value complet [self writeAttributeNullableInt8sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt8sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79150,21 +79127,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.charValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( + new MTRNullableInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79173,23 +79150,23 @@ new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt8s::TypeInfo; @@ -79211,11 +79188,11 @@ new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableInt16sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79225,17 +79202,17 @@ - (void)writeAttributeNullableInt16sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt16sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt16sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79250,21 +79227,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.shortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79273,23 +79250,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt16s::TypeInfo; @@ -79311,11 +79288,11 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt24sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge( + new MTRNullableInt32sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt24s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79325,17 +79302,17 @@ - (void)writeAttributeNullableInt24sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt24sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt24sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79350,21 +79327,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.intValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt24sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( + new MTRNullableInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79373,23 +79350,23 @@ new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt24s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt24sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt24sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt24s::TypeInfo; @@ -79411,11 +79388,11 @@ new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt32sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge( + new MTRNullableInt32sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt32s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79425,17 +79402,17 @@ - (void)writeAttributeNullableInt32sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt32sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt32sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79450,21 +79427,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.intValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt32sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( + new MTRNullableInt32sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79473,23 +79450,23 @@ new CHIPNullableInt32sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt32s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt32sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt32sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt32sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt32s::TypeInfo; @@ -79511,11 +79488,11 @@ new CHIPNullableInt32sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt40sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge( + new MTRNullableInt64sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt40s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79525,17 +79502,17 @@ - (void)writeAttributeNullableInt40sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt40sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt40sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79550,21 +79527,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.longLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt40sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( + new MTRNullableInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79573,23 +79550,23 @@ new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt40s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt40sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt40sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt40s::TypeInfo; @@ -79611,11 +79588,11 @@ new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt48sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge( + new MTRNullableInt64sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt48s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79625,17 +79602,17 @@ - (void)writeAttributeNullableInt48sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt48sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt48sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79650,21 +79627,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.longLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt48sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( + new MTRNullableInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79673,23 +79650,23 @@ new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt48s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt48sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt48sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt48s::TypeInfo; @@ -79711,11 +79688,11 @@ new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt56sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge( + new MTRNullableInt64sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt56s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79725,17 +79702,17 @@ - (void)writeAttributeNullableInt56sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt56sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt56sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79750,21 +79727,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.longLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt56sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( + new MTRNullableInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79773,23 +79750,23 @@ new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt56s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt56sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt56sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt56s::TypeInfo; @@ -79811,11 +79788,11 @@ new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableInt64sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge( + new MTRNullableInt64sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableInt64s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79825,17 +79802,17 @@ - (void)writeAttributeNullableInt64sWithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableInt64sWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableInt64sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79850,21 +79827,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.longLongValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableInt64sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( + new MTRNullableInt64sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79873,23 +79850,23 @@ new CHIPNullableInt64sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableInt64s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt64sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableInt64sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableInt64sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableInt64s::TypeInfo; @@ -79911,11 +79888,11 @@ new CHIPNullableInt64sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableEnum8WithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableEnum8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -79925,17 +79902,17 @@ - (void)writeAttributeNullableEnum8WithValue:(NSNumber * _Nullable)value complet [self writeAttributeNullableEnum8WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableEnum8WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -79950,21 +79927,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableEnum8WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -79973,23 +79950,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableEnum8::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableEnum8WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnum8WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableEnum8::TypeInfo; @@ -80011,11 +79988,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableEnum16WithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableEnum16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80025,17 +80002,17 @@ - (void)writeAttributeNullableEnum16WithValue:(NSNumber * _Nullable)value comple [self writeAttributeNullableEnum16WithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableEnum16WithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80050,21 +80027,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableEnum16WithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80073,23 +80050,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableEnum16::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableEnum16WithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnum16WithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableEnum16::TypeInfo; @@ -80111,11 +80088,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableFloatSingleWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableFloatAttributeCallbackBridge( + new MTRNullableFloatAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableFloatSingle::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80125,17 +80102,17 @@ - (void)writeAttributeNullableFloatSingleWithValue:(NSNumber * _Nullable)value c [self writeAttributeNullableFloatSingleWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableFloatSingleWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80150,22 +80127,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.floatValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableFloatSingleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableFloatAttributeCallbackSubscriptionBridge( + new MTRNullableFloatAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80174,23 +80151,23 @@ new CHIPNullableFloatAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableFloatSingle::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableFloatAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableFloatSingleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableFloatSingleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableFloatSingle::TypeInfo; @@ -80212,11 +80189,11 @@ new CHIPNullableFloatAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableFloatDoubleWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoubleAttributeCallbackBridge( + new MTRNullableDoubleAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableFloatDouble::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80226,17 +80203,17 @@ - (void)writeAttributeNullableFloatDoubleWithValue:(NSNumber * _Nullable)value c [self writeAttributeNullableFloatDoubleWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableFloatDoubleWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80251,22 +80228,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.doubleValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableFloatDoubleWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableDoubleAttributeCallbackSubscriptionBridge( + new MTRNullableDoubleAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80275,23 +80252,23 @@ new CHIPNullableDoubleAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableFloatDouble::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableDoubleAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableFloatDoubleWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableFloatDoubleWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableFloatDouble::TypeInfo; @@ -80313,11 +80290,11 @@ new CHIPNullableDoubleAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableOctetStringWithCompletionHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge( + new MTRNullableOctetStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80327,17 +80304,17 @@ - (void)writeAttributeNullableOctetStringWithValue:(NSData * _Nullable)value com [self writeAttributeNullableOctetStringWithValue:(NSData * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableOctetStringWithValue:(NSData * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80352,22 +80329,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = [self asByteSpan:value]; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableOctetStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( + new MTRNullableOctetStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80376,23 +80353,23 @@ new CHIPNullableOctetStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableOctetString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableOctetStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableOctetStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableOctetStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSData * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableOctetString::TypeInfo; @@ -80414,11 +80391,11 @@ new CHIPNullableOctetStringAttributeCallbackBridge(queue, completionHandler, ^(C - (void)readAttributeNullableCharStringWithCompletionHandler:(void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableCharStringAttributeCallbackBridge( + new MTRNullableCharStringAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableCharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80428,17 +80405,17 @@ - (void)writeAttributeNullableCharStringWithValue:(NSString * _Nullable)value co [self writeAttributeNullableCharStringWithValue:(NSString * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableCharStringWithValue:(NSString * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80453,21 +80430,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = [self asCharSpan:value]; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableCharStringWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableCharStringAttributeCallbackSubscriptionBridge( + new MTRNullableCharStringAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80476,23 +80453,23 @@ new CHIPNullableCharStringAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableCharString::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableCharStringAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableCharStringWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableCharStringWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableCharString::TypeInfo; @@ -80514,11 +80491,11 @@ new CHIPNullableCharStringAttributeCallbackBridge(queue, completionHandler, ^(Ca - (void)readAttributeNullableEnumAttrWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge( + new MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableEnumAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80528,17 +80505,17 @@ - (void)writeAttributeNullableEnumAttrWithValue:(NSNumber * _Nullable)value comp [self writeAttributeNullableEnumAttrWithValue:(NSNumber * _Nullable) value params:nil completionHandler:completionHandler]; } - (void)writeAttributeNullableEnumAttrWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80553,21 +80530,21 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = static_cast>(value.unsignedCharValue); } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableEnumAttrWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( + new MTRNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80576,23 +80553,23 @@ new CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableEnumAttr::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableEnumAttrWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableEnumAttrWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge( + new MTRNullableTestClusterClusterSimpleEnumAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -80612,37 +80589,37 @@ new CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge( }); } -- (void)readAttributeNullableStructWithCompletionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, +- (void)readAttributeNullableStructWithCompletionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableStructStructAttributeCallbackBridge( + new MTRTestClusterNullableStructStructAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableStruct::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } -- (void)writeAttributeNullableStructWithValue:(CHIPTestClusterClusterSimpleStruct * _Nullable)value +- (void)writeAttributeNullableStructWithValue:(MTRTestClusterClusterSimpleStruct * _Nullable)value completionHandler:(StatusCompletion)completionHandler { - [self writeAttributeNullableStructWithValue:(CHIPTestClusterClusterSimpleStruct * _Nullable) value + [self writeAttributeNullableStructWithValue:(MTRTestClusterClusterSimpleStruct * _Nullable) value params:nil completionHandler:completionHandler]; } -- (void)writeAttributeNullableStructWithValue:(CHIPTestClusterClusterSimpleStruct * _Nullable)value - params:(CHIPWriteParams * _Nullable)params +- (void)writeAttributeNullableStructWithValue:(MTRTestClusterClusterSimpleStruct * _Nullable)value + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80664,21 +80641,21 @@ new CHIPDefaultSuccessCallbackBridge( nonNullValue_0.g = value.g.floatValue; nonNullValue_0.h = value.h.doubleValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableStructWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + reportHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge( + new MTRTestClusterNullableStructStructAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80687,23 +80664,23 @@ new CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableStruct::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterNullableStructStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterNullableStructStructAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableStructWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableStructWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue - completionHandler:(void (^)(CHIPTestClusterClusterSimpleStruct * _Nullable value, + completionHandler:(void (^)(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterNullableStructStructAttributeCallbackBridge( + new MTRTestClusterNullableStructStructAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -80726,11 +80703,11 @@ new CHIPTestClusterNullableStructStructAttributeCallbackBridge( - (void)readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge( + new MTRNullableInt8uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80743,17 +80720,17 @@ - (void)writeAttributeNullableRangeRestrictedInt8uWithValue:(NSNumber * _Nullabl completionHandler:completionHandler]; } - (void)writeAttributeNullableRangeRestrictedInt8uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80768,22 +80745,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedCharValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableRangeRestrictedInt8uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( + new MTRNullableInt8uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80792,23 +80769,23 @@ new CHIPNullableInt8uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableRangeRestrictedInt8uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt8uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8u::TypeInfo; @@ -80830,11 +80807,11 @@ new CHIPNullableInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge( + new MTRNullableInt8sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80847,17 +80824,17 @@ - (void)writeAttributeNullableRangeRestrictedInt8sWithValue:(NSNumber * _Nullabl completionHandler:completionHandler]; } - (void)writeAttributeNullableRangeRestrictedInt8sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80872,22 +80849,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.charValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableRangeRestrictedInt8sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( + new MTRNullableInt8sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -80896,23 +80873,23 @@ new CHIPNullableInt8sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt8sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableRangeRestrictedInt8sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt8sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt8s::TypeInfo; @@ -80934,11 +80911,11 @@ new CHIPNullableInt8sAttributeCallbackBridge(queue, completionHandler, ^(Cancela - (void)readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge( + new MTRNullableInt16uAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -80951,17 +80928,17 @@ - (void)writeAttributeNullableRangeRestrictedInt16uWithValue:(NSNumber * _Nullab completionHandler:completionHandler]; } - (void)writeAttributeNullableRangeRestrictedInt16uWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -80976,22 +80953,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.unsignedShortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableRangeRestrictedInt16uWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( + new MTRNullableInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81000,23 +80977,23 @@ new CHIPNullableInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16u::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableRangeRestrictedInt16uWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt16uWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16u::TypeInfo; @@ -81038,11 +81015,11 @@ new CHIPNullableInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge( + new MTRNullableInt16sAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } @@ -81055,17 +81032,17 @@ - (void)writeAttributeNullableRangeRestrictedInt16sWithValue:(NSNumber * _Nullab completionHandler:completionHandler]; } - (void)writeAttributeNullableRangeRestrictedInt16sWithValue:(NSNumber * _Nullable)value - params:(CHIPWriteParams * _Nullable)params + params:(MTRWriteParams * _Nullable)params completionHandler:(StatusCompletion)completionHandler { - chip::Optional timedWriteTimeoutMs; + chip::Optional timedWriteTimeout; if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); + if (params.timedWriteTimeout != nil) { + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } } - new CHIPDefaultSuccessCallbackBridge( + new MTRDefaultSuccessCallbackBridge( self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completionHandler(error); @@ -81080,22 +81057,22 @@ new CHIPDefaultSuccessCallbackBridge( auto & nonNullValue_0 = cppValue.SetNonNull(); nonNullValue_0 = value.shortValue; } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); + cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); } - (void)subscribeAttributeNullableRangeRestrictedInt16sWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( + new MTRNullableInt16sAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81104,23 +81081,23 @@ new CHIPNullableInt16sAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16s::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRNullableInt16sAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeNullableRangeRestrictedInt16sWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeNullableRangeRestrictedInt16sWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::NullableRangeRestrictedInt16s::TypeInfo; @@ -81142,24 +81119,24 @@ new CHIPNullableInt16sAttributeCallbackBridge(queue, completionHandler, ^(Cancel - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge( + new MTRTestClusterGeneratedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81168,23 +81145,23 @@ new CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::GeneratedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterGeneratedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeGeneratedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeGeneratedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge( + new MTRTestClusterGeneratedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -81207,24 +81184,24 @@ new CHIPTestClusterGeneratedCommandListListAttributeCallbackBridge( - (void)readAttributeAcceptedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge( + new MTRTestClusterAcceptedCommandListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAcceptedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished: (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge( + new MTRTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81233,23 +81210,23 @@ new CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::AcceptedCommandList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterAcceptedCommandListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAcceptedCommandListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAcceptedCommandListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge( + new MTRTestClusterAcceptedCommandListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -81272,22 +81249,22 @@ new CHIPTestClusterAcceptedCommandListListAttributeCallbackBridge( - (void)readAttributeAttributeListWithCompletionHandler:(void (^)( NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterAttributeListListAttributeCallbackBridge( + new MTRTestClusterAttributeListListAttributeCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeAttributeListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge( + new MTRTestClusterAttributeListListAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81296,23 +81273,23 @@ new CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::AttributeList::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPTestClusterAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRTestClusterAttributeListListAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeAttributeListWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeAttributeListWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPTestClusterAttributeListListAttributeCallbackBridge( + new MTRTestClusterAttributeListListAttributeCallbackBridge( queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; @@ -81335,21 +81312,21 @@ new CHIPTestClusterAttributeListListAttributeCallbackBridge( - (void)readAttributeFeatureMapWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeFeatureMapWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt32uAttributeCallbackSubscriptionBridge( + new MTRInt32uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81358,22 +81335,22 @@ new CHIPInt32uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt32uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeFeatureMapWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeFeatureMapWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; @@ -81395,22 +81372,22 @@ new CHIPInt32uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s - (void)readAttributeClusterRevisionWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } - (void)subscribeAttributeClusterRevisionWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler reportHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - new CHIPInt16uAttributeCallbackSubscriptionBridge( + new MTRInt16uAttributeCallbackSubscriptionBridge( self.callbackQueue, reportHandler, ^(Cancelable * success, Cancelable * failure) { if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { @@ -81419,23 +81396,23 @@ new CHIPInt16uAttributeCallbackSubscriptionBridge( } using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); + auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, + MTRInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, nil, params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); }, subscriptionEstablishedHandler); } -+ (void)readAttributeClusterRevisionWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer ++ (void)readAttributeClusterRevisionWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + new MTRInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { if (attributeCacheContainer.cppAttributeCache) { chip::app::ConcreteAttributePath path; using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc_internal.h b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc_internal.h similarity index 72% rename from src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc_internal.h rename to src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc_internal.h index 2f8c417d4a0f57..98dc0c41127bea 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc_internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc_internal.h @@ -19,260 +19,260 @@ #import -#import "CHIPDevice.h" +#import "MTRDevice.h" -@interface CHIPIdentify () +@interface MTRIdentify () @property (readonly) chip::Controller::IdentifyCluster cppCluster; @end -@interface CHIPGroups () +@interface MTRGroups () @property (readonly) chip::Controller::GroupsCluster cppCluster; @end -@interface CHIPScenes () +@interface MTRScenes () @property (readonly) chip::Controller::ScenesCluster cppCluster; @end -@interface CHIPOnOff () +@interface MTROnOff () @property (readonly) chip::Controller::OnOffCluster cppCluster; @end -@interface CHIPOnOffSwitchConfiguration () +@interface MTROnOffSwitchConfiguration () @property (readonly) chip::Controller::OnOffSwitchConfigurationCluster cppCluster; @end -@interface CHIPLevelControl () +@interface MTRLevelControl () @property (readonly) chip::Controller::LevelControlCluster cppCluster; @end -@interface CHIPBinaryInputBasic () +@interface MTRBinaryInputBasic () @property (readonly) chip::Controller::BinaryInputBasicCluster cppCluster; @end -@interface CHIPDescriptor () +@interface MTRDescriptor () @property (readonly) chip::Controller::DescriptorCluster cppCluster; @end -@interface CHIPBinding () +@interface MTRBinding () @property (readonly) chip::Controller::BindingCluster cppCluster; @end -@interface CHIPAccessControl () +@interface MTRAccessControl () @property (readonly) chip::Controller::AccessControlCluster cppCluster; @end -@interface CHIPBridgedActions () +@interface MTRBridgedActions () @property (readonly) chip::Controller::BridgedActionsCluster cppCluster; @end -@interface CHIPBasic () +@interface MTRBasic () @property (readonly) chip::Controller::BasicCluster cppCluster; @end -@interface CHIPOtaSoftwareUpdateProvider () +@interface MTROtaSoftwareUpdateProvider () @property (readonly) chip::Controller::OtaSoftwareUpdateProviderCluster cppCluster; @end -@interface CHIPOtaSoftwareUpdateRequestor () +@interface MTROtaSoftwareUpdateRequestor () @property (readonly) chip::Controller::OtaSoftwareUpdateRequestorCluster cppCluster; @end -@interface CHIPLocalizationConfiguration () +@interface MTRLocalizationConfiguration () @property (readonly) chip::Controller::LocalizationConfigurationCluster cppCluster; @end -@interface CHIPTimeFormatLocalization () +@interface MTRTimeFormatLocalization () @property (readonly) chip::Controller::TimeFormatLocalizationCluster cppCluster; @end -@interface CHIPUnitLocalization () +@interface MTRUnitLocalization () @property (readonly) chip::Controller::UnitLocalizationCluster cppCluster; @end -@interface CHIPPowerSourceConfiguration () +@interface MTRPowerSourceConfiguration () @property (readonly) chip::Controller::PowerSourceConfigurationCluster cppCluster; @end -@interface CHIPPowerSource () +@interface MTRPowerSource () @property (readonly) chip::Controller::PowerSourceCluster cppCluster; @end -@interface CHIPGeneralCommissioning () +@interface MTRGeneralCommissioning () @property (readonly) chip::Controller::GeneralCommissioningCluster cppCluster; @end -@interface CHIPNetworkCommissioning () +@interface MTRNetworkCommissioning () @property (readonly) chip::Controller::NetworkCommissioningCluster cppCluster; @end -@interface CHIPDiagnosticLogs () +@interface MTRDiagnosticLogs () @property (readonly) chip::Controller::DiagnosticLogsCluster cppCluster; @end -@interface CHIPGeneralDiagnostics () +@interface MTRGeneralDiagnostics () @property (readonly) chip::Controller::GeneralDiagnosticsCluster cppCluster; @end -@interface CHIPSoftwareDiagnostics () +@interface MTRSoftwareDiagnostics () @property (readonly) chip::Controller::SoftwareDiagnosticsCluster cppCluster; @end -@interface CHIPThreadNetworkDiagnostics () +@interface MTRThreadNetworkDiagnostics () @property (readonly) chip::Controller::ThreadNetworkDiagnosticsCluster cppCluster; @end -@interface CHIPWiFiNetworkDiagnostics () +@interface MTRWiFiNetworkDiagnostics () @property (readonly) chip::Controller::WiFiNetworkDiagnosticsCluster cppCluster; @end -@interface CHIPEthernetNetworkDiagnostics () +@interface MTREthernetNetworkDiagnostics () @property (readonly) chip::Controller::EthernetNetworkDiagnosticsCluster cppCluster; @end -@interface CHIPBridgedDeviceBasic () +@interface MTRBridgedDeviceBasic () @property (readonly) chip::Controller::BridgedDeviceBasicCluster cppCluster; @end -@interface CHIPSwitch () +@interface MTRSwitch () @property (readonly) chip::Controller::SwitchCluster cppCluster; @end -@interface CHIPAdministratorCommissioning () +@interface MTRAdministratorCommissioning () @property (readonly) chip::Controller::AdministratorCommissioningCluster cppCluster; @end -@interface CHIPOperationalCredentials () +@interface MTROperationalCredentials () @property (readonly) chip::Controller::OperationalCredentialsCluster cppCluster; @end -@interface CHIPGroupKeyManagement () +@interface MTRGroupKeyManagement () @property (readonly) chip::Controller::GroupKeyManagementCluster cppCluster; @end -@interface CHIPFixedLabel () +@interface MTRFixedLabel () @property (readonly) chip::Controller::FixedLabelCluster cppCluster; @end -@interface CHIPUserLabel () +@interface MTRUserLabel () @property (readonly) chip::Controller::UserLabelCluster cppCluster; @end -@interface CHIPBooleanState () +@interface MTRBooleanState () @property (readonly) chip::Controller::BooleanStateCluster cppCluster; @end -@interface CHIPModeSelect () +@interface MTRModeSelect () @property (readonly) chip::Controller::ModeSelectCluster cppCluster; @end -@interface CHIPDoorLock () +@interface MTRDoorLock () @property (readonly) chip::Controller::DoorLockCluster cppCluster; @end -@interface CHIPWindowCovering () +@interface MTRWindowCovering () @property (readonly) chip::Controller::WindowCoveringCluster cppCluster; @end -@interface CHIPBarrierControl () +@interface MTRBarrierControl () @property (readonly) chip::Controller::BarrierControlCluster cppCluster; @end -@interface CHIPPumpConfigurationAndControl () +@interface MTRPumpConfigurationAndControl () @property (readonly) chip::Controller::PumpConfigurationAndControlCluster cppCluster; @end -@interface CHIPThermostat () +@interface MTRThermostat () @property (readonly) chip::Controller::ThermostatCluster cppCluster; @end -@interface CHIPFanControl () +@interface MTRFanControl () @property (readonly) chip::Controller::FanControlCluster cppCluster; @end -@interface CHIPThermostatUserInterfaceConfiguration () +@interface MTRThermostatUserInterfaceConfiguration () @property (readonly) chip::Controller::ThermostatUserInterfaceConfigurationCluster cppCluster; @end -@interface CHIPColorControl () +@interface MTRColorControl () @property (readonly) chip::Controller::ColorControlCluster cppCluster; @end -@interface CHIPIlluminanceMeasurement () +@interface MTRIlluminanceMeasurement () @property (readonly) chip::Controller::IlluminanceMeasurementCluster cppCluster; @end -@interface CHIPTemperatureMeasurement () +@interface MTRTemperatureMeasurement () @property (readonly) chip::Controller::TemperatureMeasurementCluster cppCluster; @end -@interface CHIPPressureMeasurement () +@interface MTRPressureMeasurement () @property (readonly) chip::Controller::PressureMeasurementCluster cppCluster; @end -@interface CHIPFlowMeasurement () +@interface MTRFlowMeasurement () @property (readonly) chip::Controller::FlowMeasurementCluster cppCluster; @end -@interface CHIPRelativeHumidityMeasurement () +@interface MTRRelativeHumidityMeasurement () @property (readonly) chip::Controller::RelativeHumidityMeasurementCluster cppCluster; @end -@interface CHIPOccupancySensing () +@interface MTROccupancySensing () @property (readonly) chip::Controller::OccupancySensingCluster cppCluster; @end -@interface CHIPWakeOnLan () +@interface MTRWakeOnLan () @property (readonly) chip::Controller::WakeOnLanCluster cppCluster; @end -@interface CHIPChannel () +@interface MTRChannel () @property (readonly) chip::Controller::ChannelCluster cppCluster; @end -@interface CHIPTargetNavigator () +@interface MTRTargetNavigator () @property (readonly) chip::Controller::TargetNavigatorCluster cppCluster; @end -@interface CHIPMediaPlayback () +@interface MTRMediaPlayback () @property (readonly) chip::Controller::MediaPlaybackCluster cppCluster; @end -@interface CHIPMediaInput () +@interface MTRMediaInput () @property (readonly) chip::Controller::MediaInputCluster cppCluster; @end -@interface CHIPLowPower () +@interface MTRLowPower () @property (readonly) chip::Controller::LowPowerCluster cppCluster; @end -@interface CHIPKeypadInput () +@interface MTRKeypadInput () @property (readonly) chip::Controller::KeypadInputCluster cppCluster; @end -@interface CHIPContentLauncher () +@interface MTRContentLauncher () @property (readonly) chip::Controller::ContentLauncherCluster cppCluster; @end -@interface CHIPAudioOutput () +@interface MTRAudioOutput () @property (readonly) chip::Controller::AudioOutputCluster cppCluster; @end -@interface CHIPApplicationLauncher () +@interface MTRApplicationLauncher () @property (readonly) chip::Controller::ApplicationLauncherCluster cppCluster; @end -@interface CHIPApplicationBasic () +@interface MTRApplicationBasic () @property (readonly) chip::Controller::ApplicationBasicCluster cppCluster; @end -@interface CHIPAccountLogin () +@interface MTRAccountLogin () @property (readonly) chip::Controller::AccountLoginCluster cppCluster; @end -@interface CHIPElectricalMeasurement () +@interface MTRElectricalMeasurement () @property (readonly) chip::Controller::ElectricalMeasurementCluster cppCluster; @end -@interface CHIPTestCluster () +@interface MTRTestCluster () @property (readonly) chip::Controller::TestClusterCluster cppCluster; @end diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h similarity index 92% rename from src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h rename to src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h index 88762e95395254..0f01197c6230f4 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h @@ -17,15 +17,12 @@ // THIS FILE IS GENERATED BY ZAP -#ifndef CHIP_COMMAND_PAYLOADS_H -#define CHIP_COMMAND_PAYLOADS_H - -#import #import +#import NS_ASSUME_NONNULL_BEGIN -@interface CHIPIdentifyClusterIdentifyParams : NSObject +@interface MTRIdentifyClusterIdentifyParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull identifyTime; /** @@ -45,8 +42,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPIdentifyClusterTriggerEffectParams : NSObject +@interface MTRIdentifyClusterTriggerEffectParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull effectIdentifier; @@ -68,8 +66,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterAddGroupParams : NSObject +@interface MTRGroupsClusterAddGroupParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -91,8 +90,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterAddGroupResponseParams : NSObject +@interface MTRGroupsClusterAddGroupResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -114,8 +114,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterViewGroupParams : NSObject +@interface MTRGroupsClusterViewGroupParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; /** @@ -135,8 +136,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterViewGroupResponseParams : NSObject +@interface MTRGroupsClusterViewGroupResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -160,8 +162,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterGetGroupMembershipParams : NSObject +@interface MTRGroupsClusterGetGroupMembershipParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull groupList; /** @@ -181,8 +184,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterGetGroupMembershipResponseParams : NSObject +@interface MTRGroupsClusterGetGroupMembershipResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nullable capacity; @@ -204,8 +208,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterRemoveGroupParams : NSObject +@interface MTRGroupsClusterRemoveGroupParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; /** @@ -225,8 +230,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterRemoveGroupResponseParams : NSObject +@interface MTRGroupsClusterRemoveGroupResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -248,8 +254,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterRemoveAllGroupsParams : NSObject +@interface MTRGroupsClusterRemoveAllGroupsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -267,8 +274,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupsClusterAddGroupIfIdentifyingParams : NSObject +@interface MTRGroupsClusterAddGroupIfIdentifyingParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -290,8 +298,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterAddSceneParams : NSObject +@interface MTRScenesClusterAddSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -319,8 +328,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterAddSceneResponseParams : NSObject +@interface MTRScenesClusterAddSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -344,8 +354,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterViewSceneParams : NSObject +@interface MTRScenesClusterViewSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -367,8 +378,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterViewSceneResponseParams : NSObject +@interface MTRScenesClusterViewSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -398,8 +410,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterRemoveSceneParams : NSObject +@interface MTRScenesClusterRemoveSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -421,8 +434,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterRemoveSceneResponseParams : NSObject +@interface MTRScenesClusterRemoveSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -446,8 +460,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterRemoveAllScenesParams : NSObject +@interface MTRScenesClusterRemoveAllScenesParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; /** @@ -467,8 +482,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterRemoveAllScenesResponseParams : NSObject +@interface MTRScenesClusterRemoveAllScenesResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -490,8 +506,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterStoreSceneParams : NSObject +@interface MTRScenesClusterStoreSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -513,8 +530,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterStoreSceneResponseParams : NSObject +@interface MTRScenesClusterStoreSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -538,8 +556,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterRecallSceneParams : NSObject +@interface MTRScenesClusterRecallSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -563,8 +582,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterGetSceneMembershipParams : NSObject +@interface MTRScenesClusterGetSceneMembershipParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; /** @@ -584,8 +604,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterGetSceneMembershipResponseParams : NSObject +@interface MTRScenesClusterGetSceneMembershipResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -611,8 +632,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterEnhancedAddSceneParams : NSObject +@interface MTRScenesClusterEnhancedAddSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -640,8 +662,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterEnhancedAddSceneResponseParams : NSObject +@interface MTRScenesClusterEnhancedAddSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -665,8 +688,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterEnhancedViewSceneParams : NSObject +@interface MTRScenesClusterEnhancedViewSceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @@ -688,8 +712,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterEnhancedViewSceneResponseParams : NSObject +@interface MTRScenesClusterEnhancedViewSceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -719,8 +744,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterCopySceneParams : NSObject +@interface MTRScenesClusterCopySceneParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull mode; @@ -748,8 +774,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPScenesClusterCopySceneResponseParams : NSObject +@interface MTRScenesClusterCopySceneResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -773,8 +800,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterOffParams : NSObject +@interface MTROnOffClusterOffParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -792,8 +820,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterOnParams : NSObject +@interface MTROnOffClusterOnParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -811,8 +840,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterToggleParams : NSObject +@interface MTROnOffClusterToggleParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -830,8 +860,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterOffWithEffectParams : NSObject +@interface MTROnOffClusterOffWithEffectParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull effectId; @@ -853,8 +884,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterOnWithRecallGlobalSceneParams : NSObject +@interface MTROnOffClusterOnWithRecallGlobalSceneParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -872,8 +904,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOnOffClusterOnWithTimedOffParams : NSObject +@interface MTROnOffClusterOnWithTimedOffParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull onOffControl; @@ -897,8 +930,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterMoveToLevelParams : NSObject +@interface MTRLevelControlClusterMoveToLevelParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull level; @@ -924,8 +958,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterMoveParams : NSObject +@interface MTRLevelControlClusterMoveParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -951,8 +986,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterStepParams : NSObject +@interface MTRLevelControlClusterStepParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -980,8 +1016,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterStopParams : NSObject +@interface MTRLevelControlClusterStopParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull optionMask; @@ -1003,8 +1040,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterMoveToLevelWithOnOffParams : NSObject +@interface MTRLevelControlClusterMoveToLevelWithOnOffParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull level; @@ -1026,8 +1064,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterMoveWithOnOffParams : NSObject +@interface MTRLevelControlClusterMoveWithOnOffParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -1049,8 +1088,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterStepWithOnOffParams : NSObject +@interface MTRLevelControlClusterStepWithOnOffParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -1074,8 +1114,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterStopWithOnOffParams : NSObject +@interface MTRLevelControlClusterStopWithOnOffParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1093,8 +1134,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLevelControlClusterMoveToClosestFrequencyParams : NSObject +@interface MTRLevelControlClusterMoveToClosestFrequencyParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull frequency; /** @@ -1114,8 +1156,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterResetAlarmParams : NSObject +@interface MTRAlarmsClusterResetAlarmParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull alarmCode; @@ -1137,8 +1180,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterAlarmParams : NSObject +@interface MTRAlarmsClusterAlarmParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull alarmCode; @@ -1160,8 +1204,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterResetAllAlarmsParams : NSObject +@interface MTRAlarmsClusterResetAllAlarmsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1179,8 +1224,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterGetAlarmResponseParams : NSObject +@interface MTRAlarmsClusterGetAlarmResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -1206,8 +1252,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterGetAlarmParams : NSObject +@interface MTRAlarmsClusterGetAlarmParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1225,8 +1272,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAlarmsClusterResetAlarmLogParams : NSObject +@interface MTRAlarmsClusterResetAlarmLogParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1244,8 +1292,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileRequestParams : NSObject +@interface MTRPowerProfileClusterPowerProfileRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; /** @@ -1265,8 +1314,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileNotificationParams : NSObject +@interface MTRPowerProfileClusterPowerProfileNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull totalProfileNum; @@ -1292,8 +1342,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileStateRequestParams : NSObject +@interface MTRPowerProfileClusterPowerProfileStateRequestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1311,8 +1362,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileResponseParams : NSObject +@interface MTRPowerProfileClusterPowerProfileResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull totalProfileNum; @@ -1338,8 +1390,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetPowerProfilePriceResponseParams : NSObject +@interface MTRPowerProfileClusterGetPowerProfilePriceResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1365,8 +1418,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileStateResponseParams : NSObject +@interface MTRPowerProfileClusterPowerProfileStateResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileCount; @@ -1388,8 +1442,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetOverallSchedulePriceResponseParams : NSObject +@interface MTRPowerProfileClusterGetOverallSchedulePriceResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull currency; @@ -1413,8 +1468,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetPowerProfilePriceParams : NSObject +@interface MTRPowerProfileClusterGetPowerProfilePriceParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; /** @@ -1434,8 +1490,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleNotificationParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1459,8 +1516,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfilesStateNotificationParams : NSObject +@interface MTRPowerProfileClusterPowerProfilesStateNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileCount; @@ -1482,8 +1540,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleResponseParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1507,8 +1566,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetOverallSchedulePriceParams : NSObject +@interface MTRPowerProfileClusterGetOverallSchedulePriceParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1526,8 +1586,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileScheduleConstraintsRequestParams : NSObject +@interface MTRPowerProfileClusterPowerProfileScheduleConstraintsRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; /** @@ -1547,8 +1608,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleRequestParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; /** @@ -1568,8 +1630,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleStateRequestParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleStateRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; /** @@ -1589,8 +1652,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleStateResponseParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleStateResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1614,8 +1678,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetPowerProfilePriceExtendedResponseParams : NSObject +@interface MTRPowerProfileClusterGetPowerProfilePriceExtendedResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1641,8 +1706,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterEnergyPhasesScheduleStateNotificationParams : NSObject +@interface MTRPowerProfileClusterEnergyPhasesScheduleStateNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1666,8 +1732,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileScheduleConstraintsNotificationParams : NSObject +@interface MTRPowerProfileClusterPowerProfileScheduleConstraintsNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1691,8 +1758,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileScheduleConstraintsResponseParams : NSObject +@interface MTRPowerProfileClusterPowerProfileScheduleConstraintsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @@ -1716,8 +1784,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterGetPowerProfilePriceExtendedParams : NSObject +@interface MTRPowerProfileClusterGetPowerProfilePriceExtendedParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull options; @@ -1741,8 +1810,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterExecutionOfACommandParams : NSObject +@interface MTRApplianceControlClusterExecutionOfACommandParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull commandId; /** @@ -1762,8 +1832,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterSignalStateResponseParams : NSObject +@interface MTRApplianceControlClusterSignalStateResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull applianceStatus; @@ -1787,8 +1858,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterSignalStateParams : NSObject +@interface MTRApplianceControlClusterSignalStateParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1806,8 +1878,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterSignalStateNotificationParams : NSObject +@interface MTRApplianceControlClusterSignalStateNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull applianceStatus; @@ -1831,8 +1904,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterWriteFunctionsParams : NSObject +@interface MTRApplianceControlClusterWriteFunctionsParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull functionId; @@ -1856,8 +1930,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterOverloadPauseResumeParams : NSObject +@interface MTRApplianceControlClusterOverloadPauseResumeParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1875,8 +1950,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterOverloadPauseParams : NSObject +@interface MTRApplianceControlClusterOverloadPauseParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1894,8 +1970,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceControlClusterOverloadWarningParams : NSObject +@interface MTRApplianceControlClusterOverloadWarningParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull warningEvent; /** @@ -1915,8 +1992,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPollControlClusterCheckInParams : NSObject +@interface MTRPollControlClusterCheckInParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1934,8 +2012,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPollControlClusterCheckInResponseParams : NSObject +@interface MTRPollControlClusterCheckInResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull startFastPolling; @@ -1957,8 +2036,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPollControlClusterFastPollStopParams : NSObject +@interface MTRPollControlClusterFastPollStopParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -1976,8 +2056,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPollControlClusterSetLongPollIntervalParams : NSObject +@interface MTRPollControlClusterSetLongPollIntervalParams : NSObject @property (strong, nonatomic, getter=getNewLongPollInterval) NSNumber * _Nonnull newLongPollInterval; /** @@ -1997,8 +2078,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPPollControlClusterSetShortPollIntervalParams : NSObject +@interface MTRPollControlClusterSetShortPollIntervalParams : NSObject @property (strong, nonatomic, getter=getNewShortPollInterval) NSNumber * _Nonnull newShortPollInterval; /** @@ -2018,8 +2100,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterInstantActionParams : NSObject +@interface MTRBridgedActionsClusterInstantActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2041,8 +2124,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterInstantActionWithTransitionParams : NSObject +@interface MTRBridgedActionsClusterInstantActionWithTransitionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2066,8 +2150,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterStartActionParams : NSObject +@interface MTRBridgedActionsClusterStartActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2089,8 +2174,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterStartActionWithDurationParams : NSObject +@interface MTRBridgedActionsClusterStartActionWithDurationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2114,8 +2200,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterStopActionParams : NSObject +@interface MTRBridgedActionsClusterStopActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2137,8 +2224,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterPauseActionParams : NSObject +@interface MTRBridgedActionsClusterPauseActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2160,8 +2248,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterPauseActionWithDurationParams : NSObject +@interface MTRBridgedActionsClusterPauseActionWithDurationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2185,8 +2274,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterResumeActionParams : NSObject +@interface MTRBridgedActionsClusterResumeActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2208,8 +2298,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterEnableActionParams : NSObject +@interface MTRBridgedActionsClusterEnableActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2231,8 +2322,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterEnableActionWithDurationParams : NSObject +@interface MTRBridgedActionsClusterEnableActionWithDurationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2256,8 +2348,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterDisableActionParams : NSObject +@interface MTRBridgedActionsClusterDisableActionParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2279,8 +2372,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterDisableActionWithDurationParams : NSObject +@interface MTRBridgedActionsClusterDisableActionWithDurationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @@ -2304,8 +2398,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBasicClusterMfgSpecificPingParams : NSObject +@interface MTRBasicClusterMfgSpecificPingParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2323,8 +2418,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateProviderClusterQueryImageParams : NSObject +@interface MTROtaSoftwareUpdateProviderClusterQueryImageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull vendorId; @@ -2358,8 +2454,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams : NSObject +@interface MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -2393,8 +2490,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestParams : NSObject +@interface MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams : NSObject @property (strong, nonatomic) NSData * _Nonnull updateToken; @@ -2416,8 +2514,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams : NSObject +@interface MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull action; @@ -2439,8 +2538,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams : NSObject +@interface MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams : NSObject @property (strong, nonatomic) NSData * _Nonnull updateToken; @@ -2462,8 +2562,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams : NSObject +@interface MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull providerNodeId; @@ -2491,8 +2592,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterArmFailSafeParams : NSObject +@interface MTRGeneralCommissioningClusterArmFailSafeParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull expiryLengthSeconds; @@ -2514,8 +2616,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterArmFailSafeResponseParams : NSObject +@interface MTRGeneralCommissioningClusterArmFailSafeResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull errorCode; @@ -2537,8 +2640,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterSetRegulatoryConfigParams : NSObject +@interface MTRGeneralCommissioningClusterSetRegulatoryConfigParams : NSObject @property (strong, nonatomic, getter=getNewRegulatoryConfig) NSNumber * _Nonnull newRegulatoryConfig; @@ -2562,8 +2666,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams : NSObject +@interface MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull errorCode; @@ -2585,8 +2690,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterCommissioningCompleteParams : NSObject +@interface MTRGeneralCommissioningClusterCommissioningCompleteParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2604,8 +2710,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams : NSObject +@interface MTRGeneralCommissioningClusterCommissioningCompleteResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull errorCode; @@ -2627,8 +2734,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterScanNetworksParams : NSObject +@interface MTRNetworkCommissioningClusterScanNetworksParams : NSObject @property (strong, nonatomic) NSData * _Nullable ssid; @@ -2650,8 +2758,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterScanNetworksResponseParams : NSObject +@interface MTRNetworkCommissioningClusterScanNetworksResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull networkingStatus; @@ -2677,8 +2786,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams : NSObject +@interface MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams : NSObject @property (strong, nonatomic) NSData * _Nonnull ssid; @@ -2702,8 +2812,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterAddOrUpdateThreadNetworkParams : NSObject +@interface MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams : NSObject @property (strong, nonatomic) NSData * _Nonnull operationalDataset; @@ -2725,8 +2836,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterRemoveNetworkParams : NSObject +@interface MTRNetworkCommissioningClusterRemoveNetworkParams : NSObject @property (strong, nonatomic) NSData * _Nonnull networkID; @@ -2748,8 +2860,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterNetworkConfigResponseParams : NSObject +@interface MTRNetworkCommissioningClusterNetworkConfigResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull networkingStatus; @@ -2773,8 +2886,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterConnectNetworkParams : NSObject +@interface MTRNetworkCommissioningClusterConnectNetworkParams : NSObject @property (strong, nonatomic) NSData * _Nonnull networkID; @@ -2796,8 +2910,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterConnectNetworkResponseParams : NSObject +@interface MTRNetworkCommissioningClusterConnectNetworkResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull networkingStatus; @@ -2821,8 +2936,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterReorderNetworkParams : NSObject +@interface MTRNetworkCommissioningClusterReorderNetworkParams : NSObject @property (strong, nonatomic) NSData * _Nonnull networkID; @@ -2846,8 +2962,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDiagnosticLogsClusterRetrieveLogsRequestParams : NSObject +@interface MTRDiagnosticLogsClusterRetrieveLogsRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull intent; @@ -2871,8 +2988,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDiagnosticLogsClusterRetrieveLogsResponseParams : NSObject +@interface MTRDiagnosticLogsClusterRetrieveLogsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -2898,8 +3016,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGeneralDiagnosticsClusterTestEventTriggerParams : NSObject +@interface MTRGeneralDiagnosticsClusterTestEventTriggerParams : NSObject @property (strong, nonatomic) NSData * _Nonnull enableKey; @@ -2921,8 +3040,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPSoftwareDiagnosticsClusterResetWatermarksParams : NSObject +@interface MTRSoftwareDiagnosticsClusterResetWatermarksParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2940,8 +3060,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThreadNetworkDiagnosticsClusterResetCountsParams : NSObject +@interface MTRThreadNetworkDiagnosticsClusterResetCountsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2959,8 +3080,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWiFiNetworkDiagnosticsClusterResetCountsParams : NSObject +@interface MTRWiFiNetworkDiagnosticsClusterResetCountsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2978,8 +3100,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPEthernetNetworkDiagnosticsClusterResetCountsParams : NSObject +@interface MTREthernetNetworkDiagnosticsClusterResetCountsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -2997,8 +3120,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams : NSObject +@interface MTRAdministratorCommissioningClusterOpenCommissioningWindowParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull commissioningTimeout; @@ -3026,8 +3150,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams : NSObject +@interface MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull commissioningTimeout; /** @@ -3047,8 +3172,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAdministratorCommissioningClusterRevokeCommissioningParams : NSObject +@interface MTRAdministratorCommissioningClusterRevokeCommissioningParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -3066,8 +3192,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterAttestationRequestParams : NSObject +@interface MTROperationalCredentialsClusterAttestationRequestParams : NSObject @property (strong, nonatomic) NSData * _Nonnull attestationNonce; /** @@ -3087,8 +3214,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterAttestationResponseParams : NSObject +@interface MTROperationalCredentialsClusterAttestationResponseParams : NSObject @property (strong, nonatomic) NSData * _Nonnull attestationElements; @@ -3110,8 +3238,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterCertificateChainRequestParams : NSObject +@interface MTROperationalCredentialsClusterCertificateChainRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull certificateType; /** @@ -3131,8 +3260,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterCertificateChainResponseParams : NSObject +@interface MTROperationalCredentialsClusterCertificateChainResponseParams : NSObject @property (strong, nonatomic) NSData * _Nonnull certificate; /** @@ -3152,8 +3282,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterCSRRequestParams : NSObject +@interface MTROperationalCredentialsClusterCSRRequestParams : NSObject @property (strong, nonatomic) NSData * _Nonnull csrNonce; @@ -3175,8 +3306,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterCSRResponseParams : NSObject +@interface MTROperationalCredentialsClusterCSRResponseParams : NSObject @property (strong, nonatomic) NSData * _Nonnull nocsrElements; @@ -3198,8 +3330,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterAddNOCParams : NSObject +@interface MTROperationalCredentialsClusterAddNOCParams : NSObject @property (strong, nonatomic) NSData * _Nonnull nocValue; @@ -3227,8 +3360,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterUpdateNOCParams : NSObject +@interface MTROperationalCredentialsClusterUpdateNOCParams : NSObject @property (strong, nonatomic) NSData * _Nonnull nocValue; @@ -3250,8 +3384,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterNOCResponseParams : NSObject +@interface MTROperationalCredentialsClusterNOCResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull statusCode; @@ -3275,8 +3410,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterUpdateFabricLabelParams : NSObject +@interface MTROperationalCredentialsClusterUpdateFabricLabelParams : NSObject @property (strong, nonatomic) NSString * _Nonnull label; /** @@ -3296,8 +3432,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterRemoveFabricParams : NSObject +@interface MTROperationalCredentialsClusterRemoveFabricParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; /** @@ -3317,8 +3454,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams : NSObject +@interface MTROperationalCredentialsClusterAddTrustedRootCertificateParams : NSObject @property (strong, nonatomic) NSData * _Nonnull rootCertificate; /** @@ -3338,10 +3476,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetWriteParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetWriteParams : NSObject -@property (strong, nonatomic) CHIPGroupKeyManagementClusterGroupKeySetStruct * _Nonnull groupKeySet; +@property (strong, nonatomic) MTRGroupKeyManagementClusterGroupKeySetStruct * _Nonnull groupKeySet; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -3359,8 +3498,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetReadParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetReadParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupKeySetID; /** @@ -3380,10 +3520,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetReadResponseParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetReadResponseParams : NSObject -@property (strong, nonatomic) CHIPGroupKeyManagementClusterGroupKeySetStruct * _Nonnull groupKeySet; +@property (strong, nonatomic) MTRGroupKeyManagementClusterGroupKeySetStruct * _Nonnull groupKeySet; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -3401,8 +3542,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetRemoveParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetRemoveParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupKeySetID; /** @@ -3422,8 +3564,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetReadAllIndicesParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetReadAllIndicesParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull groupKeySetIDs; /** @@ -3443,8 +3586,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams : NSObject +@interface MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull groupKeySetIDs; /** @@ -3464,8 +3608,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPModeSelectClusterChangeToModeParams : NSObject +@interface MTRModeSelectClusterChangeToModeParams : NSObject @property (strong, nonatomic, getter=getNewMode) NSNumber * _Nonnull newMode; /** @@ -3485,8 +3630,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterLockDoorParams : NSObject +@interface MTRDoorLockClusterLockDoorParams : NSObject @property (strong, nonatomic) NSData * _Nullable pinCode; /** @@ -3506,8 +3652,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterUnlockDoorParams : NSObject +@interface MTRDoorLockClusterUnlockDoorParams : NSObject @property (strong, nonatomic) NSData * _Nullable pinCode; /** @@ -3527,8 +3674,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterUnlockWithTimeoutParams : NSObject +@interface MTRDoorLockClusterUnlockWithTimeoutParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull timeout; @@ -3550,8 +3698,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetWeekDayScheduleParams : NSObject +@interface MTRDoorLockClusterSetWeekDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull weekDayIndex; @@ -3583,8 +3732,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetWeekDayScheduleParams : NSObject +@interface MTRDoorLockClusterGetWeekDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull weekDayIndex; @@ -3606,8 +3756,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetWeekDayScheduleResponseParams : NSObject +@interface MTRDoorLockClusterGetWeekDayScheduleResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull weekDayIndex; @@ -3641,8 +3792,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterClearWeekDayScheduleParams : NSObject +@interface MTRDoorLockClusterClearWeekDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull weekDayIndex; @@ -3664,8 +3816,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetYearDayScheduleParams : NSObject +@interface MTRDoorLockClusterSetYearDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull yearDayIndex; @@ -3691,8 +3844,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetYearDayScheduleParams : NSObject +@interface MTRDoorLockClusterGetYearDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull yearDayIndex; @@ -3714,8 +3868,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetYearDayScheduleResponseParams : NSObject +@interface MTRDoorLockClusterGetYearDayScheduleResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull yearDayIndex; @@ -3743,8 +3898,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterClearYearDayScheduleParams : NSObject +@interface MTRDoorLockClusterClearYearDayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull yearDayIndex; @@ -3766,8 +3922,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetHolidayScheduleParams : NSObject +@interface MTRDoorLockClusterSetHolidayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull holidayIndex; @@ -3793,8 +3950,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetHolidayScheduleParams : NSObject +@interface MTRDoorLockClusterGetHolidayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull holidayIndex; /** @@ -3814,8 +3972,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetHolidayScheduleResponseParams : NSObject +@interface MTRDoorLockClusterGetHolidayScheduleResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull holidayIndex; @@ -3843,8 +4002,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterClearHolidayScheduleParams : NSObject +@interface MTRDoorLockClusterClearHolidayScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull holidayIndex; /** @@ -3864,8 +4024,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetUserParams : NSObject +@interface MTRDoorLockClusterSetUserParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull operationType; @@ -3897,8 +4058,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetUserParams : NSObject +@interface MTRDoorLockClusterGetUserParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull userIndex; /** @@ -3918,8 +4080,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetUserResponseParams : NSObject +@interface MTRDoorLockClusterGetUserResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull userIndex; @@ -3957,8 +4120,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterClearUserParams : NSObject +@interface MTRDoorLockClusterClearUserParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull userIndex; /** @@ -3978,12 +4142,13 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetCredentialParams : NSObject +@interface MTRDoorLockClusterSetCredentialParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull operationType; -@property (strong, nonatomic) CHIPDoorLockClusterDlCredential * _Nonnull credential; +@property (strong, nonatomic) MTRDoorLockClusterDlCredential * _Nonnull credential; @property (strong, nonatomic) NSData * _Nonnull credentialData; @@ -4009,8 +4174,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterSetCredentialResponseParams : NSObject +@interface MTRDoorLockClusterSetCredentialResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -4034,10 +4200,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetCredentialStatusParams : NSObject +@interface MTRDoorLockClusterGetCredentialStatusParams : NSObject -@property (strong, nonatomic) CHIPDoorLockClusterDlCredential * _Nonnull credential; +@property (strong, nonatomic) MTRDoorLockClusterDlCredential * _Nonnull credential; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4055,8 +4222,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterGetCredentialStatusResponseParams : NSObject +@interface MTRDoorLockClusterGetCredentialStatusResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull credentialExists; @@ -4084,10 +4252,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPDoorLockClusterClearCredentialParams : NSObject +@interface MTRDoorLockClusterClearCredentialParams : NSObject -@property (strong, nonatomic) CHIPDoorLockClusterDlCredential * _Nullable credential; +@property (strong, nonatomic) MTRDoorLockClusterDlCredential * _Nullable credential; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4105,8 +4274,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterUpOrOpenParams : NSObject +@interface MTRWindowCoveringClusterUpOrOpenParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4124,8 +4294,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterDownOrCloseParams : NSObject +@interface MTRWindowCoveringClusterDownOrCloseParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4143,8 +4314,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterStopMotionParams : NSObject +@interface MTRWindowCoveringClusterStopMotionParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4162,8 +4334,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterGoToLiftValueParams : NSObject +@interface MTRWindowCoveringClusterGoToLiftValueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull liftValue; /** @@ -4183,8 +4356,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterGoToLiftPercentageParams : NSObject +@interface MTRWindowCoveringClusterGoToLiftPercentageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull liftPercent100thsValue; /** @@ -4204,8 +4378,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterGoToTiltValueParams : NSObject +@interface MTRWindowCoveringClusterGoToTiltValueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull tiltValue; /** @@ -4225,8 +4400,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPWindowCoveringClusterGoToTiltPercentageParams : NSObject +@interface MTRWindowCoveringClusterGoToTiltPercentageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull tiltPercent100thsValue; /** @@ -4246,8 +4422,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBarrierControlClusterBarrierControlGoToPercentParams : NSObject +@interface MTRBarrierControlClusterBarrierControlGoToPercentParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull percentOpen; /** @@ -4267,8 +4444,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPBarrierControlClusterBarrierControlStopParams : NSObject +@interface MTRBarrierControlClusterBarrierControlStopParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4286,8 +4464,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThermostatClusterSetpointRaiseLowerParams : NSObject +@interface MTRThermostatClusterSetpointRaiseLowerParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull mode; @@ -4309,8 +4488,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThermostatClusterGetWeeklyScheduleResponseParams : NSObject +@interface MTRThermostatClusterGetWeeklyScheduleResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull numberOfTransitionsForSequence; @@ -4336,8 +4516,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThermostatClusterSetWeeklyScheduleParams : NSObject +@interface MTRThermostatClusterSetWeeklyScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull numberOfTransitionsForSequence; @@ -4363,8 +4544,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThermostatClusterGetWeeklyScheduleParams : NSObject +@interface MTRThermostatClusterGetWeeklyScheduleParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull daysToReturn; @@ -4386,8 +4568,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPThermostatClusterClearWeeklyScheduleParams : NSObject +@interface MTRThermostatClusterClearWeeklyScheduleParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -4405,8 +4588,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveToHueParams : NSObject +@interface MTRColorControlClusterMoveToHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull hue; @@ -4434,8 +4618,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveHueParams : NSObject +@interface MTRColorControlClusterMoveHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -4461,8 +4646,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterStepHueParams : NSObject +@interface MTRColorControlClusterStepHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -4490,8 +4676,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveToSaturationParams : NSObject +@interface MTRColorControlClusterMoveToSaturationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull saturation; @@ -4517,8 +4704,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveSaturationParams : NSObject +@interface MTRColorControlClusterMoveSaturationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -4544,8 +4732,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterStepSaturationParams : NSObject +@interface MTRColorControlClusterStepSaturationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -4573,8 +4762,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveToHueAndSaturationParams : NSObject +@interface MTRColorControlClusterMoveToHueAndSaturationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull hue; @@ -4602,8 +4792,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveToColorParams : NSObject +@interface MTRColorControlClusterMoveToColorParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull colorX; @@ -4631,8 +4822,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveColorParams : NSObject +@interface MTRColorControlClusterMoveColorParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull rateX; @@ -4658,8 +4850,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterStepColorParams : NSObject +@interface MTRColorControlClusterStepColorParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepX; @@ -4687,8 +4880,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveToColorTemperatureParams : NSObject +@interface MTRColorControlClusterMoveToColorTemperatureParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull colorTemperature; @@ -4714,8 +4908,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterEnhancedMoveToHueParams : NSObject +@interface MTRColorControlClusterEnhancedMoveToHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull enhancedHue; @@ -4743,8 +4938,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterEnhancedMoveHueParams : NSObject +@interface MTRColorControlClusterEnhancedMoveHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -4770,8 +4966,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterEnhancedStepHueParams : NSObject +@interface MTRColorControlClusterEnhancedStepHueParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -4799,8 +4996,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams : NSObject +@interface MTRColorControlClusterEnhancedMoveToHueAndSaturationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull enhancedHue; @@ -4828,8 +5026,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterColorLoopSetParams : NSObject +@interface MTRColorControlClusterColorLoopSetParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull updateFlags; @@ -4861,8 +5060,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterStopMoveStepParams : NSObject +@interface MTRColorControlClusterStopMoveStepParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull optionsMask; @@ -4884,8 +5084,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterMoveColorTemperatureParams : NSObject +@interface MTRColorControlClusterMoveColorTemperatureParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull moveMode; @@ -4915,8 +5116,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPColorControlClusterStepColorTemperatureParams : NSObject +@interface MTRColorControlClusterStepColorTemperatureParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stepMode; @@ -4948,8 +5150,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPChannelClusterChangeChannelParams : NSObject +@interface MTRChannelClusterChangeChannelParams : NSObject @property (strong, nonatomic) NSString * _Nonnull match; /** @@ -4969,8 +5172,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPChannelClusterChangeChannelResponseParams : NSObject +@interface MTRChannelClusterChangeChannelResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -4992,8 +5196,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPChannelClusterChangeChannelByNumberParams : NSObject +@interface MTRChannelClusterChangeChannelByNumberParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull majorNumber; @@ -5015,8 +5220,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPChannelClusterSkipChannelParams : NSObject +@interface MTRChannelClusterSkipChannelParams : NSObject @property (strong, nonatomic, getter=getCount) NSNumber * _Nonnull count; /** @@ -5036,8 +5242,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTargetNavigatorClusterNavigateTargetParams : NSObject +@interface MTRTargetNavigatorClusterNavigateTargetParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull target; @@ -5059,8 +5266,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTargetNavigatorClusterNavigateTargetResponseParams : NSObject +@interface MTRTargetNavigatorClusterNavigateTargetResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -5082,8 +5290,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterPlayParams : NSObject +@interface MTRMediaPlaybackClusterPlayParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5101,8 +5310,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterPauseParams : NSObject +@interface MTRMediaPlaybackClusterPauseParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5120,8 +5330,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterStopPlaybackParams : NSObject +@interface MTRMediaPlaybackClusterStopPlaybackParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5139,8 +5350,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterStartOverParams : NSObject +@interface MTRMediaPlaybackClusterStartOverParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5158,8 +5370,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterPreviousParams : NSObject +@interface MTRMediaPlaybackClusterPreviousParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5177,8 +5390,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterNextParams : NSObject +@interface MTRMediaPlaybackClusterNextParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5196,8 +5410,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterRewindParams : NSObject +@interface MTRMediaPlaybackClusterRewindParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5215,8 +5430,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterFastForwardParams : NSObject +@interface MTRMediaPlaybackClusterFastForwardParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5234,8 +5450,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterSkipForwardParams : NSObject +@interface MTRMediaPlaybackClusterSkipForwardParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull deltaPositionMilliseconds; /** @@ -5255,8 +5472,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterSkipBackwardParams : NSObject +@interface MTRMediaPlaybackClusterSkipBackwardParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull deltaPositionMilliseconds; /** @@ -5276,8 +5494,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterPlaybackResponseParams : NSObject +@interface MTRMediaPlaybackClusterPlaybackResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -5299,8 +5518,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterSeekParams : NSObject +@interface MTRMediaPlaybackClusterSeekParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull position; /** @@ -5320,8 +5540,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaInputClusterSelectInputParams : NSObject +@interface MTRMediaInputClusterSelectInputParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; /** @@ -5341,8 +5562,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaInputClusterShowInputStatusParams : NSObject +@interface MTRMediaInputClusterShowInputStatusParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5360,8 +5582,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaInputClusterHideInputStatusParams : NSObject +@interface MTRMediaInputClusterHideInputStatusParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5379,8 +5602,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMediaInputClusterRenameInputParams : NSObject +@interface MTRMediaInputClusterRenameInputParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; @@ -5402,8 +5626,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPLowPowerClusterSleepParams : NSObject +@interface MTRLowPowerClusterSleepParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5421,8 +5646,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPKeypadInputClusterSendKeyParams : NSObject +@interface MTRKeypadInputClusterSendKeyParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull keyCode; /** @@ -5442,8 +5668,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPKeypadInputClusterSendKeyResponseParams : NSObject +@interface MTRKeypadInputClusterSendKeyResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; /** @@ -5463,10 +5690,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterLaunchContentParams : NSObject +@interface MTRContentLauncherClusterLaunchContentParams : NSObject -@property (strong, nonatomic) CHIPContentLauncherClusterContentSearch * _Nonnull search; +@property (strong, nonatomic) MTRContentLauncherClusterContentSearch * _Nonnull search; @property (strong, nonatomic) NSNumber * _Nonnull autoPlay; @@ -5488,14 +5716,15 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterLaunchURLParams : NSObject +@interface MTRContentLauncherClusterLaunchURLParams : NSObject @property (strong, nonatomic) NSString * _Nonnull contentURL; @property (strong, nonatomic) NSString * _Nullable displayString; -@property (strong, nonatomic) CHIPContentLauncherClusterBrandingInformation * _Nullable brandingInformation; +@property (strong, nonatomic) MTRContentLauncherClusterBrandingInformation * _Nullable brandingInformation; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5513,8 +5742,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterLaunchResponseParams : NSObject +@interface MTRContentLauncherClusterLaunchResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -5536,8 +5766,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAudioOutputClusterSelectOutputParams : NSObject +@interface MTRAudioOutputClusterSelectOutputParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; /** @@ -5557,8 +5788,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAudioOutputClusterRenameOutputParams : NSObject +@interface MTRAudioOutputClusterRenameOutputParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; @@ -5580,10 +5812,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterLaunchAppParams : NSObject +@interface MTRApplicationLauncherClusterLaunchAppParams : NSObject -@property (strong, nonatomic) CHIPApplicationLauncherClusterApplication * _Nonnull application; +@property (strong, nonatomic) MTRApplicationLauncherClusterApplication * _Nonnull application; @property (strong, nonatomic) NSData * _Nullable data; /** @@ -5603,10 +5836,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterStopAppParams : NSObject +@interface MTRApplicationLauncherClusterStopAppParams : NSObject -@property (strong, nonatomic) CHIPApplicationLauncherClusterApplication * _Nonnull application; +@property (strong, nonatomic) MTRApplicationLauncherClusterApplication * _Nonnull application; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5624,10 +5858,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterHideAppParams : NSObject +@interface MTRApplicationLauncherClusterHideAppParams : NSObject -@property (strong, nonatomic) CHIPApplicationLauncherClusterApplication * _Nonnull application; +@property (strong, nonatomic) MTRApplicationLauncherClusterApplication * _Nonnull application; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5645,8 +5880,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterLauncherResponseParams : NSObject +@interface MTRApplicationLauncherClusterLauncherResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull status; @@ -5668,8 +5904,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAccountLoginClusterGetSetupPINParams : NSObject +@interface MTRAccountLoginClusterGetSetupPINParams : NSObject @property (strong, nonatomic) NSString * _Nonnull tempAccountIdentifier; /** @@ -5689,8 +5926,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAccountLoginClusterGetSetupPINResponseParams : NSObject +@interface MTRAccountLoginClusterGetSetupPINResponseParams : NSObject @property (strong, nonatomic) NSString * _Nonnull setupPIN; /** @@ -5710,8 +5948,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAccountLoginClusterLoginParams : NSObject +@interface MTRAccountLoginClusterLoginParams : NSObject @property (strong, nonatomic) NSString * _Nonnull tempAccountIdentifier; @@ -5733,8 +5972,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPAccountLoginClusterLogoutParams : NSObject +@interface MTRAccountLoginClusterLogoutParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5752,8 +5992,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterDisplayMessageParams : NSObject +@interface MTRMessagingClusterDisplayMessageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull messageId; @@ -5783,8 +6024,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterGetLastMessageParams : NSObject +@interface MTRMessagingClusterGetLastMessageParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5802,8 +6044,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterCancelMessageParams : NSObject +@interface MTRMessagingClusterCancelMessageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull messageId; @@ -5825,8 +6068,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterMessageConfirmationParams : NSObject +@interface MTRMessagingClusterMessageConfirmationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull messageId; @@ -5852,8 +6096,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterDisplayProtectedMessageParams : NSObject +@interface MTRMessagingClusterDisplayProtectedMessageParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull messageId; @@ -5883,8 +6128,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterGetMessageCancellationParams : NSObject +@interface MTRMessagingClusterGetMessageCancellationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull earliestImplementationTime; /** @@ -5904,8 +6150,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPMessagingClusterCancelAllMessagesParams : NSObject +@interface MTRMessagingClusterCancelAllMessagesParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull implementationDateTime; /** @@ -5925,8 +6172,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceEventsAndAlertClusterGetAlertsParams : NSObject +@interface MTRApplianceEventsAndAlertClusterGetAlertsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -5944,8 +6192,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams : NSObject +@interface MTRApplianceEventsAndAlertClusterGetAlertsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull alertsCount; @@ -5967,8 +6216,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceEventsAndAlertClusterAlertsNotificationParams : NSObject +@interface MTRApplianceEventsAndAlertClusterAlertsNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull alertsCount; @@ -5990,8 +6240,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceEventsAndAlertClusterEventsNotificationParams : NSObject +@interface MTRApplianceEventsAndAlertClusterEventsNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull eventHeader; @@ -6013,8 +6264,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterLogNotificationParams : NSObject +@interface MTRApplianceStatisticsClusterLogNotificationParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull timeStamp; @@ -6040,8 +6292,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterLogRequestParams : NSObject +@interface MTRApplianceStatisticsClusterLogRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull logId; /** @@ -6061,8 +6314,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterLogResponseParams : NSObject +@interface MTRApplianceStatisticsClusterLogResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull timeStamp; @@ -6088,8 +6342,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterLogQueueRequestParams : NSObject +@interface MTRApplianceStatisticsClusterLogQueueRequestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6107,8 +6362,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterLogQueueResponseParams : NSObject +@interface MTRApplianceStatisticsClusterLogQueueResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; @@ -6130,8 +6386,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPApplianceStatisticsClusterStatisticsAvailableParams : NSObject +@interface MTRApplianceStatisticsClusterStatisticsAvailableParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; @@ -6153,8 +6410,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams : NSObject +@interface MTRElectricalMeasurementClusterGetProfileInfoResponseCommandParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull profileCount; @@ -6180,8 +6438,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPElectricalMeasurementClusterGetProfileInfoCommandParams : NSObject +@interface MTRElectricalMeasurementClusterGetProfileInfoCommandParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6199,8 +6458,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams : NSObject +@interface MTRElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull startTime; @@ -6230,8 +6490,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams : NSObject +@interface MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull attributeId; @@ -6255,8 +6516,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestParams : NSObject +@interface MTRTestClusterClusterTestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6274,8 +6536,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestSpecificResponseParams : NSObject +@interface MTRTestClusterClusterTestSpecificResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** @@ -6295,8 +6558,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestNotHandledParams : NSObject +@interface MTRTestClusterClusterTestNotHandledParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6314,8 +6578,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestAddArgumentsResponseParams : NSObject +@interface MTRTestClusterClusterTestAddArgumentsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** @@ -6335,8 +6600,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestSpecificParams : NSObject +@interface MTRTestClusterClusterTestSpecificParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6354,8 +6620,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestSimpleArgumentResponseParams : NSObject +@interface MTRTestClusterClusterTestSimpleArgumentResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** @@ -6375,8 +6642,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestUnknownCommandParams : NSObject +@interface MTRTestClusterClusterTestUnknownCommandParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6394,8 +6662,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestStructArrayArgumentResponseParams : NSObject +@interface MTRTestClusterClusterTestStructArrayArgumentResponseParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; @@ -6425,8 +6694,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestAddArgumentsParams : NSObject +@interface MTRTestClusterClusterTestAddArgumentsParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @@ -6448,8 +6718,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListInt8UReverseResponseParams : NSObject +@interface MTRTestClusterClusterTestListInt8UReverseResponseParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; /** @@ -6469,8 +6740,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestSimpleArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestSimpleArgumentRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; /** @@ -6490,8 +6762,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEnumsResponseParams : NSObject +@interface MTRTestClusterClusterTestEnumsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @@ -6513,8 +6786,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestStructArrayArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestStructArrayArgumentRequestParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; @@ -6544,8 +6818,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestNullableOptionalResponseParams : NSObject +@interface MTRTestClusterClusterTestNullableOptionalResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull wasPresent; @@ -6571,10 +6846,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestStructArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestStructArgumentRequestParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6592,8 +6868,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestComplexNullableOptionalResponseParams : NSObject +@interface MTRTestClusterClusterTestComplexNullableOptionalResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull nullableIntWasNull; @@ -6625,17 +6902,17 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull nullableStructWasNull; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStructValue; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableStructValue; @property (strong, nonatomic) NSNumber * _Nonnull optionalStructWasPresent; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStructValue; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable optionalStructValue; @property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalStructWasPresent; @property (strong, nonatomic) NSNumber * _Nullable nullableOptionalStructWasNull; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStructValue; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableOptionalStructValue; @property (strong, nonatomic) NSNumber * _Nonnull nullableListWasNull; @@ -6667,10 +6944,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestNestedStructArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestNestedStructArgumentRequestParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterNestedStruct * _Nonnull arg1; +@property (strong, nonatomic) MTRTestClusterClusterNestedStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6688,8 +6966,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterBooleanResponseParams : NSObject +@interface MTRTestClusterClusterBooleanResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull value; /** @@ -6709,8 +6988,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListStructArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestListStructArgumentRequestParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; /** @@ -6730,10 +7010,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterSimpleStructResponseParams : NSObject +@interface MTRTestClusterClusterSimpleStructResponseParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6751,8 +7032,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListInt8UArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestListInt8UArgumentRequestParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; /** @@ -6772,8 +7054,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEmitTestEventResponseParams : NSObject +@interface MTRTestClusterClusterTestEmitTestEventResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull value; /** @@ -6793,10 +7076,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestNestedStructListArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestNestedStructListArgumentRequestParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterNestedStructList * _Nonnull arg1; +@property (strong, nonatomic) MTRTestClusterClusterNestedStructList * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6814,8 +7098,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams : NSObject +@interface MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull value; /** @@ -6835,8 +7120,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestListNestedStructListArgumentRequestParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; /** @@ -6856,8 +7142,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListInt8UReverseRequestParams : NSObject +@interface MTRTestClusterClusterTestListInt8UReverseRequestParams : NSObject @property (strong, nonatomic) NSArray * _Nonnull arg1; /** @@ -6877,8 +7164,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEnumsRequestParams : NSObject +@interface MTRTestClusterClusterTestEnumsRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @@ -6900,8 +7188,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestNullableOptionalRequestParams : NSObject +@interface MTRTestClusterClusterTestNullableOptionalRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nullable arg1; /** @@ -6921,8 +7210,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestComplexNullableOptionalRequestParams : NSObject +@interface MTRTestClusterClusterTestComplexNullableOptionalRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nullable nullableInt; @@ -6936,11 +7226,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSString * _Nullable nullableOptionalString; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableStruct; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable optionalStruct; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; @property (strong, nonatomic) NSArray * _Nullable nullableList; @@ -6964,10 +7254,11 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterSimpleStructEchoRequestParams : NSObject +@interface MTRTestClusterClusterSimpleStructEchoRequestParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6985,8 +7276,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTimedInvokeRequestParams : NSObject +@interface MTRTestClusterClusterTimedInvokeRequestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7004,8 +7296,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams : NSObject +@interface MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nullable arg1; /** @@ -7025,8 +7318,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEmitTestEventRequestParams : NSObject +@interface MTRTestClusterClusterTestEmitTestEventRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @@ -7050,8 +7344,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams : NSObject +@interface MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; /** @@ -7071,8 +7366,7 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - (instancetype)init; + @end NS_ASSUME_NONNULL_END - -#endif /* CHIP_COMMAND_PAYLOADS_H */ diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm similarity index 87% rename from src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm index d03f5e035eaef6..813e42fbd22743 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm @@ -17,11 +17,11 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPCommandPayloadsObjc.h" +#import "MTRCommandPayloadsObjc.h" NS_ASSUME_NONNULL_BEGIN -@implementation CHIPIdentifyClusterIdentifyParams +@implementation MTRIdentifyClusterIdentifyParams - (instancetype)init { if (self = [super init]) { @@ -40,7 +40,7 @@ - (NSString *)description } @end -@implementation CHIPIdentifyClusterTriggerEffectParams +@implementation MTRIdentifyClusterTriggerEffectParams - (instancetype)init { if (self = [super init]) { @@ -61,7 +61,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterAddGroupParams +@implementation MTRGroupsClusterAddGroupParams - (instancetype)init { if (self = [super init]) { @@ -82,7 +82,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterAddGroupResponseParams +@implementation MTRGroupsClusterAddGroupResponseParams - (instancetype)init { if (self = [super init]) { @@ -103,7 +103,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterViewGroupParams +@implementation MTRGroupsClusterViewGroupParams - (instancetype)init { if (self = [super init]) { @@ -121,7 +121,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterViewGroupResponseParams +@implementation MTRGroupsClusterViewGroupResponseParams - (instancetype)init { if (self = [super init]) { @@ -144,7 +144,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterGetGroupMembershipParams +@implementation MTRGroupsClusterGetGroupMembershipParams - (instancetype)init { if (self = [super init]) { @@ -162,7 +162,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterGetGroupMembershipResponseParams +@implementation MTRGroupsClusterGetGroupMembershipResponseParams - (instancetype)init { if (self = [super init]) { @@ -183,7 +183,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterRemoveGroupParams +@implementation MTRGroupsClusterRemoveGroupParams - (instancetype)init { if (self = [super init]) { @@ -201,7 +201,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterRemoveGroupResponseParams +@implementation MTRGroupsClusterRemoveGroupResponseParams - (instancetype)init { if (self = [super init]) { @@ -222,7 +222,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterRemoveAllGroupsParams +@implementation MTRGroupsClusterRemoveAllGroupsParams - (instancetype)init { if (self = [super init]) { @@ -238,7 +238,7 @@ - (NSString *)description } @end -@implementation CHIPGroupsClusterAddGroupIfIdentifyingParams +@implementation MTRGroupsClusterAddGroupIfIdentifyingParams - (instancetype)init { if (self = [super init]) { @@ -259,7 +259,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterAddSceneParams +@implementation MTRScenesClusterAddSceneParams - (instancetype)init { if (self = [super init]) { @@ -287,7 +287,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterAddSceneResponseParams +@implementation MTRScenesClusterAddSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -310,7 +310,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterViewSceneParams +@implementation MTRScenesClusterViewSceneParams - (instancetype)init { if (self = [super init]) { @@ -331,7 +331,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterViewSceneResponseParams +@implementation MTRScenesClusterViewSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -361,7 +361,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterRemoveSceneParams +@implementation MTRScenesClusterRemoveSceneParams - (instancetype)init { if (self = [super init]) { @@ -382,7 +382,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterRemoveSceneResponseParams +@implementation MTRScenesClusterRemoveSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -405,7 +405,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterRemoveAllScenesParams +@implementation MTRScenesClusterRemoveAllScenesParams - (instancetype)init { if (self = [super init]) { @@ -423,7 +423,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterRemoveAllScenesResponseParams +@implementation MTRScenesClusterRemoveAllScenesResponseParams - (instancetype)init { if (self = [super init]) { @@ -444,7 +444,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterStoreSceneParams +@implementation MTRScenesClusterStoreSceneParams - (instancetype)init { if (self = [super init]) { @@ -465,7 +465,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterStoreSceneResponseParams +@implementation MTRScenesClusterStoreSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -488,7 +488,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterRecallSceneParams +@implementation MTRScenesClusterRecallSceneParams - (instancetype)init { if (self = [super init]) { @@ -511,7 +511,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterGetSceneMembershipParams +@implementation MTRScenesClusterGetSceneMembershipParams - (instancetype)init { if (self = [super init]) { @@ -529,7 +529,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterGetSceneMembershipResponseParams +@implementation MTRScenesClusterGetSceneMembershipResponseParams - (instancetype)init { if (self = [super init]) { @@ -554,7 +554,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterEnhancedAddSceneParams +@implementation MTRScenesClusterEnhancedAddSceneParams - (instancetype)init { if (self = [super init]) { @@ -582,7 +582,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterEnhancedAddSceneResponseParams +@implementation MTRScenesClusterEnhancedAddSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -605,7 +605,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterEnhancedViewSceneParams +@implementation MTRScenesClusterEnhancedViewSceneParams - (instancetype)init { if (self = [super init]) { @@ -626,7 +626,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterEnhancedViewSceneResponseParams +@implementation MTRScenesClusterEnhancedViewSceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -656,7 +656,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterCopySceneParams +@implementation MTRScenesClusterCopySceneParams - (instancetype)init { if (self = [super init]) { @@ -684,7 +684,7 @@ - (NSString *)description } @end -@implementation CHIPScenesClusterCopySceneResponseParams +@implementation MTRScenesClusterCopySceneResponseParams - (instancetype)init { if (self = [super init]) { @@ -707,7 +707,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterOffParams +@implementation MTROnOffClusterOffParams - (instancetype)init { if (self = [super init]) { @@ -723,7 +723,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterOnParams +@implementation MTROnOffClusterOnParams - (instancetype)init { if (self = [super init]) { @@ -739,7 +739,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterToggleParams +@implementation MTROnOffClusterToggleParams - (instancetype)init { if (self = [super init]) { @@ -755,7 +755,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterOffWithEffectParams +@implementation MTROnOffClusterOffWithEffectParams - (instancetype)init { if (self = [super init]) { @@ -776,7 +776,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterOnWithRecallGlobalSceneParams +@implementation MTROnOffClusterOnWithRecallGlobalSceneParams - (instancetype)init { if (self = [super init]) { @@ -792,7 +792,7 @@ - (NSString *)description } @end -@implementation CHIPOnOffClusterOnWithTimedOffParams +@implementation MTROnOffClusterOnWithTimedOffParams - (instancetype)init { if (self = [super init]) { @@ -815,7 +815,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterMoveToLevelParams +@implementation MTRLevelControlClusterMoveToLevelParams - (instancetype)init { if (self = [super init]) { @@ -841,7 +841,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterMoveParams +@implementation MTRLevelControlClusterMoveParams - (instancetype)init { if (self = [super init]) { @@ -866,7 +866,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterStepParams +@implementation MTRLevelControlClusterStepParams - (instancetype)init { if (self = [super init]) { @@ -894,7 +894,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterStopParams +@implementation MTRLevelControlClusterStopParams - (instancetype)init { if (self = [super init]) { @@ -915,7 +915,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterMoveToLevelWithOnOffParams +@implementation MTRLevelControlClusterMoveToLevelWithOnOffParams - (instancetype)init { if (self = [super init]) { @@ -936,7 +936,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterMoveWithOnOffParams +@implementation MTRLevelControlClusterMoveWithOnOffParams - (instancetype)init { if (self = [super init]) { @@ -957,7 +957,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterStepWithOnOffParams +@implementation MTRLevelControlClusterStepWithOnOffParams - (instancetype)init { if (self = [super init]) { @@ -980,7 +980,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterStopWithOnOffParams +@implementation MTRLevelControlClusterStopWithOnOffParams - (instancetype)init { if (self = [super init]) { @@ -996,7 +996,7 @@ - (NSString *)description } @end -@implementation CHIPLevelControlClusterMoveToClosestFrequencyParams +@implementation MTRLevelControlClusterMoveToClosestFrequencyParams - (instancetype)init { if (self = [super init]) { @@ -1014,7 +1014,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterResetAlarmParams +@implementation MTRAlarmsClusterResetAlarmParams - (instancetype)init { if (self = [super init]) { @@ -1035,7 +1035,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterAlarmParams +@implementation MTRAlarmsClusterAlarmParams - (instancetype)init { if (self = [super init]) { @@ -1056,7 +1056,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterResetAllAlarmsParams +@implementation MTRAlarmsClusterResetAllAlarmsParams - (instancetype)init { if (self = [super init]) { @@ -1072,7 +1072,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterGetAlarmResponseParams +@implementation MTRAlarmsClusterGetAlarmResponseParams - (instancetype)init { if (self = [super init]) { @@ -1097,7 +1097,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterGetAlarmParams +@implementation MTRAlarmsClusterGetAlarmParams - (instancetype)init { if (self = [super init]) { @@ -1113,7 +1113,7 @@ - (NSString *)description } @end -@implementation CHIPAlarmsClusterResetAlarmLogParams +@implementation MTRAlarmsClusterResetAlarmLogParams - (instancetype)init { if (self = [super init]) { @@ -1129,7 +1129,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileRequestParams +@implementation MTRPowerProfileClusterPowerProfileRequestParams - (instancetype)init { if (self = [super init]) { @@ -1148,7 +1148,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileNotificationParams +@implementation MTRPowerProfileClusterPowerProfileNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1174,7 +1174,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileStateRequestParams +@implementation MTRPowerProfileClusterPowerProfileStateRequestParams - (instancetype)init { if (self = [super init]) { @@ -1190,7 +1190,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileResponseParams +@implementation MTRPowerProfileClusterPowerProfileResponseParams - (instancetype)init { if (self = [super init]) { @@ -1216,7 +1216,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetPowerProfilePriceResponseParams +@implementation MTRPowerProfileClusterGetPowerProfilePriceResponseParams - (instancetype)init { if (self = [super init]) { @@ -1242,7 +1242,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileStateResponseParams +@implementation MTRPowerProfileClusterPowerProfileStateResponseParams - (instancetype)init { if (self = [super init]) { @@ -1263,7 +1263,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetOverallSchedulePriceResponseParams +@implementation MTRPowerProfileClusterGetOverallSchedulePriceResponseParams - (instancetype)init { if (self = [super init]) { @@ -1286,7 +1286,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetPowerProfilePriceParams +@implementation MTRPowerProfileClusterGetPowerProfilePriceParams - (instancetype)init { if (self = [super init]) { @@ -1305,7 +1305,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleNotificationParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1329,7 +1329,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfilesStateNotificationParams +@implementation MTRPowerProfileClusterPowerProfilesStateNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1350,7 +1350,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleResponseParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleResponseParams - (instancetype)init { if (self = [super init]) { @@ -1374,7 +1374,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetOverallSchedulePriceParams +@implementation MTRPowerProfileClusterGetOverallSchedulePriceParams - (instancetype)init { if (self = [super init]) { @@ -1390,7 +1390,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileScheduleConstraintsRequestParams +@implementation MTRPowerProfileClusterPowerProfileScheduleConstraintsRequestParams - (instancetype)init { if (self = [super init]) { @@ -1409,7 +1409,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleRequestParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleRequestParams - (instancetype)init { if (self = [super init]) { @@ -1428,7 +1428,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleStateRequestParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleStateRequestParams - (instancetype)init { if (self = [super init]) { @@ -1447,7 +1447,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleStateResponseParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleStateResponseParams - (instancetype)init { if (self = [super init]) { @@ -1471,7 +1471,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetPowerProfilePriceExtendedResponseParams +@implementation MTRPowerProfileClusterGetPowerProfilePriceExtendedResponseParams - (instancetype)init { if (self = [super init]) { @@ -1497,7 +1497,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterEnergyPhasesScheduleStateNotificationParams +@implementation MTRPowerProfileClusterEnergyPhasesScheduleStateNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1521,7 +1521,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileScheduleConstraintsNotificationParams +@implementation MTRPowerProfileClusterPowerProfileScheduleConstraintsNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1544,7 +1544,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterPowerProfileScheduleConstraintsResponseParams +@implementation MTRPowerProfileClusterPowerProfileScheduleConstraintsResponseParams - (instancetype)init { if (self = [super init]) { @@ -1567,7 +1567,7 @@ - (NSString *)description } @end -@implementation CHIPPowerProfileClusterGetPowerProfilePriceExtendedParams +@implementation MTRPowerProfileClusterGetPowerProfilePriceExtendedParams - (instancetype)init { if (self = [super init]) { @@ -1590,7 +1590,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterExecutionOfACommandParams +@implementation MTRApplianceControlClusterExecutionOfACommandParams - (instancetype)init { if (self = [super init]) { @@ -1608,7 +1608,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterSignalStateResponseParams +@implementation MTRApplianceControlClusterSignalStateResponseParams - (instancetype)init { if (self = [super init]) { @@ -1632,7 +1632,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterSignalStateParams +@implementation MTRApplianceControlClusterSignalStateParams - (instancetype)init { if (self = [super init]) { @@ -1648,7 +1648,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterSignalStateNotificationParams +@implementation MTRApplianceControlClusterSignalStateNotificationParams - (instancetype)init { if (self = [super init]) { @@ -1672,7 +1672,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterWriteFunctionsParams +@implementation MTRApplianceControlClusterWriteFunctionsParams - (instancetype)init { if (self = [super init]) { @@ -1695,7 +1695,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterOverloadPauseResumeParams +@implementation MTRApplianceControlClusterOverloadPauseResumeParams - (instancetype)init { if (self = [super init]) { @@ -1711,7 +1711,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterOverloadPauseParams +@implementation MTRApplianceControlClusterOverloadPauseParams - (instancetype)init { if (self = [super init]) { @@ -1727,7 +1727,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceControlClusterOverloadWarningParams +@implementation MTRApplianceControlClusterOverloadWarningParams - (instancetype)init { if (self = [super init]) { @@ -1746,7 +1746,7 @@ - (NSString *)description } @end -@implementation CHIPPollControlClusterCheckInParams +@implementation MTRPollControlClusterCheckInParams - (instancetype)init { if (self = [super init]) { @@ -1762,7 +1762,7 @@ - (NSString *)description } @end -@implementation CHIPPollControlClusterCheckInResponseParams +@implementation MTRPollControlClusterCheckInResponseParams - (instancetype)init { if (self = [super init]) { @@ -1783,7 +1783,7 @@ - (NSString *)description } @end -@implementation CHIPPollControlClusterFastPollStopParams +@implementation MTRPollControlClusterFastPollStopParams - (instancetype)init { if (self = [super init]) { @@ -1799,7 +1799,7 @@ - (NSString *)description } @end -@implementation CHIPPollControlClusterSetLongPollIntervalParams +@implementation MTRPollControlClusterSetLongPollIntervalParams - (instancetype)init { if (self = [super init]) { @@ -1818,7 +1818,7 @@ - (NSString *)description } @end -@implementation CHIPPollControlClusterSetShortPollIntervalParams +@implementation MTRPollControlClusterSetShortPollIntervalParams - (instancetype)init { if (self = [super init]) { @@ -1837,7 +1837,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterInstantActionParams +@implementation MTRBridgedActionsClusterInstantActionParams - (instancetype)init { if (self = [super init]) { @@ -1858,7 +1858,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterInstantActionWithTransitionParams +@implementation MTRBridgedActionsClusterInstantActionWithTransitionParams - (instancetype)init { if (self = [super init]) { @@ -1881,7 +1881,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterStartActionParams +@implementation MTRBridgedActionsClusterStartActionParams - (instancetype)init { if (self = [super init]) { @@ -1902,7 +1902,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterStartActionWithDurationParams +@implementation MTRBridgedActionsClusterStartActionWithDurationParams - (instancetype)init { if (self = [super init]) { @@ -1925,7 +1925,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterStopActionParams +@implementation MTRBridgedActionsClusterStopActionParams - (instancetype)init { if (self = [super init]) { @@ -1946,7 +1946,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterPauseActionParams +@implementation MTRBridgedActionsClusterPauseActionParams - (instancetype)init { if (self = [super init]) { @@ -1967,7 +1967,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterPauseActionWithDurationParams +@implementation MTRBridgedActionsClusterPauseActionWithDurationParams - (instancetype)init { if (self = [super init]) { @@ -1990,7 +1990,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterResumeActionParams +@implementation MTRBridgedActionsClusterResumeActionParams - (instancetype)init { if (self = [super init]) { @@ -2011,7 +2011,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterEnableActionParams +@implementation MTRBridgedActionsClusterEnableActionParams - (instancetype)init { if (self = [super init]) { @@ -2032,7 +2032,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterEnableActionWithDurationParams +@implementation MTRBridgedActionsClusterEnableActionWithDurationParams - (instancetype)init { if (self = [super init]) { @@ -2055,7 +2055,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterDisableActionParams +@implementation MTRBridgedActionsClusterDisableActionParams - (instancetype)init { if (self = [super init]) { @@ -2076,7 +2076,7 @@ - (NSString *)description } @end -@implementation CHIPBridgedActionsClusterDisableActionWithDurationParams +@implementation MTRBridgedActionsClusterDisableActionWithDurationParams - (instancetype)init { if (self = [super init]) { @@ -2099,7 +2099,7 @@ - (NSString *)description } @end -@implementation CHIPBasicClusterMfgSpecificPingParams +@implementation MTRBasicClusterMfgSpecificPingParams - (instancetype)init { if (self = [super init]) { @@ -2115,7 +2115,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateProviderClusterQueryImageParams +@implementation MTROtaSoftwareUpdateProviderClusterQueryImageParams - (instancetype)init { if (self = [super init]) { @@ -2151,7 +2151,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams +@implementation MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams - (instancetype)init { if (self = [super init]) { @@ -2188,7 +2188,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestParams +@implementation MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams - (instancetype)init { if (self = [super init]) { @@ -2210,7 +2210,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams +@implementation MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams - (instancetype)init { if (self = [super init]) { @@ -2231,7 +2231,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams +@implementation MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams - (instancetype)init { if (self = [super init]) { @@ -2253,7 +2253,7 @@ - (NSString *)description } @end -@implementation CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams +@implementation MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams - (instancetype)init { if (self = [super init]) { @@ -2282,7 +2282,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterArmFailSafeParams +@implementation MTRGeneralCommissioningClusterArmFailSafeParams - (instancetype)init { if (self = [super init]) { @@ -2303,7 +2303,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterArmFailSafeResponseParams +@implementation MTRGeneralCommissioningClusterArmFailSafeResponseParams - (instancetype)init { if (self = [super init]) { @@ -2324,7 +2324,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterSetRegulatoryConfigParams +@implementation MTRGeneralCommissioningClusterSetRegulatoryConfigParams - (instancetype)init { if (self = [super init]) { @@ -2347,7 +2347,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams +@implementation MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams - (instancetype)init { if (self = [super init]) { @@ -2368,7 +2368,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterCommissioningCompleteParams +@implementation MTRGeneralCommissioningClusterCommissioningCompleteParams - (instancetype)init { if (self = [super init]) { @@ -2384,7 +2384,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams +@implementation MTRGeneralCommissioningClusterCommissioningCompleteResponseParams - (instancetype)init { if (self = [super init]) { @@ -2405,7 +2405,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterScanNetworksParams +@implementation MTRNetworkCommissioningClusterScanNetworksParams - (instancetype)init { if (self = [super init]) { @@ -2426,7 +2426,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterScanNetworksResponseParams +@implementation MTRNetworkCommissioningClusterScanNetworksResponseParams - (instancetype)init { if (self = [super init]) { @@ -2452,7 +2452,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams +@implementation MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams - (instancetype)init { if (self = [super init]) { @@ -2476,7 +2476,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterAddOrUpdateThreadNetworkParams +@implementation MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams - (instancetype)init { if (self = [super init]) { @@ -2498,7 +2498,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterRemoveNetworkParams +@implementation MTRNetworkCommissioningClusterRemoveNetworkParams - (instancetype)init { if (self = [super init]) { @@ -2520,7 +2520,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterNetworkConfigResponseParams +@implementation MTRNetworkCommissioningClusterNetworkConfigResponseParams - (instancetype)init { if (self = [super init]) { @@ -2543,7 +2543,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterConnectNetworkParams +@implementation MTRNetworkCommissioningClusterConnectNetworkParams - (instancetype)init { if (self = [super init]) { @@ -2565,7 +2565,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterConnectNetworkResponseParams +@implementation MTRNetworkCommissioningClusterConnectNetworkResponseParams - (instancetype)init { if (self = [super init]) { @@ -2588,7 +2588,7 @@ - (NSString *)description } @end -@implementation CHIPNetworkCommissioningClusterReorderNetworkParams +@implementation MTRNetworkCommissioningClusterReorderNetworkParams - (instancetype)init { if (self = [super init]) { @@ -2612,7 +2612,7 @@ - (NSString *)description } @end -@implementation CHIPDiagnosticLogsClusterRetrieveLogsRequestParams +@implementation MTRDiagnosticLogsClusterRetrieveLogsRequestParams - (instancetype)init { if (self = [super init]) { @@ -2636,7 +2636,7 @@ - (NSString *)description } @end -@implementation CHIPDiagnosticLogsClusterRetrieveLogsResponseParams +@implementation MTRDiagnosticLogsClusterRetrieveLogsResponseParams - (instancetype)init { if (self = [super init]) { @@ -2662,7 +2662,7 @@ - (NSString *)description } @end -@implementation CHIPGeneralDiagnosticsClusterTestEventTriggerParams +@implementation MTRGeneralDiagnosticsClusterTestEventTriggerParams - (instancetype)init { if (self = [super init]) { @@ -2684,7 +2684,7 @@ - (NSString *)description } @end -@implementation CHIPSoftwareDiagnosticsClusterResetWatermarksParams +@implementation MTRSoftwareDiagnosticsClusterResetWatermarksParams - (instancetype)init { if (self = [super init]) { @@ -2700,7 +2700,7 @@ - (NSString *)description } @end -@implementation CHIPThreadNetworkDiagnosticsClusterResetCountsParams +@implementation MTRThreadNetworkDiagnosticsClusterResetCountsParams - (instancetype)init { if (self = [super init]) { @@ -2716,7 +2716,7 @@ - (NSString *)description } @end -@implementation CHIPWiFiNetworkDiagnosticsClusterResetCountsParams +@implementation MTRWiFiNetworkDiagnosticsClusterResetCountsParams - (instancetype)init { if (self = [super init]) { @@ -2732,7 +2732,7 @@ - (NSString *)description } @end -@implementation CHIPEthernetNetworkDiagnosticsClusterResetCountsParams +@implementation MTREthernetNetworkDiagnosticsClusterResetCountsParams - (instancetype)init { if (self = [super init]) { @@ -2748,7 +2748,7 @@ - (NSString *)description } @end -@implementation CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams +@implementation MTRAdministratorCommissioningClusterOpenCommissioningWindowParams - (instancetype)init { if (self = [super init]) { @@ -2777,7 +2777,7 @@ - (NSString *)description } @end -@implementation CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams +@implementation MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams - (instancetype)init { if (self = [super init]) { @@ -2796,7 +2796,7 @@ - (NSString *)description } @end -@implementation CHIPAdministratorCommissioningClusterRevokeCommissioningParams +@implementation MTRAdministratorCommissioningClusterRevokeCommissioningParams - (instancetype)init { if (self = [super init]) { @@ -2812,7 +2812,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterAttestationRequestParams +@implementation MTROperationalCredentialsClusterAttestationRequestParams - (instancetype)init { if (self = [super init]) { @@ -2831,7 +2831,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterAttestationResponseParams +@implementation MTROperationalCredentialsClusterAttestationResponseParams - (instancetype)init { if (self = [super init]) { @@ -2853,7 +2853,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterCertificateChainRequestParams +@implementation MTROperationalCredentialsClusterCertificateChainRequestParams - (instancetype)init { if (self = [super init]) { @@ -2872,7 +2872,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterCertificateChainResponseParams +@implementation MTROperationalCredentialsClusterCertificateChainResponseParams - (instancetype)init { if (self = [super init]) { @@ -2891,7 +2891,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterCSRRequestParams +@implementation MTROperationalCredentialsClusterCSRRequestParams - (instancetype)init { if (self = [super init]) { @@ -2913,7 +2913,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterCSRResponseParams +@implementation MTROperationalCredentialsClusterCSRResponseParams - (instancetype)init { if (self = [super init]) { @@ -2935,7 +2935,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterAddNOCParams +@implementation MTROperationalCredentialsClusterAddNOCParams - (instancetype)init { if (self = [super init]) { @@ -2965,7 +2965,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterUpdateNOCParams +@implementation MTROperationalCredentialsClusterUpdateNOCParams - (instancetype)init { if (self = [super init]) { @@ -2987,7 +2987,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterNOCResponseParams +@implementation MTROperationalCredentialsClusterNOCResponseParams - (instancetype)init { if (self = [super init]) { @@ -3010,7 +3010,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterUpdateFabricLabelParams +@implementation MTROperationalCredentialsClusterUpdateFabricLabelParams - (instancetype)init { if (self = [super init]) { @@ -3028,7 +3028,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterRemoveFabricParams +@implementation MTROperationalCredentialsClusterRemoveFabricParams - (instancetype)init { if (self = [super init]) { @@ -3047,7 +3047,7 @@ - (NSString *)description } @end -@implementation CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams +@implementation MTROperationalCredentialsClusterAddTrustedRootCertificateParams - (instancetype)init { if (self = [super init]) { @@ -3066,12 +3066,12 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetWriteParams +@implementation MTRGroupKeyManagementClusterKeySetWriteParams - (instancetype)init { if (self = [super init]) { - _groupKeySet = [CHIPGroupKeyManagementClusterGroupKeySetStruct new]; + _groupKeySet = [MTRGroupKeyManagementClusterGroupKeySetStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -3085,7 +3085,7 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetReadParams +@implementation MTRGroupKeyManagementClusterKeySetReadParams - (instancetype)init { if (self = [super init]) { @@ -3104,12 +3104,12 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetReadResponseParams +@implementation MTRGroupKeyManagementClusterKeySetReadResponseParams - (instancetype)init { if (self = [super init]) { - _groupKeySet = [CHIPGroupKeyManagementClusterGroupKeySetStruct new]; + _groupKeySet = [MTRGroupKeyManagementClusterGroupKeySetStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -3123,7 +3123,7 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetRemoveParams +@implementation MTRGroupKeyManagementClusterKeySetRemoveParams - (instancetype)init { if (self = [super init]) { @@ -3142,7 +3142,7 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetReadAllIndicesParams +@implementation MTRGroupKeyManagementClusterKeySetReadAllIndicesParams - (instancetype)init { if (self = [super init]) { @@ -3161,7 +3161,7 @@ - (NSString *)description } @end -@implementation CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams +@implementation MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams - (instancetype)init { if (self = [super init]) { @@ -3180,7 +3180,7 @@ - (NSString *)description } @end -@implementation CHIPModeSelectClusterChangeToModeParams +@implementation MTRModeSelectClusterChangeToModeParams - (instancetype)init { if (self = [super init]) { @@ -3198,7 +3198,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterLockDoorParams +@implementation MTRDoorLockClusterLockDoorParams - (instancetype)init { if (self = [super init]) { @@ -3217,7 +3217,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterUnlockDoorParams +@implementation MTRDoorLockClusterUnlockDoorParams - (instancetype)init { if (self = [super init]) { @@ -3236,7 +3236,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterUnlockWithTimeoutParams +@implementation MTRDoorLockClusterUnlockWithTimeoutParams - (instancetype)init { if (self = [super init]) { @@ -3257,7 +3257,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetWeekDayScheduleParams +@implementation MTRDoorLockClusterSetWeekDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3290,7 +3290,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetWeekDayScheduleParams +@implementation MTRDoorLockClusterGetWeekDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3311,7 +3311,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetWeekDayScheduleResponseParams +@implementation MTRDoorLockClusterGetWeekDayScheduleResponseParams - (instancetype)init { if (self = [super init]) { @@ -3346,7 +3346,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterClearWeekDayScheduleParams +@implementation MTRDoorLockClusterClearWeekDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3367,7 +3367,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetYearDayScheduleParams +@implementation MTRDoorLockClusterSetYearDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3393,7 +3393,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetYearDayScheduleParams +@implementation MTRDoorLockClusterGetYearDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3414,7 +3414,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetYearDayScheduleResponseParams +@implementation MTRDoorLockClusterGetYearDayScheduleResponseParams - (instancetype)init { if (self = [super init]) { @@ -3442,7 +3442,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterClearYearDayScheduleParams +@implementation MTRDoorLockClusterClearYearDayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3463,7 +3463,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetHolidayScheduleParams +@implementation MTRDoorLockClusterSetHolidayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3489,7 +3489,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetHolidayScheduleParams +@implementation MTRDoorLockClusterGetHolidayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3508,7 +3508,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetHolidayScheduleResponseParams +@implementation MTRDoorLockClusterGetHolidayScheduleResponseParams - (instancetype)init { if (self = [super init]) { @@ -3536,7 +3536,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterClearHolidayScheduleParams +@implementation MTRDoorLockClusterClearHolidayScheduleParams - (instancetype)init { if (self = [super init]) { @@ -3555,7 +3555,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetUserParams +@implementation MTRDoorLockClusterSetUserParams - (instancetype)init { if (self = [super init]) { @@ -3589,7 +3589,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetUserParams +@implementation MTRDoorLockClusterGetUserParams - (instancetype)init { if (self = [super init]) { @@ -3607,7 +3607,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetUserResponseParams +@implementation MTRDoorLockClusterGetUserResponseParams - (instancetype)init { if (self = [super init]) { @@ -3647,7 +3647,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterClearUserParams +@implementation MTRDoorLockClusterClearUserParams - (instancetype)init { if (self = [super init]) { @@ -3665,14 +3665,14 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetCredentialParams +@implementation MTRDoorLockClusterSetCredentialParams - (instancetype)init { if (self = [super init]) { _operationType = @(0); - _credential = [CHIPDoorLockClusterDlCredential new]; + _credential = [MTRDoorLockClusterDlCredential new]; _credentialData = [NSData data]; @@ -3696,7 +3696,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterSetCredentialResponseParams +@implementation MTRDoorLockClusterSetCredentialResponseParams - (instancetype)init { if (self = [super init]) { @@ -3719,12 +3719,12 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetCredentialStatusParams +@implementation MTRDoorLockClusterGetCredentialStatusParams - (instancetype)init { if (self = [super init]) { - _credential = [CHIPDoorLockClusterDlCredential new]; + _credential = [MTRDoorLockClusterDlCredential new]; _timedInvokeTimeoutMs = nil; } return self; @@ -3738,7 +3738,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterGetCredentialStatusResponseParams +@implementation MTRDoorLockClusterGetCredentialStatusResponseParams - (instancetype)init { if (self = [super init]) { @@ -3768,7 +3768,7 @@ - (NSString *)description } @end -@implementation CHIPDoorLockClusterClearCredentialParams +@implementation MTRDoorLockClusterClearCredentialParams - (instancetype)init { if (self = [super init]) { @@ -3787,7 +3787,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterUpOrOpenParams +@implementation MTRWindowCoveringClusterUpOrOpenParams - (instancetype)init { if (self = [super init]) { @@ -3803,7 +3803,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterDownOrCloseParams +@implementation MTRWindowCoveringClusterDownOrCloseParams - (instancetype)init { if (self = [super init]) { @@ -3819,7 +3819,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterStopMotionParams +@implementation MTRWindowCoveringClusterStopMotionParams - (instancetype)init { if (self = [super init]) { @@ -3835,7 +3835,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterGoToLiftValueParams +@implementation MTRWindowCoveringClusterGoToLiftValueParams - (instancetype)init { if (self = [super init]) { @@ -3853,7 +3853,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterGoToLiftPercentageParams +@implementation MTRWindowCoveringClusterGoToLiftPercentageParams - (instancetype)init { if (self = [super init]) { @@ -3872,7 +3872,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterGoToTiltValueParams +@implementation MTRWindowCoveringClusterGoToTiltValueParams - (instancetype)init { if (self = [super init]) { @@ -3890,7 +3890,7 @@ - (NSString *)description } @end -@implementation CHIPWindowCoveringClusterGoToTiltPercentageParams +@implementation MTRWindowCoveringClusterGoToTiltPercentageParams - (instancetype)init { if (self = [super init]) { @@ -3909,7 +3909,7 @@ - (NSString *)description } @end -@implementation CHIPBarrierControlClusterBarrierControlGoToPercentParams +@implementation MTRBarrierControlClusterBarrierControlGoToPercentParams - (instancetype)init { if (self = [super init]) { @@ -3928,7 +3928,7 @@ - (NSString *)description } @end -@implementation CHIPBarrierControlClusterBarrierControlStopParams +@implementation MTRBarrierControlClusterBarrierControlStopParams - (instancetype)init { if (self = [super init]) { @@ -3944,7 +3944,7 @@ - (NSString *)description } @end -@implementation CHIPThermostatClusterSetpointRaiseLowerParams +@implementation MTRThermostatClusterSetpointRaiseLowerParams - (instancetype)init { if (self = [super init]) { @@ -3965,7 +3965,7 @@ - (NSString *)description } @end -@implementation CHIPThermostatClusterGetWeeklyScheduleResponseParams +@implementation MTRThermostatClusterGetWeeklyScheduleResponseParams - (instancetype)init { if (self = [super init]) { @@ -3991,7 +3991,7 @@ - (NSString *)description } @end -@implementation CHIPThermostatClusterSetWeeklyScheduleParams +@implementation MTRThermostatClusterSetWeeklyScheduleParams - (instancetype)init { if (self = [super init]) { @@ -4017,7 +4017,7 @@ - (NSString *)description } @end -@implementation CHIPThermostatClusterGetWeeklyScheduleParams +@implementation MTRThermostatClusterGetWeeklyScheduleParams - (instancetype)init { if (self = [super init]) { @@ -4038,7 +4038,7 @@ - (NSString *)description } @end -@implementation CHIPThermostatClusterClearWeeklyScheduleParams +@implementation MTRThermostatClusterClearWeeklyScheduleParams - (instancetype)init { if (self = [super init]) { @@ -4054,7 +4054,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveToHueParams +@implementation MTRColorControlClusterMoveToHueParams - (instancetype)init { if (self = [super init]) { @@ -4082,7 +4082,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveHueParams +@implementation MTRColorControlClusterMoveHueParams - (instancetype)init { if (self = [super init]) { @@ -4107,7 +4107,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterStepHueParams +@implementation MTRColorControlClusterStepHueParams - (instancetype)init { if (self = [super init]) { @@ -4135,7 +4135,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveToSaturationParams +@implementation MTRColorControlClusterMoveToSaturationParams - (instancetype)init { if (self = [super init]) { @@ -4161,7 +4161,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveSaturationParams +@implementation MTRColorControlClusterMoveSaturationParams - (instancetype)init { if (self = [super init]) { @@ -4186,7 +4186,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterStepSaturationParams +@implementation MTRColorControlClusterStepSaturationParams - (instancetype)init { if (self = [super init]) { @@ -4214,7 +4214,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveToHueAndSaturationParams +@implementation MTRColorControlClusterMoveToHueAndSaturationParams - (instancetype)init { if (self = [super init]) { @@ -4242,7 +4242,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveToColorParams +@implementation MTRColorControlClusterMoveToColorParams - (instancetype)init { if (self = [super init]) { @@ -4270,7 +4270,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveColorParams +@implementation MTRColorControlClusterMoveColorParams - (instancetype)init { if (self = [super init]) { @@ -4295,7 +4295,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterStepColorParams +@implementation MTRColorControlClusterStepColorParams - (instancetype)init { if (self = [super init]) { @@ -4323,7 +4323,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveToColorTemperatureParams +@implementation MTRColorControlClusterMoveToColorTemperatureParams - (instancetype)init { if (self = [super init]) { @@ -4349,7 +4349,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterEnhancedMoveToHueParams +@implementation MTRColorControlClusterEnhancedMoveToHueParams - (instancetype)init { if (self = [super init]) { @@ -4377,7 +4377,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterEnhancedMoveHueParams +@implementation MTRColorControlClusterEnhancedMoveHueParams - (instancetype)init { if (self = [super init]) { @@ -4402,7 +4402,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterEnhancedStepHueParams +@implementation MTRColorControlClusterEnhancedStepHueParams - (instancetype)init { if (self = [super init]) { @@ -4430,7 +4430,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams +@implementation MTRColorControlClusterEnhancedMoveToHueAndSaturationParams - (instancetype)init { if (self = [super init]) { @@ -4458,7 +4458,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterColorLoopSetParams +@implementation MTRColorControlClusterColorLoopSetParams - (instancetype)init { if (self = [super init]) { @@ -4491,7 +4491,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterStopMoveStepParams +@implementation MTRColorControlClusterStopMoveStepParams - (instancetype)init { if (self = [super init]) { @@ -4512,7 +4512,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterMoveColorTemperatureParams +@implementation MTRColorControlClusterMoveColorTemperatureParams - (instancetype)init { if (self = [super init]) { @@ -4544,7 +4544,7 @@ - (NSString *)description } @end -@implementation CHIPColorControlClusterStepColorTemperatureParams +@implementation MTRColorControlClusterStepColorTemperatureParams - (instancetype)init { if (self = [super init]) { @@ -4578,7 +4578,7 @@ - (NSString *)description } @end -@implementation CHIPChannelClusterChangeChannelParams +@implementation MTRChannelClusterChangeChannelParams - (instancetype)init { if (self = [super init]) { @@ -4596,7 +4596,7 @@ - (NSString *)description } @end -@implementation CHIPChannelClusterChangeChannelResponseParams +@implementation MTRChannelClusterChangeChannelResponseParams - (instancetype)init { if (self = [super init]) { @@ -4617,7 +4617,7 @@ - (NSString *)description } @end -@implementation CHIPChannelClusterChangeChannelByNumberParams +@implementation MTRChannelClusterChangeChannelByNumberParams - (instancetype)init { if (self = [super init]) { @@ -4638,7 +4638,7 @@ - (NSString *)description } @end -@implementation CHIPChannelClusterSkipChannelParams +@implementation MTRChannelClusterSkipChannelParams - (instancetype)init { if (self = [super init]) { @@ -4656,7 +4656,7 @@ - (NSString *)description } @end -@implementation CHIPTargetNavigatorClusterNavigateTargetParams +@implementation MTRTargetNavigatorClusterNavigateTargetParams - (instancetype)init { if (self = [super init]) { @@ -4677,7 +4677,7 @@ - (NSString *)description } @end -@implementation CHIPTargetNavigatorClusterNavigateTargetResponseParams +@implementation MTRTargetNavigatorClusterNavigateTargetResponseParams - (instancetype)init { if (self = [super init]) { @@ -4698,7 +4698,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterPlayParams +@implementation MTRMediaPlaybackClusterPlayParams - (instancetype)init { if (self = [super init]) { @@ -4714,7 +4714,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterPauseParams +@implementation MTRMediaPlaybackClusterPauseParams - (instancetype)init { if (self = [super init]) { @@ -4730,7 +4730,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterStopPlaybackParams +@implementation MTRMediaPlaybackClusterStopPlaybackParams - (instancetype)init { if (self = [super init]) { @@ -4746,7 +4746,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterStartOverParams +@implementation MTRMediaPlaybackClusterStartOverParams - (instancetype)init { if (self = [super init]) { @@ -4762,7 +4762,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterPreviousParams +@implementation MTRMediaPlaybackClusterPreviousParams - (instancetype)init { if (self = [super init]) { @@ -4778,7 +4778,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterNextParams +@implementation MTRMediaPlaybackClusterNextParams - (instancetype)init { if (self = [super init]) { @@ -4794,7 +4794,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterRewindParams +@implementation MTRMediaPlaybackClusterRewindParams - (instancetype)init { if (self = [super init]) { @@ -4810,7 +4810,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterFastForwardParams +@implementation MTRMediaPlaybackClusterFastForwardParams - (instancetype)init { if (self = [super init]) { @@ -4826,7 +4826,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterSkipForwardParams +@implementation MTRMediaPlaybackClusterSkipForwardParams - (instancetype)init { if (self = [super init]) { @@ -4845,7 +4845,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterSkipBackwardParams +@implementation MTRMediaPlaybackClusterSkipBackwardParams - (instancetype)init { if (self = [super init]) { @@ -4864,7 +4864,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterPlaybackResponseParams +@implementation MTRMediaPlaybackClusterPlaybackResponseParams - (instancetype)init { if (self = [super init]) { @@ -4885,7 +4885,7 @@ - (NSString *)description } @end -@implementation CHIPMediaPlaybackClusterSeekParams +@implementation MTRMediaPlaybackClusterSeekParams - (instancetype)init { if (self = [super init]) { @@ -4903,7 +4903,7 @@ - (NSString *)description } @end -@implementation CHIPMediaInputClusterSelectInputParams +@implementation MTRMediaInputClusterSelectInputParams - (instancetype)init { if (self = [super init]) { @@ -4921,7 +4921,7 @@ - (NSString *)description } @end -@implementation CHIPMediaInputClusterShowInputStatusParams +@implementation MTRMediaInputClusterShowInputStatusParams - (instancetype)init { if (self = [super init]) { @@ -4937,7 +4937,7 @@ - (NSString *)description } @end -@implementation CHIPMediaInputClusterHideInputStatusParams +@implementation MTRMediaInputClusterHideInputStatusParams - (instancetype)init { if (self = [super init]) { @@ -4953,7 +4953,7 @@ - (NSString *)description } @end -@implementation CHIPMediaInputClusterRenameInputParams +@implementation MTRMediaInputClusterRenameInputParams - (instancetype)init { if (self = [super init]) { @@ -4974,7 +4974,7 @@ - (NSString *)description } @end -@implementation CHIPLowPowerClusterSleepParams +@implementation MTRLowPowerClusterSleepParams - (instancetype)init { if (self = [super init]) { @@ -4990,7 +4990,7 @@ - (NSString *)description } @end -@implementation CHIPKeypadInputClusterSendKeyParams +@implementation MTRKeypadInputClusterSendKeyParams - (instancetype)init { if (self = [super init]) { @@ -5008,7 +5008,7 @@ - (NSString *)description } @end -@implementation CHIPKeypadInputClusterSendKeyResponseParams +@implementation MTRKeypadInputClusterSendKeyResponseParams - (instancetype)init { if (self = [super init]) { @@ -5026,12 +5026,12 @@ - (NSString *)description } @end -@implementation CHIPContentLauncherClusterLaunchContentParams +@implementation MTRContentLauncherClusterLaunchContentParams - (instancetype)init { if (self = [super init]) { - _search = [CHIPContentLauncherClusterContentSearch new]; + _search = [MTRContentLauncherClusterContentSearch new]; _autoPlay = @(0); @@ -5049,7 +5049,7 @@ - (NSString *)description } @end -@implementation CHIPContentLauncherClusterLaunchURLParams +@implementation MTRContentLauncherClusterLaunchURLParams - (instancetype)init { if (self = [super init]) { @@ -5072,7 +5072,7 @@ - (NSString *)description } @end -@implementation CHIPContentLauncherClusterLaunchResponseParams +@implementation MTRContentLauncherClusterLaunchResponseParams - (instancetype)init { if (self = [super init]) { @@ -5093,7 +5093,7 @@ - (NSString *)description } @end -@implementation CHIPAudioOutputClusterSelectOutputParams +@implementation MTRAudioOutputClusterSelectOutputParams - (instancetype)init { if (self = [super init]) { @@ -5111,7 +5111,7 @@ - (NSString *)description } @end -@implementation CHIPAudioOutputClusterRenameOutputParams +@implementation MTRAudioOutputClusterRenameOutputParams - (instancetype)init { if (self = [super init]) { @@ -5132,12 +5132,12 @@ - (NSString *)description } @end -@implementation CHIPApplicationLauncherClusterLaunchAppParams +@implementation MTRApplicationLauncherClusterLaunchAppParams - (instancetype)init { if (self = [super init]) { - _application = [CHIPApplicationLauncherClusterApplication new]; + _application = [MTRApplicationLauncherClusterApplication new]; _data = nil; _timedInvokeTimeoutMs = nil; @@ -5153,12 +5153,12 @@ - (NSString *)description } @end -@implementation CHIPApplicationLauncherClusterStopAppParams +@implementation MTRApplicationLauncherClusterStopAppParams - (instancetype)init { if (self = [super init]) { - _application = [CHIPApplicationLauncherClusterApplication new]; + _application = [MTRApplicationLauncherClusterApplication new]; _timedInvokeTimeoutMs = nil; } return self; @@ -5172,12 +5172,12 @@ - (NSString *)description } @end -@implementation CHIPApplicationLauncherClusterHideAppParams +@implementation MTRApplicationLauncherClusterHideAppParams - (instancetype)init { if (self = [super init]) { - _application = [CHIPApplicationLauncherClusterApplication new]; + _application = [MTRApplicationLauncherClusterApplication new]; _timedInvokeTimeoutMs = nil; } return self; @@ -5191,7 +5191,7 @@ - (NSString *)description } @end -@implementation CHIPApplicationLauncherClusterLauncherResponseParams +@implementation MTRApplicationLauncherClusterLauncherResponseParams - (instancetype)init { if (self = [super init]) { @@ -5212,7 +5212,7 @@ - (NSString *)description } @end -@implementation CHIPAccountLoginClusterGetSetupPINParams +@implementation MTRAccountLoginClusterGetSetupPINParams - (instancetype)init { if (self = [super init]) { @@ -5231,7 +5231,7 @@ - (NSString *)description } @end -@implementation CHIPAccountLoginClusterGetSetupPINResponseParams +@implementation MTRAccountLoginClusterGetSetupPINResponseParams - (instancetype)init { if (self = [super init]) { @@ -5249,7 +5249,7 @@ - (NSString *)description } @end -@implementation CHIPAccountLoginClusterLoginParams +@implementation MTRAccountLoginClusterLoginParams - (instancetype)init { if (self = [super init]) { @@ -5270,7 +5270,7 @@ - (NSString *)description } @end -@implementation CHIPAccountLoginClusterLogoutParams +@implementation MTRAccountLoginClusterLogoutParams - (instancetype)init { if (self = [super init]) { @@ -5286,7 +5286,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterDisplayMessageParams +@implementation MTRMessagingClusterDisplayMessageParams - (instancetype)init { if (self = [super init]) { @@ -5318,7 +5318,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterGetLastMessageParams +@implementation MTRMessagingClusterGetLastMessageParams - (instancetype)init { if (self = [super init]) { @@ -5334,7 +5334,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterCancelMessageParams +@implementation MTRMessagingClusterCancelMessageParams - (instancetype)init { if (self = [super init]) { @@ -5355,7 +5355,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterMessageConfirmationParams +@implementation MTRMessagingClusterMessageConfirmationParams - (instancetype)init { if (self = [super init]) { @@ -5382,7 +5382,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterDisplayProtectedMessageParams +@implementation MTRMessagingClusterDisplayProtectedMessageParams - (instancetype)init { if (self = [super init]) { @@ -5414,7 +5414,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterGetMessageCancellationParams +@implementation MTRMessagingClusterGetMessageCancellationParams - (instancetype)init { if (self = [super init]) { @@ -5433,7 +5433,7 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterCancelAllMessagesParams +@implementation MTRMessagingClusterCancelAllMessagesParams - (instancetype)init { if (self = [super init]) { @@ -5452,7 +5452,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceEventsAndAlertClusterGetAlertsParams +@implementation MTRApplianceEventsAndAlertClusterGetAlertsParams - (instancetype)init { if (self = [super init]) { @@ -5468,7 +5468,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams +@implementation MTRApplianceEventsAndAlertClusterGetAlertsResponseParams - (instancetype)init { if (self = [super init]) { @@ -5489,7 +5489,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceEventsAndAlertClusterAlertsNotificationParams +@implementation MTRApplianceEventsAndAlertClusterAlertsNotificationParams - (instancetype)init { if (self = [super init]) { @@ -5510,7 +5510,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceEventsAndAlertClusterEventsNotificationParams +@implementation MTRApplianceEventsAndAlertClusterEventsNotificationParams - (instancetype)init { if (self = [super init]) { @@ -5531,7 +5531,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterLogNotificationParams +@implementation MTRApplianceStatisticsClusterLogNotificationParams - (instancetype)init { if (self = [super init]) { @@ -5556,7 +5556,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterLogRequestParams +@implementation MTRApplianceStatisticsClusterLogRequestParams - (instancetype)init { if (self = [super init]) { @@ -5574,7 +5574,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterLogResponseParams +@implementation MTRApplianceStatisticsClusterLogResponseParams - (instancetype)init { if (self = [super init]) { @@ -5599,7 +5599,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterLogQueueRequestParams +@implementation MTRApplianceStatisticsClusterLogQueueRequestParams - (instancetype)init { if (self = [super init]) { @@ -5615,7 +5615,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterLogQueueResponseParams +@implementation MTRApplianceStatisticsClusterLogQueueResponseParams - (instancetype)init { if (self = [super init]) { @@ -5636,7 +5636,7 @@ - (NSString *)description } @end -@implementation CHIPApplianceStatisticsClusterStatisticsAvailableParams +@implementation MTRApplianceStatisticsClusterStatisticsAvailableParams - (instancetype)init { if (self = [super init]) { @@ -5657,7 +5657,7 @@ - (NSString *)description } @end -@implementation CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams +@implementation MTRElectricalMeasurementClusterGetProfileInfoResponseCommandParams - (instancetype)init { if (self = [super init]) { @@ -5683,7 +5683,7 @@ - (NSString *)description } @end -@implementation CHIPElectricalMeasurementClusterGetProfileInfoCommandParams +@implementation MTRElectricalMeasurementClusterGetProfileInfoCommandParams - (instancetype)init { if (self = [super init]) { @@ -5699,7 +5699,7 @@ - (NSString *)description } @end -@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams +@implementation MTRElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams - (instancetype)init { if (self = [super init]) { @@ -5730,7 +5730,7 @@ - (NSString *)description } @end -@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams +@implementation MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams - (instancetype)init { if (self = [super init]) { @@ -5753,7 +5753,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestParams +@implementation MTRTestClusterClusterTestParams - (instancetype)init { if (self = [super init]) { @@ -5769,7 +5769,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSpecificResponseParams +@implementation MTRTestClusterClusterTestSpecificResponseParams - (instancetype)init { if (self = [super init]) { @@ -5788,7 +5788,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestNotHandledParams +@implementation MTRTestClusterClusterTestNotHandledParams - (instancetype)init { if (self = [super init]) { @@ -5804,7 +5804,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestAddArgumentsResponseParams +@implementation MTRTestClusterClusterTestAddArgumentsResponseParams - (instancetype)init { if (self = [super init]) { @@ -5823,7 +5823,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSpecificParams +@implementation MTRTestClusterClusterTestSpecificParams - (instancetype)init { if (self = [super init]) { @@ -5839,7 +5839,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSimpleArgumentResponseParams +@implementation MTRTestClusterClusterTestSimpleArgumentResponseParams - (instancetype)init { if (self = [super init]) { @@ -5858,7 +5858,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestUnknownCommandParams +@implementation MTRTestClusterClusterTestUnknownCommandParams - (instancetype)init { if (self = [super init]) { @@ -5874,7 +5874,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestStructArrayArgumentResponseParams +@implementation MTRTestClusterClusterTestStructArrayArgumentResponseParams - (instancetype)init { if (self = [super init]) { @@ -5903,7 +5903,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestAddArgumentsParams +@implementation MTRTestClusterClusterTestAddArgumentsParams - (instancetype)init { if (self = [super init]) { @@ -5924,7 +5924,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestListInt8UReverseResponseParams +@implementation MTRTestClusterClusterTestListInt8UReverseResponseParams - (instancetype)init { if (self = [super init]) { @@ -5942,7 +5942,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSimpleArgumentRequestParams +@implementation MTRTestClusterClusterTestSimpleArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -5960,7 +5960,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEnumsResponseParams +@implementation MTRTestClusterClusterTestEnumsResponseParams - (instancetype)init { if (self = [super init]) { @@ -5981,7 +5981,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestStructArrayArgumentRequestParams +@implementation MTRTestClusterClusterTestStructArrayArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -6010,7 +6010,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestNullableOptionalResponseParams +@implementation MTRTestClusterClusterTestNullableOptionalResponseParams - (instancetype)init { if (self = [super init]) { @@ -6035,12 +6035,12 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestStructArgumentRequestParams +@implementation MTRTestClusterClusterTestStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; + _arg1 = [MTRTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6053,7 +6053,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestComplexNullableOptionalResponseParams +@implementation MTRTestClusterClusterTestComplexNullableOptionalResponseParams - (instancetype)init { if (self = [super init]) { @@ -6140,12 +6140,12 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestNestedStructArgumentRequestParams +@implementation MTRTestClusterClusterTestNestedStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterNestedStruct new]; + _arg1 = [MTRTestClusterClusterNestedStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6158,7 +6158,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterBooleanResponseParams +@implementation MTRTestClusterClusterBooleanResponseParams - (instancetype)init { if (self = [super init]) { @@ -6176,7 +6176,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestListStructArgumentRequestParams +@implementation MTRTestClusterClusterTestListStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -6194,12 +6194,12 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterSimpleStructResponseParams +@implementation MTRTestClusterClusterSimpleStructResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; + _arg1 = [MTRTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6212,7 +6212,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestListInt8UArgumentRequestParams +@implementation MTRTestClusterClusterTestListInt8UArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -6230,7 +6230,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEmitTestEventResponseParams +@implementation MTRTestClusterClusterTestEmitTestEventResponseParams - (instancetype)init { if (self = [super init]) { @@ -6248,12 +6248,12 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestNestedStructListArgumentRequestParams +@implementation MTRTestClusterClusterTestNestedStructListArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterNestedStructList new]; + _arg1 = [MTRTestClusterClusterNestedStructList new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6266,7 +6266,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams +@implementation MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams - (instancetype)init { if (self = [super init]) { @@ -6284,7 +6284,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams +@implementation MTRTestClusterClusterTestListNestedStructListArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -6302,7 +6302,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestListInt8UReverseRequestParams +@implementation MTRTestClusterClusterTestListInt8UReverseRequestParams - (instancetype)init { if (self = [super init]) { @@ -6320,7 +6320,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEnumsRequestParams +@implementation MTRTestClusterClusterTestEnumsRequestParams - (instancetype)init { if (self = [super init]) { @@ -6341,7 +6341,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestNullableOptionalRequestParams +@implementation MTRTestClusterClusterTestNullableOptionalRequestParams - (instancetype)init { if (self = [super init]) { @@ -6359,7 +6359,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestComplexNullableOptionalRequestParams +@implementation MTRTestClusterClusterTestComplexNullableOptionalRequestParams - (instancetype)init { if (self = [super init]) { @@ -6405,12 +6405,12 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterSimpleStructEchoRequestParams +@implementation MTRTestClusterClusterSimpleStructEchoRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; + _arg1 = [MTRTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6423,7 +6423,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTimedInvokeRequestParams +@implementation MTRTestClusterClusterTimedInvokeRequestParams - (instancetype)init { if (self = [super init]) { @@ -6439,7 +6439,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams +@implementation MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams - (instancetype)init { if (self = [super init]) { @@ -6457,7 +6457,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEmitTestEventRequestParams +@implementation MTRTestClusterClusterTestEmitTestEventRequestParams - (instancetype)init { if (self = [super init]) { @@ -6480,7 +6480,7 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams +@implementation MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams - (instancetype)init { if (self = [super init]) { diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPEventTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm similarity index 89% rename from src/darwin/Framework/CHIP/zap-generated/CHIPEventTLVValueDecoder.mm rename to src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm index 632553176d944d..4b1717d3d2b1c7 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPEventTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm @@ -17,9 +17,9 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPEventTLVValueDecoder_Internal.h" +#import "MTREventTLVValueDecoder_Internal.h" -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" #include #include @@ -34,7 +34,7 @@ using namespace chip; using namespace chip::app; -id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) +id MTRDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aReader, CHIP_ERROR * aError) { switch (aPath.mClusterId) { case Clusters::Identify::Id: { @@ -138,8 +138,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPAccessControlClusterAccessControlEntryChangedEvent * value = - [CHIPAccessControlClusterAccessControlEntryChangedEvent new]; + MTRAccessControlClusterAccessControlEntryChangedEvent * value = + [MTRAccessControlClusterAccessControlEntryChangedEvent new]; do { NSNumber * _Nullable memberValue; @@ -165,11 +165,11 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea value.changeType = memberValue; } while (0); do { - CHIPAccessControlClusterAccessControlEntry * _Nullable memberValue; + MTRAccessControlClusterAccessControlEntry * _Nullable memberValue; if (cppValue.latestValue.IsNull()) { memberValue = nil; } else { - memberValue = [CHIPAccessControlClusterAccessControlEntry new]; + memberValue = [MTRAccessControlClusterAccessControlEntry new]; memberValue.privilege = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue.latestValue.Value().privilege)]; memberValue.authMode = @@ -202,8 +202,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea auto iter_3 = cppValue.latestValue.Value().targets.Value().begin(); while (iter_3.Next()) { auto & entry_3 = iter_3.GetValue(); - CHIPAccessControlClusterTarget * newElement_3; - newElement_3 = [CHIPAccessControlClusterTarget new]; + MTRAccessControlClusterTarget * newElement_3; + newElement_3 = [MTRAccessControlClusterTarget new]; if (entry_3.cluster.IsNull()) { newElement_3.cluster = nil; } else { @@ -249,8 +249,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPAccessControlClusterAccessControlExtensionChangedEvent * value = - [CHIPAccessControlClusterAccessControlExtensionChangedEvent new]; + MTRAccessControlClusterAccessControlExtensionChangedEvent * value = + [MTRAccessControlClusterAccessControlExtensionChangedEvent new]; do { NSNumber * _Nullable memberValue; @@ -276,11 +276,11 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea value.changeType = memberValue; } while (0); do { - CHIPAccessControlClusterExtensionEntry * _Nullable memberValue; + MTRAccessControlClusterExtensionEntry * _Nullable memberValue; if (cppValue.latestValue.IsNull()) { memberValue = nil; } else { - memberValue = [CHIPAccessControlClusterExtensionEntry new]; + memberValue = [MTRAccessControlClusterExtensionEntry new]; memberValue.data = [NSData dataWithBytes:cppValue.latestValue.Value().data.data() length:cppValue.latestValue.Value().data.size()]; memberValue.fabricIndex = [NSNumber numberWithUnsignedChar:cppValue.latestValue.Value().fabricIndex]; @@ -313,7 +313,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedActionsClusterStateChangedEvent * value = [CHIPBridgedActionsClusterStateChangedEvent new]; + MTRBridgedActionsClusterStateChangedEvent * value = [MTRBridgedActionsClusterStateChangedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -341,7 +341,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedActionsClusterActionFailedEvent * value = [CHIPBridgedActionsClusterActionFailedEvent new]; + MTRBridgedActionsClusterActionFailedEvent * value = [MTRBridgedActionsClusterActionFailedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -384,7 +384,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBasicClusterStartUpEvent * value = [CHIPBasicClusterStartUpEvent new]; + MTRBasicClusterStartUpEvent * value = [MTRBasicClusterStartUpEvent new]; do { NSNumber * _Nonnull memberValue; @@ -402,7 +402,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBasicClusterShutDownEvent * value = [CHIPBasicClusterShutDownEvent new]; + MTRBasicClusterShutDownEvent * value = [MTRBasicClusterShutDownEvent new]; return value; } @@ -414,7 +414,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBasicClusterLeaveEvent * value = [CHIPBasicClusterLeaveEvent new]; + MTRBasicClusterLeaveEvent * value = [MTRBasicClusterLeaveEvent new]; return value; } @@ -426,7 +426,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBasicClusterReachableChangedEvent * value = [CHIPBasicClusterReachableChangedEvent new]; + MTRBasicClusterReachableChangedEvent * value = [MTRBasicClusterReachableChangedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -464,8 +464,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPOtaSoftwareUpdateRequestorClusterStateTransitionEvent * value = - [CHIPOtaSoftwareUpdateRequestorClusterStateTransitionEvent new]; + MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent * value = + [MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent new]; do { NSNumber * _Nonnull memberValue; @@ -502,8 +502,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPOtaSoftwareUpdateRequestorClusterVersionAppliedEvent * value = - [CHIPOtaSoftwareUpdateRequestorClusterVersionAppliedEvent new]; + MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent * value = + [MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -526,8 +526,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPOtaSoftwareUpdateRequestorClusterDownloadErrorEvent * value = - [CHIPOtaSoftwareUpdateRequestorClusterDownloadErrorEvent new]; + MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent * value = + [MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent new]; do { NSNumber * _Nonnull memberValue; @@ -658,8 +658,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPGeneralDiagnosticsClusterHardwareFaultChangeEvent * value = - [CHIPGeneralDiagnosticsClusterHardwareFaultChangeEvent new]; + MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent * value = + [MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent new]; do { NSArray * _Nonnull memberValue; @@ -712,7 +712,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPGeneralDiagnosticsClusterRadioFaultChangeEvent * value = [CHIPGeneralDiagnosticsClusterRadioFaultChangeEvent new]; + MTRGeneralDiagnosticsClusterRadioFaultChangeEvent * value = [MTRGeneralDiagnosticsClusterRadioFaultChangeEvent new]; do { NSArray * _Nonnull memberValue; @@ -765,8 +765,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPGeneralDiagnosticsClusterNetworkFaultChangeEvent * value = - [CHIPGeneralDiagnosticsClusterNetworkFaultChangeEvent new]; + MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent * value = [MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent new]; do { NSArray * _Nonnull memberValue; @@ -819,7 +818,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPGeneralDiagnosticsClusterBootReasonEvent * value = [CHIPGeneralDiagnosticsClusterBootReasonEvent new]; + MTRGeneralDiagnosticsClusterBootReasonEvent * value = [MTRGeneralDiagnosticsClusterBootReasonEvent new]; do { NSNumber * _Nonnull memberValue; @@ -847,7 +846,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSoftwareDiagnosticsClusterSoftwareFaultEvent * value = [CHIPSoftwareDiagnosticsClusterSoftwareFaultEvent new]; + MTRSoftwareDiagnosticsClusterSoftwareFaultEvent * value = [MTRSoftwareDiagnosticsClusterSoftwareFaultEvent new]; do { NSNumber * _Nonnull memberValue; @@ -896,8 +895,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPThreadNetworkDiagnosticsClusterConnectionStatusEvent * value = - [CHIPThreadNetworkDiagnosticsClusterConnectionStatusEvent new]; + MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent * value = + [MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent new]; do { NSNumber * _Nonnull memberValue; @@ -925,7 +924,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPWiFiNetworkDiagnosticsClusterDisconnectionEvent * value = [CHIPWiFiNetworkDiagnosticsClusterDisconnectionEvent new]; + MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent * value = [MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent new]; do { NSNumber * _Nonnull memberValue; @@ -943,8 +942,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPWiFiNetworkDiagnosticsClusterAssociationFailureEvent * value = - [CHIPWiFiNetworkDiagnosticsClusterAssociationFailureEvent new]; + MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent * value = + [MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent new]; do { NSNumber * _Nonnull memberValue; @@ -967,8 +966,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPWiFiNetworkDiagnosticsClusterConnectionStatusEvent * value = - [CHIPWiFiNetworkDiagnosticsClusterConnectionStatusEvent new]; + MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent * value = + [MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1006,7 +1005,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedDeviceBasicClusterStartUpEvent * value = [CHIPBridgedDeviceBasicClusterStartUpEvent new]; + MTRBridgedDeviceBasicClusterStartUpEvent * value = [MTRBridgedDeviceBasicClusterStartUpEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1024,7 +1023,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedDeviceBasicClusterShutDownEvent * value = [CHIPBridgedDeviceBasicClusterShutDownEvent new]; + MTRBridgedDeviceBasicClusterShutDownEvent * value = [MTRBridgedDeviceBasicClusterShutDownEvent new]; return value; } @@ -1036,7 +1035,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedDeviceBasicClusterLeaveEvent * value = [CHIPBridgedDeviceBasicClusterLeaveEvent new]; + MTRBridgedDeviceBasicClusterLeaveEvent * value = [MTRBridgedDeviceBasicClusterLeaveEvent new]; return value; } @@ -1048,7 +1047,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBridgedDeviceBasicClusterReachableChangedEvent * value = [CHIPBridgedDeviceBasicClusterReachableChangedEvent new]; + MTRBridgedDeviceBasicClusterReachableChangedEvent * value = [MTRBridgedDeviceBasicClusterReachableChangedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1076,7 +1075,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterSwitchLatchedEvent * value = [CHIPSwitchClusterSwitchLatchedEvent new]; + MTRSwitchClusterSwitchLatchedEvent * value = [MTRSwitchClusterSwitchLatchedEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1094,7 +1093,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterInitialPressEvent * value = [CHIPSwitchClusterInitialPressEvent new]; + MTRSwitchClusterInitialPressEvent * value = [MTRSwitchClusterInitialPressEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1112,7 +1111,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterLongPressEvent * value = [CHIPSwitchClusterLongPressEvent new]; + MTRSwitchClusterLongPressEvent * value = [MTRSwitchClusterLongPressEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1130,7 +1129,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterShortReleaseEvent * value = [CHIPSwitchClusterShortReleaseEvent new]; + MTRSwitchClusterShortReleaseEvent * value = [MTRSwitchClusterShortReleaseEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1148,7 +1147,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterLongReleaseEvent * value = [CHIPSwitchClusterLongReleaseEvent new]; + MTRSwitchClusterLongReleaseEvent * value = [MTRSwitchClusterLongReleaseEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1166,7 +1165,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterMultiPressOngoingEvent * value = [CHIPSwitchClusterMultiPressOngoingEvent new]; + MTRSwitchClusterMultiPressOngoingEvent * value = [MTRSwitchClusterMultiPressOngoingEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1189,7 +1188,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPSwitchClusterMultiPressCompleteEvent * value = [CHIPSwitchClusterMultiPressCompleteEvent new]; + MTRSwitchClusterMultiPressCompleteEvent * value = [MTRSwitchClusterMultiPressCompleteEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1272,7 +1271,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPBooleanStateClusterStateChangeEvent * value = [CHIPBooleanStateClusterStateChangeEvent new]; + MTRBooleanStateClusterStateChangeEvent * value = [MTRBooleanStateClusterStateChangeEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1310,7 +1309,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPDoorLockClusterDoorLockAlarmEvent * value = [CHIPDoorLockClusterDoorLockAlarmEvent new]; + MTRDoorLockClusterDoorLockAlarmEvent * value = [MTRDoorLockClusterDoorLockAlarmEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1328,7 +1327,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPDoorLockClusterDoorStateChangeEvent * value = [CHIPDoorLockClusterDoorStateChangeEvent new]; + MTRDoorLockClusterDoorStateChangeEvent * value = [MTRDoorLockClusterDoorStateChangeEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1346,7 +1345,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPDoorLockClusterLockOperationEvent * value = [CHIPDoorLockClusterLockOperationEvent new]; + MTRDoorLockClusterLockOperationEvent * value = [MTRDoorLockClusterLockOperationEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1396,8 +1395,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea auto iter_2 = cppValue.credentials.Value().Value().begin(); while (iter_2.Next()) { auto & entry_2 = iter_2.GetValue(); - CHIPDoorLockClusterDlCredential * newElement_2; - newElement_2 = [CHIPDoorLockClusterDlCredential new]; + MTRDoorLockClusterDlCredential * newElement_2; + newElement_2 = [MTRDoorLockClusterDlCredential new]; newElement_2.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.credentialType)]; newElement_2.credentialIndex = [NSNumber numberWithUnsignedShort:entry_2.credentialIndex]; @@ -1427,7 +1426,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPDoorLockClusterLockOperationErrorEvent * value = [CHIPDoorLockClusterLockOperationErrorEvent new]; + MTRDoorLockClusterLockOperationErrorEvent * value = [MTRDoorLockClusterLockOperationErrorEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1482,8 +1481,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea auto iter_2 = cppValue.credentials.Value().Value().begin(); while (iter_2.Next()) { auto & entry_2 = iter_2.GetValue(); - CHIPDoorLockClusterDlCredential * newElement_2; - newElement_2 = [CHIPDoorLockClusterDlCredential new]; + MTRDoorLockClusterDlCredential * newElement_2; + newElement_2 = [MTRDoorLockClusterDlCredential new]; newElement_2.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.credentialType)]; newElement_2.credentialIndex = [NSNumber numberWithUnsignedShort:entry_2.credentialIndex]; @@ -1513,7 +1512,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPDoorLockClusterLockUserChangeEvent * value = [CHIPDoorLockClusterLockUserChangeEvent new]; + MTRDoorLockClusterLockUserChangeEvent * value = [MTRDoorLockClusterLockUserChangeEvent new]; do { NSNumber * _Nonnull memberValue; @@ -1607,8 +1606,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterSupplyVoltageLowEvent * value = - [CHIPPumpConfigurationAndControlClusterSupplyVoltageLowEvent new]; + MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent * value = + [MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent new]; return value; } @@ -1620,8 +1619,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterSupplyVoltageHighEvent * value = - [CHIPPumpConfigurationAndControlClusterSupplyVoltageHighEvent new]; + MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent * value = + [MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent new]; return value; } @@ -1633,8 +1632,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterPowerMissingPhaseEvent * value = - [CHIPPumpConfigurationAndControlClusterPowerMissingPhaseEvent new]; + MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent * value = + [MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent new]; return value; } @@ -1646,8 +1645,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterSystemPressureLowEvent * value = - [CHIPPumpConfigurationAndControlClusterSystemPressureLowEvent new]; + MTRPumpConfigurationAndControlClusterSystemPressureLowEvent * value = + [MTRPumpConfigurationAndControlClusterSystemPressureLowEvent new]; return value; } @@ -1659,8 +1658,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterSystemPressureHighEvent * value = - [CHIPPumpConfigurationAndControlClusterSystemPressureHighEvent new]; + MTRPumpConfigurationAndControlClusterSystemPressureHighEvent * value = + [MTRPumpConfigurationAndControlClusterSystemPressureHighEvent new]; return value; } @@ -1672,8 +1671,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterDryRunningEvent * value = - [CHIPPumpConfigurationAndControlClusterDryRunningEvent new]; + MTRPumpConfigurationAndControlClusterDryRunningEvent * value = + [MTRPumpConfigurationAndControlClusterDryRunningEvent new]; return value; } @@ -1685,8 +1684,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterMotorTemperatureHighEvent * value = - [CHIPPumpConfigurationAndControlClusterMotorTemperatureHighEvent new]; + MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent * value = + [MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent new]; return value; } @@ -1698,8 +1697,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent * value = - [CHIPPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent new]; + MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent * value = + [MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent new]; return value; } @@ -1711,8 +1710,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterElectronicTemperatureHighEvent * value = - [CHIPPumpConfigurationAndControlClusterElectronicTemperatureHighEvent new]; + MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent * value = + [MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent new]; return value; } @@ -1724,8 +1723,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterPumpBlockedEvent * value = - [CHIPPumpConfigurationAndControlClusterPumpBlockedEvent new]; + MTRPumpConfigurationAndControlClusterPumpBlockedEvent * value = + [MTRPumpConfigurationAndControlClusterPumpBlockedEvent new]; return value; } @@ -1737,8 +1736,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterSensorFailureEvent * value = - [CHIPPumpConfigurationAndControlClusterSensorFailureEvent new]; + MTRPumpConfigurationAndControlClusterSensorFailureEvent * value = + [MTRPumpConfigurationAndControlClusterSensorFailureEvent new]; return value; } @@ -1750,8 +1749,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent * value = - [CHIPPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent new]; + MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent * value = + [MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent new]; return value; } @@ -1763,8 +1762,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterElectronicFatalFailureEvent * value = - [CHIPPumpConfigurationAndControlClusterElectronicFatalFailureEvent new]; + MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent * value = + [MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent new]; return value; } @@ -1776,8 +1775,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterGeneralFaultEvent * value = - [CHIPPumpConfigurationAndControlClusterGeneralFaultEvent new]; + MTRPumpConfigurationAndControlClusterGeneralFaultEvent * value = + [MTRPumpConfigurationAndControlClusterGeneralFaultEvent new]; return value; } @@ -1789,7 +1788,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterLeakageEvent * value = [CHIPPumpConfigurationAndControlClusterLeakageEvent new]; + MTRPumpConfigurationAndControlClusterLeakageEvent * value = [MTRPumpConfigurationAndControlClusterLeakageEvent new]; return value; } @@ -1801,8 +1800,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterAirDetectionEvent * value = - [CHIPPumpConfigurationAndControlClusterAirDetectionEvent new]; + MTRPumpConfigurationAndControlClusterAirDetectionEvent * value = + [MTRPumpConfigurationAndControlClusterAirDetectionEvent new]; return value; } @@ -1814,8 +1813,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPPumpConfigurationAndControlClusterTurbineOperationEvent * value = - [CHIPPumpConfigurationAndControlClusterTurbineOperationEvent new]; + MTRPumpConfigurationAndControlClusterTurbineOperationEvent * value = + [MTRPumpConfigurationAndControlClusterTurbineOperationEvent new]; return value; } @@ -2067,7 +2066,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPTestClusterClusterTestEventEvent * value = [CHIPTestClusterClusterTestEventEvent new]; + MTRTestClusterClusterTestEventEvent * value = [MTRTestClusterClusterTestEventEvent new]; do { NSNumber * _Nonnull memberValue; @@ -2085,8 +2084,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea value.arg3 = memberValue; } while (0); do { - CHIPTestClusterClusterSimpleStruct * _Nonnull memberValue; - memberValue = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * _Nonnull memberValue; + memberValue = [MTRTestClusterClusterSimpleStruct new]; memberValue.a = [NSNumber numberWithUnsignedChar:cppValue.arg4.a]; memberValue.b = [NSNumber numberWithBool:cppValue.arg4.b]; memberValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue.arg4.c)]; @@ -2106,8 +2105,8 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea auto iter_0 = cppValue.arg5.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - CHIPTestClusterClusterSimpleStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterSimpleStruct new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; newElement_0.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c)]; @@ -2160,7 +2159,7 @@ id CHIPDecodeEventPayload(const ConcreteEventPath & aPath, TLV::TLVReader & aRea return nil; } - CHIPTestClusterClusterTestFabricScopedEventEvent * value = [CHIPTestClusterClusterTestFabricScopedEventEvent new]; + MTRTestClusterClusterTestFabricScopedEventEvent * value = [MTRTestClusterClusterTestFabricScopedEventEvent new]; do { NSNumber * _Nonnull memberValue; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h similarity index 71% rename from src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h rename to src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h index a939c3ee443751..8c1782544b28f0 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h @@ -17,40 +17,41 @@ // THIS FILE IS GENERATED BY ZAP -#ifndef CHIP_STRUCTS_H -#define CHIP_STRUCTS_H - #import NS_ASSUME_NONNULL_BEGIN -@interface CHIPScenesClusterAttributeValuePair : NSObject +@interface MTRScenesClusterAttributeValuePair : NSObject @property (strong, nonatomic) NSNumber * _Nullable attributeId; @property (strong, nonatomic) NSArray * _Nonnull attributeValue; - (instancetype)init; + @end -@interface CHIPScenesClusterExtensionFieldSet : NSObject +@interface MTRScenesClusterExtensionFieldSet : NSObject @property (strong, nonatomic) NSNumber * _Nonnull clusterId; @property (strong, nonatomic) NSArray * _Nonnull attributeValueList; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterPowerProfileRecord : NSObject +@interface MTRPowerProfileClusterPowerProfileRecord : NSObject @property (strong, nonatomic) NSNumber * _Nonnull powerProfileId; @property (strong, nonatomic) NSNumber * _Nonnull energyPhaseId; @property (strong, nonatomic) NSNumber * _Nonnull powerProfileRemoteControl; @property (strong, nonatomic) NSNumber * _Nonnull powerProfileState; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterScheduledPhase : NSObject +@interface MTRPowerProfileClusterScheduledPhase : NSObject @property (strong, nonatomic) NSNumber * _Nonnull energyPhaseId; @property (strong, nonatomic) NSNumber * _Nonnull scheduledTime; - (instancetype)init; + @end -@interface CHIPPowerProfileClusterTransferredPhase : NSObject +@interface MTRPowerProfileClusterTransferredPhase : NSObject @property (strong, nonatomic) NSNumber * _Nonnull energyPhaseId; @property (strong, nonatomic) NSNumber * _Nonnull macroPhaseId; @property (strong, nonatomic) NSNumber * _Nonnull expectedDuration; @@ -58,62 +59,68 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull energy; @property (strong, nonatomic) NSNumber * _Nonnull maxActivationDelay; - (instancetype)init; + @end -@interface CHIPDescriptorClusterDeviceType : NSObject +@interface MTRDescriptorClusterDeviceType : NSObject @property (strong, nonatomic) NSNumber * _Nonnull type; @property (strong, nonatomic) NSNumber * _Nonnull revision; - (instancetype)init; + @end -@interface CHIPBindingClusterTargetStruct : NSObject +@interface MTRBindingClusterTargetStruct : NSObject @property (strong, nonatomic) NSNumber * _Nullable node; @property (strong, nonatomic) NSNumber * _Nullable group; @property (strong, nonatomic) NSNumber * _Nullable endpoint; @property (strong, nonatomic) NSNumber * _Nullable cluster; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPAccessControlClusterTarget : NSObject +@interface MTRAccessControlClusterTarget : NSObject @property (strong, nonatomic) NSNumber * _Nullable cluster; @property (strong, nonatomic) NSNumber * _Nullable endpoint; @property (strong, nonatomic) NSNumber * _Nullable deviceType; - (instancetype)init; + @end -@interface CHIPAccessControlClusterAccessControlEntry : NSObject +@interface MTRAccessControlClusterAccessControlEntry : NSObject @property (strong, nonatomic) NSNumber * _Nonnull privilege; @property (strong, nonatomic) NSNumber * _Nonnull authMode; @property (strong, nonatomic) NSArray * _Nullable subjects; @property (strong, nonatomic) NSArray * _Nullable targets; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPAccessControlClusterExtensionEntry : NSObject +@interface MTRAccessControlClusterExtensionEntry : NSObject @property (strong, nonatomic) NSData * _Nonnull data; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPAccessControlClusterAccessControlEntryChangedEvent : NSObject +@interface MTRAccessControlClusterAccessControlEntryChangedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nullable adminNodeID; @property (strong, nonatomic) NSNumber * _Nullable adminPasscodeID; @property (strong, nonatomic) NSNumber * _Nonnull changeType; -@property (strong, nonatomic) CHIPAccessControlClusterAccessControlEntry * _Nullable latestValue; +@property (strong, nonatomic) MTRAccessControlClusterAccessControlEntry * _Nullable latestValue; @property (strong, nonatomic) NSNumber * _Nonnull adminFabricIndex; @end -@interface CHIPAccessControlClusterAccessControlExtensionChangedEvent : NSObject +@interface MTRAccessControlClusterAccessControlExtensionChangedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nullable adminNodeID; @property (strong, nonatomic) NSNumber * _Nullable adminPasscodeID; @property (strong, nonatomic) NSNumber * _Nonnull changeType; -@property (strong, nonatomic) CHIPAccessControlClusterExtensionEntry * _Nullable latestValue; +@property (strong, nonatomic) MTRAccessControlClusterExtensionEntry * _Nullable latestValue; @property (strong, nonatomic) NSNumber * _Nonnull adminFabricIndex; @end -@interface CHIPBridgedActionsClusterActionStruct : NSObject +@interface MTRBridgedActionsClusterActionStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @property (strong, nonatomic) NSString * _Nonnull name; @property (strong, nonatomic) NSNumber * _Nonnull type; @@ -121,106 +128,115 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull supportedCommands; @property (strong, nonatomic) NSNumber * _Nonnull status; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterEndpointListStruct : NSObject +@interface MTRBridgedActionsClusterEndpointListStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull endpointListID; @property (strong, nonatomic) NSString * _Nonnull name; @property (strong, nonatomic) NSNumber * _Nonnull type; @property (strong, nonatomic) NSArray * _Nonnull endpoints; - (instancetype)init; + @end -@interface CHIPBridgedActionsClusterStateChangedEvent : NSObject +@interface MTRBridgedActionsClusterStateChangedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @property (strong, nonatomic) NSNumber * _Nonnull invokeID; @property (strong, nonatomic, getter=getNewState) NSNumber * _Nonnull newState; @end -@interface CHIPBridgedActionsClusterActionFailedEvent : NSObject +@interface MTRBridgedActionsClusterActionFailedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull actionID; @property (strong, nonatomic) NSNumber * _Nonnull invokeID; @property (strong, nonatomic, getter=getNewState) NSNumber * _Nonnull newState; @property (strong, nonatomic) NSNumber * _Nonnull error; @end -@interface CHIPBasicClusterCapabilityMinimaStruct : NSObject +@interface MTRBasicClusterCapabilityMinimaStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull caseSessionsPerFabric; @property (strong, nonatomic) NSNumber * _Nonnull subscriptionsPerFabric; - (instancetype)init; + @end -@interface CHIPBasicClusterStartUpEvent : NSObject +@interface MTRBasicClusterStartUpEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull softwareVersion; @end -@interface CHIPBasicClusterShutDownEvent : NSObject +@interface MTRBasicClusterShutDownEvent : NSObject @end -@interface CHIPBasicClusterLeaveEvent : NSObject +@interface MTRBasicClusterLeaveEvent : NSObject @end -@interface CHIPBasicClusterReachableChangedEvent : NSObject +@interface MTRBasicClusterReachableChangedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull reachableNewValue; @end -@interface CHIPOtaSoftwareUpdateRequestorClusterProviderLocation : NSObject +@interface MTROtaSoftwareUpdateRequestorClusterProviderLocation : NSObject @property (strong, nonatomic) NSNumber * _Nonnull providerNodeID; @property (strong, nonatomic) NSNumber * _Nonnull endpoint; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPOtaSoftwareUpdateRequestorClusterStateTransitionEvent : NSObject +@interface MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull previousState; @property (strong, nonatomic, getter=getNewState) NSNumber * _Nonnull newState; @property (strong, nonatomic) NSNumber * _Nonnull reason; @property (strong, nonatomic) NSNumber * _Nullable targetSoftwareVersion; @end -@interface CHIPOtaSoftwareUpdateRequestorClusterVersionAppliedEvent : NSObject +@interface MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull softwareVersion; @property (strong, nonatomic) NSNumber * _Nonnull productID; @end -@interface CHIPOtaSoftwareUpdateRequestorClusterDownloadErrorEvent : NSObject +@interface MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull softwareVersion; @property (strong, nonatomic) NSNumber * _Nonnull bytesDownloaded; @property (strong, nonatomic) NSNumber * _Nullable progressPercent; @property (strong, nonatomic) NSNumber * _Nullable platformCode; @end -@interface CHIPPowerSourceClusterBatChargeFaultChangeType : NSObject +@interface MTRPowerSourceClusterBatChargeFaultChangeType : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; - (instancetype)init; + @end -@interface CHIPPowerSourceClusterBatFaultChangeType : NSObject +@interface MTRPowerSourceClusterBatFaultChangeType : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; - (instancetype)init; + @end -@interface CHIPPowerSourceClusterWiredFaultChangeType : NSObject +@interface MTRPowerSourceClusterWiredFaultChangeType : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; - (instancetype)init; + @end -@interface CHIPGeneralCommissioningClusterBasicCommissioningInfo : NSObject +@interface MTRGeneralCommissioningClusterBasicCommissioningInfo : NSObject @property (strong, nonatomic) NSNumber * _Nonnull failSafeExpiryLengthSeconds; @property (strong, nonatomic) NSNumber * _Nonnull maxCumulativeFailsafeSeconds; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterNetworkInfo : NSObject +@interface MTRNetworkCommissioningClusterNetworkInfo : NSObject @property (strong, nonatomic) NSData * _Nonnull networkID; @property (strong, nonatomic) NSNumber * _Nonnull connected; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterThreadInterfaceScanResult : NSObject +@interface MTRNetworkCommissioningClusterThreadInterfaceScanResult : NSObject @property (strong, nonatomic) NSNumber * _Nonnull panId; @property (strong, nonatomic) NSNumber * _Nonnull extendedPanId; @property (strong, nonatomic) NSString * _Nonnull networkName; @@ -230,9 +246,10 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull rssi; @property (strong, nonatomic) NSNumber * _Nonnull lqi; - (instancetype)init; + @end -@interface CHIPNetworkCommissioningClusterWiFiInterfaceScanResult : NSObject +@interface MTRNetworkCommissioningClusterWiFiInterfaceScanResult : NSObject @property (strong, nonatomic) NSNumber * _Nonnull security; @property (strong, nonatomic) NSData * _Nonnull ssid; @property (strong, nonatomic) NSData * _Nonnull bssid; @@ -240,9 +257,10 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull wiFiBand; @property (strong, nonatomic) NSNumber * _Nonnull rssi; - (instancetype)init; + @end -@interface CHIPGeneralDiagnosticsClusterNetworkInterfaceType : NSObject +@interface MTRGeneralDiagnosticsClusterNetworkInterfaceType : NSObject @property (strong, nonatomic) NSString * _Nonnull name; @property (strong, nonatomic) NSNumber * _Nonnull isOperational; @property (strong, nonatomic) NSNumber * _Nullable offPremiseServicesReachableIPv4; @@ -252,43 +270,45 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSArray * _Nonnull iPv6Addresses; @property (strong, nonatomic) NSNumber * _Nonnull type; - (instancetype)init; + @end -@interface CHIPGeneralDiagnosticsClusterHardwareFaultChangeEvent : NSObject +@interface MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; @end -@interface CHIPGeneralDiagnosticsClusterRadioFaultChangeEvent : NSObject +@interface MTRGeneralDiagnosticsClusterRadioFaultChangeEvent : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; @end -@interface CHIPGeneralDiagnosticsClusterNetworkFaultChangeEvent : NSObject +@interface MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent : NSObject @property (strong, nonatomic) NSArray * _Nonnull current; @property (strong, nonatomic) NSArray * _Nonnull previous; @end -@interface CHIPGeneralDiagnosticsClusterBootReasonEvent : NSObject +@interface MTRGeneralDiagnosticsClusterBootReasonEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull bootReason; @end -@interface CHIPSoftwareDiagnosticsClusterThreadMetrics : NSObject +@interface MTRSoftwareDiagnosticsClusterThreadMetrics : NSObject @property (strong, nonatomic) NSNumber * _Nonnull id; @property (strong, nonatomic) NSString * _Nullable name; @property (strong, nonatomic) NSNumber * _Nullable stackFreeCurrent; @property (strong, nonatomic) NSNumber * _Nullable stackFreeMinimum; @property (strong, nonatomic) NSNumber * _Nullable stackSize; - (instancetype)init; + @end -@interface CHIPSoftwareDiagnosticsClusterSoftwareFaultEvent : NSObject +@interface MTRSoftwareDiagnosticsClusterSoftwareFaultEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull id; @property (strong, nonatomic) NSString * _Nullable name; @property (strong, nonatomic) NSData * _Nullable faultRecording; @end -@interface CHIPThreadNetworkDiagnosticsClusterNeighborTable : NSObject +@interface MTRThreadNetworkDiagnosticsClusterNeighborTable : NSObject @property (strong, nonatomic) NSNumber * _Nonnull extAddress; @property (strong, nonatomic) NSNumber * _Nonnull age; @property (strong, nonatomic) NSNumber * _Nonnull rloc16; @@ -304,9 +324,10 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull fullNetworkData; @property (strong, nonatomic) NSNumber * _Nonnull isChild; - (instancetype)init; + @end -@interface CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents : NSObject +@interface MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents : NSObject @property (strong, nonatomic) NSNumber * _Nonnull activeTimestampPresent; @property (strong, nonatomic) NSNumber * _Nonnull pendingTimestampPresent; @property (strong, nonatomic) NSNumber * _Nonnull masterKeyPresent; @@ -320,9 +341,10 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull securityPolicyPresent; @property (strong, nonatomic) NSNumber * _Nonnull channelMaskPresent; - (instancetype)init; + @end -@interface CHIPThreadNetworkDiagnosticsClusterRouteTable : NSObject +@interface MTRThreadNetworkDiagnosticsClusterRouteTable : NSObject @property (strong, nonatomic) NSNumber * _Nonnull extAddress; @property (strong, nonatomic) NSNumber * _Nonnull rloc16; @property (strong, nonatomic) NSNumber * _Nonnull routerId; @@ -334,76 +356,78 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull allocated; @property (strong, nonatomic) NSNumber * _Nonnull linkEstablished; - (instancetype)init; + @end -@interface CHIPThreadNetworkDiagnosticsClusterSecurityPolicy : NSObject +@interface MTRThreadNetworkDiagnosticsClusterSecurityPolicy : NSObject @property (strong, nonatomic) NSNumber * _Nonnull rotationTime; @property (strong, nonatomic) NSNumber * _Nonnull flags; - (instancetype)init; + @end -@interface CHIPThreadNetworkDiagnosticsClusterConnectionStatusEvent : NSObject +@interface MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull connectionStatus; @end -@interface CHIPWiFiNetworkDiagnosticsClusterDisconnectionEvent : NSObject +@interface MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull reasonCode; @end -@interface CHIPWiFiNetworkDiagnosticsClusterAssociationFailureEvent : NSObject +@interface MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull associationFailure; @property (strong, nonatomic) NSNumber * _Nonnull status; @end -@interface CHIPWiFiNetworkDiagnosticsClusterConnectionStatusEvent : NSObject +@interface MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull connectionStatus; @end -@interface CHIPBridgedDeviceBasicClusterStartUpEvent : NSObject +@interface MTRBridgedDeviceBasicClusterStartUpEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull softwareVersion; @end -@interface CHIPBridgedDeviceBasicClusterShutDownEvent : NSObject +@interface MTRBridgedDeviceBasicClusterShutDownEvent : NSObject @end -@interface CHIPBridgedDeviceBasicClusterLeaveEvent : NSObject +@interface MTRBridgedDeviceBasicClusterLeaveEvent : NSObject @end -@interface CHIPBridgedDeviceBasicClusterReachableChangedEvent : NSObject +@interface MTRBridgedDeviceBasicClusterReachableChangedEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull reachableNewValue; @end -@interface CHIPSwitchClusterSwitchLatchedEvent : NSObject +@interface MTRSwitchClusterSwitchLatchedEvent : NSObject @property (strong, nonatomic, getter=getNewPosition) NSNumber * _Nonnull newPosition; @end -@interface CHIPSwitchClusterInitialPressEvent : NSObject +@interface MTRSwitchClusterInitialPressEvent : NSObject @property (strong, nonatomic, getter=getNewPosition) NSNumber * _Nonnull newPosition; @end -@interface CHIPSwitchClusterLongPressEvent : NSObject +@interface MTRSwitchClusterLongPressEvent : NSObject @property (strong, nonatomic, getter=getNewPosition) NSNumber * _Nonnull newPosition; @end -@interface CHIPSwitchClusterShortReleaseEvent : NSObject +@interface MTRSwitchClusterShortReleaseEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull previousPosition; @end -@interface CHIPSwitchClusterLongReleaseEvent : NSObject +@interface MTRSwitchClusterLongReleaseEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull previousPosition; @end -@interface CHIPSwitchClusterMultiPressOngoingEvent : NSObject +@interface MTRSwitchClusterMultiPressOngoingEvent : NSObject @property (strong, nonatomic, getter=getNewPosition) NSNumber * _Nonnull newPosition; @property (strong, nonatomic) NSNumber * _Nonnull currentNumberOfPressesCounted; @end -@interface CHIPSwitchClusterMultiPressCompleteEvent : NSObject +@interface MTRSwitchClusterMultiPressCompleteEvent : NSObject @property (strong, nonatomic, getter=getNewPosition) NSNumber * _Nonnull newPosition; @property (strong, nonatomic) NSNumber * _Nonnull totalNumberOfPressesCounted; @end -@interface CHIPOperationalCredentialsClusterFabricDescriptor : NSObject +@interface MTROperationalCredentialsClusterFabricDescriptor : NSObject @property (strong, nonatomic) NSData * _Nonnull rootPublicKey; @property (strong, nonatomic) NSNumber * _Nonnull vendorId; @property (strong, nonatomic) NSNumber * _Nonnull fabricId; @@ -411,31 +435,35 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSString * _Nonnull label; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPOperationalCredentialsClusterNOCStruct : NSObject +@interface MTROperationalCredentialsClusterNOCStruct : NSObject @property (strong, nonatomic) NSData * _Nonnull noc; @property (strong, nonatomic) NSData * _Nullable icac; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterGroupInfoMapStruct : NSObject +@interface MTRGroupKeyManagementClusterGroupInfoMapStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @property (strong, nonatomic) NSArray * _Nonnull endpoints; @property (strong, nonatomic) NSString * _Nullable groupName; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterGroupKeyMapStruct : NSObject +@interface MTRGroupKeyManagementClusterGroupKeyMapStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupId; @property (strong, nonatomic) NSNumber * _Nonnull groupKeySetID; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPGroupKeyManagementClusterGroupKeySetStruct : NSObject +@interface MTRGroupKeyManagementClusterGroupKeySetStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull groupKeySetID; @property (strong, nonatomic) NSNumber * _Nonnull groupKeySecurityPolicy; @property (strong, nonatomic) NSData * _Nullable epochKey0; @@ -445,52 +473,58 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSData * _Nullable epochKey2; @property (strong, nonatomic) NSNumber * _Nullable epochStartTime2; - (instancetype)init; + @end -@interface CHIPFixedLabelClusterLabelStruct : NSObject +@interface MTRFixedLabelClusterLabelStruct : NSObject @property (strong, nonatomic) NSString * _Nonnull label; @property (strong, nonatomic) NSString * _Nonnull value; - (instancetype)init; + @end -@interface CHIPUserLabelClusterLabelStruct : NSObject +@interface MTRUserLabelClusterLabelStruct : NSObject @property (strong, nonatomic) NSString * _Nonnull label; @property (strong, nonatomic) NSString * _Nonnull value; - (instancetype)init; + @end -@interface CHIPBooleanStateClusterStateChangeEvent : NSObject +@interface MTRBooleanStateClusterStateChangeEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull stateValue; @end -@interface CHIPModeSelectClusterSemanticTag : NSObject +@interface MTRModeSelectClusterSemanticTag : NSObject @property (strong, nonatomic) NSNumber * _Nonnull mfgCode; @property (strong, nonatomic) NSNumber * _Nonnull value; - (instancetype)init; + @end -@interface CHIPModeSelectClusterModeOptionStruct : NSObject +@interface MTRModeSelectClusterModeOptionStruct : NSObject @property (strong, nonatomic) NSString * _Nonnull label; @property (strong, nonatomic) NSNumber * _Nonnull mode; @property (strong, nonatomic) NSArray * _Nonnull semanticTags; - (instancetype)init; + @end -@interface CHIPDoorLockClusterDlCredential : NSObject +@interface MTRDoorLockClusterDlCredential : NSObject @property (strong, nonatomic) NSNumber * _Nonnull credentialType; @property (strong, nonatomic) NSNumber * _Nonnull credentialIndex; - (instancetype)init; + @end -@interface CHIPDoorLockClusterDoorLockAlarmEvent : NSObject +@interface MTRDoorLockClusterDoorLockAlarmEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull alarmCode; @end -@interface CHIPDoorLockClusterDoorStateChangeEvent : NSObject +@interface MTRDoorLockClusterDoorStateChangeEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull doorState; @end -@interface CHIPDoorLockClusterLockOperationEvent : NSObject +@interface MTRDoorLockClusterLockOperationEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull lockOperationType; @property (strong, nonatomic) NSNumber * _Nonnull operationSource; @property (strong, nonatomic) NSNumber * _Nullable userIndex; @@ -499,7 +533,7 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSArray * _Nullable credentials; @end -@interface CHIPDoorLockClusterLockOperationErrorEvent : NSObject +@interface MTRDoorLockClusterLockOperationErrorEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull lockOperationType; @property (strong, nonatomic) NSNumber * _Nonnull operationSource; @property (strong, nonatomic) NSNumber * _Nonnull operationError; @@ -509,7 +543,7 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSArray * _Nullable credentials; @end -@interface CHIPDoorLockClusterLockUserChangeEvent : NSObject +@interface MTRDoorLockClusterLockUserChangeEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull lockDataType; @property (strong, nonatomic) NSNumber * _Nonnull dataOperationType; @property (strong, nonatomic) NSNumber * _Nonnull operationSource; @@ -519,169 +553,185 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nullable dataIndex; @end -@interface CHIPPumpConfigurationAndControlClusterSupplyVoltageLowEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterSupplyVoltageHighEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterPowerMissingPhaseEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterSystemPressureLowEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterSystemPressureLowEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterSystemPressureHighEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterSystemPressureHighEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterDryRunningEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterDryRunningEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterMotorTemperatureHighEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterElectronicTemperatureHighEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterPumpBlockedEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterPumpBlockedEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterSensorFailureEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterSensorFailureEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterElectronicFatalFailureEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterGeneralFaultEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterGeneralFaultEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterLeakageEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterLeakageEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterAirDetectionEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterAirDetectionEvent : NSObject @end -@interface CHIPPumpConfigurationAndControlClusterTurbineOperationEvent : NSObject +@interface MTRPumpConfigurationAndControlClusterTurbineOperationEvent : NSObject @end -@interface CHIPThermostatClusterThermostatScheduleTransition : NSObject +@interface MTRThermostatClusterThermostatScheduleTransition : NSObject @property (strong, nonatomic) NSNumber * _Nonnull transitionTime; @property (strong, nonatomic) NSNumber * _Nullable heatSetpoint; @property (strong, nonatomic) NSNumber * _Nullable coolSetpoint; - (instancetype)init; + @end -@interface CHIPChannelClusterChannelInfo : NSObject +@interface MTRChannelClusterChannelInfo : NSObject @property (strong, nonatomic) NSNumber * _Nonnull majorNumber; @property (strong, nonatomic) NSNumber * _Nonnull minorNumber; @property (strong, nonatomic) NSString * _Nullable name; @property (strong, nonatomic) NSString * _Nullable callSign; @property (strong, nonatomic) NSString * _Nullable affiliateCallSign; - (instancetype)init; + @end -@interface CHIPChannelClusterLineupInfo : NSObject +@interface MTRChannelClusterLineupInfo : NSObject @property (strong, nonatomic) NSString * _Nonnull operatorName; @property (strong, nonatomic) NSString * _Nullable lineupName; @property (strong, nonatomic) NSString * _Nullable postalCode; @property (strong, nonatomic) NSNumber * _Nonnull lineupInfoType; - (instancetype)init; + @end -@interface CHIPTargetNavigatorClusterTargetInfo : NSObject +@interface MTRTargetNavigatorClusterTargetInfo : NSObject @property (strong, nonatomic) NSNumber * _Nonnull identifier; @property (strong, nonatomic) NSString * _Nonnull name; - (instancetype)init; + @end -@interface CHIPMediaPlaybackClusterPlaybackPosition : NSObject +@interface MTRMediaPlaybackClusterPlaybackPosition : NSObject @property (strong, nonatomic) NSNumber * _Nonnull updatedAt; @property (strong, nonatomic) NSNumber * _Nullable position; - (instancetype)init; + @end -@interface CHIPMediaInputClusterInputInfo : NSObject +@interface MTRMediaInputClusterInputInfo : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; @property (strong, nonatomic) NSNumber * _Nonnull inputType; @property (strong, nonatomic) NSString * _Nonnull name; @property (strong, nonatomic) NSString * _Nonnull descriptionString; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterDimension : NSObject +@interface MTRContentLauncherClusterDimension : NSObject @property (strong, nonatomic) NSNumber * _Nonnull width; @property (strong, nonatomic) NSNumber * _Nonnull height; @property (strong, nonatomic) NSNumber * _Nonnull metric; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterAdditionalInfo : NSObject +@interface MTRContentLauncherClusterAdditionalInfo : NSObject @property (strong, nonatomic) NSString * _Nonnull name; @property (strong, nonatomic) NSString * _Nonnull value; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterParameter : NSObject +@interface MTRContentLauncherClusterParameter : NSObject @property (strong, nonatomic) NSNumber * _Nonnull type; @property (strong, nonatomic) NSString * _Nonnull value; @property (strong, nonatomic) NSArray * _Nullable externalIDList; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterContentSearch : NSObject +@interface MTRContentLauncherClusterContentSearch : NSObject @property (strong, nonatomic) NSArray * _Nonnull parameterList; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterStyleInformation : NSObject +@interface MTRContentLauncherClusterStyleInformation : NSObject @property (strong, nonatomic) NSString * _Nullable imageUrl; @property (strong, nonatomic) NSString * _Nullable color; -@property (strong, nonatomic) CHIPContentLauncherClusterDimension * _Nullable size; +@property (strong, nonatomic) MTRContentLauncherClusterDimension * _Nullable size; - (instancetype)init; + @end -@interface CHIPContentLauncherClusterBrandingInformation : NSObject +@interface MTRContentLauncherClusterBrandingInformation : NSObject @property (strong, nonatomic) NSString * _Nonnull providerName; -@property (strong, nonatomic) CHIPContentLauncherClusterStyleInformation * _Nullable background; -@property (strong, nonatomic) CHIPContentLauncherClusterStyleInformation * _Nullable logo; -@property (strong, nonatomic) CHIPContentLauncherClusterStyleInformation * _Nullable progressBar; -@property (strong, nonatomic) CHIPContentLauncherClusterStyleInformation * _Nullable splash; -@property (strong, nonatomic) CHIPContentLauncherClusterStyleInformation * _Nullable waterMark; +@property (strong, nonatomic) MTRContentLauncherClusterStyleInformation * _Nullable background; +@property (strong, nonatomic) MTRContentLauncherClusterStyleInformation * _Nullable logo; +@property (strong, nonatomic) MTRContentLauncherClusterStyleInformation * _Nullable progressBar; +@property (strong, nonatomic) MTRContentLauncherClusterStyleInformation * _Nullable splash; +@property (strong, nonatomic) MTRContentLauncherClusterStyleInformation * _Nullable waterMark; - (instancetype)init; + @end -@interface CHIPAudioOutputClusterOutputInfo : NSObject +@interface MTRAudioOutputClusterOutputInfo : NSObject @property (strong, nonatomic) NSNumber * _Nonnull index; @property (strong, nonatomic) NSNumber * _Nonnull outputType; @property (strong, nonatomic) NSString * _Nonnull name; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterApplication : NSObject +@interface MTRApplicationLauncherClusterApplication : NSObject @property (strong, nonatomic) NSNumber * _Nonnull catalogVendorId; @property (strong, nonatomic) NSString * _Nonnull applicationId; - (instancetype)init; + @end -@interface CHIPApplicationLauncherClusterApplicationEP : NSObject -@property (strong, nonatomic) CHIPApplicationLauncherClusterApplication * _Nonnull application; +@interface MTRApplicationLauncherClusterApplicationEP : NSObject +@property (strong, nonatomic) MTRApplicationLauncherClusterApplication * _Nonnull application; @property (strong, nonatomic) NSNumber * _Nullable endpoint; - (instancetype)init; + @end -@interface CHIPApplicationBasicClusterApplicationBasicApplication : NSObject +@interface MTRApplicationBasicClusterApplicationBasicApplication : NSObject @property (strong, nonatomic) NSNumber * _Nonnull catalogVendorId; @property (strong, nonatomic) NSString * _Nonnull applicationId; - (instancetype)init; + @end -@interface CHIPTestClusterClusterSimpleStruct : NSObject +@interface MTRTestClusterClusterSimpleStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull a; @property (strong, nonatomic) NSNumber * _Nonnull b; @property (strong, nonatomic) NSNumber * _Nonnull c; @@ -691,78 +741,83 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSNumber * _Nonnull g; @property (strong, nonatomic) NSNumber * _Nonnull h; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestFabricScoped : NSObject +@interface MTRTestClusterClusterTestFabricScoped : NSObject @property (strong, nonatomic) NSNumber * _Nonnull fabricSensitiveInt8u; @property (strong, nonatomic) NSNumber * _Nullable optionalFabricSensitiveInt8u; @property (strong, nonatomic) NSNumber * _Nullable nullableFabricSensitiveInt8u; @property (strong, nonatomic) NSNumber * _Nullable nullableOptionalFabricSensitiveInt8u; @property (strong, nonatomic) NSString * _Nonnull fabricSensitiveCharString; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull fabricSensitiveStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull fabricSensitiveStruct; @property (strong, nonatomic) NSArray * _Nonnull fabricSensitiveInt8uList; @property (strong, nonatomic) NSNumber * _Nonnull fabricIndex; - (instancetype)init; + @end -@interface CHIPTestClusterClusterNullablesAndOptionalsStruct : NSObject +@interface MTRTestClusterClusterNullablesAndOptionalsStruct : NSObject @property (strong, nonatomic) NSNumber * _Nullable nullableInt; @property (strong, nonatomic) NSNumber * _Nullable optionalInt; @property (strong, nonatomic) NSNumber * _Nullable nullableOptionalInt; @property (strong, nonatomic) NSString * _Nullable nullableString; @property (strong, nonatomic) NSString * _Nullable optionalString; @property (strong, nonatomic) NSString * _Nullable nullableOptionalString; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStruct; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStruct; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable optionalStruct; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; @property (strong, nonatomic) NSArray * _Nullable nullableList; @property (strong, nonatomic) NSArray * _Nullable optionalList; @property (strong, nonatomic) NSArray * _Nullable nullableOptionalList; - (instancetype)init; + @end -@interface CHIPTestClusterClusterNestedStruct : NSObject +@interface MTRTestClusterClusterNestedStruct : NSObject @property (strong, nonatomic) NSNumber * _Nonnull a; @property (strong, nonatomic) NSNumber * _Nonnull b; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull c; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull c; - (instancetype)init; + @end -@interface CHIPTestClusterClusterNestedStructList : NSObject +@interface MTRTestClusterClusterNestedStructList : NSObject @property (strong, nonatomic) NSNumber * _Nonnull a; @property (strong, nonatomic) NSNumber * _Nonnull b; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull c; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull c; @property (strong, nonatomic) NSArray * _Nonnull d; @property (strong, nonatomic) NSArray * _Nonnull e; @property (strong, nonatomic) NSArray * _Nonnull f; @property (strong, nonatomic) NSArray * _Nonnull g; - (instancetype)init; + @end -@interface CHIPTestClusterClusterDoubleNestedStructList : NSObject +@interface MTRTestClusterClusterDoubleNestedStructList : NSObject @property (strong, nonatomic) NSArray * _Nonnull a; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestListStructOctet : NSObject +@interface MTRTestClusterClusterTestListStructOctet : NSObject @property (strong, nonatomic) NSNumber * _Nonnull member1; @property (strong, nonatomic) NSData * _Nonnull member2; - (instancetype)init; + @end -@interface CHIPTestClusterClusterTestEventEvent : NSObject +@interface MTRTestClusterClusterTestEventEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @property (strong, nonatomic) NSNumber * _Nonnull arg2; @property (strong, nonatomic) NSNumber * _Nonnull arg3; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg4; +@property (strong, nonatomic) MTRTestClusterClusterSimpleStruct * _Nonnull arg4; @property (strong, nonatomic) NSArray * _Nonnull arg5; @property (strong, nonatomic) NSArray * _Nonnull arg6; @end -@interface CHIPTestClusterClusterTestFabricScopedEventEvent : NSObject +@interface MTRTestClusterClusterTestFabricScopedEventEvent : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @end NS_ASSUME_NONNULL_END - -#endif /* CHIP_STRUCTS_H */ diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm similarity index 87% rename from src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm index 54ed57aa2ff00e..e5cf8c5d7d701a 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPStructsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm @@ -17,11 +17,11 @@ // THIS FILE IS GENERATED BY ZAP -#import "CHIPStructsObjc.h" +#import "MTRStructsObjc.h" NS_ASSUME_NONNULL_BEGIN -@implementation CHIPScenesClusterAttributeValuePair +@implementation MTRScenesClusterAttributeValuePair - (instancetype)init { if (self = [super init]) { @@ -42,7 +42,7 @@ - (NSString *)description @end -@implementation CHIPScenesClusterExtensionFieldSet +@implementation MTRScenesClusterExtensionFieldSet - (instancetype)init { if (self = [super init]) { @@ -63,7 +63,7 @@ - (NSString *)description @end -@implementation CHIPPowerProfileClusterPowerProfileRecord +@implementation MTRPowerProfileClusterPowerProfileRecord - (instancetype)init { if (self = [super init]) { @@ -89,7 +89,7 @@ - (NSString *)description @end -@implementation CHIPPowerProfileClusterScheduledPhase +@implementation MTRPowerProfileClusterScheduledPhase - (instancetype)init { if (self = [super init]) { @@ -110,7 +110,7 @@ - (NSString *)description @end -@implementation CHIPPowerProfileClusterTransferredPhase +@implementation MTRPowerProfileClusterTransferredPhase - (instancetype)init { if (self = [super init]) { @@ -142,7 +142,7 @@ - (NSString *)description @end -@implementation CHIPDescriptorClusterDeviceType +@implementation MTRDescriptorClusterDeviceType - (instancetype)init { if (self = [super init]) { @@ -163,7 +163,7 @@ - (NSString *)description @end -@implementation CHIPBindingClusterTargetStruct +@implementation MTRBindingClusterTargetStruct - (instancetype)init { if (self = [super init]) { @@ -190,7 +190,7 @@ - (NSString *)description @end -@implementation CHIPAccessControlClusterTarget +@implementation MTRAccessControlClusterTarget - (instancetype)init { if (self = [super init]) { @@ -213,7 +213,7 @@ - (NSString *)description @end -@implementation CHIPAccessControlClusterAccessControlEntry +@implementation MTRAccessControlClusterAccessControlEntry - (instancetype)init { if (self = [super init]) { @@ -241,7 +241,7 @@ - (NSString *)description @end -@implementation CHIPAccessControlClusterExtensionEntry +@implementation MTRAccessControlClusterExtensionEntry - (instancetype)init { if (self = [super init]) { @@ -262,7 +262,7 @@ - (NSString *)description @end -@implementation CHIPAccessControlClusterAccessControlEntryChangedEvent +@implementation MTRAccessControlClusterAccessControlEntryChangedEvent - (instancetype)init { if (self = [super init]) { @@ -290,7 +290,7 @@ - (NSString *)description @end -@implementation CHIPAccessControlClusterAccessControlExtensionChangedEvent +@implementation MTRAccessControlClusterAccessControlExtensionChangedEvent - (instancetype)init { if (self = [super init]) { @@ -318,7 +318,7 @@ - (NSString *)description @end -@implementation CHIPBridgedActionsClusterActionStruct +@implementation MTRBridgedActionsClusterActionStruct - (instancetype)init { if (self = [super init]) { @@ -348,7 +348,7 @@ - (NSString *)description @end -@implementation CHIPBridgedActionsClusterEndpointListStruct +@implementation MTRBridgedActionsClusterEndpointListStruct - (instancetype)init { if (self = [super init]) { @@ -373,7 +373,7 @@ - (NSString *)description @end -@implementation CHIPBridgedActionsClusterStateChangedEvent +@implementation MTRBridgedActionsClusterStateChangedEvent - (instancetype)init { if (self = [super init]) { @@ -396,7 +396,7 @@ - (NSString *)description @end -@implementation CHIPBridgedActionsClusterActionFailedEvent +@implementation MTRBridgedActionsClusterActionFailedEvent - (instancetype)init { if (self = [super init]) { @@ -421,7 +421,7 @@ - (NSString *)description @end -@implementation CHIPBasicClusterCapabilityMinimaStruct +@implementation MTRBasicClusterCapabilityMinimaStruct - (instancetype)init { if (self = [super init]) { @@ -442,7 +442,7 @@ - (NSString *)description @end -@implementation CHIPBasicClusterStartUpEvent +@implementation MTRBasicClusterStartUpEvent - (instancetype)init { if (self = [super init]) { @@ -461,7 +461,7 @@ - (NSString *)description @end -@implementation CHIPBasicClusterShutDownEvent +@implementation MTRBasicClusterShutDownEvent - (instancetype)init { if (self = [super init]) { @@ -477,7 +477,7 @@ - (NSString *)description @end -@implementation CHIPBasicClusterLeaveEvent +@implementation MTRBasicClusterLeaveEvent - (instancetype)init { if (self = [super init]) { @@ -493,7 +493,7 @@ - (NSString *)description @end -@implementation CHIPBasicClusterReachableChangedEvent +@implementation MTRBasicClusterReachableChangedEvent - (instancetype)init { if (self = [super init]) { @@ -512,7 +512,7 @@ - (NSString *)description @end -@implementation CHIPOtaSoftwareUpdateRequestorClusterProviderLocation +@implementation MTROtaSoftwareUpdateRequestorClusterProviderLocation - (instancetype)init { if (self = [super init]) { @@ -535,7 +535,7 @@ - (NSString *)description @end -@implementation CHIPOtaSoftwareUpdateRequestorClusterStateTransitionEvent +@implementation MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent - (instancetype)init { if (self = [super init]) { @@ -561,7 +561,7 @@ - (NSString *)description @end -@implementation CHIPOtaSoftwareUpdateRequestorClusterVersionAppliedEvent +@implementation MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent - (instancetype)init { if (self = [super init]) { @@ -582,7 +582,7 @@ - (NSString *)description @end -@implementation CHIPOtaSoftwareUpdateRequestorClusterDownloadErrorEvent +@implementation MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent - (instancetype)init { if (self = [super init]) { @@ -608,7 +608,7 @@ - (NSString *)description @end -@implementation CHIPPowerSourceClusterBatChargeFaultChangeType +@implementation MTRPowerSourceClusterBatChargeFaultChangeType - (instancetype)init { if (self = [super init]) { @@ -629,7 +629,7 @@ - (NSString *)description @end -@implementation CHIPPowerSourceClusterBatFaultChangeType +@implementation MTRPowerSourceClusterBatFaultChangeType - (instancetype)init { if (self = [super init]) { @@ -650,7 +650,7 @@ - (NSString *)description @end -@implementation CHIPPowerSourceClusterWiredFaultChangeType +@implementation MTRPowerSourceClusterWiredFaultChangeType - (instancetype)init { if (self = [super init]) { @@ -671,7 +671,7 @@ - (NSString *)description @end -@implementation CHIPGeneralCommissioningClusterBasicCommissioningInfo +@implementation MTRGeneralCommissioningClusterBasicCommissioningInfo - (instancetype)init { if (self = [super init]) { @@ -693,7 +693,7 @@ - (NSString *)description @end -@implementation CHIPNetworkCommissioningClusterNetworkInfo +@implementation MTRNetworkCommissioningClusterNetworkInfo - (instancetype)init { if (self = [super init]) { @@ -715,7 +715,7 @@ - (NSString *)description @end -@implementation CHIPNetworkCommissioningClusterThreadInterfaceScanResult +@implementation MTRNetworkCommissioningClusterThreadInterfaceScanResult - (instancetype)init { if (self = [super init]) { @@ -751,7 +751,7 @@ - (NSString *)description @end -@implementation CHIPNetworkCommissioningClusterWiFiInterfaceScanResult +@implementation MTRNetworkCommissioningClusterWiFiInterfaceScanResult - (instancetype)init { if (self = [super init]) { @@ -782,7 +782,7 @@ - (NSString *)description @end -@implementation CHIPGeneralDiagnosticsClusterNetworkInterfaceType +@implementation MTRGeneralDiagnosticsClusterNetworkInterfaceType - (instancetype)init { if (self = [super init]) { @@ -818,7 +818,7 @@ - (NSString *)description @end -@implementation CHIPGeneralDiagnosticsClusterHardwareFaultChangeEvent +@implementation MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent - (instancetype)init { if (self = [super init]) { @@ -839,7 +839,7 @@ - (NSString *)description @end -@implementation CHIPGeneralDiagnosticsClusterRadioFaultChangeEvent +@implementation MTRGeneralDiagnosticsClusterRadioFaultChangeEvent - (instancetype)init { if (self = [super init]) { @@ -860,7 +860,7 @@ - (NSString *)description @end -@implementation CHIPGeneralDiagnosticsClusterNetworkFaultChangeEvent +@implementation MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent - (instancetype)init { if (self = [super init]) { @@ -881,7 +881,7 @@ - (NSString *)description @end -@implementation CHIPGeneralDiagnosticsClusterBootReasonEvent +@implementation MTRGeneralDiagnosticsClusterBootReasonEvent - (instancetype)init { if (self = [super init]) { @@ -900,7 +900,7 @@ - (NSString *)description @end -@implementation CHIPSoftwareDiagnosticsClusterThreadMetrics +@implementation MTRSoftwareDiagnosticsClusterThreadMetrics - (instancetype)init { if (self = [super init]) { @@ -928,7 +928,7 @@ - (NSString *)description @end -@implementation CHIPSoftwareDiagnosticsClusterSoftwareFaultEvent +@implementation MTRSoftwareDiagnosticsClusterSoftwareFaultEvent - (instancetype)init { if (self = [super init]) { @@ -952,7 +952,7 @@ - (NSString *)description @end -@implementation CHIPThreadNetworkDiagnosticsClusterNeighborTable +@implementation MTRThreadNetworkDiagnosticsClusterNeighborTable - (instancetype)init { if (self = [super init]) { @@ -1001,7 +1001,7 @@ - (NSString *)description @end -@implementation CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents +@implementation MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents - (instancetype)init { if (self = [super init]) { @@ -1047,7 +1047,7 @@ - (NSString *)description @end -@implementation CHIPThreadNetworkDiagnosticsClusterRouteTable +@implementation MTRThreadNetworkDiagnosticsClusterRouteTable - (instancetype)init { if (self = [super init]) { @@ -1087,7 +1087,7 @@ - (NSString *)description @end -@implementation CHIPThreadNetworkDiagnosticsClusterSecurityPolicy +@implementation MTRThreadNetworkDiagnosticsClusterSecurityPolicy - (instancetype)init { if (self = [super init]) { @@ -1108,7 +1108,7 @@ - (NSString *)description @end -@implementation CHIPThreadNetworkDiagnosticsClusterConnectionStatusEvent +@implementation MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent - (instancetype)init { if (self = [super init]) { @@ -1127,7 +1127,7 @@ - (NSString *)description @end -@implementation CHIPWiFiNetworkDiagnosticsClusterDisconnectionEvent +@implementation MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent - (instancetype)init { if (self = [super init]) { @@ -1146,7 +1146,7 @@ - (NSString *)description @end -@implementation CHIPWiFiNetworkDiagnosticsClusterAssociationFailureEvent +@implementation MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent - (instancetype)init { if (self = [super init]) { @@ -1167,7 +1167,7 @@ - (NSString *)description @end -@implementation CHIPWiFiNetworkDiagnosticsClusterConnectionStatusEvent +@implementation MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent - (instancetype)init { if (self = [super init]) { @@ -1186,7 +1186,7 @@ - (NSString *)description @end -@implementation CHIPBridgedDeviceBasicClusterStartUpEvent +@implementation MTRBridgedDeviceBasicClusterStartUpEvent - (instancetype)init { if (self = [super init]) { @@ -1205,7 +1205,7 @@ - (NSString *)description @end -@implementation CHIPBridgedDeviceBasicClusterShutDownEvent +@implementation MTRBridgedDeviceBasicClusterShutDownEvent - (instancetype)init { if (self = [super init]) { @@ -1221,7 +1221,7 @@ - (NSString *)description @end -@implementation CHIPBridgedDeviceBasicClusterLeaveEvent +@implementation MTRBridgedDeviceBasicClusterLeaveEvent - (instancetype)init { if (self = [super init]) { @@ -1237,7 +1237,7 @@ - (NSString *)description @end -@implementation CHIPBridgedDeviceBasicClusterReachableChangedEvent +@implementation MTRBridgedDeviceBasicClusterReachableChangedEvent - (instancetype)init { if (self = [super init]) { @@ -1256,7 +1256,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterSwitchLatchedEvent +@implementation MTRSwitchClusterSwitchLatchedEvent - (instancetype)init { if (self = [super init]) { @@ -1275,7 +1275,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterInitialPressEvent +@implementation MTRSwitchClusterInitialPressEvent - (instancetype)init { if (self = [super init]) { @@ -1294,7 +1294,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterLongPressEvent +@implementation MTRSwitchClusterLongPressEvent - (instancetype)init { if (self = [super init]) { @@ -1313,7 +1313,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterShortReleaseEvent +@implementation MTRSwitchClusterShortReleaseEvent - (instancetype)init { if (self = [super init]) { @@ -1332,7 +1332,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterLongReleaseEvent +@implementation MTRSwitchClusterLongReleaseEvent - (instancetype)init { if (self = [super init]) { @@ -1351,7 +1351,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterMultiPressOngoingEvent +@implementation MTRSwitchClusterMultiPressOngoingEvent - (instancetype)init { if (self = [super init]) { @@ -1372,7 +1372,7 @@ - (NSString *)description @end -@implementation CHIPSwitchClusterMultiPressCompleteEvent +@implementation MTRSwitchClusterMultiPressCompleteEvent - (instancetype)init { if (self = [super init]) { @@ -1393,7 +1393,7 @@ - (NSString *)description @end -@implementation CHIPOperationalCredentialsClusterFabricDescriptor +@implementation MTROperationalCredentialsClusterFabricDescriptor - (instancetype)init { if (self = [super init]) { @@ -1424,7 +1424,7 @@ - (NSString *)description @end -@implementation CHIPOperationalCredentialsClusterNOCStruct +@implementation MTROperationalCredentialsClusterNOCStruct - (instancetype)init { if (self = [super init]) { @@ -1448,7 +1448,7 @@ - (NSString *)description @end -@implementation CHIPGroupKeyManagementClusterGroupInfoMapStruct +@implementation MTRGroupKeyManagementClusterGroupInfoMapStruct - (instancetype)init { if (self = [super init]) { @@ -1473,7 +1473,7 @@ - (NSString *)description @end -@implementation CHIPGroupKeyManagementClusterGroupKeyMapStruct +@implementation MTRGroupKeyManagementClusterGroupKeyMapStruct - (instancetype)init { if (self = [super init]) { @@ -1496,7 +1496,7 @@ - (NSString *)description @end -@implementation CHIPGroupKeyManagementClusterGroupKeySetStruct +@implementation MTRGroupKeyManagementClusterGroupKeySetStruct - (instancetype)init { if (self = [super init]) { @@ -1533,7 +1533,7 @@ - (NSString *)description @end -@implementation CHIPFixedLabelClusterLabelStruct +@implementation MTRFixedLabelClusterLabelStruct - (instancetype)init { if (self = [super init]) { @@ -1554,7 +1554,7 @@ - (NSString *)description @end -@implementation CHIPUserLabelClusterLabelStruct +@implementation MTRUserLabelClusterLabelStruct - (instancetype)init { if (self = [super init]) { @@ -1575,7 +1575,7 @@ - (NSString *)description @end -@implementation CHIPBooleanStateClusterStateChangeEvent +@implementation MTRBooleanStateClusterStateChangeEvent - (instancetype)init { if (self = [super init]) { @@ -1594,7 +1594,7 @@ - (NSString *)description @end -@implementation CHIPModeSelectClusterSemanticTag +@implementation MTRModeSelectClusterSemanticTag - (instancetype)init { if (self = [super init]) { @@ -1615,7 +1615,7 @@ - (NSString *)description @end -@implementation CHIPModeSelectClusterModeOptionStruct +@implementation MTRModeSelectClusterModeOptionStruct - (instancetype)init { if (self = [super init]) { @@ -1638,7 +1638,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterDlCredential +@implementation MTRDoorLockClusterDlCredential - (instancetype)init { if (self = [super init]) { @@ -1659,7 +1659,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterDoorLockAlarmEvent +@implementation MTRDoorLockClusterDoorLockAlarmEvent - (instancetype)init { if (self = [super init]) { @@ -1677,7 +1677,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterDoorStateChangeEvent +@implementation MTRDoorLockClusterDoorStateChangeEvent - (instancetype)init { if (self = [super init]) { @@ -1695,7 +1695,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterLockOperationEvent +@implementation MTRDoorLockClusterLockOperationEvent - (instancetype)init { if (self = [super init]) { @@ -1726,7 +1726,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterLockOperationErrorEvent +@implementation MTRDoorLockClusterLockOperationErrorEvent - (instancetype)init { if (self = [super init]) { @@ -1759,7 +1759,7 @@ - (NSString *)description @end -@implementation CHIPDoorLockClusterLockUserChangeEvent +@implementation MTRDoorLockClusterLockUserChangeEvent - (instancetype)init { if (self = [super init]) { @@ -1792,7 +1792,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterSupplyVoltageLowEvent +@implementation MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent - (instancetype)init { if (self = [super init]) { @@ -1808,7 +1808,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterSupplyVoltageHighEvent +@implementation MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent - (instancetype)init { if (self = [super init]) { @@ -1824,7 +1824,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterPowerMissingPhaseEvent +@implementation MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent - (instancetype)init { if (self = [super init]) { @@ -1840,7 +1840,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterSystemPressureLowEvent +@implementation MTRPumpConfigurationAndControlClusterSystemPressureLowEvent - (instancetype)init { if (self = [super init]) { @@ -1856,7 +1856,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterSystemPressureHighEvent +@implementation MTRPumpConfigurationAndControlClusterSystemPressureHighEvent - (instancetype)init { if (self = [super init]) { @@ -1872,7 +1872,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterDryRunningEvent +@implementation MTRPumpConfigurationAndControlClusterDryRunningEvent - (instancetype)init { if (self = [super init]) { @@ -1888,7 +1888,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterMotorTemperatureHighEvent +@implementation MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent - (instancetype)init { if (self = [super init]) { @@ -1904,7 +1904,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent +@implementation MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent - (instancetype)init { if (self = [super init]) { @@ -1920,7 +1920,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterElectronicTemperatureHighEvent +@implementation MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent - (instancetype)init { if (self = [super init]) { @@ -1936,7 +1936,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterPumpBlockedEvent +@implementation MTRPumpConfigurationAndControlClusterPumpBlockedEvent - (instancetype)init { if (self = [super init]) { @@ -1952,7 +1952,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterSensorFailureEvent +@implementation MTRPumpConfigurationAndControlClusterSensorFailureEvent - (instancetype)init { if (self = [super init]) { @@ -1968,7 +1968,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent +@implementation MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent - (instancetype)init { if (self = [super init]) { @@ -1984,7 +1984,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterElectronicFatalFailureEvent +@implementation MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent - (instancetype)init { if (self = [super init]) { @@ -2000,7 +2000,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterGeneralFaultEvent +@implementation MTRPumpConfigurationAndControlClusterGeneralFaultEvent - (instancetype)init { if (self = [super init]) { @@ -2016,7 +2016,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterLeakageEvent +@implementation MTRPumpConfigurationAndControlClusterLeakageEvent - (instancetype)init { if (self = [super init]) { @@ -2032,7 +2032,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterAirDetectionEvent +@implementation MTRPumpConfigurationAndControlClusterAirDetectionEvent - (instancetype)init { if (self = [super init]) { @@ -2048,7 +2048,7 @@ - (NSString *)description @end -@implementation CHIPPumpConfigurationAndControlClusterTurbineOperationEvent +@implementation MTRPumpConfigurationAndControlClusterTurbineOperationEvent - (instancetype)init { if (self = [super init]) { @@ -2064,7 +2064,7 @@ - (NSString *)description @end -@implementation CHIPThermostatClusterThermostatScheduleTransition +@implementation MTRThermostatClusterThermostatScheduleTransition - (instancetype)init { if (self = [super init]) { @@ -2087,7 +2087,7 @@ - (NSString *)description @end -@implementation CHIPChannelClusterChannelInfo +@implementation MTRChannelClusterChannelInfo - (instancetype)init { if (self = [super init]) { @@ -2115,7 +2115,7 @@ - (NSString *)description @end -@implementation CHIPChannelClusterLineupInfo +@implementation MTRChannelClusterLineupInfo - (instancetype)init { if (self = [super init]) { @@ -2141,7 +2141,7 @@ - (NSString *)description @end -@implementation CHIPTargetNavigatorClusterTargetInfo +@implementation MTRTargetNavigatorClusterTargetInfo - (instancetype)init { if (self = [super init]) { @@ -2162,7 +2162,7 @@ - (NSString *)description @end -@implementation CHIPMediaPlaybackClusterPlaybackPosition +@implementation MTRMediaPlaybackClusterPlaybackPosition - (instancetype)init { if (self = [super init]) { @@ -2183,7 +2183,7 @@ - (NSString *)description @end -@implementation CHIPMediaInputClusterInputInfo +@implementation MTRMediaInputClusterInputInfo - (instancetype)init { if (self = [super init]) { @@ -2208,7 +2208,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterDimension +@implementation MTRContentLauncherClusterDimension - (instancetype)init { if (self = [super init]) { @@ -2231,7 +2231,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterAdditionalInfo +@implementation MTRContentLauncherClusterAdditionalInfo - (instancetype)init { if (self = [super init]) { @@ -2252,7 +2252,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterParameter +@implementation MTRContentLauncherClusterParameter - (instancetype)init { if (self = [super init]) { @@ -2275,7 +2275,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterContentSearch +@implementation MTRContentLauncherClusterContentSearch - (instancetype)init { if (self = [super init]) { @@ -2294,7 +2294,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterStyleInformation +@implementation MTRContentLauncherClusterStyleInformation - (instancetype)init { if (self = [super init]) { @@ -2317,7 +2317,7 @@ - (NSString *)description @end -@implementation CHIPContentLauncherClusterBrandingInformation +@implementation MTRContentLauncherClusterBrandingInformation - (instancetype)init { if (self = [super init]) { @@ -2347,7 +2347,7 @@ - (NSString *)description @end -@implementation CHIPAudioOutputClusterOutputInfo +@implementation MTRAudioOutputClusterOutputInfo - (instancetype)init { if (self = [super init]) { @@ -2370,7 +2370,7 @@ - (NSString *)description @end -@implementation CHIPApplicationLauncherClusterApplication +@implementation MTRApplicationLauncherClusterApplication - (instancetype)init { if (self = [super init]) { @@ -2391,12 +2391,12 @@ - (NSString *)description @end -@implementation CHIPApplicationLauncherClusterApplicationEP +@implementation MTRApplicationLauncherClusterApplicationEP - (instancetype)init { if (self = [super init]) { - _application = [CHIPApplicationLauncherClusterApplication new]; + _application = [MTRApplicationLauncherClusterApplication new]; _endpoint = nil; } @@ -2412,7 +2412,7 @@ - (NSString *)description @end -@implementation CHIPApplicationBasicClusterApplicationBasicApplication +@implementation MTRApplicationBasicClusterApplicationBasicApplication - (instancetype)init { if (self = [super init]) { @@ -2433,7 +2433,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterSimpleStruct +@implementation MTRTestClusterClusterSimpleStruct - (instancetype)init { if (self = [super init]) { @@ -2467,7 +2467,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterTestFabricScoped +@implementation MTRTestClusterClusterTestFabricScoped - (instancetype)init { if (self = [super init]) { @@ -2482,7 +2482,7 @@ - (instancetype)init _fabricSensitiveCharString = @""; - _fabricSensitiveStruct = [CHIPTestClusterClusterSimpleStruct new]; + _fabricSensitiveStruct = [MTRTestClusterClusterSimpleStruct new]; _fabricSensitiveInt8uList = [NSArray array]; @@ -2505,7 +2505,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterNullablesAndOptionalsStruct +@implementation MTRTestClusterClusterNullablesAndOptionalsStruct - (instancetype)init { if (self = [super init]) { @@ -2551,7 +2551,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterNestedStruct +@implementation MTRTestClusterClusterNestedStruct - (instancetype)init { if (self = [super init]) { @@ -2560,7 +2560,7 @@ - (instancetype)init _b = @(0); - _c = [CHIPTestClusterClusterSimpleStruct new]; + _c = [MTRTestClusterClusterSimpleStruct new]; } return self; } @@ -2574,7 +2574,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterNestedStructList +@implementation MTRTestClusterClusterNestedStructList - (instancetype)init { if (self = [super init]) { @@ -2583,7 +2583,7 @@ - (instancetype)init _b = @(0); - _c = [CHIPTestClusterClusterSimpleStruct new]; + _c = [MTRTestClusterClusterSimpleStruct new]; _d = [NSArray array]; @@ -2605,7 +2605,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterDoubleNestedStructList +@implementation MTRTestClusterClusterDoubleNestedStructList - (instancetype)init { if (self = [super init]) { @@ -2623,7 +2623,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterTestListStructOctet +@implementation MTRTestClusterClusterTestListStructOctet - (instancetype)init { if (self = [super init]) { @@ -2644,7 +2644,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterTestEventEvent +@implementation MTRTestClusterClusterTestEventEvent - (instancetype)init { if (self = [super init]) { @@ -2655,7 +2655,7 @@ - (instancetype)init _arg3 = @(0); - _arg4 = [CHIPTestClusterClusterSimpleStruct new]; + _arg4 = [MTRTestClusterClusterSimpleStruct new]; _arg5 = [NSArray array]; @@ -2673,7 +2673,7 @@ - (NSString *)description @end -@implementation CHIPTestClusterClusterTestFabricScopedEventEvent +@implementation MTRTestClusterClusterTestFabricScopedEventEvent - (instancetype)init { if (self = [super init]) { diff --git a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h deleted file mode 100644 index 40dfaad2d890c5..00000000000000 --- a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h +++ /dev/null @@ -1,2523 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#ifndef MATTER_CLUSTER_CONSTANTS_H -#define MATTER_CLUSTER_CONSTANTS_H - -#import -#import - -#pragma mark - Clusters IDs - -typedef NS_ENUM(uint32_t, MatterClusterIDType) { - kMatterClusterPowerConfigurationID = 0x00000001, - kMatterClusterDeviceTemperatureConfigurationID = 0x00000002, - kMatterClusterIdentifyID = 0x00000003, - kMatterClusterGroupsID = 0x00000004, - kMatterClusterScenesID = 0x00000005, - kMatterClusterOnOffID = 0x00000006, - kMatterClusterOnOffSwitchConfigurationID = 0x00000007, - kMatterClusterLevelControlID = 0x00000008, - kMatterClusterAlarmsID = 0x00000009, - kMatterClusterTimeID = 0x0000000A, - kMatterClusterBinaryInputBasicID = 0x0000000F, - kMatterClusterPowerProfileID = 0x0000001A, - kMatterClusterApplianceControlID = 0x0000001B, - kMatterClusterPulseWidthModulationID = 0x0000001C, - kMatterClusterDescriptorID = 0x0000001D, - kMatterClusterBindingID = 0x0000001E, - kMatterClusterAccessControlID = 0x0000001F, - kMatterClusterPollControlID = 0x00000020, - kMatterClusterBridgedActionsID = 0x00000025, - kMatterClusterBasicID = 0x00000028, - kMatterClusterOtaSoftwareUpdateProviderID = 0x00000029, - kMatterClusterOtaSoftwareUpdateRequestorID = 0x0000002A, - kMatterClusterLocalizationConfigurationID = 0x0000002B, - kMatterClusterTimeFormatLocalizationID = 0x0000002C, - kMatterClusterUnitLocalizationID = 0x0000002D, - kMatterClusterPowerSourceConfigurationID = 0x0000002E, - kMatterClusterPowerSourceID = 0x0000002F, - kMatterClusterGeneralCommissioningID = 0x00000030, - kMatterClusterNetworkCommissioningID = 0x00000031, - kMatterClusterDiagnosticLogsID = 0x00000032, - kMatterClusterGeneralDiagnosticsID = 0x00000033, - kMatterClusterSoftwareDiagnosticsID = 0x00000034, - kMatterClusterThreadNetworkDiagnosticsID = 0x00000035, - kMatterClusterWiFiNetworkDiagnosticsID = 0x00000036, - kMatterClusterEthernetNetworkDiagnosticsID = 0x00000037, - kMatterClusterTimeSynchronizationID = 0x00000038, - kMatterClusterBridgedDeviceBasicID = 0x00000039, - kMatterClusterSwitchID = 0x0000003B, - kMatterClusterAdministratorCommissioningID = 0x0000003C, - kMatterClusterOperationalCredentialsID = 0x0000003E, - kMatterClusterGroupKeyManagementID = 0x0000003F, - kMatterClusterFixedLabelID = 0x00000040, - kMatterClusterUserLabelID = 0x00000041, - kMatterClusterProxyConfigurationID = 0x00000042, - kMatterClusterProxyDiscoveryID = 0x00000043, - kMatterClusterProxyValidID = 0x00000044, - kMatterClusterBooleanStateID = 0x00000045, - kMatterClusterModeSelectID = 0x00000050, - kMatterClusterShadeConfigurationID = 0x00000100, - kMatterClusterDoorLockID = 0x00000101, - kMatterClusterWindowCoveringID = 0x00000102, - kMatterClusterBarrierControlID = 0x00000103, - kMatterClusterPumpConfigurationAndControlID = 0x00000200, - kMatterClusterThermostatID = 0x00000201, - kMatterClusterFanControlID = 0x00000202, - kMatterClusterDehumidificationControlID = 0x00000203, - kMatterClusterThermostatUserInterfaceConfigurationID = 0x00000204, - kMatterClusterColorControlID = 0x00000300, - kMatterClusterBallastConfigurationID = 0x00000301, - kMatterClusterIlluminanceMeasurementID = 0x00000400, - kMatterClusterTemperatureMeasurementID = 0x00000402, - kMatterClusterPressureMeasurementID = 0x00000403, - kMatterClusterFlowMeasurementID = 0x00000404, - kMatterClusterRelativeHumidityMeasurementID = 0x00000405, - kMatterClusterOccupancySensingID = 0x00000406, - kMatterClusterCarbonMonoxideConcentrationMeasurementID = 0x0000040C, - kMatterClusterCarbonDioxideConcentrationMeasurementID = 0x0000040D, - kMatterClusterEthyleneConcentrationMeasurementID = 0x0000040E, - kMatterClusterEthyleneOxideConcentrationMeasurementID = 0x0000040F, - kMatterClusterHydrogenConcentrationMeasurementID = 0x00000410, - kMatterClusterHydrogenSulphideConcentrationMeasurementID = 0x00000411, - kMatterClusterNitricOxideConcentrationMeasurementID = 0x00000412, - kMatterClusterNitrogenDioxideConcentrationMeasurementID = 0x00000413, - kMatterClusterOxygenConcentrationMeasurementID = 0x00000414, - kMatterClusterOzoneConcentrationMeasurementID = 0x00000415, - kMatterClusterSulfurDioxideConcentrationMeasurementID = 0x00000416, - kMatterClusterDissolvedOxygenConcentrationMeasurementID = 0x00000417, - kMatterClusterBromateConcentrationMeasurementID = 0x00000418, - kMatterClusterChloraminesConcentrationMeasurementID = 0x00000419, - kMatterClusterChlorineConcentrationMeasurementID = 0x0000041A, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementID = 0x0000041B, - kMatterClusterFluorideConcentrationMeasurementID = 0x0000041C, - kMatterClusterHaloaceticAcidsConcentrationMeasurementID = 0x0000041D, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementID = 0x0000041E, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementID = 0x0000041F, - kMatterClusterTurbidityConcentrationMeasurementID = 0x00000420, - kMatterClusterCopperConcentrationMeasurementID = 0x00000421, - kMatterClusterLeadConcentrationMeasurementID = 0x00000422, - kMatterClusterManganeseConcentrationMeasurementID = 0x00000423, - kMatterClusterSulfateConcentrationMeasurementID = 0x00000424, - kMatterClusterBromodichloromethaneConcentrationMeasurementID = 0x00000425, - kMatterClusterBromoformConcentrationMeasurementID = 0x00000426, - kMatterClusterChlorodibromomethaneConcentrationMeasurementID = 0x00000427, - kMatterClusterChloroformConcentrationMeasurementID = 0x00000428, - kMatterClusterSodiumConcentrationMeasurementID = 0x00000429, - kMatterClusterWakeOnLanID = 0x00000503, - kMatterClusterChannelID = 0x00000504, - kMatterClusterTargetNavigatorID = 0x00000505, - kMatterClusterMediaPlaybackID = 0x00000506, - kMatterClusterMediaInputID = 0x00000507, - kMatterClusterLowPowerID = 0x00000508, - kMatterClusterKeypadInputID = 0x00000509, - kMatterClusterContentLauncherID = 0x0000050A, - kMatterClusterAudioOutputID = 0x0000050B, - kMatterClusterApplicationLauncherID = 0x0000050C, - kMatterClusterApplicationBasicID = 0x0000050D, - kMatterClusterAccountLoginID = 0x0000050E, - kMatterClusterMessagingID = 0x00000703, - kMatterClusterApplianceIdentificationID = 0x00000B00, - kMatterClusterMeterIdentificationID = 0x00000B01, - kMatterClusterApplianceEventsAndAlertID = 0x00000B02, - kMatterClusterApplianceStatisticsID = 0x00000B03, - kMatterClusterElectricalMeasurementID = 0x00000B04, - kMatterClusterTestClusterID = 0xFFF1FC05, -}; - -#pragma mark - Attributes IDs - -typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { - // Global attributes - kMatterClusterGlobalAttributeGeneratedCommandListID = 0x0000FFF8, - kMatterClusterGlobalAttributeAcceptedCommandListID = 0x0000FFF9, - kMatterClusterGlobalAttributeAttributeListID = 0x0000FFFB, - kMatterClusterGlobalAttributeFeatureMapID = 0x0000FFFC, - kMatterClusterGlobalAttributeClusterRevisionID = 0x0000FFFD, - - // Cluster PowerConfiguration attributes - kMatterClusterPowerConfigurationAttributeMainsVoltageID = 0x00000000, - kMatterClusterPowerConfigurationAttributeMainsFrequencyID = 0x00000001, - kMatterClusterPowerConfigurationAttributeMainsAlarmMaskID = 0x00000010, - kMatterClusterPowerConfigurationAttributeMainsVoltageMinThresholdID = 0x00000011, - kMatterClusterPowerConfigurationAttributeMainsVoltageMaxThresholdID = 0x00000012, - kMatterClusterPowerConfigurationAttributeMainsVoltageDwellTripID = 0x00000013, - kMatterClusterPowerConfigurationAttributeBatteryVoltageID = 0x00000020, - kMatterClusterPowerConfigurationAttributeBatteryPercentageRemainingID = 0x00000021, - kMatterClusterPowerConfigurationAttributeBatteryManufacturerID = 0x00000030, - kMatterClusterPowerConfigurationAttributeBatterySizeID = 0x00000031, - kMatterClusterPowerConfigurationAttributeBatteryAhrRatingID = 0x00000032, - kMatterClusterPowerConfigurationAttributeBatteryQuantityID = 0x00000033, - kMatterClusterPowerConfigurationAttributeBatteryRatedVoltageID = 0x00000034, - kMatterClusterPowerConfigurationAttributeBatteryAlarmMaskID = 0x00000035, - kMatterClusterPowerConfigurationAttributeBatteryVoltageMinThresholdID = 0x00000036, - kMatterClusterPowerConfigurationAttributeBatteryVoltageThreshold1ID = 0x00000037, - kMatterClusterPowerConfigurationAttributeBatteryVoltageThreshold2ID = 0x00000038, - kMatterClusterPowerConfigurationAttributeBatteryVoltageThreshold3ID = 0x00000039, - kMatterClusterPowerConfigurationAttributeBatteryPercentageMinThresholdID = 0x0000003A, - kMatterClusterPowerConfigurationAttributeBatteryPercentageThreshold1ID = 0x0000003B, - kMatterClusterPowerConfigurationAttributeBatteryPercentageThreshold2ID = 0x0000003C, - kMatterClusterPowerConfigurationAttributeBatteryPercentageThreshold3ID = 0x0000003D, - kMatterClusterPowerConfigurationAttributeBatteryAlarmStateID = 0x0000003E, - kMatterClusterPowerConfigurationAttributeBattery2VoltageID = 0x00000040, - kMatterClusterPowerConfigurationAttributeBattery2PercentageRemainingID = 0x00000041, - kMatterClusterPowerConfigurationAttributeBattery2ManufacturerID = 0x00000050, - kMatterClusterPowerConfigurationAttributeBattery2SizeID = 0x00000051, - kMatterClusterPowerConfigurationAttributeBattery2AhrRatingID = 0x00000052, - kMatterClusterPowerConfigurationAttributeBattery2QuantityID = 0x00000053, - kMatterClusterPowerConfigurationAttributeBattery2RatedVoltageID = 0x00000054, - kMatterClusterPowerConfigurationAttributeBattery2AlarmMaskID = 0x00000055, - kMatterClusterPowerConfigurationAttributeBattery2VoltageMinThresholdID = 0x00000056, - kMatterClusterPowerConfigurationAttributeBattery2VoltageThreshold1ID = 0x00000057, - kMatterClusterPowerConfigurationAttributeBattery2VoltageThreshold2ID = 0x00000058, - kMatterClusterPowerConfigurationAttributeBattery2VoltageThreshold3ID = 0x00000059, - kMatterClusterPowerConfigurationAttributeBattery2PercentageMinThresholdID = 0x0000005A, - kMatterClusterPowerConfigurationAttributeBattery2PercentageThreshold1ID = 0x0000005B, - kMatterClusterPowerConfigurationAttributeBattery2PercentageThreshold2ID = 0x0000005C, - kMatterClusterPowerConfigurationAttributeBattery2PercentageThreshold3ID = 0x0000005D, - kMatterClusterPowerConfigurationAttributeBattery2AlarmStateID = 0x0000005E, - kMatterClusterPowerConfigurationAttributeBattery3VoltageID = 0x00000060, - kMatterClusterPowerConfigurationAttributeBattery3PercentageRemainingID = 0x00000061, - kMatterClusterPowerConfigurationAttributeBattery3ManufacturerID = 0x00000070, - kMatterClusterPowerConfigurationAttributeBattery3SizeID = 0x00000071, - kMatterClusterPowerConfigurationAttributeBattery3AhrRatingID = 0x00000072, - kMatterClusterPowerConfigurationAttributeBattery3QuantityID = 0x00000073, - kMatterClusterPowerConfigurationAttributeBattery3RatedVoltageID = 0x00000074, - kMatterClusterPowerConfigurationAttributeBattery3AlarmMaskID = 0x00000075, - kMatterClusterPowerConfigurationAttributeBattery3VoltageMinThresholdID = 0x00000076, - kMatterClusterPowerConfigurationAttributeBattery3VoltageThreshold1ID = 0x00000077, - kMatterClusterPowerConfigurationAttributeBattery3VoltageThreshold2ID = 0x00000078, - kMatterClusterPowerConfigurationAttributeBattery3VoltageThreshold3ID = 0x00000079, - kMatterClusterPowerConfigurationAttributeBattery3PercentageMinThresholdID = 0x0000007A, - kMatterClusterPowerConfigurationAttributeBattery3PercentageThreshold1ID = 0x0000007B, - kMatterClusterPowerConfigurationAttributeBattery3PercentageThreshold2ID = 0x0000007C, - kMatterClusterPowerConfigurationAttributeBattery3PercentageThreshold3ID = 0x0000007D, - kMatterClusterPowerConfigurationAttributeBattery3AlarmStateID = 0x0000007E, - kMatterClusterPowerConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPowerConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPowerConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPowerConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPowerConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster DeviceTemperatureConfiguration attributes - kMatterClusterDeviceTemperatureConfigurationAttributeCurrentTemperatureID = 0x00000000, - kMatterClusterDeviceTemperatureConfigurationAttributeMinTempExperiencedID = 0x00000001, - kMatterClusterDeviceTemperatureConfigurationAttributeMaxTempExperiencedID = 0x00000002, - kMatterClusterDeviceTemperatureConfigurationAttributeOverTempTotalDwellID = 0x00000003, - kMatterClusterDeviceTemperatureConfigurationAttributeDeviceTempAlarmMaskID = 0x00000010, - kMatterClusterDeviceTemperatureConfigurationAttributeLowTempThresholdID = 0x00000011, - kMatterClusterDeviceTemperatureConfigurationAttributeHighTempThresholdID = 0x00000012, - kMatterClusterDeviceTemperatureConfigurationAttributeLowTempDwellTripPointID = 0x00000013, - kMatterClusterDeviceTemperatureConfigurationAttributeHighTempDwellTripPointID = 0x00000014, - kMatterClusterDeviceTemperatureConfigurationAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDeviceTemperatureConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDeviceTemperatureConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDeviceTemperatureConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDeviceTemperatureConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Identify attributes - kMatterClusterIdentifyAttributeIdentifyTimeID = 0x00000000, - kMatterClusterIdentifyAttributeIdentifyTypeID = 0x00000001, - kMatterClusterIdentifyAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterIdentifyAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterIdentifyAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterIdentifyAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterIdentifyAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Groups attributes - kMatterClusterGroupsAttributeNameSupportID = 0x00000000, - kMatterClusterGroupsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterGroupsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterGroupsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterGroupsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterGroupsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Scenes attributes - kMatterClusterScenesAttributeSceneCountID = 0x00000000, - kMatterClusterScenesAttributeCurrentSceneID = 0x00000001, - kMatterClusterScenesAttributeCurrentGroupID = 0x00000002, - kMatterClusterScenesAttributeSceneValidID = 0x00000003, - kMatterClusterScenesAttributeNameSupportID = 0x00000004, - kMatterClusterScenesAttributeLastConfiguredByID = 0x00000005, - kMatterClusterScenesAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterScenesAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterScenesAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterScenesAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterScenesAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OnOff attributes - kMatterClusterOnOffAttributeOnOffID = 0x00000000, - kMatterClusterOnOffAttributeGlobalSceneControlID = 0x00004000, - kMatterClusterOnOffAttributeOnTimeID = 0x00004001, - kMatterClusterOnOffAttributeOffWaitTimeID = 0x00004002, - kMatterClusterOnOffAttributeStartUpOnOffID = 0x00004003, - kMatterClusterOnOffAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOnOffAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOnOffAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOnOffAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOnOffAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OnOffSwitchConfiguration attributes - kMatterClusterOnOffSwitchConfigurationAttributeSwitchTypeID = 0x00000000, - kMatterClusterOnOffSwitchConfigurationAttributeSwitchActionsID = 0x00000010, - kMatterClusterOnOffSwitchConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOnOffSwitchConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOnOffSwitchConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOnOffSwitchConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOnOffSwitchConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster LevelControl attributes - kMatterClusterLevelControlAttributeCurrentLevelID = 0x00000000, - kMatterClusterLevelControlAttributeRemainingTimeID = 0x00000001, - kMatterClusterLevelControlAttributeMinLevelID = 0x00000002, - kMatterClusterLevelControlAttributeMaxLevelID = 0x00000003, - kMatterClusterLevelControlAttributeCurrentFrequencyID = 0x00000004, - kMatterClusterLevelControlAttributeMinFrequencyID = 0x00000005, - kMatterClusterLevelControlAttributeMaxFrequencyID = 0x00000006, - kMatterClusterLevelControlAttributeOptionsID = 0x0000000F, - kMatterClusterLevelControlAttributeOnOffTransitionTimeID = 0x00000010, - kMatterClusterLevelControlAttributeOnLevelID = 0x00000011, - kMatterClusterLevelControlAttributeOnTransitionTimeID = 0x00000012, - kMatterClusterLevelControlAttributeOffTransitionTimeID = 0x00000013, - kMatterClusterLevelControlAttributeDefaultMoveRateID = 0x00000014, - kMatterClusterLevelControlAttributeStartUpCurrentLevelID = 0x00004000, - kMatterClusterLevelControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterLevelControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterLevelControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterLevelControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterLevelControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Alarms attributes - kMatterClusterAlarmsAttributeAlarmCountID = 0x00000000, - kMatterClusterAlarmsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterAlarmsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterAlarmsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterAlarmsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterAlarmsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Time attributes - kMatterClusterTimeAttributeTimeID = 0x00000000, - kMatterClusterTimeAttributeTimeStatusID = 0x00000001, - kMatterClusterTimeAttributeTimeZoneID = 0x00000002, - kMatterClusterTimeAttributeDstStartID = 0x00000003, - kMatterClusterTimeAttributeDstEndID = 0x00000004, - kMatterClusterTimeAttributeDstShiftID = 0x00000005, - kMatterClusterTimeAttributeStandardTimeID = 0x00000006, - kMatterClusterTimeAttributeLocalTimeID = 0x00000007, - kMatterClusterTimeAttributeLastSetTimeID = 0x00000008, - kMatterClusterTimeAttributeValidUntilTimeID = 0x00000009, - kMatterClusterTimeAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTimeAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTimeAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTimeAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTimeAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BinaryInputBasic attributes - kMatterClusterBinaryInputBasicAttributeActiveTextID = 0x00000004, - kMatterClusterBinaryInputBasicAttributeDescriptionID = 0x0000001C, - kMatterClusterBinaryInputBasicAttributeInactiveTextID = 0x0000002E, - kMatterClusterBinaryInputBasicAttributeOutOfServiceID = 0x00000051, - kMatterClusterBinaryInputBasicAttributePolarityID = 0x00000054, - kMatterClusterBinaryInputBasicAttributePresentValueID = 0x00000055, - kMatterClusterBinaryInputBasicAttributeReliabilityID = 0x00000067, - kMatterClusterBinaryInputBasicAttributeStatusFlagsID = 0x0000006F, - kMatterClusterBinaryInputBasicAttributeApplicationTypeID = 0x00000100, - kMatterClusterBinaryInputBasicAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBinaryInputBasicAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBinaryInputBasicAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBinaryInputBasicAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBinaryInputBasicAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PowerProfile attributes - kMatterClusterPowerProfileAttributeTotalProfileNumID = 0x00000000, - kMatterClusterPowerProfileAttributeMultipleSchedulingID = 0x00000001, - kMatterClusterPowerProfileAttributeEnergyFormattingID = 0x00000002, - kMatterClusterPowerProfileAttributeEnergyRemoteID = 0x00000003, - kMatterClusterPowerProfileAttributeScheduleModeID = 0x00000004, - kMatterClusterPowerProfileAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPowerProfileAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPowerProfileAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPowerProfileAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPowerProfileAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplianceControl attributes - kMatterClusterApplianceControlAttributeStartTimeID = 0x00000000, - kMatterClusterApplianceControlAttributeFinishTimeID = 0x00000001, - kMatterClusterApplianceControlAttributeRemainingTimeID = 0x00000002, - kMatterClusterApplianceControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplianceControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplianceControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplianceControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplianceControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PulseWidthModulation attributes - kMatterClusterPulseWidthModulationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPulseWidthModulationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPulseWidthModulationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPulseWidthModulationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPulseWidthModulationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Descriptor attributes - kMatterClusterDescriptorAttributeDeviceListID = 0x00000000, - kMatterClusterDescriptorAttributeServerListID = 0x00000001, - kMatterClusterDescriptorAttributeClientListID = 0x00000002, - kMatterClusterDescriptorAttributePartsListID = 0x00000003, - kMatterClusterDescriptorAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDescriptorAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDescriptorAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDescriptorAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDescriptorAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Binding attributes - kMatterClusterBindingAttributeBindingID = 0x00000000, - kMatterClusterBindingAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBindingAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBindingAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBindingAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBindingAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster AccessControl attributes - kMatterClusterAccessControlAttributeAclID = 0x00000000, - kMatterClusterAccessControlAttributeExtensionID = 0x00000001, - kMatterClusterAccessControlAttributeSubjectsPerAccessControlEntryID = 0x00000002, - kMatterClusterAccessControlAttributeTargetsPerAccessControlEntryID = 0x00000003, - kMatterClusterAccessControlAttributeAccessControlEntriesPerFabricID = 0x00000004, - kMatterClusterAccessControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterAccessControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterAccessControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterAccessControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterAccessControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PollControl attributes - kMatterClusterPollControlAttributeCheckInIntervalID = 0x00000000, - kMatterClusterPollControlAttributeLongPollIntervalID = 0x00000001, - kMatterClusterPollControlAttributeShortPollIntervalID = 0x00000002, - kMatterClusterPollControlAttributeFastPollTimeoutID = 0x00000003, - kMatterClusterPollControlAttributeCheckInIntervalMinID = 0x00000004, - kMatterClusterPollControlAttributeLongPollIntervalMinID = 0x00000005, - kMatterClusterPollControlAttributeFastPollTimeoutMaxID = 0x00000006, - kMatterClusterPollControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPollControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPollControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPollControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPollControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BridgedActions attributes - kMatterClusterBridgedActionsAttributeActionListID = 0x00000000, - kMatterClusterBridgedActionsAttributeEndpointListID = 0x00000001, - kMatterClusterBridgedActionsAttributeSetupUrlID = 0x00000002, - kMatterClusterBridgedActionsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBridgedActionsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBridgedActionsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBridgedActionsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBridgedActionsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Basic attributes - kMatterClusterBasicAttributeDataModelRevisionID = 0x00000000, - kMatterClusterBasicAttributeVendorNameID = 0x00000001, - kMatterClusterBasicAttributeVendorIDID = 0x00000002, - kMatterClusterBasicAttributeProductNameID = 0x00000003, - kMatterClusterBasicAttributeProductIDID = 0x00000004, - kMatterClusterBasicAttributeNodeLabelID = 0x00000005, - kMatterClusterBasicAttributeLocationID = 0x00000006, - kMatterClusterBasicAttributeHardwareVersionID = 0x00000007, - kMatterClusterBasicAttributeHardwareVersionStringID = 0x00000008, - kMatterClusterBasicAttributeSoftwareVersionID = 0x00000009, - kMatterClusterBasicAttributeSoftwareVersionStringID = 0x0000000A, - kMatterClusterBasicAttributeManufacturingDateID = 0x0000000B, - kMatterClusterBasicAttributePartNumberID = 0x0000000C, - kMatterClusterBasicAttributeProductURLID = 0x0000000D, - kMatterClusterBasicAttributeProductLabelID = 0x0000000E, - kMatterClusterBasicAttributeSerialNumberID = 0x0000000F, - kMatterClusterBasicAttributeLocalConfigDisabledID = 0x00000010, - kMatterClusterBasicAttributeReachableID = 0x00000011, - kMatterClusterBasicAttributeUniqueIDID = 0x00000012, - kMatterClusterBasicAttributeCapabilityMinimaID = 0x00000013, - kMatterClusterBasicAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBasicAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBasicAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBasicAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBasicAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OtaSoftwareUpdateProvider attributes - kMatterClusterOtaSoftwareUpdateProviderAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOtaSoftwareUpdateProviderAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOtaSoftwareUpdateProviderAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOtaSoftwareUpdateProviderAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOtaSoftwareUpdateProviderAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OtaSoftwareUpdateRequestor attributes - kMatterClusterOtaSoftwareUpdateRequestorAttributeDefaultOtaProvidersID = 0x00000000, - kMatterClusterOtaSoftwareUpdateRequestorAttributeUpdatePossibleID = 0x00000001, - kMatterClusterOtaSoftwareUpdateRequestorAttributeUpdateStateID = 0x00000002, - kMatterClusterOtaSoftwareUpdateRequestorAttributeUpdateStateProgressID = 0x00000003, - kMatterClusterOtaSoftwareUpdateRequestorAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOtaSoftwareUpdateRequestorAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOtaSoftwareUpdateRequestorAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOtaSoftwareUpdateRequestorAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOtaSoftwareUpdateRequestorAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster LocalizationConfiguration attributes - kMatterClusterLocalizationConfigurationAttributeActiveLocaleID = 0x00000000, - kMatterClusterLocalizationConfigurationAttributeSupportedLocalesID = 0x00000001, - kMatterClusterLocalizationConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterLocalizationConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterLocalizationConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterLocalizationConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterLocalizationConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TimeFormatLocalization attributes - kMatterClusterTimeFormatLocalizationAttributeHourFormatID = 0x00000000, - kMatterClusterTimeFormatLocalizationAttributeActiveCalendarTypeID = 0x00000001, - kMatterClusterTimeFormatLocalizationAttributeSupportedCalendarTypesID = 0x00000002, - kMatterClusterTimeFormatLocalizationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTimeFormatLocalizationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTimeFormatLocalizationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTimeFormatLocalizationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTimeFormatLocalizationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster UnitLocalization attributes - kMatterClusterUnitLocalizationAttributeTemperatureUnitID = 0x00000000, - kMatterClusterUnitLocalizationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterUnitLocalizationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterUnitLocalizationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterUnitLocalizationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterUnitLocalizationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PowerSourceConfiguration attributes - kMatterClusterPowerSourceConfigurationAttributeSourcesID = 0x00000000, - kMatterClusterPowerSourceConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPowerSourceConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPowerSourceConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPowerSourceConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPowerSourceConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PowerSource attributes - kMatterClusterPowerSourceAttributeStatusID = 0x00000000, - kMatterClusterPowerSourceAttributeOrderID = 0x00000001, - kMatterClusterPowerSourceAttributeDescriptionID = 0x00000002, - kMatterClusterPowerSourceAttributeWiredAssessedInputVoltageID = 0x00000003, - kMatterClusterPowerSourceAttributeWiredAssessedInputFrequencyID = 0x00000004, - kMatterClusterPowerSourceAttributeWiredCurrentTypeID = 0x00000005, - kMatterClusterPowerSourceAttributeWiredAssessedCurrentID = 0x00000006, - kMatterClusterPowerSourceAttributeWiredNominalVoltageID = 0x00000007, - kMatterClusterPowerSourceAttributeWiredMaximumCurrentID = 0x00000008, - kMatterClusterPowerSourceAttributeWiredPresentID = 0x00000009, - kMatterClusterPowerSourceAttributeActiveWiredFaultsID = 0x0000000A, - kMatterClusterPowerSourceAttributeBatteryVoltageID = 0x0000000B, - kMatterClusterPowerSourceAttributeBatteryPercentRemainingID = 0x0000000C, - kMatterClusterPowerSourceAttributeBatteryTimeRemainingID = 0x0000000D, - kMatterClusterPowerSourceAttributeBatteryChargeLevelID = 0x0000000E, - kMatterClusterPowerSourceAttributeBatteryReplacementNeededID = 0x0000000F, - kMatterClusterPowerSourceAttributeBatteryReplaceabilityID = 0x00000010, - kMatterClusterPowerSourceAttributeBatteryPresentID = 0x00000011, - kMatterClusterPowerSourceAttributeActiveBatteryFaultsID = 0x00000012, - kMatterClusterPowerSourceAttributeBatteryReplacementDescriptionID = 0x00000013, - kMatterClusterPowerSourceAttributeBatteryCommonDesignationID = 0x00000014, - kMatterClusterPowerSourceAttributeBatteryANSIDesignationID = 0x00000015, - kMatterClusterPowerSourceAttributeBatteryIECDesignationID = 0x00000016, - kMatterClusterPowerSourceAttributeBatteryApprovedChemistryID = 0x00000017, - kMatterClusterPowerSourceAttributeBatteryCapacityID = 0x00000018, - kMatterClusterPowerSourceAttributeBatteryQuantityID = 0x00000019, - kMatterClusterPowerSourceAttributeBatteryChargeStateID = 0x0000001A, - kMatterClusterPowerSourceAttributeBatteryTimeToFullChargeID = 0x0000001B, - kMatterClusterPowerSourceAttributeBatteryFunctionalWhileChargingID = 0x0000001C, - kMatterClusterPowerSourceAttributeBatteryChargingCurrentID = 0x0000001D, - kMatterClusterPowerSourceAttributeActiveBatteryChargeFaultsID = 0x0000001E, - kMatterClusterPowerSourceAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPowerSourceAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPowerSourceAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPowerSourceAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPowerSourceAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster GeneralCommissioning attributes - kMatterClusterGeneralCommissioningAttributeBreadcrumbID = 0x00000000, - kMatterClusterGeneralCommissioningAttributeBasicCommissioningInfoID = 0x00000001, - kMatterClusterGeneralCommissioningAttributeRegulatoryConfigID = 0x00000002, - kMatterClusterGeneralCommissioningAttributeLocationCapabilityID = 0x00000003, - kMatterClusterGeneralCommissioningAttributeSupportsConcurrentConnectionID = 0x00000004, - kMatterClusterGeneralCommissioningAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterGeneralCommissioningAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterGeneralCommissioningAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterGeneralCommissioningAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterGeneralCommissioningAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster NetworkCommissioning attributes - kMatterClusterNetworkCommissioningAttributeMaxNetworksID = 0x00000000, - kMatterClusterNetworkCommissioningAttributeNetworksID = 0x00000001, - kMatterClusterNetworkCommissioningAttributeScanMaxTimeSecondsID = 0x00000002, - kMatterClusterNetworkCommissioningAttributeConnectMaxTimeSecondsID = 0x00000003, - kMatterClusterNetworkCommissioningAttributeInterfaceEnabledID = 0x00000004, - kMatterClusterNetworkCommissioningAttributeLastNetworkingStatusID = 0x00000005, - kMatterClusterNetworkCommissioningAttributeLastNetworkIDID = 0x00000006, - kMatterClusterNetworkCommissioningAttributeLastConnectErrorValueID = 0x00000007, - kMatterClusterNetworkCommissioningAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterNetworkCommissioningAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterNetworkCommissioningAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterNetworkCommissioningAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterNetworkCommissioningAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster DiagnosticLogs attributes - kMatterClusterDiagnosticLogsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDiagnosticLogsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDiagnosticLogsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDiagnosticLogsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDiagnosticLogsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster GeneralDiagnostics attributes - kMatterClusterGeneralDiagnosticsAttributeNetworkInterfacesID = 0x00000000, - kMatterClusterGeneralDiagnosticsAttributeRebootCountID = 0x00000001, - kMatterClusterGeneralDiagnosticsAttributeUpTimeID = 0x00000002, - kMatterClusterGeneralDiagnosticsAttributeTotalOperationalHoursID = 0x00000003, - kMatterClusterGeneralDiagnosticsAttributeBootReasonsID = 0x00000004, - kMatterClusterGeneralDiagnosticsAttributeActiveHardwareFaultsID = 0x00000005, - kMatterClusterGeneralDiagnosticsAttributeActiveRadioFaultsID = 0x00000006, - kMatterClusterGeneralDiagnosticsAttributeActiveNetworkFaultsID = 0x00000007, - kMatterClusterGeneralDiagnosticsAttributeTestEventTriggersEnabledID = 0x00000008, - kMatterClusterGeneralDiagnosticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterGeneralDiagnosticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterGeneralDiagnosticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterGeneralDiagnosticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterGeneralDiagnosticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster SoftwareDiagnostics attributes - kMatterClusterSoftwareDiagnosticsAttributeThreadMetricsID = 0x00000000, - kMatterClusterSoftwareDiagnosticsAttributeCurrentHeapFreeID = 0x00000001, - kMatterClusterSoftwareDiagnosticsAttributeCurrentHeapUsedID = 0x00000002, - kMatterClusterSoftwareDiagnosticsAttributeCurrentHeapHighWatermarkID = 0x00000003, - kMatterClusterSoftwareDiagnosticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterSoftwareDiagnosticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterSoftwareDiagnosticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterSoftwareDiagnosticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterSoftwareDiagnosticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ThreadNetworkDiagnostics attributes - kMatterClusterThreadNetworkDiagnosticsAttributeChannelID = 0x00000000, - kMatterClusterThreadNetworkDiagnosticsAttributeRoutingRoleID = 0x00000001, - kMatterClusterThreadNetworkDiagnosticsAttributeNetworkNameID = 0x00000002, - kMatterClusterThreadNetworkDiagnosticsAttributePanIdID = 0x00000003, - kMatterClusterThreadNetworkDiagnosticsAttributeExtendedPanIdID = 0x00000004, - kMatterClusterThreadNetworkDiagnosticsAttributeMeshLocalPrefixID = 0x00000005, - kMatterClusterThreadNetworkDiagnosticsAttributeOverrunCountID = 0x00000006, - kMatterClusterThreadNetworkDiagnosticsAttributeNeighborTableListID = 0x00000007, - kMatterClusterThreadNetworkDiagnosticsAttributeRouteTableListID = 0x00000008, - kMatterClusterThreadNetworkDiagnosticsAttributePartitionIdID = 0x00000009, - kMatterClusterThreadNetworkDiagnosticsAttributeWeightingID = 0x0000000A, - kMatterClusterThreadNetworkDiagnosticsAttributeDataVersionID = 0x0000000B, - kMatterClusterThreadNetworkDiagnosticsAttributeStableDataVersionID = 0x0000000C, - kMatterClusterThreadNetworkDiagnosticsAttributeLeaderRouterIdID = 0x0000000D, - kMatterClusterThreadNetworkDiagnosticsAttributeDetachedRoleCountID = 0x0000000E, - kMatterClusterThreadNetworkDiagnosticsAttributeChildRoleCountID = 0x0000000F, - kMatterClusterThreadNetworkDiagnosticsAttributeRouterRoleCountID = 0x00000010, - kMatterClusterThreadNetworkDiagnosticsAttributeLeaderRoleCountID = 0x00000011, - kMatterClusterThreadNetworkDiagnosticsAttributeAttachAttemptCountID = 0x00000012, - kMatterClusterThreadNetworkDiagnosticsAttributePartitionIdChangeCountID = 0x00000013, - kMatterClusterThreadNetworkDiagnosticsAttributeBetterPartitionAttachAttemptCountID = 0x00000014, - kMatterClusterThreadNetworkDiagnosticsAttributeParentChangeCountID = 0x00000015, - kMatterClusterThreadNetworkDiagnosticsAttributeTxTotalCountID = 0x00000016, - kMatterClusterThreadNetworkDiagnosticsAttributeTxUnicastCountID = 0x00000017, - kMatterClusterThreadNetworkDiagnosticsAttributeTxBroadcastCountID = 0x00000018, - kMatterClusterThreadNetworkDiagnosticsAttributeTxAckRequestedCountID = 0x00000019, - kMatterClusterThreadNetworkDiagnosticsAttributeTxAckedCountID = 0x0000001A, - kMatterClusterThreadNetworkDiagnosticsAttributeTxNoAckRequestedCountID = 0x0000001B, - kMatterClusterThreadNetworkDiagnosticsAttributeTxDataCountID = 0x0000001C, - kMatterClusterThreadNetworkDiagnosticsAttributeTxDataPollCountID = 0x0000001D, - kMatterClusterThreadNetworkDiagnosticsAttributeTxBeaconCountID = 0x0000001E, - kMatterClusterThreadNetworkDiagnosticsAttributeTxBeaconRequestCountID = 0x0000001F, - kMatterClusterThreadNetworkDiagnosticsAttributeTxOtherCountID = 0x00000020, - kMatterClusterThreadNetworkDiagnosticsAttributeTxRetryCountID = 0x00000021, - kMatterClusterThreadNetworkDiagnosticsAttributeTxDirectMaxRetryExpiryCountID = 0x00000022, - kMatterClusterThreadNetworkDiagnosticsAttributeTxIndirectMaxRetryExpiryCountID = 0x00000023, - kMatterClusterThreadNetworkDiagnosticsAttributeTxErrCcaCountID = 0x00000024, - kMatterClusterThreadNetworkDiagnosticsAttributeTxErrAbortCountID = 0x00000025, - kMatterClusterThreadNetworkDiagnosticsAttributeTxErrBusyChannelCountID = 0x00000026, - kMatterClusterThreadNetworkDiagnosticsAttributeRxTotalCountID = 0x00000027, - kMatterClusterThreadNetworkDiagnosticsAttributeRxUnicastCountID = 0x00000028, - kMatterClusterThreadNetworkDiagnosticsAttributeRxBroadcastCountID = 0x00000029, - kMatterClusterThreadNetworkDiagnosticsAttributeRxDataCountID = 0x0000002A, - kMatterClusterThreadNetworkDiagnosticsAttributeRxDataPollCountID = 0x0000002B, - kMatterClusterThreadNetworkDiagnosticsAttributeRxBeaconCountID = 0x0000002C, - kMatterClusterThreadNetworkDiagnosticsAttributeRxBeaconRequestCountID = 0x0000002D, - kMatterClusterThreadNetworkDiagnosticsAttributeRxOtherCountID = 0x0000002E, - kMatterClusterThreadNetworkDiagnosticsAttributeRxAddressFilteredCountID = 0x0000002F, - kMatterClusterThreadNetworkDiagnosticsAttributeRxDestAddrFilteredCountID = 0x00000030, - kMatterClusterThreadNetworkDiagnosticsAttributeRxDuplicatedCountID = 0x00000031, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrNoFrameCountID = 0x00000032, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrUnknownNeighborCountID = 0x00000033, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrInvalidSrcAddrCountID = 0x00000034, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrSecCountID = 0x00000035, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrFcsCountID = 0x00000036, - kMatterClusterThreadNetworkDiagnosticsAttributeRxErrOtherCountID = 0x00000037, - kMatterClusterThreadNetworkDiagnosticsAttributeActiveTimestampID = 0x00000038, - kMatterClusterThreadNetworkDiagnosticsAttributePendingTimestampID = 0x00000039, - kMatterClusterThreadNetworkDiagnosticsAttributeDelayID = 0x0000003A, - kMatterClusterThreadNetworkDiagnosticsAttributeSecurityPolicyID = 0x0000003B, - kMatterClusterThreadNetworkDiagnosticsAttributeChannelMaskID = 0x0000003C, - kMatterClusterThreadNetworkDiagnosticsAttributeOperationalDatasetComponentsID = 0x0000003D, - kMatterClusterThreadNetworkDiagnosticsAttributeActiveNetworkFaultsListID = 0x0000003E, - kMatterClusterThreadNetworkDiagnosticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterThreadNetworkDiagnosticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterThreadNetworkDiagnosticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterThreadNetworkDiagnosticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterThreadNetworkDiagnosticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster WiFiNetworkDiagnostics attributes - kMatterClusterWiFiNetworkDiagnosticsAttributeBssidID = 0x00000000, - kMatterClusterWiFiNetworkDiagnosticsAttributeSecurityTypeID = 0x00000001, - kMatterClusterWiFiNetworkDiagnosticsAttributeWiFiVersionID = 0x00000002, - kMatterClusterWiFiNetworkDiagnosticsAttributeChannelNumberID = 0x00000003, - kMatterClusterWiFiNetworkDiagnosticsAttributeRssiID = 0x00000004, - kMatterClusterWiFiNetworkDiagnosticsAttributeBeaconLostCountID = 0x00000005, - kMatterClusterWiFiNetworkDiagnosticsAttributeBeaconRxCountID = 0x00000006, - kMatterClusterWiFiNetworkDiagnosticsAttributePacketMulticastRxCountID = 0x00000007, - kMatterClusterWiFiNetworkDiagnosticsAttributePacketMulticastTxCountID = 0x00000008, - kMatterClusterWiFiNetworkDiagnosticsAttributePacketUnicastRxCountID = 0x00000009, - kMatterClusterWiFiNetworkDiagnosticsAttributePacketUnicastTxCountID = 0x0000000A, - kMatterClusterWiFiNetworkDiagnosticsAttributeCurrentMaxRateID = 0x0000000B, - kMatterClusterWiFiNetworkDiagnosticsAttributeOverrunCountID = 0x0000000C, - kMatterClusterWiFiNetworkDiagnosticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterWiFiNetworkDiagnosticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterWiFiNetworkDiagnosticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterWiFiNetworkDiagnosticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterWiFiNetworkDiagnosticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster EthernetNetworkDiagnostics attributes - kMatterClusterEthernetNetworkDiagnosticsAttributePHYRateID = 0x00000000, - kMatterClusterEthernetNetworkDiagnosticsAttributeFullDuplexID = 0x00000001, - kMatterClusterEthernetNetworkDiagnosticsAttributePacketRxCountID = 0x00000002, - kMatterClusterEthernetNetworkDiagnosticsAttributePacketTxCountID = 0x00000003, - kMatterClusterEthernetNetworkDiagnosticsAttributeTxErrCountID = 0x00000004, - kMatterClusterEthernetNetworkDiagnosticsAttributeCollisionCountID = 0x00000005, - kMatterClusterEthernetNetworkDiagnosticsAttributeOverrunCountID = 0x00000006, - kMatterClusterEthernetNetworkDiagnosticsAttributeCarrierDetectID = 0x00000007, - kMatterClusterEthernetNetworkDiagnosticsAttributeTimeSinceResetID = 0x00000008, - kMatterClusterEthernetNetworkDiagnosticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterEthernetNetworkDiagnosticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterEthernetNetworkDiagnosticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterEthernetNetworkDiagnosticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterEthernetNetworkDiagnosticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TimeSynchronization attributes - kMatterClusterTimeSynchronizationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTimeSynchronizationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTimeSynchronizationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTimeSynchronizationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTimeSynchronizationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BridgedDeviceBasic attributes - kMatterClusterBridgedDeviceBasicAttributeVendorNameID = 0x00000001, - kMatterClusterBridgedDeviceBasicAttributeVendorIDID = 0x00000002, - kMatterClusterBridgedDeviceBasicAttributeProductNameID = 0x00000003, - kMatterClusterBridgedDeviceBasicAttributeNodeLabelID = 0x00000005, - kMatterClusterBridgedDeviceBasicAttributeHardwareVersionID = 0x00000007, - kMatterClusterBridgedDeviceBasicAttributeHardwareVersionStringID = 0x00000008, - kMatterClusterBridgedDeviceBasicAttributeSoftwareVersionID = 0x00000009, - kMatterClusterBridgedDeviceBasicAttributeSoftwareVersionStringID = 0x0000000A, - kMatterClusterBridgedDeviceBasicAttributeManufacturingDateID = 0x0000000B, - kMatterClusterBridgedDeviceBasicAttributePartNumberID = 0x0000000C, - kMatterClusterBridgedDeviceBasicAttributeProductURLID = 0x0000000D, - kMatterClusterBridgedDeviceBasicAttributeProductLabelID = 0x0000000E, - kMatterClusterBridgedDeviceBasicAttributeSerialNumberID = 0x0000000F, - kMatterClusterBridgedDeviceBasicAttributeReachableID = 0x00000011, - kMatterClusterBridgedDeviceBasicAttributeUniqueIDID = 0x00000012, - kMatterClusterBridgedDeviceBasicAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBridgedDeviceBasicAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBridgedDeviceBasicAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBridgedDeviceBasicAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBridgedDeviceBasicAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Switch attributes - kMatterClusterSwitchAttributeNumberOfPositionsID = 0x00000000, - kMatterClusterSwitchAttributeCurrentPositionID = 0x00000001, - kMatterClusterSwitchAttributeMultiPressMaxID = 0x00000002, - kMatterClusterSwitchAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterSwitchAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterSwitchAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterSwitchAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterSwitchAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster AdministratorCommissioning attributes - kMatterClusterAdministratorCommissioningAttributeWindowStatusID = 0x00000000, - kMatterClusterAdministratorCommissioningAttributeAdminFabricIndexID = 0x00000001, - kMatterClusterAdministratorCommissioningAttributeAdminVendorIdID = 0x00000002, - kMatterClusterAdministratorCommissioningAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterAdministratorCommissioningAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterAdministratorCommissioningAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterAdministratorCommissioningAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterAdministratorCommissioningAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OperationalCredentials attributes - kMatterClusterOperationalCredentialsAttributeNOCsID = 0x00000000, - kMatterClusterOperationalCredentialsAttributeFabricsID = 0x00000001, - kMatterClusterOperationalCredentialsAttributeSupportedFabricsID = 0x00000002, - kMatterClusterOperationalCredentialsAttributeCommissionedFabricsID = 0x00000003, - kMatterClusterOperationalCredentialsAttributeTrustedRootCertificatesID = 0x00000004, - kMatterClusterOperationalCredentialsAttributeCurrentFabricIndexID = 0x00000005, - kMatterClusterOperationalCredentialsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOperationalCredentialsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOperationalCredentialsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOperationalCredentialsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOperationalCredentialsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster GroupKeyManagement attributes - kMatterClusterGroupKeyManagementAttributeGroupKeyMapID = 0x00000000, - kMatterClusterGroupKeyManagementAttributeGroupTableID = 0x00000001, - kMatterClusterGroupKeyManagementAttributeMaxGroupsPerFabricID = 0x00000002, - kMatterClusterGroupKeyManagementAttributeMaxGroupKeysPerFabricID = 0x00000003, - kMatterClusterGroupKeyManagementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterGroupKeyManagementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterGroupKeyManagementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterGroupKeyManagementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterGroupKeyManagementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster FixedLabel attributes - kMatterClusterFixedLabelAttributeLabelListID = 0x00000000, - kMatterClusterFixedLabelAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterFixedLabelAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterFixedLabelAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterFixedLabelAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterFixedLabelAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster UserLabel attributes - kMatterClusterUserLabelAttributeLabelListID = 0x00000000, - kMatterClusterUserLabelAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterUserLabelAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterUserLabelAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterUserLabelAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterUserLabelAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ProxyConfiguration attributes - kMatterClusterProxyConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterProxyConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterProxyConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterProxyConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterProxyConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ProxyDiscovery attributes - kMatterClusterProxyDiscoveryAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterProxyDiscoveryAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterProxyDiscoveryAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterProxyDiscoveryAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterProxyDiscoveryAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ProxyValid attributes - kMatterClusterProxyValidAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterProxyValidAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterProxyValidAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterProxyValidAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterProxyValidAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BooleanState attributes - kMatterClusterBooleanStateAttributeStateValueID = 0x00000000, - kMatterClusterBooleanStateAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBooleanStateAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBooleanStateAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBooleanStateAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBooleanStateAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ModeSelect attributes - kMatterClusterModeSelectAttributeDescriptionID = 0x00000000, - kMatterClusterModeSelectAttributeStandardNamespaceID = 0x00000001, - kMatterClusterModeSelectAttributeSupportedModesID = 0x00000002, - kMatterClusterModeSelectAttributeCurrentModeID = 0x00000003, - kMatterClusterModeSelectAttributeStartUpModeID = 0x00000004, - kMatterClusterModeSelectAttributeOnModeID = 0x00000005, - kMatterClusterModeSelectAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterModeSelectAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterModeSelectAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterModeSelectAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterModeSelectAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ShadeConfiguration attributes - kMatterClusterShadeConfigurationAttributePhysicalClosedLimitID = 0x00000000, - kMatterClusterShadeConfigurationAttributeMotorStepSizeID = 0x00000001, - kMatterClusterShadeConfigurationAttributeStatusID = 0x00000002, - kMatterClusterShadeConfigurationAttributeClosedLimitID = 0x00000010, - kMatterClusterShadeConfigurationAttributeModeID = 0x00000011, - kMatterClusterShadeConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterShadeConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterShadeConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterShadeConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterShadeConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster DoorLock attributes - kMatterClusterDoorLockAttributeLockStateID = 0x00000000, - kMatterClusterDoorLockAttributeLockTypeID = 0x00000001, - kMatterClusterDoorLockAttributeActuatorEnabledID = 0x00000002, - kMatterClusterDoorLockAttributeDoorStateID = 0x00000003, - kMatterClusterDoorLockAttributeDoorOpenEventsID = 0x00000004, - kMatterClusterDoorLockAttributeDoorClosedEventsID = 0x00000005, - kMatterClusterDoorLockAttributeOpenPeriodID = 0x00000006, - kMatterClusterDoorLockAttributeNumberOfTotalUsersSupportedID = 0x00000011, - kMatterClusterDoorLockAttributeNumberOfPINUsersSupportedID = 0x00000012, - kMatterClusterDoorLockAttributeNumberOfRFIDUsersSupportedID = 0x00000013, - kMatterClusterDoorLockAttributeNumberOfWeekDaySchedulesSupportedPerUserID = 0x00000014, - kMatterClusterDoorLockAttributeNumberOfYearDaySchedulesSupportedPerUserID = 0x00000015, - kMatterClusterDoorLockAttributeNumberOfHolidaySchedulesSupportedID = 0x00000016, - kMatterClusterDoorLockAttributeMaxPINCodeLengthID = 0x00000017, - kMatterClusterDoorLockAttributeMinPINCodeLengthID = 0x00000018, - kMatterClusterDoorLockAttributeMaxRFIDCodeLengthID = 0x00000019, - kMatterClusterDoorLockAttributeMinRFIDCodeLengthID = 0x0000001A, - kMatterClusterDoorLockAttributeCredentialRulesSupportID = 0x0000001B, - kMatterClusterDoorLockAttributeNumberOfCredentialsSupportedPerUserID = 0x0000001C, - kMatterClusterDoorLockAttributeLanguageID = 0x00000021, - kMatterClusterDoorLockAttributeLEDSettingsID = 0x00000022, - kMatterClusterDoorLockAttributeAutoRelockTimeID = 0x00000023, - kMatterClusterDoorLockAttributeSoundVolumeID = 0x00000024, - kMatterClusterDoorLockAttributeOperatingModeID = 0x00000025, - kMatterClusterDoorLockAttributeSupportedOperatingModesID = 0x00000026, - kMatterClusterDoorLockAttributeDefaultConfigurationRegisterID = 0x00000027, - kMatterClusterDoorLockAttributeEnableLocalProgrammingID = 0x00000028, - kMatterClusterDoorLockAttributeEnableOneTouchLockingID = 0x00000029, - kMatterClusterDoorLockAttributeEnableInsideStatusLEDID = 0x0000002A, - kMatterClusterDoorLockAttributeEnablePrivacyModeButtonID = 0x0000002B, - kMatterClusterDoorLockAttributeLocalProgrammingFeaturesID = 0x0000002C, - kMatterClusterDoorLockAttributeWrongCodeEntryLimitID = 0x00000030, - kMatterClusterDoorLockAttributeUserCodeTemporaryDisableTimeID = 0x00000031, - kMatterClusterDoorLockAttributeSendPINOverTheAirID = 0x00000032, - kMatterClusterDoorLockAttributeRequirePINforRemoteOperationID = 0x00000033, - kMatterClusterDoorLockAttributeExpiringUserTimeoutID = 0x00000035, - kMatterClusterDoorLockAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDoorLockAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDoorLockAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDoorLockAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDoorLockAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster WindowCovering attributes - kMatterClusterWindowCoveringAttributeTypeID = 0x00000000, - kMatterClusterWindowCoveringAttributePhysicalClosedLimitLiftID = 0x00000001, - kMatterClusterWindowCoveringAttributePhysicalClosedLimitTiltID = 0x00000002, - kMatterClusterWindowCoveringAttributeCurrentPositionLiftID = 0x00000003, - kMatterClusterWindowCoveringAttributeCurrentPositionTiltID = 0x00000004, - kMatterClusterWindowCoveringAttributeNumberOfActuationsLiftID = 0x00000005, - kMatterClusterWindowCoveringAttributeNumberOfActuationsTiltID = 0x00000006, - kMatterClusterWindowCoveringAttributeConfigStatusID = 0x00000007, - kMatterClusterWindowCoveringAttributeCurrentPositionLiftPercentageID = 0x00000008, - kMatterClusterWindowCoveringAttributeCurrentPositionTiltPercentageID = 0x00000009, - kMatterClusterWindowCoveringAttributeOperationalStatusID = 0x0000000A, - kMatterClusterWindowCoveringAttributeTargetPositionLiftPercent100thsID = 0x0000000B, - kMatterClusterWindowCoveringAttributeTargetPositionTiltPercent100thsID = 0x0000000C, - kMatterClusterWindowCoveringAttributeEndProductTypeID = 0x0000000D, - kMatterClusterWindowCoveringAttributeCurrentPositionLiftPercent100thsID = 0x0000000E, - kMatterClusterWindowCoveringAttributeCurrentPositionTiltPercent100thsID = 0x0000000F, - kMatterClusterWindowCoveringAttributeInstalledOpenLimitLiftID = 0x00000010, - kMatterClusterWindowCoveringAttributeInstalledClosedLimitLiftID = 0x00000011, - kMatterClusterWindowCoveringAttributeInstalledOpenLimitTiltID = 0x00000012, - kMatterClusterWindowCoveringAttributeInstalledClosedLimitTiltID = 0x00000013, - kMatterClusterWindowCoveringAttributeModeID = 0x00000017, - kMatterClusterWindowCoveringAttributeSafetyStatusID = 0x0000001A, - kMatterClusterWindowCoveringAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterWindowCoveringAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterWindowCoveringAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterWindowCoveringAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterWindowCoveringAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BarrierControl attributes - kMatterClusterBarrierControlAttributeBarrierMovingStateID = 0x00000001, - kMatterClusterBarrierControlAttributeBarrierSafetyStatusID = 0x00000002, - kMatterClusterBarrierControlAttributeBarrierCapabilitiesID = 0x00000003, - kMatterClusterBarrierControlAttributeBarrierOpenEventsID = 0x00000004, - kMatterClusterBarrierControlAttributeBarrierCloseEventsID = 0x00000005, - kMatterClusterBarrierControlAttributeBarrierCommandOpenEventsID = 0x00000006, - kMatterClusterBarrierControlAttributeBarrierCommandCloseEventsID = 0x00000007, - kMatterClusterBarrierControlAttributeBarrierOpenPeriodID = 0x00000008, - kMatterClusterBarrierControlAttributeBarrierClosePeriodID = 0x00000009, - kMatterClusterBarrierControlAttributeBarrierPositionID = 0x0000000A, - kMatterClusterBarrierControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBarrierControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBarrierControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBarrierControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBarrierControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PumpConfigurationAndControl attributes - kMatterClusterPumpConfigurationAndControlAttributeMaxPressureID = 0x00000000, - kMatterClusterPumpConfigurationAndControlAttributeMaxSpeedID = 0x00000001, - kMatterClusterPumpConfigurationAndControlAttributeMaxFlowID = 0x00000002, - kMatterClusterPumpConfigurationAndControlAttributeMinConstPressureID = 0x00000003, - kMatterClusterPumpConfigurationAndControlAttributeMaxConstPressureID = 0x00000004, - kMatterClusterPumpConfigurationAndControlAttributeMinCompPressureID = 0x00000005, - kMatterClusterPumpConfigurationAndControlAttributeMaxCompPressureID = 0x00000006, - kMatterClusterPumpConfigurationAndControlAttributeMinConstSpeedID = 0x00000007, - kMatterClusterPumpConfigurationAndControlAttributeMaxConstSpeedID = 0x00000008, - kMatterClusterPumpConfigurationAndControlAttributeMinConstFlowID = 0x00000009, - kMatterClusterPumpConfigurationAndControlAttributeMaxConstFlowID = 0x0000000A, - kMatterClusterPumpConfigurationAndControlAttributeMinConstTempID = 0x0000000B, - kMatterClusterPumpConfigurationAndControlAttributeMaxConstTempID = 0x0000000C, - kMatterClusterPumpConfigurationAndControlAttributePumpStatusID = 0x00000010, - kMatterClusterPumpConfigurationAndControlAttributeEffectiveOperationModeID = 0x00000011, - kMatterClusterPumpConfigurationAndControlAttributeEffectiveControlModeID = 0x00000012, - kMatterClusterPumpConfigurationAndControlAttributeCapacityID = 0x00000013, - kMatterClusterPumpConfigurationAndControlAttributeSpeedID = 0x00000014, - kMatterClusterPumpConfigurationAndControlAttributeLifetimeRunningHoursID = 0x00000015, - kMatterClusterPumpConfigurationAndControlAttributePowerID = 0x00000016, - kMatterClusterPumpConfigurationAndControlAttributeLifetimeEnergyConsumedID = 0x00000017, - kMatterClusterPumpConfigurationAndControlAttributeOperationModeID = 0x00000020, - kMatterClusterPumpConfigurationAndControlAttributeControlModeID = 0x00000021, - kMatterClusterPumpConfigurationAndControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPumpConfigurationAndControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPumpConfigurationAndControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPumpConfigurationAndControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPumpConfigurationAndControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Thermostat attributes - kMatterClusterThermostatAttributeLocalTemperatureID = 0x00000000, - kMatterClusterThermostatAttributeOutdoorTemperatureID = 0x00000001, - kMatterClusterThermostatAttributeOccupancyID = 0x00000002, - kMatterClusterThermostatAttributeAbsMinHeatSetpointLimitID = 0x00000003, - kMatterClusterThermostatAttributeAbsMaxHeatSetpointLimitID = 0x00000004, - kMatterClusterThermostatAttributeAbsMinCoolSetpointLimitID = 0x00000005, - kMatterClusterThermostatAttributeAbsMaxCoolSetpointLimitID = 0x00000006, - kMatterClusterThermostatAttributePICoolingDemandID = 0x00000007, - kMatterClusterThermostatAttributePIHeatingDemandID = 0x00000008, - kMatterClusterThermostatAttributeHVACSystemTypeConfigurationID = 0x00000009, - kMatterClusterThermostatAttributeLocalTemperatureCalibrationID = 0x00000010, - kMatterClusterThermostatAttributeOccupiedCoolingSetpointID = 0x00000011, - kMatterClusterThermostatAttributeOccupiedHeatingSetpointID = 0x00000012, - kMatterClusterThermostatAttributeUnoccupiedCoolingSetpointID = 0x00000013, - kMatterClusterThermostatAttributeUnoccupiedHeatingSetpointID = 0x00000014, - kMatterClusterThermostatAttributeMinHeatSetpointLimitID = 0x00000015, - kMatterClusterThermostatAttributeMaxHeatSetpointLimitID = 0x00000016, - kMatterClusterThermostatAttributeMinCoolSetpointLimitID = 0x00000017, - kMatterClusterThermostatAttributeMaxCoolSetpointLimitID = 0x00000018, - kMatterClusterThermostatAttributeMinSetpointDeadBandID = 0x00000019, - kMatterClusterThermostatAttributeRemoteSensingID = 0x0000001A, - kMatterClusterThermostatAttributeControlSequenceOfOperationID = 0x0000001B, - kMatterClusterThermostatAttributeSystemModeID = 0x0000001C, - kMatterClusterThermostatAttributeThermostatRunningModeID = 0x0000001E, - kMatterClusterThermostatAttributeStartOfWeekID = 0x00000020, - kMatterClusterThermostatAttributeNumberOfWeeklyTransitionsID = 0x00000021, - kMatterClusterThermostatAttributeNumberOfDailyTransitionsID = 0x00000022, - kMatterClusterThermostatAttributeTemperatureSetpointHoldID = 0x00000023, - kMatterClusterThermostatAttributeTemperatureSetpointHoldDurationID = 0x00000024, - kMatterClusterThermostatAttributeThermostatProgrammingOperationModeID = 0x00000025, - kMatterClusterThermostatAttributeThermostatRunningStateID = 0x00000029, - kMatterClusterThermostatAttributeSetpointChangeSourceID = 0x00000030, - kMatterClusterThermostatAttributeSetpointChangeAmountID = 0x00000031, - kMatterClusterThermostatAttributeSetpointChangeSourceTimestampID = 0x00000032, - kMatterClusterThermostatAttributeOccupiedSetbackID = 0x00000034, - kMatterClusterThermostatAttributeOccupiedSetbackMinID = 0x00000035, - kMatterClusterThermostatAttributeOccupiedSetbackMaxID = 0x00000036, - kMatterClusterThermostatAttributeUnoccupiedSetbackID = 0x00000037, - kMatterClusterThermostatAttributeUnoccupiedSetbackMinID = 0x00000038, - kMatterClusterThermostatAttributeUnoccupiedSetbackMaxID = 0x00000039, - kMatterClusterThermostatAttributeEmergencyHeatDeltaID = 0x0000003A, - kMatterClusterThermostatAttributeACTypeID = 0x00000040, - kMatterClusterThermostatAttributeACCapacityID = 0x00000041, - kMatterClusterThermostatAttributeACRefrigerantTypeID = 0x00000042, - kMatterClusterThermostatAttributeACCompressorTypeID = 0x00000043, - kMatterClusterThermostatAttributeACErrorCodeID = 0x00000044, - kMatterClusterThermostatAttributeACLouverPositionID = 0x00000045, - kMatterClusterThermostatAttributeACCoilTemperatureID = 0x00000046, - kMatterClusterThermostatAttributeACCapacityformatID = 0x00000047, - kMatterClusterThermostatAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterThermostatAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterThermostatAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterThermostatAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterThermostatAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster FanControl attributes - kMatterClusterFanControlAttributeFanModeID = 0x00000000, - kMatterClusterFanControlAttributeFanModeSequenceID = 0x00000001, - kMatterClusterFanControlAttributePercentSettingID = 0x00000002, - kMatterClusterFanControlAttributePercentCurrentID = 0x00000003, - kMatterClusterFanControlAttributeSpeedMaxID = 0x00000004, - kMatterClusterFanControlAttributeSpeedSettingID = 0x00000005, - kMatterClusterFanControlAttributeSpeedCurrentID = 0x00000006, - kMatterClusterFanControlAttributeRockSupportID = 0x00000007, - kMatterClusterFanControlAttributeRockSettingID = 0x00000008, - kMatterClusterFanControlAttributeWindSupportID = 0x00000009, - kMatterClusterFanControlAttributeWindSettingID = 0x0000000A, - kMatterClusterFanControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterFanControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterFanControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterFanControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterFanControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster DehumidificationControl attributes - kMatterClusterDehumidificationControlAttributeRelativeHumidityID = 0x00000000, - kMatterClusterDehumidificationControlAttributeDehumidificationCoolingID = 0x00000001, - kMatterClusterDehumidificationControlAttributeRhDehumidificationSetpointID = 0x00000010, - kMatterClusterDehumidificationControlAttributeRelativeHumidityModeID = 0x00000011, - kMatterClusterDehumidificationControlAttributeDehumidificationLockoutID = 0x00000012, - kMatterClusterDehumidificationControlAttributeDehumidificationHysteresisID = 0x00000013, - kMatterClusterDehumidificationControlAttributeDehumidificationMaxCoolID = 0x00000014, - kMatterClusterDehumidificationControlAttributeRelativeHumidityDisplayID = 0x00000015, - kMatterClusterDehumidificationControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDehumidificationControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDehumidificationControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDehumidificationControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDehumidificationControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ThermostatUserInterfaceConfiguration attributes - kMatterClusterThermostatUserInterfaceConfigurationAttributeTemperatureDisplayModeID = 0x00000000, - kMatterClusterThermostatUserInterfaceConfigurationAttributeKeypadLockoutID = 0x00000001, - kMatterClusterThermostatUserInterfaceConfigurationAttributeScheduleProgrammingVisibilityID = 0x00000002, - kMatterClusterThermostatUserInterfaceConfigurationAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterThermostatUserInterfaceConfigurationAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterThermostatUserInterfaceConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterThermostatUserInterfaceConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterThermostatUserInterfaceConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ColorControl attributes - kMatterClusterColorControlAttributeCurrentHueID = 0x00000000, - kMatterClusterColorControlAttributeCurrentSaturationID = 0x00000001, - kMatterClusterColorControlAttributeRemainingTimeID = 0x00000002, - kMatterClusterColorControlAttributeCurrentXID = 0x00000003, - kMatterClusterColorControlAttributeCurrentYID = 0x00000004, - kMatterClusterColorControlAttributeDriftCompensationID = 0x00000005, - kMatterClusterColorControlAttributeCompensationTextID = 0x00000006, - kMatterClusterColorControlAttributeColorTemperatureID = 0x00000007, - kMatterClusterColorControlAttributeColorModeID = 0x00000008, - kMatterClusterColorControlAttributeOptionsID = 0x0000000F, - kMatterClusterColorControlAttributeNumberOfPrimariesID = 0x00000010, - kMatterClusterColorControlAttributePrimary1XID = 0x00000011, - kMatterClusterColorControlAttributePrimary1YID = 0x00000012, - kMatterClusterColorControlAttributePrimary1IntensityID = 0x00000013, - kMatterClusterColorControlAttributePrimary2XID = 0x00000015, - kMatterClusterColorControlAttributePrimary2YID = 0x00000016, - kMatterClusterColorControlAttributePrimary2IntensityID = 0x00000017, - kMatterClusterColorControlAttributePrimary3XID = 0x00000019, - kMatterClusterColorControlAttributePrimary3YID = 0x0000001A, - kMatterClusterColorControlAttributePrimary3IntensityID = 0x0000001B, - kMatterClusterColorControlAttributePrimary4XID = 0x00000020, - kMatterClusterColorControlAttributePrimary4YID = 0x00000021, - kMatterClusterColorControlAttributePrimary4IntensityID = 0x00000022, - kMatterClusterColorControlAttributePrimary5XID = 0x00000024, - kMatterClusterColorControlAttributePrimary5YID = 0x00000025, - kMatterClusterColorControlAttributePrimary5IntensityID = 0x00000026, - kMatterClusterColorControlAttributePrimary6XID = 0x00000028, - kMatterClusterColorControlAttributePrimary6YID = 0x00000029, - kMatterClusterColorControlAttributePrimary6IntensityID = 0x0000002A, - kMatterClusterColorControlAttributeWhitePointXID = 0x00000030, - kMatterClusterColorControlAttributeWhitePointYID = 0x00000031, - kMatterClusterColorControlAttributeColorPointRXID = 0x00000032, - kMatterClusterColorControlAttributeColorPointRYID = 0x00000033, - kMatterClusterColorControlAttributeColorPointRIntensityID = 0x00000034, - kMatterClusterColorControlAttributeColorPointGXID = 0x00000036, - kMatterClusterColorControlAttributeColorPointGYID = 0x00000037, - kMatterClusterColorControlAttributeColorPointGIntensityID = 0x00000038, - kMatterClusterColorControlAttributeColorPointBXID = 0x0000003A, - kMatterClusterColorControlAttributeColorPointBYID = 0x0000003B, - kMatterClusterColorControlAttributeColorPointBIntensityID = 0x0000003C, - kMatterClusterColorControlAttributeEnhancedCurrentHueID = 0x00004000, - kMatterClusterColorControlAttributeEnhancedColorModeID = 0x00004001, - kMatterClusterColorControlAttributeColorLoopActiveID = 0x00004002, - kMatterClusterColorControlAttributeColorLoopDirectionID = 0x00004003, - kMatterClusterColorControlAttributeColorLoopTimeID = 0x00004004, - kMatterClusterColorControlAttributeColorLoopStartEnhancedHueID = 0x00004005, - kMatterClusterColorControlAttributeColorLoopStoredEnhancedHueID = 0x00004006, - kMatterClusterColorControlAttributeColorCapabilitiesID = 0x0000400A, - kMatterClusterColorControlAttributeColorTempPhysicalMinMiredsID = 0x0000400B, - kMatterClusterColorControlAttributeColorTempPhysicalMaxMiredsID = 0x0000400C, - kMatterClusterColorControlAttributeCoupleColorTempToLevelMinMiredsID = 0x0000400D, - kMatterClusterColorControlAttributeStartUpColorTemperatureMiredsID = 0x00004010, - kMatterClusterColorControlAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterColorControlAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterColorControlAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterColorControlAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterColorControlAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BallastConfiguration attributes - kMatterClusterBallastConfigurationAttributePhysicalMinLevelID = 0x00000000, - kMatterClusterBallastConfigurationAttributePhysicalMaxLevelID = 0x00000001, - kMatterClusterBallastConfigurationAttributeBallastStatusID = 0x00000002, - kMatterClusterBallastConfigurationAttributeMinLevelID = 0x00000010, - kMatterClusterBallastConfigurationAttributeMaxLevelID = 0x00000011, - kMatterClusterBallastConfigurationAttributePowerOnLevelID = 0x00000012, - kMatterClusterBallastConfigurationAttributePowerOnFadeTimeID = 0x00000013, - kMatterClusterBallastConfigurationAttributeIntrinsicBallastFactorID = 0x00000014, - kMatterClusterBallastConfigurationAttributeBallastFactorAdjustmentID = 0x00000015, - kMatterClusterBallastConfigurationAttributeLampQualityID = 0x00000020, - kMatterClusterBallastConfigurationAttributeLampTypeID = 0x00000030, - kMatterClusterBallastConfigurationAttributeLampManufacturerID = 0x00000031, - kMatterClusterBallastConfigurationAttributeLampRatedHoursID = 0x00000032, - kMatterClusterBallastConfigurationAttributeLampBurnHoursID = 0x00000033, - kMatterClusterBallastConfigurationAttributeLampAlarmModeID = 0x00000034, - kMatterClusterBallastConfigurationAttributeLampBurnHoursTripPointID = 0x00000035, - kMatterClusterBallastConfigurationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBallastConfigurationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBallastConfigurationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBallastConfigurationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBallastConfigurationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster IlluminanceMeasurement attributes - kMatterClusterIlluminanceMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterIlluminanceMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterIlluminanceMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterIlluminanceMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterIlluminanceMeasurementAttributeLightSensorTypeID = 0x00000004, - kMatterClusterIlluminanceMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterIlluminanceMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterIlluminanceMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterIlluminanceMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterIlluminanceMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TemperatureMeasurement attributes - kMatterClusterTemperatureMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterTemperatureMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterTemperatureMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterTemperatureMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterTemperatureMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTemperatureMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTemperatureMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTemperatureMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTemperatureMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster PressureMeasurement attributes - kMatterClusterPressureMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterPressureMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterPressureMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterPressureMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterPressureMeasurementAttributeScaledValueID = 0x00000010, - kMatterClusterPressureMeasurementAttributeMinScaledValueID = 0x00000011, - kMatterClusterPressureMeasurementAttributeMaxScaledValueID = 0x00000012, - kMatterClusterPressureMeasurementAttributeScaledToleranceID = 0x00000013, - kMatterClusterPressureMeasurementAttributeScaleID = 0x00000014, - kMatterClusterPressureMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterPressureMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterPressureMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterPressureMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterPressureMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster FlowMeasurement attributes - kMatterClusterFlowMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterFlowMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterFlowMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterFlowMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterFlowMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterFlowMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterFlowMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterFlowMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterFlowMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster RelativeHumidityMeasurement attributes - kMatterClusterRelativeHumidityMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterRelativeHumidityMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterRelativeHumidityMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterRelativeHumidityMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterRelativeHumidityMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterRelativeHumidityMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterRelativeHumidityMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterRelativeHumidityMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterRelativeHumidityMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OccupancySensing attributes - kMatterClusterOccupancySensingAttributeOccupancyID = 0x00000000, - kMatterClusterOccupancySensingAttributeOccupancySensorTypeID = 0x00000001, - kMatterClusterOccupancySensingAttributeOccupancySensorTypeBitmapID = 0x00000002, - kMatterClusterOccupancySensingAttributePirOccupiedToUnoccupiedDelayID = 0x00000010, - kMatterClusterOccupancySensingAttributePirUnoccupiedToOccupiedDelayID = 0x00000011, - kMatterClusterOccupancySensingAttributePirUnoccupiedToOccupiedThresholdID = 0x00000012, - kMatterClusterOccupancySensingAttributeUltrasonicOccupiedToUnoccupiedDelayID = 0x00000020, - kMatterClusterOccupancySensingAttributeUltrasonicUnoccupiedToOccupiedDelayID = 0x00000021, - kMatterClusterOccupancySensingAttributeUltrasonicUnoccupiedToOccupiedThresholdID = 0x00000022, - kMatterClusterOccupancySensingAttributePhysicalContactOccupiedToUnoccupiedDelayID = 0x00000030, - kMatterClusterOccupancySensingAttributePhysicalContactUnoccupiedToOccupiedDelayID = 0x00000031, - kMatterClusterOccupancySensingAttributePhysicalContactUnoccupiedToOccupiedThresholdID = 0x00000032, - kMatterClusterOccupancySensingAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOccupancySensingAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOccupancySensingAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOccupancySensingAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOccupancySensingAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster CarbonMonoxideConcentrationMeasurement attributes - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterCarbonMonoxideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster CarbonDioxideConcentrationMeasurement attributes - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterCarbonDioxideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster EthyleneConcentrationMeasurement attributes - kMatterClusterEthyleneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterEthyleneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterEthyleneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterEthyleneConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterEthyleneConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterEthyleneConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterEthyleneConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterEthyleneConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterEthyleneConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster EthyleneOxideConcentrationMeasurement attributes - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterEthyleneOxideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster HydrogenConcentrationMeasurement attributes - kMatterClusterHydrogenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterHydrogenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterHydrogenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterHydrogenConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterHydrogenConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterHydrogenConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterHydrogenConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterHydrogenConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterHydrogenConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster HydrogenSulphideConcentrationMeasurement attributes - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterHydrogenSulphideConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster NitricOxideConcentrationMeasurement attributes - kMatterClusterNitricOxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterNitricOxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterNitricOxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterNitricOxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterNitricOxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterNitricOxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterNitricOxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterNitricOxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterNitricOxideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster NitrogenDioxideConcentrationMeasurement attributes - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterNitrogenDioxideConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OxygenConcentrationMeasurement attributes - kMatterClusterOxygenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterOxygenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterOxygenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterOxygenConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterOxygenConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOxygenConcentrationMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOxygenConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOxygenConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOxygenConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster OzoneConcentrationMeasurement attributes - kMatterClusterOzoneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterOzoneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterOzoneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterOzoneConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterOzoneConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterOzoneConcentrationMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterOzoneConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterOzoneConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterOzoneConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster SulfurDioxideConcentrationMeasurement attributes - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterSulfurDioxideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster DissolvedOxygenConcentrationMeasurement attributes - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterDissolvedOxygenConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BromateConcentrationMeasurement attributes - kMatterClusterBromateConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterBromateConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterBromateConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterBromateConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterBromateConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBromateConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBromateConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBromateConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBromateConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ChloraminesConcentrationMeasurement attributes - kMatterClusterChloraminesConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterChloraminesConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterChloraminesConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterChloraminesConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterChloraminesConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterChloraminesConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterChloraminesConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterChloraminesConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterChloraminesConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ChlorineConcentrationMeasurement attributes - kMatterClusterChlorineConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterChlorineConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterChlorineConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterChlorineConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterChlorineConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterChlorineConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterChlorineConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterChlorineConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterChlorineConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster FecalColiformAndEColiConcentrationMeasurement attributes - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeAttributeListID - = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterFecalColiformAndEColiConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster FluorideConcentrationMeasurement attributes - kMatterClusterFluorideConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterFluorideConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterFluorideConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterFluorideConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterFluorideConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterFluorideConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterFluorideConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterFluorideConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterFluorideConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster HaloaceticAcidsConcentrationMeasurement attributes - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterHaloaceticAcidsConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TotalTrihalomethanesConcentrationMeasurement attributes - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeAttributeListID - = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTotalTrihalomethanesConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TotalColiformBacteriaConcentrationMeasurement attributes - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeAttributeListID - = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTotalColiformBacteriaConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TurbidityConcentrationMeasurement attributes - kMatterClusterTurbidityConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterTurbidityConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterTurbidityConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterTurbidityConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterTurbidityConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTurbidityConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTurbidityConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTurbidityConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTurbidityConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster CopperConcentrationMeasurement attributes - kMatterClusterCopperConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterCopperConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterCopperConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterCopperConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterCopperConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterCopperConcentrationMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterCopperConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterCopperConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterCopperConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster LeadConcentrationMeasurement attributes - kMatterClusterLeadConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterLeadConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterLeadConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterLeadConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterLeadConcentrationMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterLeadConcentrationMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterLeadConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterLeadConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterLeadConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ManganeseConcentrationMeasurement attributes - kMatterClusterManganeseConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterManganeseConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterManganeseConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterManganeseConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterManganeseConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterManganeseConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterManganeseConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterManganeseConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterManganeseConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster SulfateConcentrationMeasurement attributes - kMatterClusterSulfateConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterSulfateConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterSulfateConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterSulfateConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterSulfateConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterSulfateConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterSulfateConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterSulfateConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterSulfateConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BromodichloromethaneConcentrationMeasurement attributes - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeAttributeListID - = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBromodichloromethaneConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster BromoformConcentrationMeasurement attributes - kMatterClusterBromoformConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterBromoformConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterBromoformConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterBromoformConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterBromoformConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterBromoformConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterBromoformConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterBromoformConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterBromoformConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ChlorodibromomethaneConcentrationMeasurement attributes - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeAttributeListID - = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterChlorodibromomethaneConcentrationMeasurementAttributeClusterRevisionID - = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ChloroformConcentrationMeasurement attributes - kMatterClusterChloroformConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterChloroformConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterChloroformConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterChloroformConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterChloroformConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterChloroformConcentrationMeasurementAttributeAcceptedCommandListID - = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterChloroformConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterChloroformConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterChloroformConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster SodiumConcentrationMeasurement attributes - kMatterClusterSodiumConcentrationMeasurementAttributeMeasuredValueID = 0x00000000, - kMatterClusterSodiumConcentrationMeasurementAttributeMinMeasuredValueID = 0x00000001, - kMatterClusterSodiumConcentrationMeasurementAttributeMaxMeasuredValueID = 0x00000002, - kMatterClusterSodiumConcentrationMeasurementAttributeToleranceID = 0x00000003, - kMatterClusterSodiumConcentrationMeasurementAttributeGeneratedCommandListID - = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterSodiumConcentrationMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterSodiumConcentrationMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterSodiumConcentrationMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterSodiumConcentrationMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster WakeOnLan attributes - kMatterClusterWakeOnLanAttributeMACAddressID = 0x00000000, - kMatterClusterWakeOnLanAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterWakeOnLanAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterWakeOnLanAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterWakeOnLanAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterWakeOnLanAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Channel attributes - kMatterClusterChannelAttributeChannelListID = 0x00000000, - kMatterClusterChannelAttributeLineupID = 0x00000001, - kMatterClusterChannelAttributeCurrentChannelID = 0x00000002, - kMatterClusterChannelAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterChannelAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterChannelAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterChannelAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterChannelAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TargetNavigator attributes - kMatterClusterTargetNavigatorAttributeTargetListID = 0x00000000, - kMatterClusterTargetNavigatorAttributeCurrentTargetID = 0x00000001, - kMatterClusterTargetNavigatorAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTargetNavigatorAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTargetNavigatorAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTargetNavigatorAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTargetNavigatorAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster MediaPlayback attributes - kMatterClusterMediaPlaybackAttributeCurrentStateID = 0x00000000, - kMatterClusterMediaPlaybackAttributeStartTimeID = 0x00000001, - kMatterClusterMediaPlaybackAttributeDurationID = 0x00000002, - kMatterClusterMediaPlaybackAttributeSampledPositionID = 0x00000003, - kMatterClusterMediaPlaybackAttributePlaybackSpeedID = 0x00000004, - kMatterClusterMediaPlaybackAttributeSeekRangeEndID = 0x00000005, - kMatterClusterMediaPlaybackAttributeSeekRangeStartID = 0x00000006, - kMatterClusterMediaPlaybackAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterMediaPlaybackAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterMediaPlaybackAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterMediaPlaybackAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterMediaPlaybackAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster MediaInput attributes - kMatterClusterMediaInputAttributeInputListID = 0x00000000, - kMatterClusterMediaInputAttributeCurrentInputID = 0x00000001, - kMatterClusterMediaInputAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterMediaInputAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterMediaInputAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterMediaInputAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterMediaInputAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster LowPower attributes - kMatterClusterLowPowerAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterLowPowerAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterLowPowerAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterLowPowerAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterLowPowerAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster KeypadInput attributes - kMatterClusterKeypadInputAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterKeypadInputAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterKeypadInputAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterKeypadInputAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterKeypadInputAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ContentLauncher attributes - kMatterClusterContentLauncherAttributeAcceptHeaderID = 0x00000000, - kMatterClusterContentLauncherAttributeSupportedStreamingProtocolsID = 0x00000001, - kMatterClusterContentLauncherAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterContentLauncherAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterContentLauncherAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterContentLauncherAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterContentLauncherAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster AudioOutput attributes - kMatterClusterAudioOutputAttributeOutputListID = 0x00000000, - kMatterClusterAudioOutputAttributeCurrentOutputID = 0x00000001, - kMatterClusterAudioOutputAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterAudioOutputAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterAudioOutputAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterAudioOutputAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterAudioOutputAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplicationLauncher attributes - kMatterClusterApplicationLauncherAttributeCatalogListID = 0x00000000, - kMatterClusterApplicationLauncherAttributeCurrentAppID = 0x00000001, - kMatterClusterApplicationLauncherAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplicationLauncherAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplicationLauncherAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplicationLauncherAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplicationLauncherAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplicationBasic attributes - kMatterClusterApplicationBasicAttributeVendorNameID = 0x00000000, - kMatterClusterApplicationBasicAttributeVendorIDID = 0x00000001, - kMatterClusterApplicationBasicAttributeApplicationNameID = 0x00000002, - kMatterClusterApplicationBasicAttributeProductIDID = 0x00000003, - kMatterClusterApplicationBasicAttributeApplicationID = 0x00000004, - kMatterClusterApplicationBasicAttributeStatusID = 0x00000005, - kMatterClusterApplicationBasicAttributeApplicationVersionID = 0x00000006, - kMatterClusterApplicationBasicAttributeAllowedVendorListID = 0x00000007, - kMatterClusterApplicationBasicAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplicationBasicAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplicationBasicAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplicationBasicAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplicationBasicAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster AccountLogin attributes - kMatterClusterAccountLoginAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterAccountLoginAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterAccountLoginAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterAccountLoginAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterAccountLoginAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster Messaging attributes - kMatterClusterMessagingAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterMessagingAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterMessagingAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterMessagingAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterMessagingAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplianceIdentification attributes - kMatterClusterApplianceIdentificationAttributeBasicIdentificationID = 0x00000000, - kMatterClusterApplianceIdentificationAttributeCompanyNameID = 0x00000010, - kMatterClusterApplianceIdentificationAttributeCompanyIdID = 0x00000011, - kMatterClusterApplianceIdentificationAttributeBrandNameID = 0x00000012, - kMatterClusterApplianceIdentificationAttributeBrandIdID = 0x00000013, - kMatterClusterApplianceIdentificationAttributeModelID = 0x00000014, - kMatterClusterApplianceIdentificationAttributePartNumberID = 0x00000015, - kMatterClusterApplianceIdentificationAttributeProductRevisionID = 0x00000016, - kMatterClusterApplianceIdentificationAttributeSoftwareRevisionID = 0x00000017, - kMatterClusterApplianceIdentificationAttributeProductTypeNameID = 0x00000018, - kMatterClusterApplianceIdentificationAttributeProductTypeIdID = 0x00000019, - kMatterClusterApplianceIdentificationAttributeCecedSpecificationVersionID = 0x0000001A, - kMatterClusterApplianceIdentificationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplianceIdentificationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplianceIdentificationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplianceIdentificationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplianceIdentificationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster MeterIdentification attributes - kMatterClusterMeterIdentificationAttributeCompanyNameID = 0x00000000, - kMatterClusterMeterIdentificationAttributeMeterTypeIdID = 0x00000001, - kMatterClusterMeterIdentificationAttributeDataQualityIdID = 0x00000004, - kMatterClusterMeterIdentificationAttributeCustomerNameID = 0x00000005, - kMatterClusterMeterIdentificationAttributeModelID = 0x00000006, - kMatterClusterMeterIdentificationAttributePartNumberID = 0x00000007, - kMatterClusterMeterIdentificationAttributeProductRevisionID = 0x00000008, - kMatterClusterMeterIdentificationAttributeSoftwareRevisionID = 0x0000000A, - kMatterClusterMeterIdentificationAttributeUtilityNameID = 0x0000000B, - kMatterClusterMeterIdentificationAttributePodID = 0x0000000C, - kMatterClusterMeterIdentificationAttributeAvailablePowerID = 0x0000000D, - kMatterClusterMeterIdentificationAttributePowerThresholdID = 0x0000000E, - kMatterClusterMeterIdentificationAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterMeterIdentificationAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterMeterIdentificationAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterMeterIdentificationAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterMeterIdentificationAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplianceEventsAndAlert attributes - kMatterClusterApplianceEventsAndAlertAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplianceEventsAndAlertAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplianceEventsAndAlertAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplianceEventsAndAlertAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplianceEventsAndAlertAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ApplianceStatistics attributes - kMatterClusterApplianceStatisticsAttributeLogMaxSizeID = 0x00000000, - kMatterClusterApplianceStatisticsAttributeLogQueueMaxSizeID = 0x00000001, - kMatterClusterApplianceStatisticsAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterApplianceStatisticsAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterApplianceStatisticsAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterApplianceStatisticsAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterApplianceStatisticsAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster ElectricalMeasurement attributes - kMatterClusterElectricalMeasurementAttributeMeasurementTypeID = 0x00000000, - kMatterClusterElectricalMeasurementAttributeDcVoltageID = 0x00000100, - kMatterClusterElectricalMeasurementAttributeDcVoltageMinID = 0x00000101, - kMatterClusterElectricalMeasurementAttributeDcVoltageMaxID = 0x00000102, - kMatterClusterElectricalMeasurementAttributeDcCurrentID = 0x00000103, - kMatterClusterElectricalMeasurementAttributeDcCurrentMinID = 0x00000104, - kMatterClusterElectricalMeasurementAttributeDcCurrentMaxID = 0x00000105, - kMatterClusterElectricalMeasurementAttributeDcPowerID = 0x00000106, - kMatterClusterElectricalMeasurementAttributeDcPowerMinID = 0x00000107, - kMatterClusterElectricalMeasurementAttributeDcPowerMaxID = 0x00000108, - kMatterClusterElectricalMeasurementAttributeDcVoltageMultiplierID = 0x00000200, - kMatterClusterElectricalMeasurementAttributeDcVoltageDivisorID = 0x00000201, - kMatterClusterElectricalMeasurementAttributeDcCurrentMultiplierID = 0x00000202, - kMatterClusterElectricalMeasurementAttributeDcCurrentDivisorID = 0x00000203, - kMatterClusterElectricalMeasurementAttributeDcPowerMultiplierID = 0x00000204, - kMatterClusterElectricalMeasurementAttributeDcPowerDivisorID = 0x00000205, - kMatterClusterElectricalMeasurementAttributeAcFrequencyID = 0x00000300, - kMatterClusterElectricalMeasurementAttributeAcFrequencyMinID = 0x00000301, - kMatterClusterElectricalMeasurementAttributeAcFrequencyMaxID = 0x00000302, - kMatterClusterElectricalMeasurementAttributeNeutralCurrentID = 0x00000303, - kMatterClusterElectricalMeasurementAttributeTotalActivePowerID = 0x00000304, - kMatterClusterElectricalMeasurementAttributeTotalReactivePowerID = 0x00000305, - kMatterClusterElectricalMeasurementAttributeTotalApparentPowerID = 0x00000306, - kMatterClusterElectricalMeasurementAttributeMeasured1stHarmonicCurrentID = 0x00000307, - kMatterClusterElectricalMeasurementAttributeMeasured3rdHarmonicCurrentID = 0x00000308, - kMatterClusterElectricalMeasurementAttributeMeasured5thHarmonicCurrentID = 0x00000309, - kMatterClusterElectricalMeasurementAttributeMeasured7thHarmonicCurrentID = 0x0000030A, - kMatterClusterElectricalMeasurementAttributeMeasured9thHarmonicCurrentID = 0x0000030B, - kMatterClusterElectricalMeasurementAttributeMeasured11thHarmonicCurrentID = 0x0000030C, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase1stHarmonicCurrentID = 0x0000030D, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase3rdHarmonicCurrentID = 0x0000030E, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase5thHarmonicCurrentID = 0x0000030F, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase7thHarmonicCurrentID = 0x00000310, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase9thHarmonicCurrentID = 0x00000311, - kMatterClusterElectricalMeasurementAttributeMeasuredPhase11thHarmonicCurrentID = 0x00000312, - kMatterClusterElectricalMeasurementAttributeAcFrequencyMultiplierID = 0x00000400, - kMatterClusterElectricalMeasurementAttributeAcFrequencyDivisorID = 0x00000401, - kMatterClusterElectricalMeasurementAttributePowerMultiplierID = 0x00000402, - kMatterClusterElectricalMeasurementAttributePowerDivisorID = 0x00000403, - kMatterClusterElectricalMeasurementAttributeHarmonicCurrentMultiplierID = 0x00000404, - kMatterClusterElectricalMeasurementAttributePhaseHarmonicCurrentMultiplierID = 0x00000405, - kMatterClusterElectricalMeasurementAttributeInstantaneousVoltageID = 0x00000500, - kMatterClusterElectricalMeasurementAttributeInstantaneousLineCurrentID = 0x00000501, - kMatterClusterElectricalMeasurementAttributeInstantaneousActiveCurrentID = 0x00000502, - kMatterClusterElectricalMeasurementAttributeInstantaneousReactiveCurrentID = 0x00000503, - kMatterClusterElectricalMeasurementAttributeInstantaneousPowerID = 0x00000504, - kMatterClusterElectricalMeasurementAttributeRmsVoltageID = 0x00000505, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMinID = 0x00000506, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMaxID = 0x00000507, - kMatterClusterElectricalMeasurementAttributeRmsCurrentID = 0x00000508, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMinID = 0x00000509, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMaxID = 0x0000050A, - kMatterClusterElectricalMeasurementAttributeActivePowerID = 0x0000050B, - kMatterClusterElectricalMeasurementAttributeActivePowerMinID = 0x0000050C, - kMatterClusterElectricalMeasurementAttributeActivePowerMaxID = 0x0000050D, - kMatterClusterElectricalMeasurementAttributeReactivePowerID = 0x0000050E, - kMatterClusterElectricalMeasurementAttributeApparentPowerID = 0x0000050F, - kMatterClusterElectricalMeasurementAttributePowerFactorID = 0x00000510, - kMatterClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodID = 0x00000511, - kMatterClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterID = 0x00000513, - kMatterClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodID = 0x00000514, - kMatterClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodID = 0x00000515, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSagPeriodID = 0x00000516, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodID = 0x00000517, - kMatterClusterElectricalMeasurementAttributeAcVoltageMultiplierID = 0x00000600, - kMatterClusterElectricalMeasurementAttributeAcVoltageDivisorID = 0x00000601, - kMatterClusterElectricalMeasurementAttributeAcCurrentMultiplierID = 0x00000602, - kMatterClusterElectricalMeasurementAttributeAcCurrentDivisorID = 0x00000603, - kMatterClusterElectricalMeasurementAttributeAcPowerMultiplierID = 0x00000604, - kMatterClusterElectricalMeasurementAttributeAcPowerDivisorID = 0x00000605, - kMatterClusterElectricalMeasurementAttributeOverloadAlarmsMaskID = 0x00000700, - kMatterClusterElectricalMeasurementAttributeVoltageOverloadID = 0x00000701, - kMatterClusterElectricalMeasurementAttributeCurrentOverloadID = 0x00000702, - kMatterClusterElectricalMeasurementAttributeAcOverloadAlarmsMaskID = 0x00000800, - kMatterClusterElectricalMeasurementAttributeAcVoltageOverloadID = 0x00000801, - kMatterClusterElectricalMeasurementAttributeAcCurrentOverloadID = 0x00000802, - kMatterClusterElectricalMeasurementAttributeAcActivePowerOverloadID = 0x00000803, - kMatterClusterElectricalMeasurementAttributeAcReactivePowerOverloadID = 0x00000804, - kMatterClusterElectricalMeasurementAttributeAverageRmsOverVoltageID = 0x00000805, - kMatterClusterElectricalMeasurementAttributeAverageRmsUnderVoltageID = 0x00000806, - kMatterClusterElectricalMeasurementAttributeRmsExtremeOverVoltageID = 0x00000807, - kMatterClusterElectricalMeasurementAttributeRmsExtremeUnderVoltageID = 0x00000808, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSagID = 0x00000809, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSwellID = 0x0000080A, - kMatterClusterElectricalMeasurementAttributeLineCurrentPhaseBID = 0x00000901, - kMatterClusterElectricalMeasurementAttributeActiveCurrentPhaseBID = 0x00000902, - kMatterClusterElectricalMeasurementAttributeReactiveCurrentPhaseBID = 0x00000903, - kMatterClusterElectricalMeasurementAttributeRmsVoltagePhaseBID = 0x00000905, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMinPhaseBID = 0x00000906, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMaxPhaseBID = 0x00000907, - kMatterClusterElectricalMeasurementAttributeRmsCurrentPhaseBID = 0x00000908, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMinPhaseBID = 0x00000909, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMaxPhaseBID = 0x0000090A, - kMatterClusterElectricalMeasurementAttributeActivePowerPhaseBID = 0x0000090B, - kMatterClusterElectricalMeasurementAttributeActivePowerMinPhaseBID = 0x0000090C, - kMatterClusterElectricalMeasurementAttributeActivePowerMaxPhaseBID = 0x0000090D, - kMatterClusterElectricalMeasurementAttributeReactivePowerPhaseBID = 0x0000090E, - kMatterClusterElectricalMeasurementAttributeApparentPowerPhaseBID = 0x0000090F, - kMatterClusterElectricalMeasurementAttributePowerFactorPhaseBID = 0x00000910, - kMatterClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodPhaseBID = 0x00000911, - kMatterClusterElectricalMeasurementAttributeAverageRmsOverVoltageCounterPhaseBID = 0x00000912, - kMatterClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterPhaseBID = 0x00000913, - kMatterClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodPhaseBID = 0x00000914, - kMatterClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodPhaseBID = 0x00000915, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSagPeriodPhaseBID = 0x00000916, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodPhaseBID = 0x00000917, - kMatterClusterElectricalMeasurementAttributeLineCurrentPhaseCID = 0x00000A01, - kMatterClusterElectricalMeasurementAttributeActiveCurrentPhaseCID = 0x00000A02, - kMatterClusterElectricalMeasurementAttributeReactiveCurrentPhaseCID = 0x00000A03, - kMatterClusterElectricalMeasurementAttributeRmsVoltagePhaseCID = 0x00000A05, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMinPhaseCID = 0x00000A06, - kMatterClusterElectricalMeasurementAttributeRmsVoltageMaxPhaseCID = 0x00000A07, - kMatterClusterElectricalMeasurementAttributeRmsCurrentPhaseCID = 0x00000A08, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMinPhaseCID = 0x00000A09, - kMatterClusterElectricalMeasurementAttributeRmsCurrentMaxPhaseCID = 0x00000A0A, - kMatterClusterElectricalMeasurementAttributeActivePowerPhaseCID = 0x00000A0B, - kMatterClusterElectricalMeasurementAttributeActivePowerMinPhaseCID = 0x00000A0C, - kMatterClusterElectricalMeasurementAttributeActivePowerMaxPhaseCID = 0x00000A0D, - kMatterClusterElectricalMeasurementAttributeReactivePowerPhaseCID = 0x00000A0E, - kMatterClusterElectricalMeasurementAttributeApparentPowerPhaseCID = 0x00000A0F, - kMatterClusterElectricalMeasurementAttributePowerFactorPhaseCID = 0x00000A10, - kMatterClusterElectricalMeasurementAttributeAverageRmsVoltageMeasurementPeriodPhaseCID = 0x00000A11, - kMatterClusterElectricalMeasurementAttributeAverageRmsOverVoltageCounterPhaseCID = 0x00000A12, - kMatterClusterElectricalMeasurementAttributeAverageRmsUnderVoltageCounterPhaseCID = 0x00000A13, - kMatterClusterElectricalMeasurementAttributeRmsExtremeOverVoltagePeriodPhaseCID = 0x00000A14, - kMatterClusterElectricalMeasurementAttributeRmsExtremeUnderVoltagePeriodPhaseCID = 0x00000A15, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSagPeriodPhaseCID = 0x00000A16, - kMatterClusterElectricalMeasurementAttributeRmsVoltageSwellPeriodPhaseCID = 0x00000A17, - kMatterClusterElectricalMeasurementAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterElectricalMeasurementAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterElectricalMeasurementAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterElectricalMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterElectricalMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - - // Cluster TestCluster attributes - kMatterClusterTestClusterAttributeBooleanID = 0x00000000, - kMatterClusterTestClusterAttributeBitmap8ID = 0x00000001, - kMatterClusterTestClusterAttributeBitmap16ID = 0x00000002, - kMatterClusterTestClusterAttributeBitmap32ID = 0x00000003, - kMatterClusterTestClusterAttributeBitmap64ID = 0x00000004, - kMatterClusterTestClusterAttributeInt8uID = 0x00000005, - kMatterClusterTestClusterAttributeInt16uID = 0x00000006, - kMatterClusterTestClusterAttributeInt24uID = 0x00000007, - kMatterClusterTestClusterAttributeInt32uID = 0x00000008, - kMatterClusterTestClusterAttributeInt40uID = 0x00000009, - kMatterClusterTestClusterAttributeInt48uID = 0x0000000A, - kMatterClusterTestClusterAttributeInt56uID = 0x0000000B, - kMatterClusterTestClusterAttributeInt64uID = 0x0000000C, - kMatterClusterTestClusterAttributeInt8sID = 0x0000000D, - kMatterClusterTestClusterAttributeInt16sID = 0x0000000E, - kMatterClusterTestClusterAttributeInt24sID = 0x0000000F, - kMatterClusterTestClusterAttributeInt32sID = 0x00000010, - kMatterClusterTestClusterAttributeInt40sID = 0x00000011, - kMatterClusterTestClusterAttributeInt48sID = 0x00000012, - kMatterClusterTestClusterAttributeInt56sID = 0x00000013, - kMatterClusterTestClusterAttributeInt64sID = 0x00000014, - kMatterClusterTestClusterAttributeEnum8ID = 0x00000015, - kMatterClusterTestClusterAttributeEnum16ID = 0x00000016, - kMatterClusterTestClusterAttributeFloatSingleID = 0x00000017, - kMatterClusterTestClusterAttributeFloatDoubleID = 0x00000018, - kMatterClusterTestClusterAttributeOctetStringID = 0x00000019, - kMatterClusterTestClusterAttributeListInt8uID = 0x0000001A, - kMatterClusterTestClusterAttributeListOctetStringID = 0x0000001B, - kMatterClusterTestClusterAttributeListStructOctetStringID = 0x0000001C, - kMatterClusterTestClusterAttributeLongOctetStringID = 0x0000001D, - kMatterClusterTestClusterAttributeCharStringID = 0x0000001E, - kMatterClusterTestClusterAttributeLongCharStringID = 0x0000001F, - kMatterClusterTestClusterAttributeEpochUsID = 0x00000020, - kMatterClusterTestClusterAttributeEpochSID = 0x00000021, - kMatterClusterTestClusterAttributeVendorIdID = 0x00000022, - kMatterClusterTestClusterAttributeListNullablesAndOptionalsStructID = 0x00000023, - kMatterClusterTestClusterAttributeEnumAttrID = 0x00000024, - kMatterClusterTestClusterAttributeStructAttrID = 0x00000025, - kMatterClusterTestClusterAttributeRangeRestrictedInt8uID = 0x00000026, - kMatterClusterTestClusterAttributeRangeRestrictedInt8sID = 0x00000027, - kMatterClusterTestClusterAttributeRangeRestrictedInt16uID = 0x00000028, - kMatterClusterTestClusterAttributeRangeRestrictedInt16sID = 0x00000029, - kMatterClusterTestClusterAttributeListLongOctetStringID = 0x0000002A, - kMatterClusterTestClusterAttributeListFabricScopedID = 0x0000002B, - kMatterClusterTestClusterAttributeTimedWriteBooleanID = 0x00000030, - kMatterClusterTestClusterAttributeGeneralErrorBooleanID = 0x00000031, - kMatterClusterTestClusterAttributeClusterErrorBooleanID = 0x00000032, - kMatterClusterTestClusterAttributeUnsupportedID = 0x000000FF, - kMatterClusterTestClusterAttributeNullableBooleanID = 0x00004000, - kMatterClusterTestClusterAttributeNullableBitmap8ID = 0x00004001, - kMatterClusterTestClusterAttributeNullableBitmap16ID = 0x00004002, - kMatterClusterTestClusterAttributeNullableBitmap32ID = 0x00004003, - kMatterClusterTestClusterAttributeNullableBitmap64ID = 0x00004004, - kMatterClusterTestClusterAttributeNullableInt8uID = 0x00004005, - kMatterClusterTestClusterAttributeNullableInt16uID = 0x00004006, - kMatterClusterTestClusterAttributeNullableInt24uID = 0x00004007, - kMatterClusterTestClusterAttributeNullableInt32uID = 0x00004008, - kMatterClusterTestClusterAttributeNullableInt40uID = 0x00004009, - kMatterClusterTestClusterAttributeNullableInt48uID = 0x0000400A, - kMatterClusterTestClusterAttributeNullableInt56uID = 0x0000400B, - kMatterClusterTestClusterAttributeNullableInt64uID = 0x0000400C, - kMatterClusterTestClusterAttributeNullableInt8sID = 0x0000400D, - kMatterClusterTestClusterAttributeNullableInt16sID = 0x0000400E, - kMatterClusterTestClusterAttributeNullableInt24sID = 0x0000400F, - kMatterClusterTestClusterAttributeNullableInt32sID = 0x00004010, - kMatterClusterTestClusterAttributeNullableInt40sID = 0x00004011, - kMatterClusterTestClusterAttributeNullableInt48sID = 0x00004012, - kMatterClusterTestClusterAttributeNullableInt56sID = 0x00004013, - kMatterClusterTestClusterAttributeNullableInt64sID = 0x00004014, - kMatterClusterTestClusterAttributeNullableEnum8ID = 0x00004015, - kMatterClusterTestClusterAttributeNullableEnum16ID = 0x00004016, - kMatterClusterTestClusterAttributeNullableFloatSingleID = 0x00004017, - kMatterClusterTestClusterAttributeNullableFloatDoubleID = 0x00004018, - kMatterClusterTestClusterAttributeNullableOctetStringID = 0x00004019, - kMatterClusterTestClusterAttributeNullableCharStringID = 0x0000401E, - kMatterClusterTestClusterAttributeNullableEnumAttrID = 0x00004024, - kMatterClusterTestClusterAttributeNullableStructID = 0x00004025, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8uID = 0x00004026, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8sID = 0x00004027, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16uID = 0x00004028, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16sID = 0x00004029, - kMatterClusterTestClusterAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTestClusterAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTestClusterAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTestClusterAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTestClusterAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - -}; - -#pragma mark - Commands IDs - -typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { - // Cluster Identify commands - kMatterClusterIdentifyCommandIdentifyID = 0x00000000, - kMatterClusterIdentifyCommandTriggerEffectID = 0x00000040, - - // Cluster Groups commands - kMatterClusterGroupsCommandAddGroupID = 0x00000000, - kMatterClusterGroupsCommandAddGroupResponseID = 0x00000000, - kMatterClusterGroupsCommandViewGroupID = 0x00000001, - kMatterClusterGroupsCommandViewGroupResponseID = 0x00000001, - kMatterClusterGroupsCommandGetGroupMembershipID = 0x00000002, - kMatterClusterGroupsCommandGetGroupMembershipResponseID = 0x00000002, - kMatterClusterGroupsCommandRemoveGroupID = 0x00000003, - kMatterClusterGroupsCommandRemoveGroupResponseID = 0x00000003, - kMatterClusterGroupsCommandRemoveAllGroupsID = 0x00000004, - kMatterClusterGroupsCommandAddGroupIfIdentifyingID = 0x00000005, - - // Cluster Scenes commands - kMatterClusterScenesCommandAddSceneID = 0x00000000, - kMatterClusterScenesCommandAddSceneResponseID = 0x00000000, - kMatterClusterScenesCommandViewSceneID = 0x00000001, - kMatterClusterScenesCommandViewSceneResponseID = 0x00000001, - kMatterClusterScenesCommandRemoveSceneID = 0x00000002, - kMatterClusterScenesCommandRemoveSceneResponseID = 0x00000002, - kMatterClusterScenesCommandRemoveAllScenesID = 0x00000003, - kMatterClusterScenesCommandRemoveAllScenesResponseID = 0x00000003, - kMatterClusterScenesCommandStoreSceneID = 0x00000004, - kMatterClusterScenesCommandStoreSceneResponseID = 0x00000004, - kMatterClusterScenesCommandRecallSceneID = 0x00000005, - kMatterClusterScenesCommandGetSceneMembershipID = 0x00000006, - kMatterClusterScenesCommandGetSceneMembershipResponseID = 0x00000006, - kMatterClusterScenesCommandEnhancedAddSceneID = 0x00000040, - kMatterClusterScenesCommandEnhancedAddSceneResponseID = 0x00000040, - kMatterClusterScenesCommandEnhancedViewSceneID = 0x00000041, - kMatterClusterScenesCommandEnhancedViewSceneResponseID = 0x00000041, - kMatterClusterScenesCommandCopySceneID = 0x00000042, - kMatterClusterScenesCommandCopySceneResponseID = 0x00000042, - - // Cluster OnOff commands - kMatterClusterOnOffCommandOffID = 0x00000000, - kMatterClusterOnOffCommandOnID = 0x00000001, - kMatterClusterOnOffCommandToggleID = 0x00000002, - kMatterClusterOnOffCommandOffWithEffectID = 0x00000040, - kMatterClusterOnOffCommandOnWithRecallGlobalSceneID = 0x00000041, - kMatterClusterOnOffCommandOnWithTimedOffID = 0x00000042, - - // Cluster LevelControl commands - kMatterClusterLevelControlCommandMoveToLevelID = 0x00000000, - kMatterClusterLevelControlCommandMoveID = 0x00000001, - kMatterClusterLevelControlCommandStepID = 0x00000002, - kMatterClusterLevelControlCommandStopID = 0x00000003, - kMatterClusterLevelControlCommandMoveToLevelWithOnOffID = 0x00000004, - kMatterClusterLevelControlCommandMoveWithOnOffID = 0x00000005, - kMatterClusterLevelControlCommandStepWithOnOffID = 0x00000006, - kMatterClusterLevelControlCommandStopWithOnOffID = 0x00000007, - kMatterClusterLevelControlCommandMoveToClosestFrequencyID = 0x00000008, - - // Cluster Alarms commands - kMatterClusterAlarmsCommandResetAlarmID = 0x00000000, - kMatterClusterAlarmsCommandAlarmID = 0x00000000, - kMatterClusterAlarmsCommandResetAllAlarmsID = 0x00000001, - kMatterClusterAlarmsCommandGetAlarmResponseID = 0x00000001, - kMatterClusterAlarmsCommandGetAlarmID = 0x00000002, - kMatterClusterAlarmsCommandResetAlarmLogID = 0x00000003, - - // Cluster PowerProfile commands - kMatterClusterPowerProfileCommandPowerProfileRequestID = 0x00000000, - kMatterClusterPowerProfileCommandPowerProfileNotificationID = 0x00000000, - kMatterClusterPowerProfileCommandPowerProfileStateRequestID = 0x00000001, - kMatterClusterPowerProfileCommandPowerProfileResponseID = 0x00000001, - kMatterClusterPowerProfileCommandGetPowerProfilePriceResponseID = 0x00000002, - kMatterClusterPowerProfileCommandPowerProfileStateResponseID = 0x00000002, - kMatterClusterPowerProfileCommandGetOverallSchedulePriceResponseID = 0x00000003, - kMatterClusterPowerProfileCommandGetPowerProfilePriceID = 0x00000003, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleNotificationID = 0x00000004, - kMatterClusterPowerProfileCommandPowerProfilesStateNotificationID = 0x00000004, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleResponseID = 0x00000005, - kMatterClusterPowerProfileCommandGetOverallSchedulePriceID = 0x00000005, - kMatterClusterPowerProfileCommandPowerProfileScheduleConstraintsRequestID = 0x00000006, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleRequestID = 0x00000006, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleStateRequestID = 0x00000007, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleStateResponseID = 0x00000007, - kMatterClusterPowerProfileCommandGetPowerProfilePriceExtendedResponseID = 0x00000008, - kMatterClusterPowerProfileCommandEnergyPhasesScheduleStateNotificationID = 0x00000008, - kMatterClusterPowerProfileCommandPowerProfileScheduleConstraintsNotificationID = 0x00000009, - kMatterClusterPowerProfileCommandPowerProfileScheduleConstraintsResponseID = 0x0000000A, - kMatterClusterPowerProfileCommandGetPowerProfilePriceExtendedID = 0x0000000B, - - // Cluster ApplianceControl commands - kMatterClusterApplianceControlCommandExecutionOfACommandID = 0x00000000, - kMatterClusterApplianceControlCommandSignalStateResponseID = 0x00000000, - kMatterClusterApplianceControlCommandSignalStateID = 0x00000001, - kMatterClusterApplianceControlCommandSignalStateNotificationID = 0x00000001, - kMatterClusterApplianceControlCommandWriteFunctionsID = 0x00000002, - kMatterClusterApplianceControlCommandOverloadPauseResumeID = 0x00000003, - kMatterClusterApplianceControlCommandOverloadPauseID = 0x00000004, - kMatterClusterApplianceControlCommandOverloadWarningID = 0x00000005, - - // Cluster PollControl commands - kMatterClusterPollControlCommandCheckInID = 0x00000000, - kMatterClusterPollControlCommandCheckInResponseID = 0x00000000, - kMatterClusterPollControlCommandFastPollStopID = 0x00000001, - kMatterClusterPollControlCommandSetLongPollIntervalID = 0x00000002, - kMatterClusterPollControlCommandSetShortPollIntervalID = 0x00000003, - - // Cluster BridgedActions commands - kMatterClusterBridgedActionsCommandInstantActionID = 0x00000000, - kMatterClusterBridgedActionsCommandInstantActionWithTransitionID = 0x00000001, - kMatterClusterBridgedActionsCommandStartActionID = 0x00000002, - kMatterClusterBridgedActionsCommandStartActionWithDurationID = 0x00000003, - kMatterClusterBridgedActionsCommandStopActionID = 0x00000004, - kMatterClusterBridgedActionsCommandPauseActionID = 0x00000005, - kMatterClusterBridgedActionsCommandPauseActionWithDurationID = 0x00000006, - kMatterClusterBridgedActionsCommandResumeActionID = 0x00000007, - kMatterClusterBridgedActionsCommandEnableActionID = 0x00000008, - kMatterClusterBridgedActionsCommandEnableActionWithDurationID = 0x00000009, - kMatterClusterBridgedActionsCommandDisableActionID = 0x0000000A, - kMatterClusterBridgedActionsCommandDisableActionWithDurationID = 0x0000000B, - - // Cluster Basic commands - kMatterClusterBasicCommandMfgSpecificPingID = 0x10020000, - - // Cluster OtaSoftwareUpdateProvider commands - kMatterClusterOtaSoftwareUpdateProviderCommandQueryImageID = 0x00000000, - kMatterClusterOtaSoftwareUpdateProviderCommandQueryImageResponseID = 0x00000001, - kMatterClusterOtaSoftwareUpdateProviderCommandApplyUpdateRequestID = 0x00000002, - kMatterClusterOtaSoftwareUpdateProviderCommandApplyUpdateResponseID = 0x00000003, - kMatterClusterOtaSoftwareUpdateProviderCommandNotifyUpdateAppliedID = 0x00000004, - - // Cluster OtaSoftwareUpdateRequestor commands - kMatterClusterOtaSoftwareUpdateRequestorCommandAnnounceOtaProviderID = 0x00000000, - - // Cluster GeneralCommissioning commands - kMatterClusterGeneralCommissioningCommandArmFailSafeID = 0x00000000, - kMatterClusterGeneralCommissioningCommandArmFailSafeResponseID = 0x00000001, - kMatterClusterGeneralCommissioningCommandSetRegulatoryConfigID = 0x00000002, - kMatterClusterGeneralCommissioningCommandSetRegulatoryConfigResponseID = 0x00000003, - kMatterClusterGeneralCommissioningCommandCommissioningCompleteID = 0x00000004, - kMatterClusterGeneralCommissioningCommandCommissioningCompleteResponseID = 0x00000005, - - // Cluster NetworkCommissioning commands - kMatterClusterNetworkCommissioningCommandScanNetworksID = 0x00000000, - kMatterClusterNetworkCommissioningCommandScanNetworksResponseID = 0x00000001, - kMatterClusterNetworkCommissioningCommandAddOrUpdateWiFiNetworkID = 0x00000002, - kMatterClusterNetworkCommissioningCommandAddOrUpdateThreadNetworkID = 0x00000003, - kMatterClusterNetworkCommissioningCommandRemoveNetworkID = 0x00000004, - kMatterClusterNetworkCommissioningCommandNetworkConfigResponseID = 0x00000005, - kMatterClusterNetworkCommissioningCommandConnectNetworkID = 0x00000006, - kMatterClusterNetworkCommissioningCommandConnectNetworkResponseID = 0x00000007, - kMatterClusterNetworkCommissioningCommandReorderNetworkID = 0x00000008, - - // Cluster DiagnosticLogs commands - kMatterClusterDiagnosticLogsCommandRetrieveLogsRequestID = 0x00000000, - kMatterClusterDiagnosticLogsCommandRetrieveLogsResponseID = 0x00000001, - - // Cluster GeneralDiagnostics commands - kMatterClusterGeneralDiagnosticsCommandTestEventTriggerID = 0x00000000, - - // Cluster SoftwareDiagnostics commands - kMatterClusterSoftwareDiagnosticsCommandResetWatermarksID = 0x00000000, - - // Cluster ThreadNetworkDiagnostics commands - kMatterClusterThreadNetworkDiagnosticsCommandResetCountsID = 0x00000000, - - // Cluster WiFiNetworkDiagnostics commands - kMatterClusterWiFiNetworkDiagnosticsCommandResetCountsID = 0x00000000, - - // Cluster EthernetNetworkDiagnostics commands - kMatterClusterEthernetNetworkDiagnosticsCommandResetCountsID = 0x00000000, - - // Cluster AdministratorCommissioning commands - kMatterClusterAdministratorCommissioningCommandOpenCommissioningWindowID = 0x00000000, - kMatterClusterAdministratorCommissioningCommandOpenBasicCommissioningWindowID = 0x00000001, - kMatterClusterAdministratorCommissioningCommandRevokeCommissioningID = 0x00000002, - - // Cluster OperationalCredentials commands - kMatterClusterOperationalCredentialsCommandAttestationRequestID = 0x00000000, - kMatterClusterOperationalCredentialsCommandAttestationResponseID = 0x00000001, - kMatterClusterOperationalCredentialsCommandCertificateChainRequestID = 0x00000002, - kMatterClusterOperationalCredentialsCommandCertificateChainResponseID = 0x00000003, - kMatterClusterOperationalCredentialsCommandCSRRequestID = 0x00000004, - kMatterClusterOperationalCredentialsCommandCSRResponseID = 0x00000005, - kMatterClusterOperationalCredentialsCommandAddNOCID = 0x00000006, - kMatterClusterOperationalCredentialsCommandUpdateNOCID = 0x00000007, - kMatterClusterOperationalCredentialsCommandNOCResponseID = 0x00000008, - kMatterClusterOperationalCredentialsCommandUpdateFabricLabelID = 0x00000009, - kMatterClusterOperationalCredentialsCommandRemoveFabricID = 0x0000000A, - kMatterClusterOperationalCredentialsCommandAddTrustedRootCertificateID = 0x0000000B, - - // Cluster GroupKeyManagement commands - kMatterClusterGroupKeyManagementCommandKeySetWriteID = 0x00000000, - kMatterClusterGroupKeyManagementCommandKeySetReadID = 0x00000001, - kMatterClusterGroupKeyManagementCommandKeySetReadResponseID = 0x00000002, - kMatterClusterGroupKeyManagementCommandKeySetRemoveID = 0x00000003, - kMatterClusterGroupKeyManagementCommandKeySetReadAllIndicesID = 0x00000004, - kMatterClusterGroupKeyManagementCommandKeySetReadAllIndicesResponseID = 0x00000005, - - // Cluster ModeSelect commands - kMatterClusterModeSelectCommandChangeToModeID = 0x00000000, - - // Cluster DoorLock commands - kMatterClusterDoorLockCommandLockDoorID = 0x00000000, - kMatterClusterDoorLockCommandUnlockDoorID = 0x00000001, - kMatterClusterDoorLockCommandUnlockWithTimeoutID = 0x00000003, - kMatterClusterDoorLockCommandSetWeekDayScheduleID = 0x0000000B, - kMatterClusterDoorLockCommandGetWeekDayScheduleID = 0x0000000C, - kMatterClusterDoorLockCommandGetWeekDayScheduleResponseID = 0x0000000C, - kMatterClusterDoorLockCommandClearWeekDayScheduleID = 0x0000000D, - kMatterClusterDoorLockCommandSetYearDayScheduleID = 0x0000000E, - kMatterClusterDoorLockCommandGetYearDayScheduleID = 0x0000000F, - kMatterClusterDoorLockCommandGetYearDayScheduleResponseID = 0x0000000F, - kMatterClusterDoorLockCommandClearYearDayScheduleID = 0x00000010, - kMatterClusterDoorLockCommandSetHolidayScheduleID = 0x00000011, - kMatterClusterDoorLockCommandGetHolidayScheduleID = 0x00000012, - kMatterClusterDoorLockCommandGetHolidayScheduleResponseID = 0x00000012, - kMatterClusterDoorLockCommandClearHolidayScheduleID = 0x00000013, - kMatterClusterDoorLockCommandSetUserID = 0x0000001A, - kMatterClusterDoorLockCommandGetUserID = 0x0000001B, - kMatterClusterDoorLockCommandGetUserResponseID = 0x0000001C, - kMatterClusterDoorLockCommandClearUserID = 0x0000001D, - kMatterClusterDoorLockCommandSetCredentialID = 0x00000022, - kMatterClusterDoorLockCommandSetCredentialResponseID = 0x00000023, - kMatterClusterDoorLockCommandGetCredentialStatusID = 0x00000024, - kMatterClusterDoorLockCommandGetCredentialStatusResponseID = 0x00000025, - kMatterClusterDoorLockCommandClearCredentialID = 0x00000026, - - // Cluster WindowCovering commands - kMatterClusterWindowCoveringCommandUpOrOpenID = 0x00000000, - kMatterClusterWindowCoveringCommandDownOrCloseID = 0x00000001, - kMatterClusterWindowCoveringCommandStopMotionID = 0x00000002, - kMatterClusterWindowCoveringCommandGoToLiftValueID = 0x00000004, - kMatterClusterWindowCoveringCommandGoToLiftPercentageID = 0x00000005, - kMatterClusterWindowCoveringCommandGoToTiltValueID = 0x00000007, - kMatterClusterWindowCoveringCommandGoToTiltPercentageID = 0x00000008, - - // Cluster BarrierControl commands - kMatterClusterBarrierControlCommandBarrierControlGoToPercentID = 0x00000000, - kMatterClusterBarrierControlCommandBarrierControlStopID = 0x00000001, - - // Cluster Thermostat commands - kMatterClusterThermostatCommandSetpointRaiseLowerID = 0x00000000, - kMatterClusterThermostatCommandGetWeeklyScheduleResponseID = 0x00000000, - kMatterClusterThermostatCommandSetWeeklyScheduleID = 0x00000001, - kMatterClusterThermostatCommandGetWeeklyScheduleID = 0x00000002, - kMatterClusterThermostatCommandClearWeeklyScheduleID = 0x00000003, - - // Cluster ColorControl commands - kMatterClusterColorControlCommandMoveToHueID = 0x00000000, - kMatterClusterColorControlCommandMoveHueID = 0x00000001, - kMatterClusterColorControlCommandStepHueID = 0x00000002, - kMatterClusterColorControlCommandMoveToSaturationID = 0x00000003, - kMatterClusterColorControlCommandMoveSaturationID = 0x00000004, - kMatterClusterColorControlCommandStepSaturationID = 0x00000005, - kMatterClusterColorControlCommandMoveToHueAndSaturationID = 0x00000006, - kMatterClusterColorControlCommandMoveToColorID = 0x00000007, - kMatterClusterColorControlCommandMoveColorID = 0x00000008, - kMatterClusterColorControlCommandStepColorID = 0x00000009, - kMatterClusterColorControlCommandMoveToColorTemperatureID = 0x0000000A, - kMatterClusterColorControlCommandEnhancedMoveToHueID = 0x00000040, - kMatterClusterColorControlCommandEnhancedMoveHueID = 0x00000041, - kMatterClusterColorControlCommandEnhancedStepHueID = 0x00000042, - kMatterClusterColorControlCommandEnhancedMoveToHueAndSaturationID = 0x00000043, - kMatterClusterColorControlCommandColorLoopSetID = 0x00000044, - kMatterClusterColorControlCommandStopMoveStepID = 0x00000047, - kMatterClusterColorControlCommandMoveColorTemperatureID = 0x0000004B, - kMatterClusterColorControlCommandStepColorTemperatureID = 0x0000004C, - - // Cluster Channel commands - kMatterClusterChannelCommandChangeChannelID = 0x00000000, - kMatterClusterChannelCommandChangeChannelResponseID = 0x00000001, - kMatterClusterChannelCommandChangeChannelByNumberID = 0x00000002, - kMatterClusterChannelCommandSkipChannelID = 0x00000003, - - // Cluster TargetNavigator commands - kMatterClusterTargetNavigatorCommandNavigateTargetID = 0x00000000, - kMatterClusterTargetNavigatorCommandNavigateTargetResponseID = 0x00000001, - - // Cluster MediaPlayback commands - kMatterClusterMediaPlaybackCommandPlayID = 0x00000000, - kMatterClusterMediaPlaybackCommandPauseID = 0x00000001, - kMatterClusterMediaPlaybackCommandStopPlaybackID = 0x00000002, - kMatterClusterMediaPlaybackCommandStartOverID = 0x00000003, - kMatterClusterMediaPlaybackCommandPreviousID = 0x00000004, - kMatterClusterMediaPlaybackCommandNextID = 0x00000005, - kMatterClusterMediaPlaybackCommandRewindID = 0x00000006, - kMatterClusterMediaPlaybackCommandFastForwardID = 0x00000007, - kMatterClusterMediaPlaybackCommandSkipForwardID = 0x00000008, - kMatterClusterMediaPlaybackCommandSkipBackwardID = 0x00000009, - kMatterClusterMediaPlaybackCommandPlaybackResponseID = 0x0000000A, - kMatterClusterMediaPlaybackCommandSeekID = 0x0000000B, - - // Cluster MediaInput commands - kMatterClusterMediaInputCommandSelectInputID = 0x00000000, - kMatterClusterMediaInputCommandShowInputStatusID = 0x00000001, - kMatterClusterMediaInputCommandHideInputStatusID = 0x00000002, - kMatterClusterMediaInputCommandRenameInputID = 0x00000003, - - // Cluster LowPower commands - kMatterClusterLowPowerCommandSleepID = 0x00000000, - - // Cluster KeypadInput commands - kMatterClusterKeypadInputCommandSendKeyID = 0x00000000, - kMatterClusterKeypadInputCommandSendKeyResponseID = 0x00000001, - - // Cluster ContentLauncher commands - kMatterClusterContentLauncherCommandLaunchContentID = 0x00000000, - kMatterClusterContentLauncherCommandLaunchURLID = 0x00000001, - kMatterClusterContentLauncherCommandLaunchResponseID = 0x00000002, - - // Cluster AudioOutput commands - kMatterClusterAudioOutputCommandSelectOutputID = 0x00000000, - kMatterClusterAudioOutputCommandRenameOutputID = 0x00000001, - - // Cluster ApplicationLauncher commands - kMatterClusterApplicationLauncherCommandLaunchAppID = 0x00000000, - kMatterClusterApplicationLauncherCommandStopAppID = 0x00000001, - kMatterClusterApplicationLauncherCommandHideAppID = 0x00000002, - kMatterClusterApplicationLauncherCommandLauncherResponseID = 0x00000003, - - // Cluster AccountLogin commands - kMatterClusterAccountLoginCommandGetSetupPINID = 0x00000000, - kMatterClusterAccountLoginCommandGetSetupPINResponseID = 0x00000001, - kMatterClusterAccountLoginCommandLoginID = 0x00000002, - kMatterClusterAccountLoginCommandLogoutID = 0x00000003, - - // Cluster Messaging commands - kMatterClusterMessagingCommandDisplayMessageID = 0x00000000, - kMatterClusterMessagingCommandGetLastMessageID = 0x00000000, - kMatterClusterMessagingCommandCancelMessageID = 0x00000001, - kMatterClusterMessagingCommandMessageConfirmationID = 0x00000001, - kMatterClusterMessagingCommandDisplayProtectedMessageID = 0x00000002, - kMatterClusterMessagingCommandGetMessageCancellationID = 0x00000002, - kMatterClusterMessagingCommandCancelAllMessagesID = 0x00000003, - - // Cluster ApplianceEventsAndAlert commands - kMatterClusterApplianceEventsAndAlertCommandGetAlertsID = 0x00000000, - kMatterClusterApplianceEventsAndAlertCommandGetAlertsResponseID = 0x00000000, - kMatterClusterApplianceEventsAndAlertCommandAlertsNotificationID = 0x00000001, - kMatterClusterApplianceEventsAndAlertCommandEventsNotificationID = 0x00000002, - - // Cluster ApplianceStatistics commands - kMatterClusterApplianceStatisticsCommandLogNotificationID = 0x00000000, - kMatterClusterApplianceStatisticsCommandLogRequestID = 0x00000000, - kMatterClusterApplianceStatisticsCommandLogResponseID = 0x00000001, - kMatterClusterApplianceStatisticsCommandLogQueueRequestID = 0x00000001, - kMatterClusterApplianceStatisticsCommandLogQueueResponseID = 0x00000002, - kMatterClusterApplianceStatisticsCommandStatisticsAvailableID = 0x00000003, - - // Cluster ElectricalMeasurement commands - kMatterClusterElectricalMeasurementCommandGetProfileInfoResponseCommandID = 0x00000000, - kMatterClusterElectricalMeasurementCommandGetProfileInfoCommandID = 0x00000000, - kMatterClusterElectricalMeasurementCommandGetMeasurementProfileResponseCommandID = 0x00000001, - kMatterClusterElectricalMeasurementCommandGetMeasurementProfileCommandID = 0x00000001, - - // Cluster TestCluster commands - kMatterClusterTestClusterCommandTestID = 0x00000000, - kMatterClusterTestClusterCommandTestSpecificResponseID = 0x00000000, - kMatterClusterTestClusterCommandTestNotHandledID = 0x00000001, - kMatterClusterTestClusterCommandTestAddArgumentsResponseID = 0x00000001, - kMatterClusterTestClusterCommandTestSpecificID = 0x00000002, - kMatterClusterTestClusterCommandTestSimpleArgumentResponseID = 0x00000002, - kMatterClusterTestClusterCommandTestUnknownCommandID = 0x00000003, - kMatterClusterTestClusterCommandTestStructArrayArgumentResponseID = 0x00000003, - kMatterClusterTestClusterCommandTestAddArgumentsID = 0x00000004, - kMatterClusterTestClusterCommandTestListInt8UReverseResponseID = 0x00000004, - kMatterClusterTestClusterCommandTestSimpleArgumentRequestID = 0x00000005, - kMatterClusterTestClusterCommandTestEnumsResponseID = 0x00000005, - kMatterClusterTestClusterCommandTestStructArrayArgumentRequestID = 0x00000006, - kMatterClusterTestClusterCommandTestNullableOptionalResponseID = 0x00000006, - kMatterClusterTestClusterCommandTestStructArgumentRequestID = 0x00000007, - kMatterClusterTestClusterCommandTestComplexNullableOptionalResponseID = 0x00000007, - kMatterClusterTestClusterCommandTestNestedStructArgumentRequestID = 0x00000008, - kMatterClusterTestClusterCommandBooleanResponseID = 0x00000008, - kMatterClusterTestClusterCommandTestListStructArgumentRequestID = 0x00000009, - kMatterClusterTestClusterCommandSimpleStructResponseID = 0x00000009, - kMatterClusterTestClusterCommandTestListInt8UArgumentRequestID = 0x0000000A, - kMatterClusterTestClusterCommandTestEmitTestEventResponseID = 0x0000000A, - kMatterClusterTestClusterCommandTestNestedStructListArgumentRequestID = 0x0000000B, - kMatterClusterTestClusterCommandTestEmitTestFabricScopedEventResponseID = 0x0000000B, - kMatterClusterTestClusterCommandTestListNestedStructListArgumentRequestID = 0x0000000C, - kMatterClusterTestClusterCommandTestListInt8UReverseRequestID = 0x0000000D, - kMatterClusterTestClusterCommandTestEnumsRequestID = 0x0000000E, - kMatterClusterTestClusterCommandTestNullableOptionalRequestID = 0x0000000F, - kMatterClusterTestClusterCommandTestComplexNullableOptionalRequestID = 0x00000010, - kMatterClusterTestClusterCommandSimpleStructEchoRequestID = 0x00000011, - kMatterClusterTestClusterCommandTimedInvokeRequestID = 0x00000012, - kMatterClusterTestClusterCommandTestSimpleOptionalArgumentRequestID = 0x00000013, - kMatterClusterTestClusterCommandTestEmitTestEventRequestID = 0x00000014, - kMatterClusterTestClusterCommandTestEmitTestFabricScopedEventRequestID = 0x00000015, - -}; - -#pragma mark - Events IDs - -typedef NS_ENUM(uint32_t, MatterClusterEventIDType) { - // Cluster AccessControl events - kMatterClusterAccessControlEventAccessControlEntryChangedID = 0x00000000, - kMatterClusterAccessControlEventAccessControlExtensionChangedID = 0x00000001, - - // Cluster BridgedActions events - kMatterClusterBridgedActionsEventStateChangedID = 0x00000000, - kMatterClusterBridgedActionsEventActionFailedID = 0x00000001, - - // Cluster Basic events - kMatterClusterBasicEventStartUpID = 0x00000000, - kMatterClusterBasicEventShutDownID = 0x00000001, - kMatterClusterBasicEventLeaveID = 0x00000002, - kMatterClusterBasicEventReachableChangedID = 0x00000003, - - // Cluster OtaSoftwareUpdateRequestor events - kMatterClusterOtaSoftwareUpdateRequestorEventStateTransitionID = 0x00000000, - kMatterClusterOtaSoftwareUpdateRequestorEventVersionAppliedID = 0x00000001, - kMatterClusterOtaSoftwareUpdateRequestorEventDownloadErrorID = 0x00000002, - - // Cluster GeneralDiagnostics events - kMatterClusterGeneralDiagnosticsEventHardwareFaultChangeID = 0x00000000, - kMatterClusterGeneralDiagnosticsEventRadioFaultChangeID = 0x00000001, - kMatterClusterGeneralDiagnosticsEventNetworkFaultChangeID = 0x00000002, - kMatterClusterGeneralDiagnosticsEventBootReasonID = 0x00000003, - - // Cluster SoftwareDiagnostics events - kMatterClusterSoftwareDiagnosticsEventSoftwareFaultID = 0x00000000, - - // Cluster ThreadNetworkDiagnostics events - kMatterClusterThreadNetworkDiagnosticsEventConnectionStatusID = 0x00000000, - - // Cluster WiFiNetworkDiagnostics events - kMatterClusterWiFiNetworkDiagnosticsEventDisconnectionID = 0x00000000, - kMatterClusterWiFiNetworkDiagnosticsEventAssociationFailureID = 0x00000001, - kMatterClusterWiFiNetworkDiagnosticsEventConnectionStatusID = 0x00000002, - - // Cluster BridgedDeviceBasic events - kMatterClusterBridgedDeviceBasicEventStartUpID = 0x00000000, - kMatterClusterBridgedDeviceBasicEventShutDownID = 0x00000001, - kMatterClusterBridgedDeviceBasicEventLeaveID = 0x00000002, - kMatterClusterBridgedDeviceBasicEventReachableChangedID = 0x00000003, - - // Cluster Switch events - kMatterClusterSwitchEventSwitchLatchedID = 0x00000000, - kMatterClusterSwitchEventInitialPressID = 0x00000001, - kMatterClusterSwitchEventLongPressID = 0x00000002, - kMatterClusterSwitchEventShortReleaseID = 0x00000003, - kMatterClusterSwitchEventLongReleaseID = 0x00000004, - kMatterClusterSwitchEventMultiPressOngoingID = 0x00000005, - kMatterClusterSwitchEventMultiPressCompleteID = 0x00000006, - - // Cluster BooleanState events - kMatterClusterBooleanStateEventStateChangeID = 0x00000000, - - // Cluster DoorLock events - kMatterClusterDoorLockEventDoorLockAlarmID = 0x00000000, - kMatterClusterDoorLockEventDoorStateChangeID = 0x00000001, - kMatterClusterDoorLockEventLockOperationID = 0x00000002, - kMatterClusterDoorLockEventLockOperationErrorID = 0x00000003, - kMatterClusterDoorLockEventLockUserChangeID = 0x00000004, - - // Cluster PumpConfigurationAndControl events - kMatterClusterPumpConfigurationAndControlEventSupplyVoltageLowID = 0x00000000, - kMatterClusterPumpConfigurationAndControlEventSupplyVoltageHighID = 0x00000001, - kMatterClusterPumpConfigurationAndControlEventPowerMissingPhaseID = 0x00000002, - kMatterClusterPumpConfigurationAndControlEventSystemPressureLowID = 0x00000003, - kMatterClusterPumpConfigurationAndControlEventSystemPressureHighID = 0x00000004, - kMatterClusterPumpConfigurationAndControlEventDryRunningID = 0x00000005, - kMatterClusterPumpConfigurationAndControlEventMotorTemperatureHighID = 0x00000006, - kMatterClusterPumpConfigurationAndControlEventPumpMotorFatalFailureID = 0x00000007, - kMatterClusterPumpConfigurationAndControlEventElectronicTemperatureHighID = 0x00000008, - kMatterClusterPumpConfigurationAndControlEventPumpBlockedID = 0x00000009, - kMatterClusterPumpConfigurationAndControlEventSensorFailureID = 0x0000000A, - kMatterClusterPumpConfigurationAndControlEventElectronicNonFatalFailureID = 0x0000000B, - kMatterClusterPumpConfigurationAndControlEventElectronicFatalFailureID = 0x0000000C, - kMatterClusterPumpConfigurationAndControlEventGeneralFaultID = 0x0000000D, - kMatterClusterPumpConfigurationAndControlEventLeakageID = 0x0000000E, - kMatterClusterPumpConfigurationAndControlEventAirDetectionID = 0x0000000F, - kMatterClusterPumpConfigurationAndControlEventTurbineOperationID = 0x00000010, - - // Cluster TestCluster events - kMatterClusterTestClusterEventTestEventID = 0x00000001, - kMatterClusterTestClusterEventTestFabricScopedEventID = 0x00000002, - -}; - -#endif diff --git a/src/darwin/Framework/CHIPTests/MatterCertificateTests.m b/src/darwin/Framework/CHIPTests/MTRCertificateTests.m similarity index 88% rename from src/darwin/Framework/CHIPTests/MatterCertificateTests.m rename to src/darwin/Framework/CHIPTests/MTRCertificateTests.m index 79d5d92cb15832..106eaa7bcc716e 100644 --- a/src/darwin/Framework/CHIPTests/MatterCertificateTests.m +++ b/src/darwin/Framework/CHIPTests/MTRCertificateTests.m @@ -14,12 +14,12 @@ * limitations under the License. */ -#import +#import // system dependencies #import -#import "CHIPTestKeys.h" +#import "MTRTestKeys.h" @interface MatterCertificateTests : XCTestCase @@ -29,7 +29,7 @@ @implementation MatterCertificateTests - (void)testGenerateRootCert { - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); __auto_type * rootCert = [MTRCertificates generateRootCertificate:testKeys issuerId:nil fabricId:nil error:nil]; @@ -38,18 +38,18 @@ - (void)testGenerateRootCert - (void)testGenerateIntermediateCert { - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(rootCert); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediateCert = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:rootCert - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; @@ -58,13 +58,13 @@ - (void)testGenerateIntermediateCert - (void)testGenerateOperationalCertNoIntermediate { - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(rootCert); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * cats = [[NSMutableArray alloc] initWithCapacity:3]; @@ -74,7 +74,7 @@ - (void)testGenerateOperationalCertNoIntermediate __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@1 caseAuthenticatedTags:cats @@ -84,29 +84,29 @@ - (void)testGenerateOperationalCertNoIntermediate - (void)testGenerateOperationalCertWithIntermediate { - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(rootCert); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediateCert = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:rootCert - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediateCert); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:intermediateKeys signingCertificate:intermediateCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@1 caseAuthenticatedTags:nil @@ -116,13 +116,13 @@ - (void)testGenerateOperationalCertWithIntermediate - (void)testGenerateOperationalCertErrorCases { - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * rootCert = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(rootCert); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * cats = [[NSMutableArray alloc] initWithCapacity:4]; @@ -134,7 +134,7 @@ - (void)testGenerateOperationalCertErrorCases // Check basic case works __auto_type * operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@1 caseAuthenticatedTags:nil @@ -144,7 +144,7 @@ - (void)testGenerateOperationalCertErrorCases // CATs too long operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@1 caseAuthenticatedTags:cats @@ -154,7 +154,7 @@ - (void)testGenerateOperationalCertErrorCases // Signing key mismatch operationalCert = [MTRCertificates generateOperationalCertificate:operationalKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@1 caseAuthenticatedTags:nil @@ -164,7 +164,7 @@ - (void)testGenerateOperationalCertErrorCases // Invalid fabric id operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@0 nodeId:@1 caseAuthenticatedTags:nil @@ -174,7 +174,7 @@ - (void)testGenerateOperationalCertErrorCases // Undefined node id operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@0 caseAuthenticatedTags:nil @@ -184,7 +184,7 @@ - (void)testGenerateOperationalCertErrorCases // Non-operational node id operationalCert = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:rootCert - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@1 nodeId:@(0xFFFFFFFFFFFFFFFFLLU) caseAuthenticatedTags:nil @@ -194,7 +194,7 @@ - (void)testGenerateOperationalCertErrorCases - (void)testGenerateCSR { - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); __auto_type * csr = [MTRCertificates generateCertificateSigningRequest:testKeys error:nil]; diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/MTRClustersTests.m similarity index 61% rename from src/darwin/Framework/CHIPTests/CHIPClustersTests.m rename to src/darwin/Framework/CHIPTests/MTRClustersTests.m index e4300b379aff58..f6aebf6b0e5bb0 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/MTRClustersTests.m @@ -1,6 +1,6 @@ // -// CHIPClustersTests.m -// CHIPClustersTests +// MTRClustersTests.m +// MTRClustersTests /* * * Copyright (c) 2022 Project CHIP Authors @@ -21,11 +21,11 @@ // THIS FILE IS GENERATED BY ZAP // module headers -#import +#import -#import "CHIPErrorTestUtils.h" -#import "CHIPTestKeys.h" -#import "CHIPTestStorage.h" +#import "MTRErrorTestUtils.h" +#import "MTRTestKeys.h" +#import "MTRTestStorage.h" // system dependencies #import @@ -41,13 +41,13 @@ static uint16_t kTestVendorId = 0xFFF1u; // Singleton controller we use. -static CHIPDeviceController * sController = nil; +static MTRDeviceController * sController = nil; -@interface CHIPToolPairingDelegate : NSObject +@interface MTRToolPairingDelegate : NSObject @property (nonatomic, strong) XCTestExpectation * expectation; @end -@implementation CHIPToolPairingDelegate +@implementation MTRToolPairingDelegate - (id)initWithExpectation:(XCTestExpectation *)expectation { self = [super init]; @@ -61,7 +61,7 @@ - (void)onPairingComplete:(NSError *)error { XCTAssertEqual(error.code, 0); NSError * commissionError = nil; - [sController commissionDevice:nodeId commissioningParams:[[CHIPCommissioningParameters alloc] init] error:&commissionError]; + [sController commissionDevice:nodeId commissioningParams:[[MTRCommissioningParameters alloc] init] error:&commissionError]; XCTAssertNil(commissionError); // Keep waiting for onCommissioningComplete @@ -82,10 +82,10 @@ - (void)onAddressUpdated:(NSError *)error } @end -@interface CHIPClustersTests : XCTestCase +@interface MTRClustersTests : XCTestCase @end -@implementation CHIPClustersTests +@implementation MTRClustersTests - (void)setUp { @@ -97,11 +97,11 @@ - (void)testInitStack { XCTestExpectation * expectation = [self expectationWithDescription:@"Pairing Complete"]; - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; factoryParams.port = @(kLocalPort); // For our first startup, use a dummy paaCerts array. factoryParams.paaCerts = [[NSArray alloc] init]; @@ -116,18 +116,18 @@ - (void)testInitStack ok = [factory startup:factoryParams]; XCTAssertTrue(ok); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); sController = controller; - CHIPToolPairingDelegate * pairing = [[CHIPToolPairingDelegate alloc] initWithExpectation:expectation]; + MTRToolPairingDelegate * pairing = [[MTRToolPairingDelegate alloc] initWithExpectation:expectation]; dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.pairing", DISPATCH_QUEUE_SERIAL); [controller setPairingDelegate:pairing queue:callbackQueue]; @@ -139,65 +139,65 @@ - (void)testInitStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } - (void)testShutdownStack { - CHIPDeviceController * controller = sController; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); [controller shutdown]; XCTAssertFalse([controller isRunning]); - [[MatterControllerFactory sharedInstance] shutdown]; - XCTAssertFalse([[MatterControllerFactory sharedInstance] isRunning]); + [[MTRControllerFactory sharedInstance] shutdown]; + XCTAssertFalse([[MTRControllerFactory sharedInstance] isRunning]); } - (void)testReuseChipClusterObject { - CHIPDeviceController * controller = sController; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); - __block CHIPDevice * device; + __block MTRDevice * device; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable retrievedDevice, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - device = retrievedDevice; - }]; + [controller getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable retrievedDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + device = retrievedDevice; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; - XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectFirstCall"]; + XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseMTRClusterObjectFirstCall"]; dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster testWithCompletionHandler:^(NSError * err) { - NSLog(@"ReuseCHIPClusterObject test Error: %@", err); + NSLog(@"ReuseMTRClusterObject test Error: %@", err); XCTAssertEqual(err.code, 0); [expectation fulfill]; }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; - expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectSecondCall"]; + expectation = [self expectationWithDescription:@"ReuseMTRClusterObjectSecondCall"]; - // Reuse the CHIPCluster Object for multiple times. + // Reuse the MTRCluster Object for multiple times. [cluster testWithCompletionHandler:^(NSError * err) { - NSLog(@"ReuseCHIPClusterObject test Error: %@", err); + NSLog(@"ReuseMTRClusterObject test Error: %@", err); XCTAssertEqual(err.code, 0); [expectation fulfill]; }]; diff --git a/src/darwin/Framework/CHIPTests/CHIPControllerTests.m b/src/darwin/Framework/CHIPTests/MTRControllerTests.m similarity index 67% rename from src/darwin/Framework/CHIPTests/CHIPControllerTests.m rename to src/darwin/Framework/CHIPTests/MTRControllerTests.m index 78bf7e5e695337..9d3b3e462e5a9a 100644 --- a/src/darwin/Framework/CHIPTests/CHIPControllerTests.m +++ b/src/darwin/Framework/CHIPTests/MTRControllerTests.m @@ -1,6 +1,6 @@ // -// CHIPControllerTests.m -// CHIPControllerTests +// MTRControllerTests.m +// MTRControllerTests /** * * Copyright (c) 2021 Project CHIP Authors @@ -18,30 +18,30 @@ * limitations under the License. */ -#import +#import // system dependencies #import -#import "CHIPTestKeys.h" -#import "CHIPTestStorage.h" +#import "MTRTestKeys.h" +#import "MTRTestStorage.h" static uint16_t kTestVendorId = 0xFFF1u; -@interface CHIPControllerTests : XCTestCase +@interface MTRControllerTests : XCTestCase @end -@implementation CHIPControllerTests +@implementation MTRControllerTests - (void)testFactoryLifecycle { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); XCTAssertFalse([factory isRunning]); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); @@ -58,23 +58,23 @@ - (void)testFactoryLifecycle - (void)testControllerLifecycle { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -104,23 +104,23 @@ - (void)testControllerLifecycle - (void)testFactoryShutdownShutsDownController { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -131,23 +131,23 @@ - (void)testFactoryShutdownShutsDownController - (void)testControllerMultipleShutdown { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertTrue([controller isRunning]); for (int i = 0; i < 5; i++) { [controller shutdown]; @@ -160,32 +160,32 @@ - (void)testControllerMultipleShutdown - (void)testControllerInvalidAccess { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertTrue([controller isRunning]); [controller shutdown]; XCTAssertFalse([controller isRunning]); - XCTAssertFalse([controller getConnectedDevice:1234 - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable chipDevice, NSError * _Nullable error) { - XCTAssertEqual(error.code, CHIPErrorCodeInvalidState); - }]); + XCTAssertFalse([controller getDevice:1234 + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, MTRErrorCodeInvalidState); + }]); [factory shutdown]; XCTAssertFalse([factory isRunning]); @@ -193,23 +193,23 @@ - (void)testControllerInvalidAccess - (void)testControllerNewFabricMatchesOldFabric { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -228,23 +228,23 @@ - (void)testControllerNewFabricMatchesOldFabric - (void)testControllerExistingFabricMatchesRunningController { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -262,34 +262,34 @@ - (void)testControllerExistingFabricMatchesRunningController - (void)testControllerStartControllersOnTwoFabricIds { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params1 = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params1 = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params1); params1.vendorId = @(kTestVendorId); - CHIPDeviceController * controller1 = [factory startControllerOnNewFabric:params1]; + MTRDeviceController * controller1 = [factory startControllerOnNewFabric:params1]; XCTAssertNotNil(controller1); XCTAssertTrue([controller1 isRunning]); // Now try to start a new controller with the same root but a // different fabric id. - __auto_type * params2 = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:2 ipk:testKeys.ipk]; + __auto_type * params2 = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:2 ipk:testKeys.ipk]; XCTAssertNotNil(params2); params2.vendorId = @(kTestVendorId); - CHIPDeviceController * controller2 = [factory startControllerOnNewFabric:params2]; + MTRDeviceController * controller2 = [factory startControllerOnNewFabric:params2]; XCTAssertNotNil(controller2); XCTAssertTrue([controller2 isRunning]); @@ -307,15 +307,15 @@ - (void)testControllerStartControllersOnTwoFabricIds - (void)testControllerStartControllerSameFabricWrongSubject { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); __auto_type * root1 = [MTRCertificates generateRootCertificate:testKeys issuerId:@1 fabricId:@1 error:nil]; @@ -327,13 +327,13 @@ - (void)testControllerStartControllerSameFabricWrongSubject __auto_type * root3 = [MTRCertificates generateRootCertificate:testKeys issuerId:@2 fabricId:@1 error:nil]; XCTAssertNotNil(root3); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); params.rootCertificate = root1; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -375,15 +375,15 @@ - (void)testControllerStartControllerSameFabricWrongSubject - (void)testControllerFabricIdRootCertMismatch { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); __auto_type * root1 = [MTRCertificates generateRootCertificate:testKeys issuerId:@1 fabricId:@1 error:nil]; @@ -392,14 +392,14 @@ - (void)testControllerFabricIdRootCertMismatch __auto_type * root2 = [MTRCertificates generateRootCertificate:testKeys issuerId:@1 fabricId:@2 error:nil]; XCTAssertNotNil(root2); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); // Try to start controller when fabric id in root cert subject does not match provided fabric id. params.rootCertificate = root2; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); // Start controller when the fabric ids do match. @@ -431,26 +431,24 @@ - (void)testControllerFabricIdRootCertMismatch - (void)testControllerSignerDoesNotMatchRoot { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * signerKeys = [[CHIPTestKeys alloc] init]; + __auto_type * signerKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(signerKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:signerKeys - fabricId:1 - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:signerKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); @@ -458,7 +456,7 @@ - (void)testControllerSignerDoesNotMatchRoot // Try to start controller when there is no ICA and root cert does not match signing key. params.rootCertificate = root; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); [factory shutdown]; @@ -467,32 +465,32 @@ - (void)testControllerSignerDoesNotMatchRoot - (void)testControllerSignerKeyWithIntermediate { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); @@ -500,11 +498,11 @@ - (void)testControllerSignerKeyWithIntermediate // Try to start controller when there is an ICA and the ICA cert does not match signing key. params.rootCertificate = root; params.intermediateCertificate = intermediate; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); // Now start controller with the signing key matching the intermediate cert. - params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys fabricId:1 ipk:rootKeys.ipk]; + params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys fabricId:1 ipk:rootKeys.ipk]; params.vendorId = @(kTestVendorId); params.rootCertificate = root; params.intermediateCertificate = intermediate; @@ -521,19 +519,19 @@ - (void)testControllerSignerKeyWithIntermediate - (void)testControllerStartupParamsInvalidFabric { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); // Invalid fabric ID. - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:0 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:0 ipk:rootKeys.ipk]; XCTAssertNil(params); [factory shutdown]; @@ -542,24 +540,24 @@ - (void)testControllerStartupParamsInvalidFabric - (void)testControllerStartupParamsInvalidVendor { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); // Invalid vendor ID ("standard"). params.vendorId = @(0); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); [factory shutdown]; @@ -568,23 +566,23 @@ - (void)testControllerStartupParamsInvalidVendor - (void)testControllerStartupNodeIdPreserved { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -608,25 +606,25 @@ - (void)testControllerStartupNodeIdPreserved - (void)testControllerStartupNodeIdUsed { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); // Bring up with node id 17. params.nodeId = @17; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -663,25 +661,25 @@ - (void)testControllerStartupNodeIdUsed - (void)testControllerStartupNodeIdValidation { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); // Try to bring up with node id 0. params.nodeId = @0; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); // Try to bring up with node id that is outside of the operational range. @@ -707,39 +705,39 @@ - (void)testControllerStartupNodeIdValidation - (void)testControllerRotateToICA { // Tests that we can switch a fabric from not using an ICA to using an ICA. - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); // Create a new fabric without the ICA. params.rootCertificate = root; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -749,7 +747,7 @@ - (void)testControllerRotateToICA XCTAssertFalse([controller isRunning]); // Now start controller on the same fabric but using the ICA. - params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys fabricId:1 ipk:rootKeys.ipk]; + params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys fabricId:1 ipk:rootKeys.ipk]; params.vendorId = @(kTestVendorId); params.rootCertificate = root; params.intermediateCertificate = intermediate; @@ -769,34 +767,34 @@ - (void)testControllerRotateToICA - (void)testControllerRotateFromICA { // Tests that we can switch a fabric from using an ICA to not using an ICA. - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys - fabricId:1 - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys + fabricId:1 + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); @@ -804,7 +802,7 @@ - (void)testControllerRotateFromICA // Create a new fabric without the ICA. params.rootCertificate = root; params.intermediateCertificate = intermediate; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -814,7 +812,7 @@ - (void)testControllerRotateFromICA XCTAssertFalse([controller isRunning]); // Now start controller on the same fabric but without using the ICA. - params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; params.vendorId = @(kTestVendorId); params.rootCertificate = root; controller = [factory startControllerOnExistingFabric:params]; @@ -833,45 +831,45 @@ - (void)testControllerRotateFromICA - (void)testControllerRotateICA { // Tests that we can change the ICA being used for a fabric. - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys1 = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys1 = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys1); __auto_type * intermediate1 = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys1.pubkey + intermediatePublicKey:intermediateKeys1.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate1); - __auto_type * intermediateKeys2 = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys2 = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys2); __auto_type * intermediate2 = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys2.pubkey + intermediatePublicKey:intermediateKeys2.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate2); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys1 - fabricId:1 - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys1 + fabricId:1 + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); @@ -879,7 +877,7 @@ - (void)testControllerRotateICA // Create a new fabric without the first ICA. params.rootCertificate = root; params.intermediateCertificate = intermediate1; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -889,7 +887,7 @@ - (void)testControllerRotateICA XCTAssertFalse([controller isRunning]); // Now start controller on the same fabric but using the second ICA. - params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys2 fabricId:1 ipk:rootKeys.ipk]; + params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys2 fabricId:1 ipk:rootKeys.ipk]; params.vendorId = @(kTestVendorId); params.rootCertificate = root; params.intermediateCertificate = intermediate2; @@ -908,41 +906,41 @@ - (void)testControllerRotateICA - (void)testControllerICAWithoutRoot { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys - fabricId:1 - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:intermediateKeys + fabricId:1 + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); // Pass in an intermediate but no root. Should fail. params.intermediateCertificate = intermediate; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); [factory shutdown]; @@ -951,53 +949,53 @@ - (void)testControllerICAWithoutRoot - (void)testControllerProvideFullCertChain { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(intermediate); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * operational = [MTRCertificates generateOperationalCertificate:intermediateKeys signingCertificate:intermediate - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@123 nodeId:@456 caseAuthenticatedTags:nil error:nil]; XCTAssertNotNil(operational); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys - operationalCertificate:operational - intermediateCertificate:intermediate - rootCertificate:root - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys + operationalCertificate:operational + intermediateCertificate:intermediate + rootCertificate:root + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -1026,42 +1024,42 @@ - (void)testControllerProvideFullCertChain - (void)testControllerProvideCertChainNoICA { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:nil error:nil]; XCTAssertNotNil(root); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * operational = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:root - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@123 nodeId:@456 caseAuthenticatedTags:nil error:nil]; XCTAssertNotNil(operational); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys - operationalCertificate:operational - intermediateCertificate:nil - rootCertificate:root - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys + operationalCertificate:operational + intermediateCertificate:nil + rootCertificate:root + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -1076,42 +1074,42 @@ - (void)testControllerProvideCertChainNoICA - (void)testControllerCertChainFabricMismatchRoot { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:@111 error:nil]; XCTAssertNotNil(root); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * operational = [MTRCertificates generateOperationalCertificate:rootKeys signingCertificate:root - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@123 nodeId:@456 caseAuthenticatedTags:nil error:nil]; XCTAssertNotNil(operational); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys - operationalCertificate:operational - intermediateCertificate:nil - rootCertificate:root - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys + operationalCertificate:operational + intermediateCertificate:nil + rootCertificate:root + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); [factory shutdown]; @@ -1120,53 +1118,53 @@ - (void)testControllerCertChainFabricMismatchRoot - (void)testControllerCertChainFabricMismatchIntermediate { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); __auto_type * root = [MTRCertificates generateRootCertificate:rootKeys issuerId:nil fabricId:@123 error:nil]; XCTAssertNotNil(root); - __auto_type * intermediateKeys = [[CHIPTestKeys alloc] init]; + __auto_type * intermediateKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(intermediateKeys); __auto_type * intermediate = [MTRCertificates generateIntermediateCertificate:rootKeys rootCertificate:root - intermediatePublicKey:intermediateKeys.pubkey + intermediatePublicKey:intermediateKeys.publicKey issuerId:nil fabricId:@111 error:nil]; XCTAssertNotNil(intermediate); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); __auto_type * operational = [MTRCertificates generateOperationalCertificate:intermediateKeys signingCertificate:intermediate - operationalPublicKey:operationalKeys.pubkey + operationalPublicKey:operationalKeys.publicKey fabricId:@123 nodeId:@456 caseAuthenticatedTags:nil error:nil]; XCTAssertNotNil(operational); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys - operationalCertificate:operational - intermediateCertificate:intermediate - rootCertificate:root - ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithOperationalKeypair:operationalKeys + operationalCertificate:operational + intermediateCertificate:intermediate + rootCertificate:root + ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNil(controller); [factory shutdown]; @@ -1175,27 +1173,27 @@ - (void)testControllerCertChainFabricMismatchIntermediate - (void)testControllerExternallyProvidedOperationalKey { - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; XCTAssertTrue([factory startup:factoryParams]); XCTAssertTrue([factory isRunning]); - __auto_type * rootKeys = [[CHIPTestKeys alloc] init]; + __auto_type * rootKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(rootKeys); - __auto_type * operationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * operationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(operationalKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:rootKeys fabricId:1 ipk:rootKeys.ipk]; XCTAssertNotNil(params); params.vendorId = @(kTestVendorId); params.operationalKeypair = operationalKeys; - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); XCTAssertTrue([controller isRunning]); @@ -1225,7 +1223,7 @@ - (void)testControllerExternallyProvidedOperationalKey // And bringing up the controller with a different provided operational key // should work too. - __auto_type * newOperationalKeys = [[CHIPTestKeys alloc] init]; + __auto_type * newOperationalKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(newOperationalKeys); params.operationalKeypair = newOperationalKeys; diff --git a/src/darwin/Framework/CHIPTests/CHIPDeviceTests.m b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m similarity index 83% rename from src/darwin/Framework/CHIPTests/CHIPDeviceTests.m rename to src/darwin/Framework/CHIPTests/MTRDeviceTests.m index 5104e1ace0de43..5e781f83cadc06 100644 --- a/src/darwin/Framework/CHIPTests/CHIPDeviceTests.m +++ b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m @@ -1,6 +1,6 @@ // -// CHIPDeviceTests.m -// CHIPDeviceTests +// MTRDeviceTests.m +// MTRDeviceTests /* * * Copyright (c) 2022 Project CHIP Authors @@ -19,14 +19,14 @@ */ // module headers -#import -#import -#import -#import +#import +#import +#import +#import -#import "CHIPErrorTestUtils.h" -#import "CHIPTestKeys.h" -#import "CHIPTestStorage.h" +#import "MTRErrorTestUtils.h" +#import "MTRTestKeys.h" +#import "MTRTestStorage.h" #import @@ -50,42 +50,42 @@ // This test suite reuses a device object to speed up the test process for CI. // The following global variable holds the reference to the device object. -static CHIPDevice * mConnectedDevice; +static MTRDevice * mConnectedDevice; // Singleton controller we use. -static CHIPDeviceController * sController = nil; +static MTRDeviceController * sController = nil; static void WaitForCommissionee(XCTestExpectation * expectation, dispatch_queue_t queue) { - CHIPDeviceController * controller = sController; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); - [controller getConnectedDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [expectation fulfill]; - mConnectedDevice = device; - }]; + [controller getDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [expectation fulfill]; + mConnectedDevice = device; + }]; } -static CHIPDevice * GetConnectedDevice(void) +static MTRDevice * GetConnectedDevice(void) { XCTAssertNotNil(mConnectedDevice); return mConnectedDevice; } #ifdef DEBUG -@interface CHIPDevice (Test) +@interface MTRDevice (Test) - (void)failSubscribers:(dispatch_queue_t)clientQueue completion:(void (^)(void))completion; @end #endif -@interface CHIPDeviceTestPairingDelegate : NSObject +@interface MTRDeviceTestPairingDelegate : NSObject @property (nonatomic, strong) XCTestExpectation * expectation; @end -@implementation CHIPDeviceTestPairingDelegate +@implementation MTRDeviceTestPairingDelegate - (id)initWithExpectation:(XCTestExpectation *)expectation { self = [super init]; @@ -100,7 +100,7 @@ - (void)onPairingComplete:(NSError *)error XCTAssertEqual(error.code, 0); NSError * commissionError = nil; - [sController commissionDevice:kDeviceId commissioningParams:[[CHIPCommissioningParameters alloc] init] error:&commissionError]; + [sController commissionDevice:kDeviceId commissioningParams:[[MTRCommissioningParameters alloc] init] error:&commissionError]; XCTAssertNil(commissionError); // Keep waiting for onCommissioningComplete @@ -121,10 +121,10 @@ - (void)onAddressUpdated:(NSError *)error } @end -@interface CHIPDeviceTests : XCTestCase +@interface MTRDeviceTests : XCTestCase @end -@implementation CHIPDeviceTests +@implementation MTRDeviceTests - (void)setUp { @@ -144,28 +144,28 @@ - (void)initStack { XCTestExpectation * expectation = [self expectationWithDescription:@"Pairing Complete"]; - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; factoryParams.port = @(kLocalPort); BOOL ok = [factory startup:factoryParams]; XCTAssertTrue(ok); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); sController = controller; - CHIPDeviceTestPairingDelegate * pairing = [[CHIPDeviceTestPairingDelegate alloc] initWithExpectation:expectation]; + MTRDeviceTestPairingDelegate * pairing = [[MTRDeviceTestPairingDelegate alloc] initWithExpectation:expectation]; dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.pairing", DISPATCH_QUEUE_SERIAL); [controller setPairingDelegate:pairing queue:callbackQueue]; @@ -177,25 +177,25 @@ - (void)initStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getConnectedDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } - (void)shutdownStack { - CHIPDeviceController * controller = sController; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); [controller shutdown]; XCTAssertFalse([controller isRunning]); - [[MatterControllerFactory sharedInstance] shutdown]; + [[MTRControllerFactory sharedInstance] shutdown]; } - (void)waitForCommissionee @@ -224,7 +224,7 @@ - (void)test001_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:nil @@ -235,13 +235,13 @@ - (void)test001_ReadAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.cluster unsignedIntegerValue], 29); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -264,7 +264,7 @@ - (void)test002_WriteAttribute #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write LevelControl Brightness attribute"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -278,13 +278,13 @@ - (void)test002_WriteAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 17); @@ -307,7 +307,7 @@ - (void)test003_InvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -326,13 +326,13 @@ - (void)test003_InvokeCommand completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.command unsignedIntegerValue], 4); @@ -355,7 +355,7 @@ - (void)test005_Subscribe [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); // Subscribe @@ -386,10 +386,10 @@ - (void)test005_Subscribe // Set up expectation for report XCTestExpectation * reportExpectation = [self expectationWithDescription:@"report received"]; globalReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -413,13 +413,13 @@ - (void)test005_Subscribe completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -437,10 +437,10 @@ - (void)test005_Subscribe // Set up expectation for 2nd report reportExpectation = [self expectationWithDescription:@"receive OnOff attribute report"]; globalReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -463,13 +463,13 @@ - (void)test005_Subscribe completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -498,7 +498,7 @@ - (void)test006_ReadAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"read failed"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device @@ -511,7 +511,7 @@ - (void)test006_ReadAttributeFailure NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); XCTAssertNil(values); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); [expectation fulfill]; }]; @@ -527,26 +527,26 @@ - (void)test007_WriteAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write failed"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithUnsignedInteger:200], @"value", nil]; - [device writeAttributeWithEndpointId:@1 - clusterId:@8 - attributeId:@10000 - value:writeValue - timedWriteTimeout:nil - clientQueue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); + [device + writeAttributeWithEndpointId:@1 + clusterId:@8 + attributeId:@10000 + value:writeValue + timedWriteTimeout:nil + clientQueue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); - XCTAssertNil(values); - XCTAssertEqual( - [CHIPErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE); + XCTAssertNil(values); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE); - [expectation fulfill]; - }]; + [expectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:expectation] timeout:kTimeoutInSeconds]; } @@ -560,7 +560,7 @@ - (void)test008_InvokeCommandFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -581,7 +581,7 @@ - (void)test008_InvokeCommandFailure NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); XCTAssertNil(values); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); [expectation fulfill]; }]; @@ -603,11 +603,11 @@ - (void)test009_SubscribeFailure XCTestExpectation * errorReportExpectation = [self expectationWithDescription:@"receive OnOff attribute report"]; reportHandler = ^(id _Nullable value, NSError * _Nullable error) { XCTAssertNil(value); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT); [errorReportExpectation fulfill]; }; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; @@ -653,7 +653,7 @@ - (void)test010_ReadAllAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:@1 @@ -664,13 +664,13 @@ - (void)test010_ReadAllAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.cluster unsignedIntegerValue], 29); XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -691,7 +691,7 @@ - (void)test011_ReadCachedAttribute [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; NSLog(@"Deregistering report handlers..."); @@ -702,8 +702,8 @@ - (void)test011_ReadCachedAttribute }]; [self waitForExpectations:@[ cleanSubscriptionExpectation ] timeout:kTimeoutInSeconds]; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; - CHIPDeviceController * controller = sController; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); XCTestExpectation * subscribeExpectation = [self expectationWithDescription:@"Subscription complete"]; @@ -714,29 +714,37 @@ - (void)test011_ReadCachedAttribute maxInterval:60 params:nil cacheContainer:attributeCacheContainer - reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { - NSLog(@"Received report: %@, error: %@", value, error); + attributeReportHandler:^(NSArray * value) { + NSLog(@"Received report: %@", value); if (reportHandler) { __auto_type handler = reportHandler; reportHandler = nil; - handler(value, error); + handler(value, nil); } } - subscriptionEstablished:^{ - NSLog(@"Subscription established"); + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Received report error: %@", error); + if (reportHandler) { + __auto_type handler = reportHandler; + reportHandler = nil; + handler(nil, error); + } + } + subscriptionEstablished:^() { [subscribeExpectation fulfill]; }]; [self waitForExpectations:@[ subscribeExpectation ] timeout:60]; // Invoke command to set the attribute to a known state XCTestExpectation * commandExpectation = [self expectationWithDescription:@"Command invoked"]; - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); NSLog(@"Invoking command..."); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Invoked command with error: %@", err); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); [commandExpectation fulfill]; }]; [self waitForExpectations:[NSArray arrayWithObject:commandExpectation] timeout:kTimeoutInSeconds]; @@ -748,21 +756,21 @@ - (void)test011_ReadCachedAttribute // Read cache NSLog(@"Reading from cache..."); XCTestExpectation * cacheExpectation = [self expectationWithDescription:@"Attribute cache read"]; - [CHIPOnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer - endpoint:@1 - queue:queue - completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read attribute cache value: %@, error: %@", value, err); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); - XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:YES]]); - [cacheExpectation fulfill]; - }]; + [MTROnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer + endpoint:@1 + queue:queue + completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute cache value: %@, error: %@", value, err); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:YES]]); + [cacheExpectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:cacheExpectation] timeout:kTimeoutInSeconds]; // Add another subscriber of the attribute to verify that attribute cache still works when there are other subscribers. NSLog(@"New subscription..."); XCTestExpectation * newSubscriptionEstablished = [self expectationWithDescription:@"New subscription established"]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = [NSNumber numberWithBool:YES]; [cluster subscribeAttributeOnOffWithMinInterval:[NSNumber numberWithUnsignedShort:2] maxInterval:[NSNumber numberWithUnsignedShort:60] @@ -779,7 +787,7 @@ - (void)test011_ReadCachedAttribute __auto_type reportExpectation = [self expectationWithDescription:@"Report handler called"]; reportHandler = ^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Report received: %@, error: %@", value, error); - for (CHIPAttributeReport * report in value) { + for (MTRAttributeReport * report in value) { if ([report.path.endpoint isEqualToNumber:@1] && [report.path.cluster isEqualToNumber:@6] && [report.path.attribute isEqualToNumber:@0]) { NSLog(@"Report value for OnOff: %@", report.value); @@ -796,7 +804,7 @@ - (void)test011_ReadCachedAttribute commandExpectation = [self expectationWithDescription:@"Command invoked"]; [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Invoked command with error: %@", err); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); [commandExpectation fulfill]; }]; [self waitForExpectations:[NSArray arrayWithObject:commandExpectation] timeout:kTimeoutInSeconds]; @@ -813,15 +821,15 @@ - (void)test011_ReadCachedAttribute // Read cache NSLog(@"Reading from cache..."); cacheExpectation = [self expectationWithDescription:@"Attribute cache read"]; - [CHIPOnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer - endpoint:@1 - queue:queue - completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read attribute cache value: %@, error: %@", value, err); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); - XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:NO]]); - [cacheExpectation fulfill]; - }]; + [MTROnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer + endpoint:@1 + queue:queue + completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute cache value: %@, error: %@", value, err); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:NO]]); + [cacheExpectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:cacheExpectation] timeout:kTimeoutInSeconds]; // Read from cache using generic path @@ -834,9 +842,9 @@ - (void)test011_ReadCachedAttribute clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"Read attribute cache value: %@, error %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertEqual([values count], 1); - CHIPAttributePath * path = values[0][@"attributePath"]; + MTRAttributePath * path = values[0][@"attributePath"]; XCTAssertEqual([path.endpoint unsignedShortValue], 1); XCTAssertEqual([path.cluster unsignedLongValue], 6); XCTAssertEqual([path.attribute unsignedLongValue], 0); @@ -857,10 +865,10 @@ - (void)test011_ReadCachedAttribute clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"Read attribute cache value: %@, error %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values count] > 0); for (NSDictionary * value in values) { - CHIPAttributePath * path = value[@"attributePath"]; + MTRAttributePath * path = value[@"attributePath"]; XCTAssertEqual([path.cluster unsignedLongValue], 6); XCTAssertEqual([path.attribute unsignedLongValue], 0); XCTAssertNil(value[@"error"]); @@ -879,10 +887,10 @@ - (void)test011_ReadCachedAttribute clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"Read attribute cache value: %@, error %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values count] > 0); for (NSDictionary * value in values) { - CHIPAttributePath * path = value[@"attributePath"]; + MTRAttributePath * path = value[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedShortValue], 1); XCTAssertEqual([path.attribute unsignedLongValue], 0); } @@ -900,10 +908,10 @@ - (void)test011_ReadCachedAttribute clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"Read attribute cache value: %@, error %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values count] > 0); for (NSDictionary * value in values) { - CHIPAttributePath * path = value[@"attributePath"]; + MTRAttributePath * path = value[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedShortValue], 1); XCTAssertEqual([path.cluster unsignedLongValue], 6); XCTAssertNil(value[@"error"]); @@ -936,7 +944,7 @@ - (void)test012_SubscriptionError [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * deregisterExpectation = [self expectationWithDescription:@"Report handler deregistered"]; [device deregisterReportHandlersWithClientQueue:queue @@ -973,10 +981,10 @@ - (void)test012_SubscriptionError // Set up expectation for report XCTestExpectation * reportExpectation = [self expectationWithDescription:@"report received"]; globalReportHandler = ^(id _Nullable value, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([value isKindOfClass:[NSArray class]]); NSDictionary * result = value[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1000,13 +1008,13 @@ - (void)test012_SubscriptionError completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1044,7 +1052,7 @@ - (void)test900_SubscribeAllAttributes [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; NSLog(@"Deregistering report handlers..."); @@ -1085,10 +1093,10 @@ - (void)test900_SubscribeAllAttributes // Set up expectation for report __auto_type reportExpectation = [self expectationWithDescription:@"receive OnOff attribute report"]; reportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -1111,13 +1119,13 @@ - (void)test900_SubscribeAllAttributes completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1141,13 +1149,13 @@ - (void)test900_SubscribeAllAttributes completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1165,10 +1173,10 @@ - (void)test900_SubscribeAllAttributes // Set up expectation for 2nd report reportExpectation = [self expectationWithDescription:@"receive OnOff attribute report"]; reportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -1190,13 +1198,13 @@ - (void)test900_SubscribeAllAttributes completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1221,21 +1229,21 @@ - (void)test999_TearDown @end -@interface CHIPDevice (Test) +@interface MTRDevice (Test) // Test function for whitebox testing + (id)CHIPEncodeAndDecodeNSObject:(id)object; @end -@interface CHIPDeviceEncoderTests : XCTestCase +@interface MTRDeviceEncoderTests : XCTestCase @end -@implementation CHIPDeviceEncoderTests +@implementation MTRDeviceEncoderTests - (void)testSignedInteger { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"SignedInteger", @"type", [NSNumber numberWithInteger:-713], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1246,7 +1254,7 @@ - (void)testSignedInteger64Bits { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"SignedInteger", @"type", [NSNumber numberWithInteger:-0x7000111122223333ll], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1257,7 +1265,7 @@ - (void)testUnsignedInteger { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithInteger:1025], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1268,7 +1276,7 @@ - (void)testUnsignedInteger64Bits { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithUnsignedLongLong:0xCCCCDDDDEEEEFFFFull], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1279,7 +1287,7 @@ - (void)testBoolean { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Boolean", @"type", [NSNumber numberWithBool:YES], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1289,7 +1297,7 @@ - (void)testBoolean - (void)testUTF8String { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UTF8String", @"type", @"Hello World", @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1301,7 +1309,7 @@ - (void)testOctetString const uint8_t data[] = { 0x00, 0xF2, 0x63 }; NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"OctetString", @"type", [NSData dataWithBytes:data length:sizeof(data)], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1312,7 +1320,7 @@ - (void)testFloat { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Float", @"type", [NSNumber numberWithFloat:0.1245], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1324,7 +1332,7 @@ - (void)testDouble { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Double", @"type", [NSNumber numberWithFloat:0.1245], @"value", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1335,7 +1343,7 @@ - (void)testDouble - (void)testNull { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Null", @"type", nil]; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1356,7 +1364,7 @@ - (void)testStructure ]; NSDictionary * inputValue = @{ @"type" : @"Structure", @"value" : inputFields }; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:inputValue]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:inputValue]; NSLog(@"Conversion input: %@\nOutput: %@", inputValue, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1371,7 +1379,7 @@ - (void)testArray ]; NSDictionary * inputValue = @{ @"type" : @"Array", @"value" : inputFields }; - id output = [CHIPDevice CHIPEncodeAndDecodeNSObject:inputValue]; + id output = [MTRDevice CHIPEncodeAndDecodeNSObject:inputValue]; NSLog(@"Conversion input: %@\nOutput: %@", inputValue, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); diff --git a/src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.h b/src/darwin/Framework/CHIPTests/MTRErrorTestUtils.h similarity index 95% rename from src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.h rename to src/darwin/Framework/CHIPTests/MTRErrorTestUtils.h index 943dc5cbf20bfe..86fd56efcfae1c 100644 --- a/src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.h +++ b/src/darwin/Framework/CHIPTests/MTRErrorTestUtils.h @@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface CHIPErrorTestUtils : NSObject +@interface MTRErrorTestUtils : NSObject + (uint8_t)errorToZCLErrorCode:(NSError * _Nullable)error; @end diff --git a/src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.mm b/src/darwin/Framework/CHIPTests/MTRErrorTestUtils.mm similarity index 82% rename from src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.mm rename to src/darwin/Framework/CHIPTests/MTRErrorTestUtils.mm index 91b3a24f66335c..68eaa3adf98040 100644 --- a/src/darwin/Framework/CHIPTests/CHIPErrorTestUtils.mm +++ b/src/darwin/Framework/CHIPTests/MTRErrorTestUtils.mm @@ -17,24 +17,24 @@ #import -#import "CHIPErrorTestUtils.h" +#import "MTRErrorTestUtils.h" -#import +#import #import NS_ASSUME_NONNULL_BEGIN -@implementation CHIPErrorTestUtils +@implementation MTRErrorTestUtils + (uint8_t)errorToZCLErrorCode:(NSError * _Nullable)error { - // This duplicates CHIPError's errorToZCLErrorCode, but I can't + // This duplicates MTRError's errorToZCLErrorCode, but I can't // figure out a way to include/use that here. if (error == nil) { return EMBER_ZCL_STATUS_SUCCESS; } - if (error.domain != MatterInteractionErrorDomain) { + if (error.domain != MTRInteractionErrorDomain) { return EMBER_ZCL_STATUS_FAILURE; } diff --git a/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m b/src/darwin/Framework/CHIPTests/MTRSetupPayloadParserTests.m similarity index 56% rename from src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m rename to src/darwin/Framework/CHIPTests/MTRSetupPayloadParserTests.m index 10e464d1256d1a..6605e43e30f5de 100644 --- a/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m +++ b/src/darwin/Framework/CHIPTests/MTRSetupPayloadParserTests.m @@ -1,6 +1,6 @@ // -// CHIPSetupPayloadParserTests.m -// CHIPQRCodeReaderTests +// MTRSetupPayloadParserTests.m +// MTRQRCodeReaderTests /** * * Copyright (c) 2020 Project CHIP Authors @@ -18,29 +18,29 @@ * limitations under the License. */ // module headers -#import "CHIPManualSetupPayloadParser.h" -#import "CHIPOnboardingPayloadParser.h" -#import "CHIPQRCodeSetupPayloadParser.h" -#import "CHIPSetupPayload.h" +#import "MTRManualSetupPayloadParser.h" +#import "MTROnboardingPayloadParser.h" +#import "MTRQRCodeSetupPayloadParser.h" +#import "MTRSetupPayload.h" // additional includes -#import "CHIPError.h" +#import "MTRError.h" // system dependencies #import -@interface CHIPSetupPayloadParserTests : XCTestCase +@interface MTRSetupPayloadParserTests : XCTestCase @end -@implementation CHIPSetupPayloadParserTests +@implementation MTRSetupPayloadParserTests - (void)testOnboardingPayloadParser_Manual_NoError { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" - ofType:CHIPOnboardingPayloadTypeManualCode - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" + ofType:MTROnboardingPayloadTypeManualCode + error:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -49,28 +49,28 @@ - (void)testOnboardingPayloadParser_Manual_NoError XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 123456780); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 1); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowCustom); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowCustom); XCTAssertEqual(payload.version.unsignedIntegerValue, 0); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationNone); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationNone); } - (void)testOnboardingPayloadParser_Manual_WrongType { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" - ofType:CHIPOnboardingPayloadTypeQRCode - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" + ofType:MTROnboardingPayloadTypeQRCode + error:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeInvalidArgument); + XCTAssertEqual(error.code, MTRErrorCodeInvalidArgument); } - (void)testOnboardingPayloadParser_Admin_NoError { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" - ofType:CHIPOnboardingPayloadTypeAdmin - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" + ofType:MTROnboardingPayloadTypeAdmin + error:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -79,28 +79,28 @@ - (void)testOnboardingPayloadParser_Admin_NoError XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 123456780); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 1); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowCustom); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowCustom); XCTAssertEqual(payload.version.unsignedIntegerValue, 0); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationNone); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationNone); } - (void)testOnboardingPayloadParser_Admin_WrongType { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" - ofType:CHIPOnboardingPayloadTypeQRCode - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"636108753500001000015" + ofType:MTROnboardingPayloadTypeQRCode + error:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeInvalidArgument); + XCTAssertEqual(error.code, MTRErrorCodeInvalidArgument); } - (void)testOnboardingPayloadParser_QRCode_NoError { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J00000" - ofType:CHIPOnboardingPayloadTypeQRCode - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J00000" + ofType:MTROnboardingPayloadTypeQRCode + error:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -109,28 +109,28 @@ - (void)testOnboardingPayloadParser_QRCode_NoError XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 2048); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowStandard); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowStandard); XCTAssertEqual(payload.version.unsignedIntegerValue, 5); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationSoftAP); } - (void)testOnboardingPayloadParser_QRCode_WrongType { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J00000" - ofType:CHIPOnboardingPayloadTypeAdmin - error:&error]; + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J00000" + ofType:MTROnboardingPayloadTypeAdmin + error:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeIntegrityCheckFailed); + XCTAssertEqual(error.code, MTRErrorCodeIntegrityCheckFailed); } - (void)testOnboardingPayloadParser_NFC_NoError { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J0A33P0SET70.QT52B.E23-WZE0WISA0DK5N1K8SQ1RYCU1O0" - ofType:CHIPOnboardingPayloadTypeNFC + ofType:MTROnboardingPayloadTypeNFC error:&error]; XCTAssertNotNil(payload); @@ -140,29 +140,29 @@ - (void)testOnboardingPayloadParser_NFC_NoError XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 2048); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowStandard); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowStandard); XCTAssertEqual(payload.version.unsignedIntegerValue, 5); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationSoftAP); } - (void)testOnboardingPayloadParser_NFC_WrongType { NSError * error; - CHIPSetupPayload * payload = [CHIPOnboardingPayloadParser + MTRSetupPayload * payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:@"MT:R5L90MP500K64J0A33P0SET70.QT52B.E23-WZE0WISA0DK5N1K8SQ1RYCU1O0" - ofType:CHIPOnboardingPayloadTypeManualCode + ofType:MTROnboardingPayloadTypeManualCode error:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeIntegrityCheckFailed); + XCTAssertEqual(error.code, MTRErrorCodeIntegrityCheckFailed); } - (void)testManualParser { NSError * error; - CHIPManualSetupPayloadParser * parser = - [[CHIPManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:@"636108753500001000015"]; - CHIPSetupPayload * payload = [parser populatePayload:&error]; + MTRManualSetupPayloadParser * parser = + [[MTRManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:@"636108753500001000015"]; + MTRSetupPayload * payload = [parser populatePayload:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -171,38 +171,38 @@ - (void)testManualParser XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 123456780); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 1); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowCustom); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowCustom); XCTAssertEqual(payload.version.unsignedIntegerValue, 0); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationNone); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationNone); } - (void)testManualParser_Error { NSError * error; - CHIPManualSetupPayloadParser * parser = [[CHIPManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:@""]; - CHIPSetupPayload * payload = [parser populatePayload:&error]; + MTRManualSetupPayloadParser * parser = [[MTRManualSetupPayloadParser alloc] initWithDecimalStringRepresentation:@""]; + MTRSetupPayload * payload = [parser populatePayload:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeInvalidStringLength); + XCTAssertEqual(error.code, MTRErrorCodeInvalidStringLength); } - (void)testQRCodeParser_Error { NSError * error; - CHIPQRCodeSetupPayloadParser * parser = - [[CHIPQRCodeSetupPayloadParser alloc] initWithBase38Representation:@"MT:R5L90MP500K64J0000."]; - CHIPSetupPayload * payload = [parser populatePayload:&error]; + MTRQRCodeSetupPayloadParser * parser = + [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:@"MT:R5L90MP500K64J0000."]; + MTRSetupPayload * payload = [parser populatePayload:&error]; XCTAssertNil(payload); - XCTAssertEqual(error.code, CHIPErrorCodeInvalidArgument); + XCTAssertEqual(error.code, MTRErrorCodeInvalidArgument); } - (void)testQRCodeParser { NSError * error; - CHIPQRCodeSetupPayloadParser * parser = - [[CHIPQRCodeSetupPayloadParser alloc] initWithBase38Representation:@"MT:R5L90MP500K64J00000"]; - CHIPSetupPayload * payload = [parser populatePayload:&error]; + MTRQRCodeSetupPayloadParser * parser = + [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:@"MT:R5L90MP500K64J00000"]; + MTRSetupPayload * payload = [parser populatePayload:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -211,17 +211,17 @@ - (void)testQRCodeParser XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 2048); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowStandard); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowStandard); XCTAssertEqual(payload.version.unsignedIntegerValue, 5); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationSoftAP); } - (void)testQRCodeParserWithOptionalData { NSError * error; - CHIPQRCodeSetupPayloadParser * parser = [[CHIPQRCodeSetupPayloadParser alloc] + MTRQRCodeSetupPayloadParser * parser = [[MTRQRCodeSetupPayloadParser alloc] initWithBase38Representation:@"MT:R5L90MP500K64J0A33P0SET70.QT52B.E23-WZE0WISA0DK5N1K8SQ1RYCU1O0"]; - CHIPSetupPayload * payload = [parser populatePayload:&error]; + MTRSetupPayload * payload = [parser populatePayload:&error]; XCTAssertNotNil(payload); XCTAssertNil(error); @@ -231,19 +231,19 @@ - (void)testQRCodeParserWithOptionalData XCTAssertEqual(payload.setUpPINCode.unsignedIntegerValue, 2048); XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); - XCTAssertEqual(payload.commissioningFlow, kCommissioningFlowStandard); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); + XCTAssertEqual(payload.commissioningFlow, MTRCommissioningFlowStandard); + XCTAssertEqual(payload.rendezvousInformation, MTRRendezvousInformationSoftAP); XCTAssertTrue([payload.serialNumber isEqualToString:@"123456789"]); - NSArray * vendorOptionalInfo = [payload getAllOptionalVendorData:&error]; + NSArray * vendorOptionalInfo = [payload getAllOptionalVendorData:&error]; XCTAssertNil(error); XCTAssertEqual([vendorOptionalInfo count], 2); - for (CHIPOptionalQRCodeInfo * info in vendorOptionalInfo) { + for (MTROptionalQRCodeInfo * info in vendorOptionalInfo) { if (info.tag.intValue == 130) { - XCTAssertEqual(info.infoType.intValue, kOptionalQRCodeInfoTypeString); + XCTAssertEqual(info.infoType.intValue, MTROptionalQRCodeInfoTypeString); XCTAssertTrue([info.stringValue isEqualToString:@"myData"]); } else if (info.tag.intValue == 131) { - XCTAssertEqual(info.infoType.intValue, kOptionalQRCodeInfoTypeInt32); + XCTAssertEqual(info.infoType.intValue, MTROptionalQRCodeInfoTypeInt32); XCTAssertEqual(info.integerValue.intValue, 12); } } diff --git a/src/darwin/Framework/CHIPTests/CHIPTestKeys.h b/src/darwin/Framework/CHIPTests/MTRTestKeys.h similarity index 91% rename from src/darwin/Framework/CHIPTests/CHIPTestKeys.h rename to src/darwin/Framework/CHIPTests/MTRTestKeys.h index c15bafe2095cb7..01bbb78397710b 100644 --- a/src/darwin/Framework/CHIPTests/CHIPTestKeys.h +++ b/src/darwin/Framework/CHIPTests/MTRTestKeys.h @@ -14,16 +14,17 @@ * limitations under the License. */ -#import #import +#import NS_ASSUME_NONNULL_BEGIN -@interface CHIPTestKeys : NSObject +@interface MTRTestKeys : NSObject @property (readonly, nonatomic, strong) NSData * ipk; - (instancetype)init; + @end NS_ASSUME_NONNULL_END diff --git a/src/darwin/Framework/CHIPTests/CHIPTestKeys.m b/src/darwin/Framework/CHIPTests/MTRTestKeys.m similarity index 92% rename from src/darwin/Framework/CHIPTests/CHIPTestKeys.m rename to src/darwin/Framework/CHIPTests/MTRTestKeys.m index 37a4e6f2d9912c..365646bc84a59d 100644 --- a/src/darwin/Framework/CHIPTests/CHIPTestKeys.m +++ b/src/darwin/Framework/CHIPTests/MTRTestKeys.m @@ -14,15 +14,17 @@ * limitations under the License. */ -#import "CHIPTestKeys.h" +#import "MTRTestKeys.h" #import -@interface CHIPTestKeys () +@interface MTRTestKeys () @property (readonly) SecKeyRef privateKey; @property (readonly) SecKeyRef publicKey; @end -@implementation CHIPTestKeys +@implementation MTRTestKeys + +@synthesize publicKey = _publicKey, privateKey = _privateKey, ipk = _ipk; - (instancetype)init { @@ -65,7 +67,7 @@ - (instancetype)init return self; } -- (NSData *)ECDSA_sign_message_DER:(NSData *)message +- (NSData *)signMessageECDSA_DER:(NSData *)message { CFErrorRef error = NULL; CFDataRef outData @@ -77,11 +79,6 @@ - (NSData *)ECDSA_sign_message_DER:(NSData *)message return (__bridge_transfer NSData *) outData; } -- (SecKeyRef)pubkey -{ - return self.publicKey; -} - - (void)dealloc { if (_publicKey) { diff --git a/src/darwin/Framework/CHIPTests/CHIPTestStorage.h b/src/darwin/Framework/CHIPTests/MTRTestStorage.h similarity index 90% rename from src/darwin/Framework/CHIPTests/CHIPTestStorage.h rename to src/darwin/Framework/CHIPTests/MTRTestStorage.h index 0ea9951d970371..9f8069ccb2a083 100644 --- a/src/darwin/Framework/CHIPTests/CHIPTestStorage.h +++ b/src/darwin/Framework/CHIPTests/MTRTestStorage.h @@ -14,12 +14,12 @@ * limitations under the License. */ -#import #import +#import NS_ASSUME_NONNULL_BEGIN -@interface CHIPTestStorage : NSObject +@interface MTRTestStorage : NSObject - (nullable NSData *)storageDataForKey:(NSString *)key; - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key; - (BOOL)removeStorageDataForKey:(NSString *)key; diff --git a/src/darwin/Framework/CHIPTests/CHIPTestStorage.m b/src/darwin/Framework/CHIPTests/MTRTestStorage.m similarity index 93% rename from src/darwin/Framework/CHIPTests/CHIPTestStorage.m rename to src/darwin/Framework/CHIPTests/MTRTestStorage.m index 45afe1d916f2bc..b03b3509891d39 100644 --- a/src/darwin/Framework/CHIPTests/CHIPTestStorage.m +++ b/src/darwin/Framework/CHIPTests/MTRTestStorage.m @@ -14,13 +14,13 @@ * limitations under the License. */ -#import "CHIPTestStorage.h" +#import "MTRTestStorage.h" -@interface CHIPTestStorage () +@interface MTRTestStorage () @property (strong, nonatomic) NSMutableDictionary * values; @end -@implementation CHIPTestStorage +@implementation MTRTestStorage - (nullable NSData *)storageDataForKey:(NSString *)key { diff --git a/src/darwin/Framework/CHIPTests/CHIPThreadOperationalDatasetTests.mm b/src/darwin/Framework/CHIPTests/MTRThreadOperationalDatasetTests.mm similarity index 63% rename from src/darwin/Framework/CHIPTests/CHIPThreadOperationalDatasetTests.mm rename to src/darwin/Framework/CHIPTests/MTRThreadOperationalDatasetTests.mm index 614dd319e1731d..894478eecae035 100644 --- a/src/darwin/Framework/CHIPTests/CHIPThreadOperationalDatasetTests.mm +++ b/src/darwin/Framework/CHIPTests/MTRThreadOperationalDatasetTests.mm @@ -1,6 +1,6 @@ // -// CHIPControllerTests.m -// CHIPControllerTests +// MTRControllerTests.m +// MTRControllerTests /** * * Copyright (c) 2021 Project CHIP Authors @@ -18,16 +18,16 @@ * limitations under the License. */ -#import +#import // system dependencies #import -@interface CHIPThreadOperationalDatasetTests : XCTestCase +@interface MTRThreadOperationalDatasetTests : XCTestCase @end -@implementation CHIPThreadOperationalDatasetTests +@implementation MTRThreadOperationalDatasetTests - (void)testThreadOperationalDataset { @@ -36,18 +36,18 @@ - (void)testThreadOperationalDataset = { 0x7c, 0x77, 0x08, 0x70, 0xeb, 0x05, 0xcc, 0x6d, 0xbe, 0xcc, 0x6d, 0x62, 0x32, 0xea, 0xb8, 0xb9 }; const unsigned char PKSc[] = { 0xc4, 0xa3, 0x81, 0x25, 0x94, 0x77, 0x81, 0x99, 0x6e, 0xf5, 0x61, 0xdf, 0x8f, 0xb7, 0x8d, 0x23 }; const uint16_t panID = 0x28f4; - CHIPThreadOperationalDataset * dataset = [[CHIPThreadOperationalDataset alloc] + MTRThreadOperationalDataset * dataset = [[MTRThreadOperationalDataset alloc] initWithNetworkName:@"TestNetwork" - extendedPANID:[NSData dataWithBytes:&extendedPANID length:CHIPSizeThreadExtendedPanId] - masterKey:[NSData dataWithBytes:&masterKey length:CHIPSizeThreadMasterKey] - PSKc:[NSData dataWithBytes:&PKSc length:CHIPSizeThreadPSKc] + extendedPANID:[NSData dataWithBytes:&extendedPANID length:MTRSizeThreadExtendedPanId] + masterKey:[NSData dataWithBytes:&masterKey length:MTRSizeThreadMasterKey] + PSKc:[NSData dataWithBytes:&PKSc length:MTRSizeThreadPSKc] channel:25 panID:[NSData dataWithBytes:&panID length:sizeof(panID)]]; XCTAssertNotNil(dataset); - NSData * data = [dataset asData]; + NSData * data = [dataset data]; XCTAssertNotNil(data); - CHIPThreadOperationalDataset * reconstructed = [[CHIPThreadOperationalDataset alloc] initWithData:data]; + MTRThreadOperationalDataset * reconstructed = [[MTRThreadOperationalDataset alloc] initWithData:data]; XCTAssertNotNil(reconstructed); XCTAssertEqualObjects(reconstructed.networkName, dataset.networkName); XCTAssertEqualObjects(reconstructed.panID, dataset.panID); @@ -63,13 +63,13 @@ - (void)testThreadOperationalDatasetInvalid const unsigned char masterKey[] = {}; const unsigned char PKSc[] = { 0xb7, 0x8d, 0x23 }; const uint16_t panID = 0x0; - CHIPThreadOperationalDataset * dataset = - [[CHIPThreadOperationalDataset alloc] initWithNetworkName:@"TestNetwork" - extendedPANID:[NSData dataWithBytes:&extendedPANID length:sizeof(extendedPANID)] - masterKey:[NSData dataWithBytes:&masterKey length:sizeof(masterKey)] - PSKc:[NSData dataWithBytes:&PKSc length:sizeof(PKSc)] - channel:25 - panID:[NSData dataWithBytes:&panID length:sizeof(panID)]]; + MTRThreadOperationalDataset * dataset = + [[MTRThreadOperationalDataset alloc] initWithNetworkName:@"TestNetwork" + extendedPANID:[NSData dataWithBytes:&extendedPANID length:sizeof(extendedPANID)] + masterKey:[NSData dataWithBytes:&masterKey length:sizeof(masterKey)] + PSKc:[NSData dataWithBytes:&PKSc length:sizeof(PKSc)] + channel:25 + panID:[NSData dataWithBytes:&panID length:sizeof(panID)]]; XCTAssertNil(dataset); } diff --git a/src/darwin/Framework/CHIPTests/CHIPXPCListenerSampleTests.m b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m similarity index 78% rename from src/darwin/Framework/CHIPTests/CHIPXPCListenerSampleTests.m rename to src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m index 1fa455d18cf1ae..3b3b3bc26ac38a 100644 --- a/src/darwin/Framework/CHIPTests/CHIPXPCListenerSampleTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m @@ -1,6 +1,6 @@ // -// CHIPRemoteDeviceSampleTests.m -// CHIPTests +// MTRRemoteDeviceSampleTests.m +// MTRTests /* * * Copyright (c) 2022 Project CHIP Authors @@ -19,12 +19,12 @@ */ // module headers -#import -#import +#import +#import -#import "CHIPErrorTestUtils.h" -#import "CHIPTestKeys.h" -#import "CHIPTestStorage.h" +#import "MTRErrorTestUtils.h" +#import "MTRTestKeys.h" +#import "MTRTestStorage.h" #import @@ -39,7 +39,7 @@ static uint16_t kTestVendorId = 0xFFF1u; // Singleton controller we use. -static CHIPDeviceController * sController = nil; +static MTRDeviceController * sController = nil; // // Sample XPC Listener implementation that directly communicates with local CHIPDevice instance @@ -50,7 +50,7 @@ // routing the requests to the remote object in a remote machine using implementation specific transport protocol // between the two machines. -@interface CHIPXPCListenerSample : NSObject +@interface MTRXPCListenerSample : NSObject @property (nonatomic, readonly, getter=listenerEndpoint) NSXPCListenerEndpoint * listenerEndpoint; @@ -59,30 +59,30 @@ - (void)stop; @end -@interface CHIPDeviceControllerServerSample : NSObject +@interface MTRDeviceControllerServerSample : NSObject @property (nonatomic, readonly, strong) NSString * identifier; -- (instancetype)initWithClientProxy:(id)proxy - attributeCacheDictionary:(NSMutableDictionary *)cacheDictionary; +- (instancetype)initWithClientProxy:(id)proxy + attributeCacheDictionary:(NSMutableDictionary *)cacheDictionary; @end -@interface CHIPXPCListenerSample () +@interface MTRXPCListenerSample () @property (nonatomic, readonly, strong) NSString * controllerId; @property (nonatomic, readonly, strong) NSXPCInterface * serviceInterface; @property (nonatomic, readonly, strong) NSXPCInterface * clientInterface; @property (nonatomic, readonly, strong) NSXPCListener * xpcListener; -@property (nonatomic, readonly, strong) NSMutableDictionary * servers; -@property (nonatomic, readonly, strong) NSMutableDictionary * attributeCacheDictionary; +@property (nonatomic, readonly, strong) NSMutableDictionary * servers; +@property (nonatomic, readonly, strong) NSMutableDictionary * attributeCacheDictionary; @end -@implementation CHIPXPCListenerSample +@implementation MTRXPCListenerSample - (instancetype)init { if ([super init]) { - _serviceInterface = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerServerProtocol)]; - _clientInterface = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerClientProtocol)]; + _serviceInterface = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerServerProtocol)]; + _clientInterface = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerClientProtocol)]; _servers = [NSMutableDictionary dictionary]; _attributeCacheDictionary = [NSMutableDictionary dictionary]; _xpcListener = [NSXPCListener anonymousListener]; @@ -111,8 +111,8 @@ - (BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConne NSLog(@"XPC listener accepting connection"); newConnection.exportedInterface = _serviceInterface; newConnection.remoteObjectInterface = _clientInterface; - __auto_type newServer = [[CHIPDeviceControllerServerSample alloc] initWithClientProxy:[newConnection remoteObjectProxy] - attributeCacheDictionary:_attributeCacheDictionary]; + __auto_type newServer = [[MTRDeviceControllerServerSample alloc] initWithClientProxy:[newConnection remoteObjectProxy] + attributeCacheDictionary:_attributeCacheDictionary]; newConnection.exportedObject = newServer; [_servers setObject:newServer forKey:newServer.identifier]; newConnection.invalidationHandler = ^{ @@ -125,18 +125,18 @@ - (BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConne @end -@interface CHIPDeviceControllerServerSample () -@property (nonatomic, readwrite, strong) id clientProxy; -@property (nonatomic, readonly, strong) NSMutableDictionary * attributeCacheDictionary; +@interface MTRDeviceControllerServerSample () +@property (nonatomic, readwrite, strong) id clientProxy; +@property (nonatomic, readonly, strong) NSMutableDictionary * attributeCacheDictionary; @end // This sample does not have multiple controllers and hence controller Id shall be the same. -static NSString * const kCHIPDeviceControllerId = @"CHIPController"; +static NSString * const MTRDeviceControllerId = @"MTRController"; -@implementation CHIPDeviceControllerServerSample +@implementation MTRDeviceControllerServerSample -- (instancetype)initWithClientProxy:(id)proxy - attributeCacheDictionary:(NSMutableDictionary *)cacheDictionary +- (instancetype)initWithClientProxy:(id)proxy + attributeCacheDictionary:(NSMutableDictionary *)cacheDictionary { if ([super init]) { _clientProxy = proxy; @@ -151,12 +151,12 @@ - (void)getDeviceControllerWithFabricId:(uint64_t)fabricId { // We are using a shared local device controller and hence no disctinction per fabricId. (void) fabricId; - completion(kCHIPDeviceControllerId, nil); + completion(MTRDeviceControllerId, nil); } - (void)getAnyDeviceControllerWithCompletion:(void (^)(id _Nullable controller, NSError * _Nullable error))completion { - completion(kCHIPDeviceControllerId, nil); + completion(MTRDeviceControllerId, nil); } - (void)readAttributeWithController:(id)controller @@ -170,28 +170,27 @@ - (void)readAttributeWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController - getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device readAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - params:[CHIPDeviceController decodeXPCReadParams:params] - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([CHIPDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device readAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + params:[MTRDeviceController decodeXPCReadParams:params] + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } } @@ -207,29 +206,28 @@ - (void)writeAttributeWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController - getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device writeAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - value:value - timedWriteTimeout:timeoutMs - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([CHIPDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device writeAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + value:value + timedWriteTimeout:timeoutMs + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } } @@ -245,29 +243,28 @@ - (void)invokeCommandWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController - getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device invokeCommandWithEndpointId:endpointId - clusterId:clusterId - commandId:commandId - commandFields:fields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([CHIPDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device invokeCommandWithEndpointId:endpointId + clusterId:clusterId + commandId:commandId + commandFields:fields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } } @@ -283,39 +280,39 @@ - (void)subscribeAttributeWithController:(id)controller { __auto_type sharedController = sController; if (sharedController) { - [sharedController - getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - establishedHandler(); - // Send an error report so that the client knows of the failure - [self.clientProxy handleReportWithController:controller - nodeId:nodeId - values:nil - error:[NSError errorWithDomain:CHIPErrorDomain - code:CHIPErrorCodeGeneralError - userInfo:nil]]; - } else { - [device subscribeAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - minInterval:minInterval - maxInterval:maxInterval - params:[CHIPDeviceController decodeXPCSubscribeParams:params] - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - [self.clientProxy handleReportWithController:controller - nodeId:nodeId - values:[CHIPDeviceController - encodeXPCResponseValues:values] - error:error]; - } - subscriptionEstablished:establishedHandler]; - } - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + establishedHandler(); + // Send an error report so that the client knows of the failure + [self.clientProxy handleReportWithController:controller + nodeId:nodeId + values:nil + error:[NSError errorWithDomain:MTRErrorDomain + code:MTRErrorCodeGeneralError + userInfo:nil]]; + } else { + [device subscribeAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + minInterval:minInterval + maxInterval:maxInterval + params:[MTRDeviceController decodeXPCSubscribeParams:params] + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + [self.clientProxy + handleReportWithController:controller + nodeId:nodeId + values:[MTRDeviceController + encodeXPCResponseValues:values] + error:error]; + } + subscriptionEstablished:establishedHandler]; + } + }]; } else { NSLog(@"Failed to get shared controller"); establishedHandler(); @@ -323,8 +320,8 @@ - (void)subscribeAttributeWithController:(id)controller [self.clientProxy handleReportWithController:controller nodeId:nodeId values:nil - error:[NSError errorWithDomain:CHIPErrorDomain - code:CHIPErrorCodeGeneralError + error:[NSError errorWithDomain:MTRErrorDomain + code:MTRErrorCodeGeneralError userInfo:nil]]; } } @@ -333,15 +330,15 @@ - (void)stopReportsWithController:(id _Nullable)controller nodeId:(uint64_t)node { __auto_type sharedController = sController; if (sharedController) { - [sharedController getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - } else { - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() completion:completion]; - } - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + } else { + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() completion:completion]; + } + }]; } else { NSLog(@"Failed to get shared controller"); completion(); @@ -358,47 +355,51 @@ - (void)subscribeWithController:(id _Nullable)controller { __auto_type sharedController = sController; if (sharedController) { - CHIPAttributeCacheContainer * attributeCacheContainer; + MTRAttributeCacheContainer * attributeCacheContainer; if (shouldCache) { - attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; } - [sharedController getConnectedDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", nodeId, error); - completion(error); - return; - } - NSMutableArray * established = [NSMutableArray arrayWithCapacity:1]; - [established addObject:@NO]; - [device subscribeWithQueue:dispatch_get_main_queue() - minInterval:[minInterval unsignedShortValue] - maxInterval:[maxInterval unsignedShortValue] - params:[CHIPDeviceController decodeXPCSubscribeParams:params] - cacheContainer:attributeCacheContainer - reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { - NSLog(@"Report received: %@, error: %@", value, error); - if (error && ![established[0] boolValue]) { - established[0] = @YES; - completion(error); - } - } - subscriptionEstablished:^{ - NSLog(@"Attribute cache subscription succeeded for device %llu", nodeId); - if (attributeCacheContainer) { - [self.attributeCacheDictionary setObject:attributeCacheContainer forKey:@(nodeId)]; - } - if (![established[0] boolValue]) { - established[0] = @YES; - completion(nil); - } - }]; - }]; + [sharedController getDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", nodeId, error); + completion(error); + return; + } + NSMutableArray * established = [NSMutableArray arrayWithCapacity:1]; + [established addObject:@NO]; + [device subscribeWithQueue:dispatch_get_main_queue() + minInterval:[minInterval unsignedShortValue] + maxInterval:[maxInterval unsignedShortValue] + params:[MTRDeviceController decodeXPCSubscribeParams:params] + cacheContainer:attributeCacheContainer + attributeReportHandler:^(NSArray * value) { + NSLog(@"Received report: %@", value); + } + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Received report error: %@", error); + if (![established[0] boolValue]) { + established[0] = @YES; + completion(error); + } + } + subscriptionEstablished:^() { + NSLog(@"Attribute cache subscription succeeded for device %llu", nodeId); + if (attributeCacheContainer) { + [self.attributeCacheDictionary setObject:attributeCacheContainer forKey:@(nodeId)]; + } + if (![established[0] boolValue]) { + established[0] = @YES; + completion(nil); + } + }]; + }]; } else { NSLog(@"Failed to get shared controller"); - completion([NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completion([NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } } @@ -409,7 +410,7 @@ - (void)readAttributeCacheWithController:(id _Nullable)controller attributeId:(NSNumber * _Nullable)attributeId completion:(void (^)(id _Nullable values, NSError * _Nullable error))completion { - CHIPAttributeCacheContainer * attributeCacheContainer = _attributeCacheDictionary[[NSNumber numberWithUnsignedLongLong:nodeId]]; + MTRAttributeCacheContainer * attributeCacheContainer = _attributeCacheDictionary[[NSNumber numberWithUnsignedLongLong:nodeId]]; if (attributeCacheContainer) { [attributeCacheContainer readAttributeWithEndpointId:endpointId @@ -417,11 +418,11 @@ - (void)readAttributeCacheWithController:(id _Nullable)controller attributeId:attributeId clientQueue:dispatch_get_main_queue() completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - completion([CHIPDeviceController encodeXPCResponseValues:values], error); + completion([MTRDeviceController encodeXPCResponseValues:values], error); }]; } else { NSLog(@"Attribute cache for node ID %llu was not setup", nodeId); - completion(nil, [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]); + completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); } } @@ -438,21 +439,21 @@ - (void)readAttributeCacheWithController:(id _Nullable)controller // This test suite reuses a device object to speed up the test process for CI. // The following global variable holds the reference to the device object. -static CHIPDevice * mConnectedDevice; -static CHIPDeviceController * mDeviceController; -static CHIPXPCListenerSample * mSampleListener; +static MTRDevice * mConnectedDevice; +static MTRDeviceController * mDeviceController; +static MTRXPCListenerSample * mSampleListener; -static CHIPDevice * GetConnectedDevice(void) +static MTRDevice * GetConnectedDevice(void) { XCTAssertNotNil(mConnectedDevice); return mConnectedDevice; } -@interface CHIPRemoteDeviceSampleTestPairingDelegate : NSObject +@interface MTRRemoteDeviceSampleTestPairingDelegate : NSObject @property (nonatomic, strong) XCTestExpectation * expectation; @end -@implementation CHIPRemoteDeviceSampleTestPairingDelegate +@implementation MTRRemoteDeviceSampleTestPairingDelegate - (id)initWithExpectation:(XCTestExpectation *)expectation { self = [super init]; @@ -466,7 +467,7 @@ - (void)onPairingComplete:(NSError *)error { XCTAssertEqual(error.code, 0); NSError * commissionError = nil; - [sController commissionDevice:kDeviceId commissioningParams:[[CHIPCommissioningParameters alloc] init] error:&commissionError]; + [sController commissionDevice:kDeviceId commissioningParams:[[MTRCommissioningParameters alloc] init] error:&commissionError]; XCTAssertNil(commissionError); // Keep waiting for onCommissioningComplete @@ -487,11 +488,11 @@ - (void)onAddressUpdated:(NSError *)error } @end -@interface CHIPXPCListenerSampleTests : XCTestCase +@interface MTRXPCListenerSampleTests : XCTestCase @end -@implementation CHIPXPCListenerSampleTests +@implementation MTRXPCListenerSampleTests - (void)setUp { @@ -511,29 +512,29 @@ - (void)initStack { XCTestExpectation * expectation = [self expectationWithDescription:@"Pairing Complete"]; - __auto_type * factory = [MatterControllerFactory sharedInstance]; + __auto_type * factory = [MTRControllerFactory sharedInstance]; XCTAssertNotNil(factory); - __auto_type * storage = [[CHIPTestStorage alloc] init]; - __auto_type * factoryParams = [[MatterControllerFactoryParams alloc] initWithStorage:storage]; + __auto_type * storage = [[MTRTestStorage alloc] init]; + __auto_type * factoryParams = [[MTRControllerFactoryParams alloc] initWithStorage:storage]; factoryParams.port = @(kLocalPort); BOOL ok = [factory startup:factoryParams]; XCTAssertTrue(ok); - __auto_type * testKeys = [[CHIPTestKeys alloc] init]; + __auto_type * testKeys = [[MTRTestKeys alloc] init]; XCTAssertNotNil(testKeys); - __auto_type * params = [[CHIPDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; + __auto_type * params = [[MTRDeviceControllerStartupParams alloc] initWithSigningKeypair:testKeys fabricId:1 ipk:testKeys.ipk]; params.vendorId = @(kTestVendorId); - CHIPDeviceController * controller = [factory startControllerOnNewFabric:params]; + MTRDeviceController * controller = [factory startControllerOnNewFabric:params]; XCTAssertNotNil(controller); sController = controller; - CHIPRemoteDeviceSampleTestPairingDelegate * pairing = - [[CHIPRemoteDeviceSampleTestPairingDelegate alloc] initWithExpectation:expectation]; + MTRRemoteDeviceSampleTestPairingDelegate * pairing = + [[MTRRemoteDeviceSampleTestPairingDelegate alloc] initWithExpectation:expectation]; dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.pairing", DISPATCH_QUEUE_SERIAL); [controller setPairingDelegate:pairing queue:callbackQueue]; @@ -545,16 +546,16 @@ - (void)initStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getConnectedDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; - mSampleListener = [[CHIPXPCListenerSample alloc] init]; + mSampleListener = [[MTRXPCListenerSample alloc] init]; [mSampleListener start]; } @@ -563,13 +564,13 @@ - (void)shutdownStack [mSampleListener stop]; mSampleListener = nil; - CHIPDeviceController * controller = sController; + MTRDeviceController * controller = sController; XCTAssertNotNil(controller); [controller shutdown]; XCTAssertFalse([controller isRunning]); - [[MatterControllerFactory sharedInstance] shutdown]; + [[MTRControllerFactory sharedInstance] shutdown]; mDeviceController = nil; } @@ -579,8 +580,8 @@ - (void)waitForCommissionee XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; dispatch_queue_t queue = dispatch_get_main_queue(); - __auto_type remoteController = [CHIPDeviceController - sharedControllerWithId:kCHIPDeviceControllerId + __auto_type remoteController = [MTRDeviceController + sharedControllerWithId:MTRDeviceControllerId xpcConnectBlock:^NSXPCConnection * _Nonnull { if (mSampleListener.listenerEndpoint) { return [[NSXPCConnection alloc] initWithListenerEndpoint:mSampleListener.listenerEndpoint]; @@ -588,12 +589,12 @@ - (void)waitForCommissionee NSLog(@"Listener is not active"); return nil; }]; - [remoteController getConnectedDevice:kDeviceId - queue:queue - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - mConnectedDevice = device; - [expectation fulfill]; - }]; + [remoteController getDevice:kDeviceId + queue:queue + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + mConnectedDevice = device; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; mDeviceController = remoteController; } @@ -615,7 +616,7 @@ - (void)test001_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:nil @@ -626,13 +627,13 @@ - (void)test001_ReadAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.cluster unsignedIntegerValue], 29); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -655,7 +656,7 @@ - (void)test002_WriteAttribute #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write LevelControl Brightness attribute"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -669,13 +670,13 @@ - (void)test002_WriteAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 17); @@ -698,7 +699,7 @@ - (void)test003_InvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -717,13 +718,13 @@ - (void)test003_InvokeCommand completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.command unsignedIntegerValue], 4); @@ -748,7 +749,7 @@ - (void)test004_Subscribe #endif XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device subscribeAttributeWithEndpointId:@1 @@ -778,11 +779,11 @@ - (void)test004_Subscribe // Set up expectation for report expectation = [self expectationWithDescription:@"receive OnOff attribute report"]; globalReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); for (NSDictionary * result in values) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -804,13 +805,13 @@ - (void)test004_Subscribe completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -839,7 +840,7 @@ - (void)test005_ReadAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"read failed"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:@0 @@ -851,9 +852,9 @@ - (void)test005_ReadAttributeFailure NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); XCTAssertNil(values); - // Error is copied over XPC and hence cannot use CHIPErrorTestUtils utility which checks against a + // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a // local domain string object. - XCTAssertTrue([error.domain isEqualToString:MatterInteractionErrorDomain]); + XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER); [expectation fulfill]; @@ -870,7 +871,7 @@ - (void)test006_WriteAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write failed"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -885,9 +886,9 @@ - (void)test006_WriteAttributeFailure NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); XCTAssertNil(values); - // Error is copied over XPC and hence cannot use CHIPErrorTestUtils utility which checks against a + // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a // local domain string object. - XCTAssertTrue([error.domain isEqualToString:MatterInteractionErrorDomain]); + XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE); [expectation fulfill]; @@ -905,7 +906,7 @@ - (void)test007_InvokeCommandFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary *fields = [NSDictionary dictionaryWithObjectsAndKeys: @@ -928,8 +929,8 @@ - (void)test007_InvokeCommandFailure NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); XCTAssertNil(values); - // Error is copied over XPC and hence cannot use CHIPErrorTestUtils utility which checks against a local domain string object. - XCTAssertTrue([error.domain isEqualToString:MatterInteractionErrorDomain]); + // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a local domain string object. + XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); [expectation fulfill]; @@ -951,14 +952,14 @@ - (void)test008_SubscribeFailure XCTestExpectation * errorReportExpectation = [self expectationWithDescription:@"receive OnOff attribute report"]; globalReportHandler = ^(id _Nullable values, NSError * _Nullable error) { XCTAssertNil(values); - // Error is copied over XPC and hence cannot use CHIPErrorTestUtils utility which checks against a local domain string + // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a local domain string // object. - XCTAssertTrue([error.domain isEqualToString:MatterInteractionErrorDomain]); + XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT); [errorReportExpectation fulfill]; }; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device subscribeAttributeWithEndpointId:@10000 @@ -995,10 +996,10 @@ - (void)test009_ReadAttributeWithParams XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPReadParams * readParams = [[CHIPReadParams alloc] init]; + MTRReadParams * readParams = [[MTRReadParams alloc] init]; readParams.fabricFiltered = @NO; [device readAttributeWithEndpointId:nil clusterId:@29 @@ -1008,13 +1009,13 @@ - (void)test009_ReadAttributeWithParams completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"read attribute: DeviceType values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.cluster unsignedIntegerValue], 29); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); XCTAssertTrue([result[@"data"] isKindOfClass:[NSDictionary class]]); @@ -1035,7 +1036,7 @@ - (void)test010_SubscribeWithNoParams [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1059,7 +1060,7 @@ - (void)test010_SubscribeWithNoParams clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"report attribute: OnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (firstReportHandler) { __auto_type callback = firstReportHandler; @@ -1085,7 +1086,7 @@ - (void)test010_SubscribeWithNoParams clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"2nd subscriber report attribute: CurrentLevel values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (secondReportHandler) { __auto_type callback = secondReportHandler; @@ -1112,13 +1113,13 @@ - (void)test010_SubscribeWithNoParams completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1135,12 +1136,12 @@ - (void)test010_SubscribeWithNoParams [self expectationWithDescription:@"The 1st subscriber unexpectedly received OnOff attribute report"]; reportExpectation.inverted = YES; firstReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1154,12 +1155,12 @@ - (void)test010_SubscribeWithNoParams XCTestExpectation * secondReportExpectation = [self expectationWithDescription:@"The 2nd subscriber received CurrentLevel attribute report"]; secondReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1181,13 +1182,13 @@ - (void)test010_SubscribeWithNoParams completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1214,7 +1215,7 @@ - (void)test011_SubscribeWithParams [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1238,7 +1239,7 @@ - (void)test011_SubscribeWithParams clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"report attribute: OnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (firstReportHandler) { __auto_type callback = firstReportHandler; @@ -1254,7 +1255,7 @@ - (void)test011_SubscribeWithParams [self waitForExpectations:@[ subscribeExpectation ] timeout:kTimeoutInSeconds]; // Setup 2nd subscriber - CHIPSubscribeParams * myParams = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.keepPreviousSubscriptions = @NO; subscribeExpectation = [self expectationWithDescription:@"subscribe CurrentLevel attribute"]; [device subscribeAttributeWithEndpointId:@1 @@ -1266,7 +1267,7 @@ - (void)test011_SubscribeWithParams clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"2nd subscriber report attribute: CurrentLevel values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (secondReportHandler) { __auto_type callback = secondReportHandler; @@ -1293,13 +1294,13 @@ - (void)test011_SubscribeWithParams completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1316,12 +1317,12 @@ - (void)test011_SubscribeWithParams [self expectationWithDescription:@"The 1st subscriber unexpectedly received OnOff attribute report"]; reportExpectation.inverted = YES; firstReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1335,12 +1336,12 @@ - (void)test011_SubscribeWithParams XCTestExpectation * secondReportExpectation = [self expectationWithDescription:@"The 2nd subscriber received CurrentLevel attribute report"]; secondReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1362,13 +1363,13 @@ - (void)test011_SubscribeWithParams completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1402,7 +1403,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1426,7 +1427,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"report attribute: OnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (firstReportHandler) { __auto_type callback = firstReportHandler; @@ -1443,7 +1444,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription // Setup 2nd subscriber subscribeExpectation = [self expectationWithDescription:@"subscribe CurrentLevel attribute"]; - CHIPSubscribeParams * myParams = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.keepPreviousSubscriptions = @YES; [device subscribeAttributeWithEndpointId:@1 clusterId:@8 @@ -1454,7 +1455,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription clientQueue:queue reportHandler:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"2nd subscriber report attribute: CurrentLevel values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); if (secondReportHandler) { __auto_type callback = secondReportHandler; @@ -1481,13 +1482,13 @@ - (void)test012_SubscribeKeepingPreviousSubscription completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1502,12 +1503,12 @@ - (void)test012_SubscribeKeepingPreviousSubscription // Set up expectations for report XCTestExpectation * reportExpectation = [self expectationWithDescription:@"The 1st subscriber received OnOff attribute report"]; firstReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1521,12 +1522,12 @@ - (void)test012_SubscribeKeepingPreviousSubscription XCTestExpectation * secondReportExpectation = [self expectationWithDescription:@"The 2nd subscriber received CurrentLevel attribute report"]; secondReportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); @@ -1548,13 +1549,13 @@ - (void)test012_SubscribeKeepingPreviousSubscription completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1581,7 +1582,7 @@ - (void)test013_TimedWriteAttribute [self initStack]; [self waitForCommissionee]; #endif - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); // Write an initial value @@ -1597,13 +1598,13 @@ - (void)test013_TimedWriteAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"write attribute: Brightness values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 17); @@ -1629,13 +1630,13 @@ - (void)test013_TimedWriteAttribute completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"Timed-write attribute: Brightness values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 17); @@ -1677,10 +1678,10 @@ - (void)test013_TimedWriteAttribute // Setup report expectation expectation = [self expectationWithDescription:@"Report received"]; reportHandler = ^(id _Nullable values, NSError * _Nullable error) { - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSDictionary * result = values[0]; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.attribute unsignedIntegerValue], 17); @@ -1702,9 +1703,9 @@ - (void)test013_TimedWriteAttribute clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"read attribute: LevelControl Brightness values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); for (NSDictionary * value in values) { - CHIPAttributePath * path = value[@"attributePath"]; + MTRAttributePath * path = value[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedShortValue], 1); XCTAssertEqual([path.cluster unsignedLongValue], 8); XCTAssertEqual([path.attribute unsignedLongValue], 17); @@ -1724,7 +1725,7 @@ - (void)test014_TimedInvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -1743,13 +1744,13 @@ - (void)test014_TimedInvokeCommand completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 8); XCTAssertEqual([path.command unsignedIntegerValue], 4); @@ -1773,20 +1774,24 @@ - (void)test900_SubscribeAttributeCache #endif XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe attributes by cache"]; - CHIPDevice * device = GetConnectedDevice(); + MTRDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPAttributeCacheContainer * attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + MTRAttributeCacheContainer * attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; NSLog(@"Setting up attribute cache subscription..."); [device subscribeWithQueue:queue minInterval:1 maxInterval:60 params:nil cacheContainer:attributeCacheContainer - reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { - NSLog(@"Report for attribute cache: %@, error: %@", value, error); + attributeReportHandler:^(NSArray * value) { + NSLog(@"Report for attribute cache: %@", value); } - subscriptionEstablished:^{ + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Received error for attribute cache: %@", error); + } + subscriptionEstablished:^() { NSLog(@"Attribute cache subscribed attributes"); [expectation fulfill]; }]; @@ -1807,13 +1812,13 @@ - (void)test900_SubscribeAttributeCache completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoked command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 0); @@ -1838,13 +1843,13 @@ - (void)test900_SubscribeAttributeCache completion:^(id _Nullable values, NSError * _Nullable error) { NSLog(@"invoked command: On values: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); { XCTAssertTrue([values isKindOfClass:[NSArray class]]); NSArray * resultArray = values; for (NSDictionary * result in resultArray) { - CHIPCommandPath * path = result[@"commandPath"]; + MTRCommandPath * path = result[@"commandPath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.command unsignedIntegerValue], 1); @@ -1867,12 +1872,12 @@ - (void)test900_SubscribeAttributeCache clientQueue:queue completion:^(NSArray *> * _Nullable values, NSError * _Nullable error) { NSLog(@"Cached attribute read: %@, error: %@", values, error); - XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:error], 0); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], 0); XCTAssertEqual([values count], 1); for (NSDictionary * value in values) { XCTAssertTrue([value isKindOfClass:[NSDictionary class]]); NSDictionary * result = value; - CHIPAttributePath * path = result[@"attributePath"]; + MTRAttributePath * path = result[@"attributePath"]; XCTAssertEqual([path.endpoint unsignedIntegerValue], 1); XCTAssertEqual([path.cluster unsignedIntegerValue], 6); XCTAssertEqual([path.attribute unsignedIntegerValue], 0); diff --git a/src/darwin/Framework/CHIPTests/CHIPXPCProtocolTests.m b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m similarity index 59% rename from src/darwin/Framework/CHIPTests/CHIPXPCProtocolTests.m rename to src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m index 692144636d2bc7..b01535c07ad3bf 100644 --- a/src/darwin/Framework/CHIPTests/CHIPXPCProtocolTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m @@ -1,6 +1,6 @@ // -// CHIPRemoteDeviceTests.m -// CHIPTests +// MTRRemoteDeviceTests.m +// MTRTests /* * * Copyright (c) 2022 Project CHIP Authors @@ -19,9 +19,9 @@ */ // module headers -#import +#import -#import "CHIPErrorTestUtils.h" +#import "MTRErrorTestUtils.h" #import @@ -34,15 +34,15 @@ // Inverted expectation timeout static const uint16_t kNegativeTimeoutInSeconds = 1; -@interface CHIPAttributePath (Test) +@interface MTRAttributePath (Test) - (BOOL)isEqual:(id)object; @end -@implementation CHIPAttributePath (Test) +@implementation MTRAttributePath (Test) - (BOOL)isEqual:(id)object { - if ([object isKindOfClass:[CHIPAttributePath class]]) { - CHIPAttributePath * other = object; + if ([object isKindOfClass:[MTRAttributePath class]]) { + MTRAttributePath * other = object; return [self.endpoint isEqualToNumber:other.endpoint] && [self.cluster isEqualToNumber:other.cluster] && [self.attribute isEqualToNumber:other.attribute]; } @@ -51,19 +51,19 @@ - (BOOL)isEqual:(id)object - (NSString *)description { - return [NSString stringWithFormat:@"CHIPAttributePath(%@,%@,%@)", self.endpoint, self.cluster, self.attribute]; + return [NSString stringWithFormat:@"MTRAttributePath(%@,%@,%@)", self.endpoint, self.cluster, self.attribute]; } @end -@interface CHIPCommandPath (Test) +@interface MTRCommandPath (Test) - (BOOL)isEqual:(id)object; @end -@implementation CHIPCommandPath (Test) +@implementation MTRCommandPath (Test) - (BOOL)isEqual:(id)object { - if ([object isKindOfClass:[CHIPCommandPath class]]) { - CHIPCommandPath * other = object; + if ([object isKindOfClass:[MTRCommandPath class]]) { + MTRCommandPath * other = object; return [self.endpoint isEqualToNumber:other.endpoint] && [self.cluster isEqualToNumber:other.cluster] && [self.command isEqualToNumber:other.command]; } @@ -72,23 +72,23 @@ - (BOOL)isEqual:(id)object - (NSString *)description { - return [NSString stringWithFormat:@"CHIPCommandPath(%@,%@,%@)", self.endpoint, self.cluster, self.command]; + return [NSString stringWithFormat:@"MTRCommandPath(%@,%@,%@)", self.endpoint, self.cluster, self.command]; } @end -@interface CHIPAttributeCacheContainer (Test) +@interface MTRAttributeCacheContainer (Test) // Obsolete method is moved to this test suite to keep tests compatible -- (void)subscribeWithDeviceController:(CHIPDeviceController *)deviceController +- (void)subscribeWithDeviceController:(MTRDeviceController *)deviceController deviceId:(uint64_t)deviceId - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params clientQueue:(dispatch_queue_t)clientQueue completion:(void (^)(NSError * _Nullable error))completion; @end -@implementation CHIPAttributeCacheContainer (Test) -- (void)subscribeWithDeviceController:(CHIPDeviceController *)deviceController +@implementation MTRAttributeCacheContainer (Test) +- (void)subscribeWithDeviceController:(MTRDeviceController *)deviceController deviceId:(uint64_t)deviceId - params:(CHIPSubscribeParams * _Nullable)params + params:(MTRSubscribeParams * _Nullable)params clientQueue:clientQueue completion:(void (^)(NSError * _Nullable error))completion { @@ -98,46 +98,50 @@ - (void)subscribeWithDeviceController:(CHIPDeviceController *)deviceController completion(error); }); }; - [deviceController getConnectedDevice:deviceId - queue:workQueue - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", deviceId, error); - completionHandler(error); - return; - } - __auto_type established = [NSMutableArray arrayWithCapacity:1]; - [established addObject:@NO]; - [device subscribeWithQueue:clientQueue - minInterval:1 - maxInterval:43200 - params:params - cacheContainer:self - reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { - NSLog(@"Report received for attribute cache: %@, error: %@", value, error); - if (![established[0] boolValue]) { - established[0] = @YES; - completionHandler(error); - } - } - subscriptionEstablished:^{ - NSLog(@"Attribute cache subscription succeeded for device %llu", deviceId); - if (![established[0] boolValue]) { - established[0] = @YES; - completionHandler(nil); - } - }]; - }]; + [deviceController getDevice:deviceId + queue:workQueue + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", deviceId, error); + completionHandler(error); + return; + } + __auto_type established = [NSMutableArray arrayWithCapacity:1]; + [established addObject:@NO]; + [device subscribeWithQueue:clientQueue + minInterval:1 + maxInterval:43200 + params:params + cacheContainer:self + attributeReportHandler:^(NSArray * value) { + NSLog(@"Report received for attribute cache: %@", value); + } + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Report error received for attribute cache: %@", error); + if (![established[0] boolValue]) { + established[0] = @YES; + completionHandler(error); + } + } + subscriptionEstablished:^() { + NSLog(@"Attribute cache subscription succeeded for device %llu", deviceId); + if (![established[0] boolValue]) { + established[0] = @YES; + completionHandler(nil); + } + }]; + }]; } @end -@interface CHIPXPCProtocolTests : XCTestCase +@interface MTRXPCProtocolTests : XCTestCase @property (nonatomic, readwrite, strong) NSXPCListener * xpcListener; @property (nonatomic, readwrite, strong) NSXPCInterface * serviceInterface; @property (nonatomic, readwrite, strong) NSXPCInterface * clientInterface; @property (readwrite, strong) NSXPCConnection * xpcConnection; -@property (nonatomic, readwrite, strong) CHIPDeviceController * remoteDeviceController; +@property (nonatomic, readwrite, strong) MTRDeviceController * remoteDeviceController; @property (nonatomic, readwrite, strong) NSString * controllerUUID; @property (readwrite, strong) XCTestExpectation * xpcDisconnectExpectation; @@ -146,7 +150,7 @@ @interface CHIPXPCProtocolTests @property (readwrite, strong) void (^handleGetAnySharedRemoteController) (void (^completion)(id _Nullable controller, NSError * _Nullable error)); @property (readwrite, strong) void (^handleReadAttribute)(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, - NSNumber * _Nullable clusterId, NSNumber * _Nullable attributeId, CHIPReadParams * _Nullable params, + NSNumber * _Nullable clusterId, NSNumber * _Nullable attributeId, MTRReadParams * _Nullable params, void (^completion)(id _Nullable values, NSError * _Nullable error)); @property (readwrite, strong) void (^handleWriteAttribute) (id controller, uint64_t nodeId, NSNumber * endpointId, NSNumber * clusterId, NSNumber * attributeId, id value, @@ -156,18 +160,17 @@ @interface CHIPXPCProtocolTests NSNumber * _Nullable timedInvokeTimeout, void (^completion)(id _Nullable values, NSError * _Nullable error)); @property (readwrite, strong) void (^handleSubscribeAttribute)(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, void (^establishedHandler)(void)); + MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)); @property (readwrite, strong) void (^handleStopReports)(id controller, uint64_t nodeId, void (^completion)(void)); @property (readwrite, strong) void (^handleSubscribeAll)(id controller, uint64_t nodeId, NSNumber * minInterval, - NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) - ; + NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)); @property (readwrite, strong) void (^handleReadAttributeCache) (id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, NSNumber * _Nullable attributeId, void (^completion)(id _Nullable values, NSError * _Nullable error)); @end -@implementation CHIPXPCProtocolTests +@implementation MTRXPCProtocolTests - (BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConnection *)newConnection { @@ -218,7 +221,7 @@ - (void)readAttributeWithController:(id)controller dispatch_async(dispatch_get_main_queue(), ^{ XCTAssertNotNil(self.handleReadAttribute); self.handleReadAttribute( - controller, nodeId, endpointId, clusterId, attributeId, [CHIPDeviceController decodeXPCReadParams:params], completion); + controller, nodeId, endpointId, clusterId, attributeId, [MTRDeviceController decodeXPCReadParams:params], completion); }); } @@ -265,7 +268,7 @@ - (void)subscribeAttributeWithController:(id)controller dispatch_async(dispatch_get_main_queue(), ^{ XCTAssertNotNil(self.handleSubscribeAttribute); self.handleSubscribeAttribute(controller, nodeId, endpointId, clusterId, attributeId, minInterval, maxInterval, - [CHIPDeviceController decodeXPCSubscribeParams:params], establishedHandler); + [MTRDeviceController decodeXPCSubscribeParams:params], establishedHandler); }); } @@ -287,8 +290,8 @@ - (void)subscribeWithController:(id _Nullable)controller { dispatch_async(dispatch_get_main_queue(), ^{ XCTAssertNotNil(self.handleSubscribeAll); - self.handleSubscribeAll(controller, nodeId, minInterval, maxInterval, - [CHIPDeviceController decodeXPCSubscribeParams:params], shouldCache, completion); + self.handleSubscribeAll(controller, nodeId, minInterval, maxInterval, [MTRDeviceController decodeXPCSubscribeParams:params], + shouldCache, completion); }); } @@ -311,15 +314,15 @@ - (void)setUp _xpcListener = [NSXPCListener anonymousListener]; [_xpcListener setDelegate:(id) self]; - _serviceInterface = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerServerProtocol)]; - _clientInterface = [NSXPCInterface interfaceWithProtocol:@protocol(CHIPDeviceControllerClientProtocol)]; + _serviceInterface = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerServerProtocol)]; + _clientInterface = [NSXPCInterface interfaceWithProtocol:@protocol(MTRDeviceControllerClientProtocol)]; [_xpcListener resume]; _controllerUUID = [[NSUUID UUID] UUIDString]; _remoteDeviceController = - [CHIPDeviceController sharedControllerWithId:_controllerUUID - xpcConnectBlock:^NSXPCConnection * { - return [[NSXPCConnection alloc] initWithListenerEndpoint:self.xpcListener.endpoint]; - }]; + [MTRDeviceController sharedControllerWithId:_controllerUUID + xpcConnectBlock:^NSXPCConnection * { + return [[NSXPCConnection alloc] initWithListenerEndpoint:self.xpcListener.endpoint]; + }]; } - (void)tearDown @@ -337,9 +340,9 @@ - (void)testReadAttributeSuccess NSNumber * myClusterId = @200; NSNumber * myAttributeId = @300; NSArray * myValues = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; @@ -348,7 +351,7 @@ - (void)testReadAttributeSuccess __auto_type uuid = self.controllerUUID; _handleReadAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, CHIPReadParams * _Nullable params, + NSNumber * _Nullable attributeId, MTRReadParams * _Nullable params, void (^completion)(id _Nullable values, NSError * _Nullable error)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -357,30 +360,30 @@ - (void)testReadAttributeSuccess XCTAssertEqual([attributeId unsignedLongValue], [myAttributeId unsignedLongValue]); XCTAssertNil(params); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myValues], nil); + completion([MTRDeviceController encodeXPCResponseValues:myValues], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -396,12 +399,12 @@ - (void)testReadAttributeWithParamsSuccess NSNumber * myClusterId = @200; NSNumber * myAttributeId = @300; NSArray * myValues = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; - CHIPReadParams * myParams = [[CHIPReadParams alloc] init]; + MTRReadParams * myParams = [[MTRReadParams alloc] init]; myParams.fabricFiltered = @NO; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -409,7 +412,7 @@ - (void)testReadAttributeWithParamsSuccess __auto_type uuid = self.controllerUUID; _handleReadAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, CHIPReadParams * _Nullable params, + NSNumber * _Nullable attributeId, MTRReadParams * _Nullable params, void (^completion)(id _Nullable values, NSError * _Nullable error)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -419,30 +422,30 @@ - (void)testReadAttributeWithParamsSuccess XCTAssertNotNil(params); XCTAssertEqual([params.fabricFiltered boolValue], [myParams.fabricFiltered boolValue]); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myValues], nil); + completion([MTRDeviceController encodeXPCResponseValues:myValues], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:myParams - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:myParams + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -457,13 +460,13 @@ - (void)testReadAttributeFailure NSNumber * myEndpointId = @100; NSNumber * myClusterId = @200; NSNumber * myAttributeId = @300; - NSError * myError = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]; + NSError * myError = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; _handleReadAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, CHIPReadParams * _Nullable params, + NSNumber * _Nullable attributeId, MTRReadParams * _Nullable params, void (^completion)(id _Nullable values, NSError * _Nullable error)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -475,26 +478,26 @@ - (void)testReadAttributeFailure completion(nil, myError); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -512,9 +515,9 @@ - (void)testWriteAttributeSuccess NSDictionary * myValue = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithInteger:654321], @"value", nil]; NSArray * myResults = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId] + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId] } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -531,31 +534,31 @@ - (void)testWriteAttributeSuccess XCTAssertTrue([value isEqualTo:myValue]); XCTAssertNil(timedWriteTimeout); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myResults], nil); + completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -574,9 +577,9 @@ - (void)testTimedWriteAttributeSuccess [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithInteger:654321], @"value", nil]; NSNumber * myTimedWriteTimeout = @1234; NSArray * myResults = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId] + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId] } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -594,31 +597,31 @@ - (void)testTimedWriteAttributeSuccess XCTAssertNotNil(timedWriteTimeout); XCTAssertEqual([timedWriteTimeout unsignedShortValue], [myTimedWriteTimeout unsignedShortValue]); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myResults], nil); + completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:myTimedWriteTimeout - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:myTimedWriteTimeout + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -635,7 +638,7 @@ - (void)testWriteAttributeFailure NSNumber * myAttributeId = @300; NSDictionary * myValue = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithInteger:654321], @"value", nil]; - NSError * myError = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]; + NSError * myError = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; @@ -653,27 +656,27 @@ - (void)testWriteAttributeFailure completion(nil, myError); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -693,7 +696,7 @@ - (void)testInvokeCommandSuccess [NSNumber numberWithFloat:1.0], @"value", nil]], @"value", nil]; NSArray * myResults = @[ - @{ @"commandPath" : [CHIPCommandPath commandPathWithEndpointId:myEndpointId clusterId:myClusterId commandId:myCommandId] } + @{ @"commandPath" : [MTRCommandPath commandPathWithEndpointId:myEndpointId clusterId:myClusterId commandId:myCommandId] } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; @@ -710,31 +713,31 @@ - (void)testInvokeCommandSuccess XCTAssertTrue([commandFields isEqualTo:myFields]); XCTAssertNil(timedInvokeTimeout); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myResults], nil); + completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -755,7 +758,7 @@ - (void)testTimedInvokeCommandSuccess [NSNumber numberWithFloat:1.0], @"value", nil]], @"value", nil]; NSArray * myResults = @[ - @{ @"commandPath" : [CHIPCommandPath commandPathWithEndpointId:myEndpointId clusterId:myClusterId commandId:myCommandId] } + @{ @"commandPath" : [MTRCommandPath commandPathWithEndpointId:myEndpointId clusterId:myClusterId commandId:myCommandId] } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; @@ -773,31 +776,31 @@ - (void)testTimedInvokeCommandSuccess XCTAssertNotNil(timedInvokeTimeout); XCTAssertEqual([timedInvokeTimeout unsignedShortValue], [myTimedInvokeTimeout unsignedShortValue]); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myResults], nil); + completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:myTimedInvokeTimeout - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:myTimedInvokeTimeout + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -816,7 +819,7 @@ - (void)testInvokeCommandFailure [NSArray arrayWithObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Float", @"Type", [NSNumber numberWithFloat:1.0], @"value", nil]], @"value", nil]; - NSError * myError = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]; + NSError * myError = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; @@ -835,27 +838,27 @@ - (void)testInvokeCommandFailure completion(nil, myError); }; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -873,9 +876,9 @@ - (void)testSubscribeAttributeSuccess NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -884,7 +887,7 @@ - (void)testSubscribeAttributeSuccess __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -901,38 +904,38 @@ - (void)testSubscribeAttributeSuccess _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -941,14 +944,14 @@ - (void)testSubscribeAttributeSuccess // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -964,15 +967,15 @@ - (void)testSubscribeAttributeSuccess }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -987,13 +990,13 @@ - (void)testSubscribeAttributeWithParamsSuccess NSNumber * myAttributeId = @300; NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; - CHIPSubscribeParams * myParams = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.fabricFiltered = @NO; myParams.keepPreviousSubscriptions = @NO; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1002,7 +1005,7 @@ - (void)testSubscribeAttributeWithParamsSuccess __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1021,38 +1024,38 @@ - (void)testSubscribeAttributeWithParamsSuccess _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:myParams - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:myParams + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1061,14 +1064,14 @@ - (void)testSubscribeAttributeWithParamsSuccess // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1084,15 +1087,15 @@ - (void)testSubscribeAttributeWithParamsSuccess }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1119,7 +1122,7 @@ - (void)testBadlyFormattedReport __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1136,35 +1139,35 @@ - (void)testBadlyFormattedReport _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject badly formatted report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId values:myReport error:nil]; // Wait for report, which isn't expected. @@ -1173,14 +1176,14 @@ - (void)testBadlyFormattedReport // Inject another report reportExpectation = [self expectationWithDescription:@"Report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1197,15 +1200,15 @@ - (void)testBadlyFormattedReport // Deregister report handler _xpcDisconnectExpectation.inverted = NO; - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1221,9 +1224,9 @@ - (void)testReportWithUnrelatedEndpointId NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:@([myEndpointId unsignedShortValue] + 1) - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:@([myEndpointId unsignedShortValue] + 1) + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1233,7 +1236,7 @@ - (void)testReportWithUnrelatedEndpointId __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1250,38 +1253,38 @@ - (void)testReportWithUnrelatedEndpointId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report which isn't expected @@ -1290,14 +1293,14 @@ - (void)testReportWithUnrelatedEndpointId // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1313,15 +1316,15 @@ - (void)testReportWithUnrelatedEndpointId }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1337,9 +1340,9 @@ - (void)testReportWithUnrelatedClusterId NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:@([myClusterId unsignedLongValue] + 1) - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:@([myClusterId unsignedLongValue] + 1) + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1349,7 +1352,7 @@ - (void)testReportWithUnrelatedClusterId __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1366,38 +1369,38 @@ - (void)testReportWithUnrelatedClusterId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report not to come @@ -1406,14 +1409,14 @@ - (void)testReportWithUnrelatedClusterId // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1429,15 +1432,15 @@ - (void)testReportWithUnrelatedClusterId }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1453,9 +1456,9 @@ - (void)testReportWithUnrelatedAttributeId NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:@([myAttributeId unsignedLongValue] + 1)], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:@([myAttributeId unsignedLongValue] + 1)], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1465,7 +1468,7 @@ - (void)testReportWithUnrelatedAttributeId __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1482,38 +1485,38 @@ - (void)testReportWithUnrelatedAttributeId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report not to come @@ -1522,14 +1525,14 @@ - (void)testReportWithUnrelatedAttributeId // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1545,15 +1548,15 @@ - (void)testReportWithUnrelatedAttributeId }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1569,9 +1572,9 @@ - (void)testReportWithUnrelatedNode NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1581,7 +1584,7 @@ - (void)testReportWithUnrelatedNode __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1598,38 +1601,38 @@ - (void)testReportWithUnrelatedNode _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId + 1 - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report not to come @@ -1638,14 +1641,14 @@ - (void)testReportWithUnrelatedNode // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1661,15 +1664,15 @@ - (void)testReportWithUnrelatedNode }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1685,9 +1688,9 @@ - (void)testSubscribeMultiEndpoints NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1696,7 +1699,7 @@ - (void)testSubscribeMultiEndpoints __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1713,38 +1716,38 @@ - (void)testSubscribeMultiEndpoints _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:nil - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:nil + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1753,14 +1756,14 @@ - (void)testSubscribeMultiEndpoints // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1776,15 +1779,15 @@ - (void)testSubscribeMultiEndpoints }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1800,9 +1803,9 @@ - (void)testSubscribeMultiClusters NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1811,7 +1814,7 @@ - (void)testSubscribeMultiClusters __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1828,38 +1831,38 @@ - (void)testSubscribeMultiClusters _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:nil - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:nil + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1868,14 +1871,14 @@ - (void)testSubscribeMultiClusters // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1891,15 +1894,15 @@ - (void)testSubscribeMultiClusters }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1915,9 +1918,9 @@ - (void)testSubscribeMultiAttributes NSNumber * myMinInterval = @5; NSNumber * myMaxInterval = @60; __block NSArray * myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; @@ -1926,7 +1929,7 @@ - (void)testSubscribeMultiAttributes __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -1943,38 +1946,38 @@ - (void)testSubscribeMultiAttributes _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:nil - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Report value: %@", values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReport isEqualTo:values]); - [reportExpectation fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:nil + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Report value: %@", values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReport isEqualTo:values]); + [reportExpectation fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; // Inject report - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -1983,14 +1986,14 @@ - (void)testSubscribeMultiAttributes // Inject another report reportExpectation = [self expectationWithDescription:@"2nd report sent"]; myReport = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @771234 } } ]; [clientObject handleReportWithController:uuid nodeId:myNodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReport] + values:[MTRDeviceController encodeXPCResponseValues:myReport] error:nil]; // Wait for report @@ -2006,15 +2009,15 @@ - (void)testSubscribeMultiAttributes }; // Deregister report handler - [_remoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -2042,7 +2045,7 @@ - (void)testMutiSubscriptions __auto_type uuid = self.controllerUUID; _handleSubscribeAttribute = ^(id controller, uint64_t nodeId, NSNumber * _Nullable endpointId, NSNumber * _Nullable clusterId, - NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, CHIPSubscribeParams * _Nullable params, + NSNumber * _Nullable attributeId, NSNumber * minInterval, NSNumber * maxInterval, MTRSubscribeParams * _Nullable params, void (^establishedHandler)(void)) { XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2069,35 +2072,35 @@ - (void)testMutiSubscriptions callExpectation = [self expectationWithDescription:[NSString stringWithFormat:@"XPC call (%d) received", i]]; establishExpectation = [self expectationWithDescription:[NSString stringWithFormat:@"Established (%d) called", i]]; [_remoteDeviceController - getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Subscribing..."); - [device subscribeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - minInterval:myMinInterval - maxInterval:myMaxInterval - params:nil - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { - NSLog(@"Subscriber [%d] report value: %@", i, values); - XCTAssertNotNil(values); - XCTAssertNil(error); - XCTAssertTrue([myReports[i] isEqualTo:values]); - [reportExpectations[i] fulfill]; - } - subscriptionEstablished:^{ - [establishExpectation fulfill]; - }]; - }]; + getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Subscribing..."); + [device subscribeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + minInterval:myMinInterval + maxInterval:myMaxInterval + params:nil + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, NSError * _Nullable error) { + NSLog(@"Subscriber [%d] report value: %@", i, values); + XCTAssertNotNil(values); + XCTAssertNil(error); + XCTAssertTrue([myReports[i] isEqualTo:values]); + [reportExpectations[i] fulfill]; + } + subscriptionEstablished:^{ + [establishExpectation fulfill]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, establishExpectation, nil] timeout:kTimeoutInSeconds]; } - id clientObject = _xpcConnection.remoteObjectProxy; + id clientObject = _xpcConnection.remoteObjectProxy; // Inject reports for (int count = 0; count < 2; count++) { @@ -2107,15 +2110,15 @@ - (void)testMutiSubscriptions [self expectationWithDescription:[NSString stringWithFormat:@"Report(%d) for second subscriber sent", count]], nil]; myReports = @[ @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[0] - clusterId:clusterIds[0] - attributeId:attributeIds[0]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[0] + clusterId:clusterIds[0] + attributeId:attributeIds[0]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:123456 + count * 100] } } ], @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[1] - clusterId:clusterIds[1] - attributeId:attributeIds[1]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[1] + clusterId:clusterIds[1] + attributeId:attributeIds[1]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:123457 + count * 100] } } ] ]; @@ -2124,7 +2127,7 @@ - (void)testMutiSubscriptions dispatch_async(dispatch_get_main_queue(), ^{ [clientObject handleReportWithController:uuid nodeId:nodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReports[i]] + values:[MTRDeviceController encodeXPCResponseValues:myReports[i]] error:nil]; }); } @@ -2143,16 +2146,16 @@ - (void)testMutiSubscriptions // Deregister report handler for first subscriber __auto_type deregisterExpectation = [self expectationWithDescription:@"First subscriber deregistered"]; - [_remoteDeviceController getConnectedDevice:nodeToStop - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - [deregisterExpectation fulfill]; - }]; - }]; + [_remoteDeviceController getDevice:nodeToStop + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + [deregisterExpectation fulfill]; + }]; + }]; [self waitForExpectations:@[ stopExpectation, deregisterExpectation ] timeout:kTimeoutInSeconds]; @@ -2165,15 +2168,15 @@ - (void)testMutiSubscriptions reportExpectations[0].inverted = YES; myReports = @[ @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[0] - clusterId:clusterIds[0] - attributeId:attributeIds[0]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[0] + clusterId:clusterIds[0] + attributeId:attributeIds[0]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:223456 + count * 100] } } ], @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[1] - clusterId:clusterIds[1] - attributeId:attributeIds[1]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[1] + clusterId:clusterIds[1] + attributeId:attributeIds[1]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:223457 + count * 100] } } ] ]; @@ -2182,7 +2185,7 @@ - (void)testMutiSubscriptions dispatch_async(dispatch_get_main_queue(), ^{ [clientObject handleReportWithController:uuid nodeId:nodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReports[i]] + values:[MTRDeviceController encodeXPCResponseValues:myReports[i]] error:nil]; }); } @@ -2201,16 +2204,16 @@ - (void)testMutiSubscriptions // Deregister report handler for second subscriber __auto_type secondDeregisterExpectation = [self expectationWithDescription:@"Second subscriber deregistered"]; - [_remoteDeviceController getConnectedDevice:nodeToStop - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - [secondDeregisterExpectation fulfill]; - }]; - }]; + [_remoteDeviceController getDevice:nodeToStop + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + [secondDeregisterExpectation fulfill]; + }]; + }]; // Wait for deregistration and disconnection [self waitForExpectations:@[ secondDeregisterExpectation, _xpcDisconnectExpectation, stopExpectation ] @@ -2227,15 +2230,15 @@ - (void)testMutiSubscriptions reportExpectations[1].inverted = YES; myReports = @[ @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[0] - clusterId:clusterIds[0] - attributeId:attributeIds[0]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[0] + clusterId:clusterIds[0] + attributeId:attributeIds[0]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:223456 + count * 100] } } ], @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:endpointIds[1] - clusterId:clusterIds[1] - attributeId:attributeIds[1]], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:endpointIds[1] + clusterId:clusterIds[1] + attributeId:attributeIds[1]], @"data" : @ { @"type" : @"SignedInteger", @"value" : [NSNumber numberWithInteger:223457 + count * 100] } } ] ]; @@ -2244,7 +2247,7 @@ - (void)testMutiSubscriptions dispatch_async(dispatch_get_main_queue(), ^{ [clientObject handleReportWithController:uuid nodeId:nodeId - values:[CHIPDeviceController encodeXPCResponseValues:myReports[i]] + values:[MTRDeviceController encodeXPCResponseValues:myReports[i]] error:nil]; }); } @@ -2258,10 +2261,10 @@ - (void)testAnySharedRemoteController uint64_t myNodeId = 9876543210; __auto_type unspecifiedRemoteDeviceController = - [CHIPDeviceController sharedControllerWithId:nil - xpcConnectBlock:^NSXPCConnection * { - return [[NSXPCConnection alloc] initWithListenerEndpoint:self.xpcListener.endpoint]; - }]; + [MTRDeviceController sharedControllerWithId:nil + xpcConnectBlock:^NSXPCConnection * { + return [[NSXPCConnection alloc] initWithListenerEndpoint:self.xpcListener.endpoint]; + }]; __auto_type anySharedRemoteControllerCallExpectation = [self expectationWithDescription:@"getAnySharedRemoteController was called"]; @@ -2271,13 +2274,13 @@ - (void)testAnySharedRemoteController }; __auto_type deviceAcquired = [self expectationWithDescription:@"Connected device was acquired"]; - [unspecifiedRemoteDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - [deviceAcquired fulfill]; - }]; + [unspecifiedRemoteDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + [deviceAcquired fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:anySharedRemoteControllerCallExpectation, deviceAcquired, nil] timeout:kTimeoutInSeconds]; @@ -2290,9 +2293,9 @@ - (void)testSubscribeAttributeCacheSuccess XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; _handleSubscribeAll = ^(id controller, uint64_t nodeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { + MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { NSLog(@"Subscribe called"); XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2319,16 +2322,16 @@ - (void)testSubscribeAttributeCacheSuccess - (void)testSubscribeAttributeCacheWithParamsSuccess { uint64_t myNodeId = 9876543210; - CHIPSubscribeParams * myParams = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc] init]; myParams.fabricFiltered = @YES; myParams.keepPreviousSubscriptions = @YES; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; _handleSubscribeAll = ^(id controller, uint64_t nodeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { + MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { NSLog(@"Subscribe attribute cache called"); XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2357,14 +2360,14 @@ - (void)testSubscribeAttributeCacheWithParamsSuccess - (void)testSubscribeAttributeCacheFailure { uint64_t myNodeId = 9876543210; - NSError * myError = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]; + NSError * myError = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; _handleSubscribeAll = ^(id controller, uint64_t nodeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { + MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { NSLog(@"Subscribe attribute cache called"); XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2395,9 +2398,9 @@ - (void)testReadAttributeCacheSuccess NSNumber * myClusterId = @200; NSNumber * myAttributeId = @300; NSArray * myValues = @[ @{ - @"attributePath" : [CHIPAttributePath attributePathWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId], + @"attributePath" : [MTRAttributePath attributePathWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId], @"data" : @ { @"type" : @"SignedInteger", @"value" : @123456 } } ]; @@ -2406,9 +2409,9 @@ - (void)testReadAttributeCacheSuccess XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; _handleSubscribeAll = ^(id controller, uint64_t nodeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { + MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { NSLog(@"Subscribe attribute cache called"); XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2425,7 +2428,7 @@ - (void)testReadAttributeCacheSuccess XCTAssertEqual([clusterId unsignedLongValue], [myClusterId unsignedLongValue]); XCTAssertEqual([attributeId unsignedLongValue], [myAttributeId unsignedLongValue]); [callExpectation fulfill]; - completion([CHIPDeviceController encodeXPCResponseValues:myValues], nil); + completion([MTRDeviceController encodeXPCResponseValues:myValues], nil); }; [attributeCacheContainer subscribeWithDeviceController:_remoteDeviceController @@ -2462,15 +2465,15 @@ - (void)testReadAttributeCacheFailure NSNumber * myEndpointId = @100; NSNumber * myClusterId = @200; NSNumber * myAttributeId = @300; - NSError * myError = [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeGeneralError userInfo:nil]; + NSError * myError = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]; XCTestExpectation * subscribeExpectation = [self expectationWithDescription:@"Cache subscription complete"]; XCTestExpectation * callExpectation = [self expectationWithDescription:@"XPC call received"]; XCTestExpectation * responseExpectation = [self expectationWithDescription:@"XPC response received"]; __auto_type uuid = self.controllerUUID; - __auto_type attributeCacheContainer = [[CHIPAttributeCacheContainer alloc] init]; + __auto_type attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; _handleSubscribeAll = ^(id controller, uint64_t nodeId, NSNumber * minInterval, NSNumber * maxInterval, - CHIPSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { + MTRSubscribeParams * _Nullable params, BOOL shouldCache, void (^completion)(NSError * _Nullable error)) { NSLog(@"Subscribe attribute cache called"); XCTAssertTrue([controller isEqualToString:uuid]); XCTAssertEqual(nodeId, myNodeId); @@ -2526,29 +2529,29 @@ - (void)testXPCConnectionFailure XCTestExpectation * responseExpectation = [self expectationWithDescription:@"Read response received"]; // Test with a device controller which wouldn't connect to XPC listener successfully - __auto_type failingDeviceController = [CHIPDeviceController sharedControllerWithId:_controllerUUID - xpcConnectBlock:^NSXPCConnection * { - return nil; - }]; - - [failingDeviceController getConnectedDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - }]; - }]; + __auto_type failingDeviceController = [MTRDeviceController sharedControllerWithId:_controllerUUID + xpcConnectBlock:^NSXPCConnection * { + return nil; + }]; + + [failingDeviceController getDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + }]; + }]; [self waitForExpectations:@[ responseExpectation ] timeout:kTimeoutInSeconds]; } diff --git a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj new file mode 100644 index 00000000000000..4d6a85f61c9e67 --- /dev/null +++ b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj @@ -0,0 +1,979 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 53; + objects = { + +/* Begin PBXBuildFile section */ + 1E85730C265519AE0050A4D9 /* callback-stub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E857307265519AE0050A4D9 /* callback-stub.cpp */; }; + 1EB41B7B263C4CC60048E4C1 /* MTRClustersTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EB41B7A263C4CC60048E4C1 /* MTRClustersTests.m */; }; + 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */; }; + 1EC4CE5D25CC26E900D7304F /* MTRClustersObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */; }; + 1EC4CE6425CC276600D7304F /* MTRClustersObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1ED276E026C57CF000547A89 /* MTRCallbackBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */; }; + 1ED276E226C5812A00547A89 /* MTRCluster.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276E126C5812A00547A89 /* MTRCluster.mm */; }; + 1ED276E426C5832500547A89 /* MTRCluster.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ED276E326C5832500547A89 /* MTRCluster.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 27A53C1727FBC6920053F131 /* MTRAttestationTrustStoreBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 27A53C1527FBC6920053F131 /* MTRAttestationTrustStoreBridge.h */; }; + 27A53C1827FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 27A53C1627FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm */; }; + 2C1B027A2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */; }; + 2C1B027B2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */; }; + 2C222AD0255C620600E446B9 /* MTRDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ACE255C620600E446B9 /* MTRDevice.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2C222AD1255C620600E446B9 /* MTRDevice.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C222ACF255C620600E446B9 /* MTRDevice.mm */; }; + 2C222ADF255C811800E446B9 /* MTRDevice_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */; }; + 2C4DF09E248B2C60009307CB /* libmbedtls.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C4DF09D248B2C60009307CB /* libmbedtls.a */; settings = {ATTRIBUTES = (Required, ); }; }; + 2C5EEEF6268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C5EEEF4268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h */; }; + 2C5EEEF7268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C5EEEF5268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm */; }; + 2C8C8FC0253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C8C8FBD253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h */; }; + 2C8C8FC1253E0C2100797F05 /* MTRPersistentStorageDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C8C8FBE253E0C2100797F05 /* MTRPersistentStorageDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2C8C8FC2253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C8C8FBF253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.mm */; }; + 2CB7163B252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CB71638252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.h */; }; + 2CB7163C252E8A7C0026E2BB /* MTRDevicePairingDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2CB71639252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.mm */; }; + 2CB7163F252F731E0026E2BB /* MTRDevicePairingDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CB7163E252F731E0026E2BB /* MTRDevicePairingDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2FD775542695557E00FF4B12 /* error-mapping.cpp */; }; + 5129BCFD26A9EE3300122DDF /* MTRError.h in Headers */ = {isa = PBXBuildFile; fileRef = 5129BCFC26A9EE3300122DDF /* MTRError.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5136661328067D550025EDAE /* MTRDeviceController_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136660F28067D540025EDAE /* MTRDeviceController_Internal.h */; }; + 5136661428067D550025EDAE /* MTRControllerFactory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5136661028067D540025EDAE /* MTRControllerFactory.mm */; }; + 5136661528067D550025EDAE /* MTRControllerFactory_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136661128067D540025EDAE /* MTRControllerFactory_Internal.h */; }; + 5136661628067D550025EDAE /* MTRControllerFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5136661228067D550025EDAE /* MTRControllerFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 513DDB862761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 513DDB852761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h */; }; + 513DDB8A2761F6F900DAA01A /* MTRAttributeTLVValueDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 513DDB892761F6F900DAA01A /* MTRAttributeTLVValueDecoder.mm */; }; + 51431AF927D2973E008A7943 /* MTRIMDispatch.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51431AF827D2973E008A7943 /* MTRIMDispatch.mm */; }; + 51431AFB27D29CA4008A7943 /* ota-provider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51431AFA27D29CA4008A7943 /* ota-provider.cpp */; }; + 515C1C6F284F9FFB00A48F0C /* MTRMemory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */; }; + 515C1C70284F9FFB00A48F0C /* MTRMemory.h in Headers */ = {isa = PBXBuildFile; fileRef = 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */; }; + 517BF3F0282B62B800A8B7DB /* MTRCertificates.h in Headers */ = {isa = PBXBuildFile; fileRef = 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 517BF3F1282B62B800A8B7DB /* MTRCertificates.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */; }; + 517BF3F3282B62CB00A8B7DB /* MTRCertificateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 517BF3F2282B62CB00A8B7DB /* MTRCertificateTests.m */; }; + 51B22C1E2740CB0A008D5055 /* MTRStructsObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 51B22C1D2740CB0A008D5055 /* MTRStructsObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 51B22C222740CB1D008D5055 /* MTRCommandPayloadsObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 51B22C212740CB1D008D5055 /* MTRCommandPayloadsObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 51B22C262740CB32008D5055 /* MTRStructsObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51B22C252740CB32008D5055 /* MTRStructsObjc.mm */; }; + 51B22C2A2740CB47008D5055 /* MTRCommandPayloadsObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51B22C292740CB47008D5055 /* MTRCommandPayloadsObjc.mm */; }; + 51C8E3F82825CDB600D47D00 /* MTRTestKeys.m in Sources */ = {isa = PBXBuildFile; fileRef = 51C8E3F72825CDB600D47D00 /* MTRTestKeys.m */; }; + 51D10D2E2808E2CA00E8CA3D /* MTRTestStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 51D10D2D2808E2CA00E8CA3D /* MTRTestStorage.m */; }; + 51E0310027EA20D20083DC9C /* MTRControllerAccessControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E030FE27EA20D20083DC9C /* MTRControllerAccessControl.h */; }; + 51E0310127EA20D20083DC9C /* MTRControllerAccessControl.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E030FF27EA20D20083DC9C /* MTRControllerAccessControl.mm */; }; + 51E24E73274E0DAC007CCF6E /* MTRErrorTestUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E24E72274E0DAC007CCF6E /* MTRErrorTestUtils.mm */; }; + 51E51FBF282AD37A00FC978D /* MTRDeviceControllerStartupParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E51FBC282AD37A00FC978D /* MTRDeviceControllerStartupParams.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 51E51FC0282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E51FBD282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h */; }; + 51E51FC1282AD37A00FC978D /* MTRDeviceControllerStartupParams.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E51FBE282AD37A00FC978D /* MTRDeviceControllerStartupParams.mm */; }; + 5A60370827EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A60370727EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h */; }; + 5A6FEC9027B563D900F25F42 /* MTRDeviceControllerOverXPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC8F27B563D900F25F42 /* MTRDeviceControllerOverXPC.m */; }; + 5A6FEC9227B5669C00F25F42 /* MTRDeviceControllerOverXPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC8D27B5624E00F25F42 /* MTRDeviceControllerOverXPC.h */; }; + 5A6FEC9627B5983000F25F42 /* MTRDeviceControllerXPCConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9527B5983000F25F42 /* MTRDeviceControllerXPCConnection.m */; }; + 5A6FEC9827B5C6AF00F25F42 /* MTRDeviceOverXPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9727B5C6AF00F25F42 /* MTRDeviceOverXPC.m */; }; + 5A6FEC9927B5C88900F25F42 /* MTRDeviceOverXPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC8B27B5609C00F25F42 /* MTRDeviceOverXPC.h */; }; + 5A6FEC9A27B5C89300F25F42 /* MTRDeviceControllerXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A6FEC9427B5976200F25F42 /* MTRDeviceControllerXPCConnection.h */; }; + 5A6FEC9D27B5E48900F25F42 /* MTRXPCProtocolTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A6FEC9C27B5E48800F25F42 /* MTRXPCProtocolTests.m */; }; + 5A7947DE27BEC3F500434CF2 /* MTRXPCListenerSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A7947DD27BEC3F500434CF2 /* MTRXPCListenerSampleTests.m */; }; + 5A7947E427C0129600434CF2 /* MTRDeviceController+XPC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A7947E327C0129500434CF2 /* MTRDeviceController+XPC.m */; }; + 5A7947E527C0129F00434CF2 /* MTRDeviceController+XPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A7947E227C0101200434CF2 /* MTRDeviceController+XPC.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5A830D6C27CFCF590053B85D /* MTRDeviceControllerOverXPC_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A830D6B27CFCF590053B85D /* MTRDeviceControllerOverXPC_Internal.h */; }; + 5ACDDD7A27CD129700EFD68A /* MTRAttributeCacheContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5ACDDD7927CD129700EFD68A /* MTRAttributeCacheContainer.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5ACDDD7D27CD16D200EFD68A /* MTRAttributeCacheContainer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5ACDDD7C27CD16D200EFD68A /* MTRAttributeCacheContainer.mm */; }; + 5ACDDD7E27CD3F3A00EFD68A /* MTRAttributeCacheContainer_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5ACDDD7B27CD14AF00EFD68A /* MTRAttributeCacheContainer_Internal.h */; }; + 5AE6D4E427A99041001F2493 /* MTRDeviceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AE6D4E327A99041001F2493 /* MTRDeviceTests.m */; }; + 754F3DF427FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 754F3DF327FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h */; }; + 7560FD1C27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7560FD1B27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm */; }; + 88EBF8CE27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CB27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 88EBF8CF27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 88EBF8CC27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm */; }; + 88EBF8D027FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CD27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h */; }; + 991DC0842475F45400C13860 /* MTRDeviceController.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC0822475F45400C13860 /* MTRDeviceController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 991DC0892475F47D00C13860 /* MTRDeviceController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 991DC0872475F47D00C13860 /* MTRDeviceController.mm */; }; + 991DC08B247704DC00C13860 /* MTRLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC08A247704DC00C13860 /* MTRLogging.h */; }; + 9956064426420367000C28DE /* MTRSetupPayload_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 9956064326420367000C28DE /* MTRSetupPayload_Internal.h */; }; + 997DED162695343400975E97 /* MTRThreadOperationalDataset.mm in Sources */ = {isa = PBXBuildFile; fileRef = 997DED152695343400975E97 /* MTRThreadOperationalDataset.mm */; }; + 997DED182695344800975E97 /* MTRThreadOperationalDataset.h in Headers */ = {isa = PBXBuildFile; fileRef = 997DED172695344800975E97 /* MTRThreadOperationalDataset.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 997DED1A26955D0200975E97 /* MTRThreadOperationalDatasetTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 997DED1926955D0200975E97 /* MTRThreadOperationalDatasetTests.mm */; }; + 998F286D26D55E10001846C6 /* MTRKeypair.h in Headers */ = {isa = PBXBuildFile; fileRef = 998F286C26D55E10001846C6 /* MTRKeypair.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 998F286F26D55EC5001846C6 /* MTRP256KeypairBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 998F286E26D55EC5001846C6 /* MTRP256KeypairBridge.h */; }; + 998F287126D56940001846C6 /* MTRP256KeypairBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 998F287026D56940001846C6 /* MTRP256KeypairBridge.mm */; }; + 99AECC802798A57F00B6355B /* MTRCommissioningParameters.m in Sources */ = {isa = PBXBuildFile; fileRef = 99AECC7F2798A57E00B6355B /* MTRCommissioningParameters.m */; }; + 99C65E10267282F1003402F6 /* MTRControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 99C65E0F267282F1003402F6 /* MTRControllerTests.m */; }; + 99D466E12798936D0089A18F /* MTRCommissioningParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = 99D466E02798936D0089A18F /* MTRCommissioningParameters.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B20252972459E34F00F97062 /* Matter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B202528D2459E34F00F97062 /* Matter.framework */; }; + B289D4212639C0D300D4E314 /* MTROnboardingPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B289D41F2639C0D300D4E314 /* MTROnboardingPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B289D4222639C0D300D4E314 /* MTROnboardingPayloadParser.m in Sources */ = {isa = PBXBuildFile; fileRef = B289D4202639C0D300D4E314 /* MTROnboardingPayloadParser.m */; }; + B2E0D7B1245B0B5C003C5B48 /* Matter.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7A8245B0B5C003C5B48 /* Matter.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B2E0D7B2245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7A9245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B2E0D7B3245B0B5C003C5B48 /* MTRError.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AA245B0B5C003C5B48 /* MTRError.mm */; }; + B2E0D7B4245B0B5C003C5B48 /* MTRError_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AB245B0B5C003C5B48 /* MTRError_Internal.h */; }; + B2E0D7B5245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AC245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B2E0D7B6245B0B5C003C5B48 /* MTRManualSetupPayloadParser.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AD245B0B5C003C5B48 /* MTRManualSetupPayloadParser.mm */; }; + B2E0D7B7245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7AE245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm */; }; + B2E0D7B8245B0B5C003C5B48 /* MTRSetupPayload.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AF245B0B5C003C5B48 /* MTRSetupPayload.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B2E0D7B9245B0B5C003C5B48 /* MTRSetupPayload.mm in Sources */ = {isa = PBXBuildFile; fileRef = B2E0D7B0245B0B5C003C5B48 /* MTRSetupPayload.mm */; }; + B2F53AF2245B0DCF0010745E /* MTRSetupPayloadParserTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F53AF1245B0DCF0010745E /* MTRSetupPayloadParserTests.m */; }; + BA09EB43247477BA00605257 /* libCHIP.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BA09EB3F2474762900605257 /* libCHIP.a */; }; + D4772A46285AE98400383630 /* MTRClusterConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = D4772A45285AE98300383630 /* MTRClusterConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + B20252982459E34F00F97062 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B20252842459E34F00F97062 /* Project object */; + proxyType = 1; + remoteGlobalIDString = B202528C2459E34F00F97062; + remoteInfo = CHP; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 1E857307265519AE0050A4D9 /* callback-stub.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "callback-stub.cpp"; path = "../../../../zzz_generated/controller-clusters/zap-generated/callback-stub.cpp"; sourceTree = ""; }; + 1EB41B7A263C4CC60048E4C1 /* MTRClustersTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRClustersTests.m; sourceTree = ""; }; + 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "cluster-objects.cpp"; path = "../../../../zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp"; sourceTree = ""; }; + 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRClustersObjc.mm; path = "zap-generated/MTRClustersObjc.mm"; sourceTree = ""; }; + 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRClustersObjc.h; path = "zap-generated/MTRClustersObjc.h"; sourceTree = ""; }; + 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRCallbackBridge.mm; path = "zap-generated/MTRCallbackBridge.mm"; sourceTree = ""; }; + 1ED276E126C5812A00547A89 /* MTRCluster.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRCluster.mm; sourceTree = ""; }; + 1ED276E326C5832500547A89 /* MTRCluster.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCluster.h; sourceTree = ""; }; + 27A53C1527FBC6920053F131 /* MTRAttestationTrustStoreBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRAttestationTrustStoreBridge.h; sourceTree = ""; }; + 27A53C1627FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRAttestationTrustStoreBridge.mm; sourceTree = ""; }; + 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTROperationalCredentialsDelegate.mm; sourceTree = ""; }; + 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTROperationalCredentialsDelegate.h; sourceTree = ""; }; + 2C222ACE255C620600E446B9 /* MTRDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevice.h; sourceTree = ""; }; + 2C222ACF255C620600E446B9 /* MTRDevice.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDevice.mm; sourceTree = ""; }; + 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevice_Internal.h; sourceTree = ""; }; + 2C4DF09D248B2C60009307CB /* libmbedtls.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmbedtls.a; path = lib/libmbedtls.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 2C5EEEF4268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceConnectionBridge.h; sourceTree = ""; }; + 2C5EEEF5268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceConnectionBridge.mm; sourceTree = ""; }; + 2C8C8FBD253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRPersistentStorageDelegateBridge.h; sourceTree = ""; }; + 2C8C8FBE253E0C2100797F05 /* MTRPersistentStorageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRPersistentStorageDelegate.h; sourceTree = ""; }; + 2C8C8FBF253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRPersistentStorageDelegateBridge.mm; sourceTree = ""; }; + 2CB71638252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevicePairingDelegateBridge.h; sourceTree = ""; }; + 2CB71639252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDevicePairingDelegateBridge.mm; sourceTree = ""; }; + 2CB7163E252F731E0026E2BB /* MTRDevicePairingDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevicePairingDelegate.h; sourceTree = ""; }; + 2FD775542695557E00FF4B12 /* error-mapping.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "error-mapping.cpp"; path = "../../../app/util/error-mapping.cpp"; sourceTree = ""; }; + 5129BCFC26A9EE3300122DDF /* MTRError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRError.h; sourceTree = ""; }; + 5136660F28067D540025EDAE /* MTRDeviceController_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceController_Internal.h; sourceTree = ""; }; + 5136661028067D540025EDAE /* MTRControllerFactory.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRControllerFactory.mm; sourceTree = ""; }; + 5136661128067D540025EDAE /* MTRControllerFactory_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRControllerFactory_Internal.h; sourceTree = ""; }; + 5136661228067D550025EDAE /* MTRControllerFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRControllerFactory.h; sourceTree = ""; }; + 513DDB852761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRAttributeTLVValueDecoder_Internal.h; sourceTree = ""; }; + 513DDB892761F6F900DAA01A /* MTRAttributeTLVValueDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRAttributeTLVValueDecoder.mm; path = "zap-generated/MTRAttributeTLVValueDecoder.mm"; sourceTree = ""; }; + 51431AF827D2973E008A7943 /* MTRIMDispatch.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRIMDispatch.mm; sourceTree = ""; }; + 51431AFA27D29CA4008A7943 /* ota-provider.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ota-provider.cpp"; path = "../../../app/clusters/ota-provider/ota-provider.cpp"; sourceTree = ""; }; + 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRMemory.mm; sourceTree = ""; }; + 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRMemory.h; sourceTree = ""; }; + 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCertificates.h; sourceTree = ""; }; + 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRCertificates.mm; sourceTree = ""; }; + 517BF3F2282B62CB00A8B7DB /* MTRCertificateTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRCertificateTests.m; sourceTree = ""; }; + 51B22C1D2740CB0A008D5055 /* MTRStructsObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRStructsObjc.h; path = "zap-generated/MTRStructsObjc.h"; sourceTree = ""; }; + 51B22C212740CB1D008D5055 /* MTRCommandPayloadsObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRCommandPayloadsObjc.h; path = "zap-generated/MTRCommandPayloadsObjc.h"; sourceTree = ""; }; + 51B22C252740CB32008D5055 /* MTRStructsObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRStructsObjc.mm; path = "zap-generated/MTRStructsObjc.mm"; sourceTree = ""; }; + 51B22C292740CB47008D5055 /* MTRCommandPayloadsObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRCommandPayloadsObjc.mm; path = "zap-generated/MTRCommandPayloadsObjc.mm"; sourceTree = ""; }; + 51C8E3F72825CDB600D47D00 /* MTRTestKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRTestKeys.m; sourceTree = ""; }; + 51D10D2D2808E2CA00E8CA3D /* MTRTestStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRTestStorage.m; sourceTree = ""; }; + 51E030FE27EA20D20083DC9C /* MTRControllerAccessControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRControllerAccessControl.h; sourceTree = ""; }; + 51E030FF27EA20D20083DC9C /* MTRControllerAccessControl.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRControllerAccessControl.mm; sourceTree = ""; }; + 51E24E72274E0DAC007CCF6E /* MTRErrorTestUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRErrorTestUtils.mm; sourceTree = ""; }; + 51E51FBC282AD37A00FC978D /* MTRDeviceControllerStartupParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerStartupParams.h; sourceTree = ""; }; + 51E51FBD282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerStartupParams_Internal.h; sourceTree = ""; }; + 51E51FBE282AD37A00FC978D /* MTRDeviceControllerStartupParams.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceControllerStartupParams.mm; sourceTree = ""; }; + 5A60370727EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MTRAttributeCacheContainer+XPC.h"; sourceTree = ""; }; + 5A6FEC8B27B5609C00F25F42 /* MTRDeviceOverXPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceOverXPC.h; sourceTree = ""; }; + 5A6FEC8D27B5624E00F25F42 /* MTRDeviceControllerOverXPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerOverXPC.h; sourceTree = ""; }; + 5A6FEC8F27B563D900F25F42 /* MTRDeviceControllerOverXPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRDeviceControllerOverXPC.m; sourceTree = ""; }; + 5A6FEC9427B5976200F25F42 /* MTRDeviceControllerXPCConnection.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerXPCConnection.h; sourceTree = ""; }; + 5A6FEC9527B5983000F25F42 /* MTRDeviceControllerXPCConnection.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRDeviceControllerXPCConnection.m; sourceTree = ""; }; + 5A6FEC9727B5C6AF00F25F42 /* MTRDeviceOverXPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRDeviceOverXPC.m; sourceTree = ""; }; + 5A6FEC9C27B5E48800F25F42 /* MTRXPCProtocolTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRXPCProtocolTests.m; sourceTree = ""; }; + 5A7947DD27BEC3F500434CF2 /* MTRXPCListenerSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRXPCListenerSampleTests.m; sourceTree = ""; }; + 5A7947E227C0101200434CF2 /* MTRDeviceController+XPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MTRDeviceController+XPC.h"; sourceTree = ""; }; + 5A7947E327C0129500434CF2 /* MTRDeviceController+XPC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "MTRDeviceController+XPC.m"; sourceTree = ""; }; + 5A830D6B27CFCF590053B85D /* MTRDeviceControllerOverXPC_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerOverXPC_Internal.h; sourceTree = ""; }; + 5ACDDD7927CD129700EFD68A /* MTRAttributeCacheContainer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRAttributeCacheContainer.h; sourceTree = ""; }; + 5ACDDD7B27CD14AF00EFD68A /* MTRAttributeCacheContainer_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRAttributeCacheContainer_Internal.h; sourceTree = ""; }; + 5ACDDD7C27CD16D200EFD68A /* MTRAttributeCacheContainer.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRAttributeCacheContainer.mm; sourceTree = ""; }; + 5AE6D4E327A99041001F2493 /* MTRDeviceTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRDeviceTests.m; sourceTree = ""; }; + 754F3DF327FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTREventTLVValueDecoder_Internal.h; sourceTree = ""; }; + 7560FD1B27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTREventTLVValueDecoder.mm; path = "zap-generated/MTREventTLVValueDecoder.mm"; sourceTree = ""; }; + 88EBF8CB27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceAttestationDelegate.h; sourceTree = ""; }; + 88EBF8CC27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceAttestationDelegateBridge.mm; sourceTree = ""; }; + 88EBF8CD27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceAttestationDelegateBridge.h; sourceTree = ""; }; + 991DC0822475F45400C13860 /* MTRDeviceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceController.h; sourceTree = ""; }; + 991DC0872475F47D00C13860 /* MTRDeviceController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceController.mm; sourceTree = ""; }; + 991DC08A247704DC00C13860 /* MTRLogging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRLogging.h; sourceTree = ""; }; + 9956064326420367000C28DE /* MTRSetupPayload_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRSetupPayload_Internal.h; sourceTree = ""; }; + 997DED152695343400975E97 /* MTRThreadOperationalDataset.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRThreadOperationalDataset.mm; sourceTree = ""; }; + 997DED172695344800975E97 /* MTRThreadOperationalDataset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRThreadOperationalDataset.h; sourceTree = ""; }; + 997DED1926955D0200975E97 /* MTRThreadOperationalDatasetTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRThreadOperationalDatasetTests.mm; sourceTree = ""; }; + 998F286C26D55E10001846C6 /* MTRKeypair.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRKeypair.h; sourceTree = ""; }; + 998F286E26D55EC5001846C6 /* MTRP256KeypairBridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRP256KeypairBridge.h; sourceTree = ""; }; + 998F287026D56940001846C6 /* MTRP256KeypairBridge.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRP256KeypairBridge.mm; sourceTree = ""; }; + 99AECC7F2798A57E00B6355B /* MTRCommissioningParameters.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRCommissioningParameters.m; sourceTree = ""; }; + 99C65E0F267282F1003402F6 /* MTRControllerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRControllerTests.m; sourceTree = ""; }; + 99D466E02798936D0089A18F /* MTRCommissioningParameters.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRCommissioningParameters.h; sourceTree = ""; }; + B202528D2459E34F00F97062 /* Matter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Matter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + B20252912459E34F00F97062 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B20252962459E34F00F97062 /* MatterTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MatterTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + B202529D2459E34F00F97062 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B289D41F2639C0D300D4E314 /* MTROnboardingPayloadParser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTROnboardingPayloadParser.h; sourceTree = ""; }; + B289D4202639C0D300D4E314 /* MTROnboardingPayloadParser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTROnboardingPayloadParser.m; sourceTree = ""; }; + B2E0D7A8245B0B5C003C5B48 /* Matter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Matter.h; sourceTree = ""; }; + B2E0D7A9245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRManualSetupPayloadParser.h; sourceTree = ""; }; + B2E0D7AA245B0B5C003C5B48 /* MTRError.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRError.mm; sourceTree = ""; }; + B2E0D7AB245B0B5C003C5B48 /* MTRError_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRError_Internal.h; sourceTree = ""; }; + B2E0D7AC245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRQRCodeSetupPayloadParser.h; sourceTree = ""; }; + B2E0D7AD245B0B5C003C5B48 /* MTRManualSetupPayloadParser.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRManualSetupPayloadParser.mm; sourceTree = ""; }; + B2E0D7AE245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRQRCodeSetupPayloadParser.mm; sourceTree = ""; }; + B2E0D7AF245B0B5C003C5B48 /* MTRSetupPayload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRSetupPayload.h; sourceTree = ""; }; + B2E0D7B0245B0B5C003C5B48 /* MTRSetupPayload.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRSetupPayload.mm; sourceTree = ""; }; + B2F53AF1245B0DCF0010745E /* MTRSetupPayloadParserTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRSetupPayloadParserTests.m; sourceTree = ""; }; + BA09EB3F2474762900605257 /* libCHIP.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libCHIP.a; path = lib/libCHIP.a; sourceTree = BUILT_PRODUCTS_DIR; }; + BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = chip_xcode_build_connector.sh; sourceTree = ""; }; + D437613E285BDC0D0051FEA2 /* MTRErrorTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRErrorTestUtils.h; sourceTree = ""; }; + D437613F285BDC0D0051FEA2 /* MTRTestKeys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRTestKeys.h; sourceTree = ""; }; + D4376140285BDC0D0051FEA2 /* MTRTestStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRTestStorage.h; sourceTree = ""; }; + D4772A45285AE98300383630 /* MTRClusterConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRClusterConstants.h; path = "zap-generated/MTRClusterConstants.h"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B202528A2459E34F00F97062 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + BA09EB43247477BA00605257 /* libCHIP.a in Frameworks */, + 2C4DF09E248B2C60009307CB /* libmbedtls.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B20252932459E34F00F97062 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B20252972459E34F00F97062 /* Matter.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1E857311265519DE0050A4D9 /* CHIPApp */ = { + isa = PBXGroup; + children = ( + 2FD775542695557E00FF4B12 /* error-mapping.cpp */, + 51431AFA27D29CA4008A7943 /* ota-provider.cpp */, + ); + name = CHIPApp; + sourceTree = ""; + }; + 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */ = { + isa = PBXGroup; + children = ( + 513DDB892761F6F900DAA01A /* MTRAttributeTLVValueDecoder.mm */, + 7560FD1B27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm */, + 51B22C292740CB47008D5055 /* MTRCommandPayloadsObjc.mm */, + 51B22C252740CB32008D5055 /* MTRStructsObjc.mm */, + 51B22C212740CB1D008D5055 /* MTRCommandPayloadsObjc.h */, + 51B22C1D2740CB0A008D5055 /* MTRStructsObjc.h */, + 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */, + 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */, + 1E857307265519AE0050A4D9 /* callback-stub.cpp */, + 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */, + 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */, + D4772A45285AE98300383630 /* MTRClusterConstants.h */, + ); + name = CHIPGeneratedFiles; + sourceTree = ""; + }; + B20252832459E34F00F97062 = { + isa = PBXGroup; + children = ( + BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */, + B202528F2459E34F00F97062 /* CHIP */, + B202529A2459E34F00F97062 /* CHIPTests */, + B202528E2459E34F00F97062 /* Products */, + BA09EB3E2474762900605257 /* Frameworks */, + ); + sourceTree = ""; + }; + B202528E2459E34F00F97062 /* Products */ = { + isa = PBXGroup; + children = ( + B202528D2459E34F00F97062 /* Matter.framework */, + B20252962459E34F00F97062 /* MatterTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + B202528F2459E34F00F97062 /* CHIP */ = { + isa = PBXGroup; + children = ( + 27A53C1527FBC6920053F131 /* MTRAttestationTrustStoreBridge.h */, + 27A53C1627FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm */, + 88EBF8CB27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h */, + 88EBF8CD27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h */, + 88EBF8CC27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm */, + 513DDB852761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h */, + 754F3DF327FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h */, + 1ED276E326C5832500547A89 /* MTRCluster.h */, + 1ED276E126C5812A00547A89 /* MTRCluster.mm */, + 2C5EEEF4268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h */, + 51431AF827D2973E008A7943 /* MTRIMDispatch.mm */, + 51E030FE27EA20D20083DC9C /* MTRControllerAccessControl.h */, + 51E030FF27EA20D20083DC9C /* MTRControllerAccessControl.mm */, + 2C5EEEF5268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm */, + 1E857311265519DE0050A4D9 /* CHIPApp */, + 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */, + 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */, + 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */, + 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */, + 2C222ACE255C620600E446B9 /* MTRDevice.h */, + 2C222ACF255C620600E446B9 /* MTRDevice.mm */, + 2C8C8FBE253E0C2100797F05 /* MTRPersistentStorageDelegate.h */, + 5ACDDD7927CD129700EFD68A /* MTRAttributeCacheContainer.h */, + 5A60370727EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h */, + 5ACDDD7B27CD14AF00EFD68A /* MTRAttributeCacheContainer_Internal.h */, + 5ACDDD7C27CD16D200EFD68A /* MTRAttributeCacheContainer.mm */, + 997DED152695343400975E97 /* MTRThreadOperationalDataset.mm */, + 997DED172695344800975E97 /* MTRThreadOperationalDataset.h */, + 2C8C8FBD253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h */, + 2C8C8FBF253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.mm */, + 99D466E02798936D0089A18F /* MTRCommissioningParameters.h */, + 99AECC7F2798A57E00B6355B /* MTRCommissioningParameters.m */, + 2CB7163E252F731E0026E2BB /* MTRDevicePairingDelegate.h */, + 2CB71638252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.h */, + 2CB71639252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.mm */, + B2E0D7A8245B0B5C003C5B48 /* Matter.h */, + B2E0D7AB245B0B5C003C5B48 /* MTRError_Internal.h */, + 5129BCFC26A9EE3300122DDF /* MTRError.h */, + B2E0D7AA245B0B5C003C5B48 /* MTRError.mm */, + 991DC08A247704DC00C13860 /* MTRLogging.h */, + B289D41F2639C0D300D4E314 /* MTROnboardingPayloadParser.h */, + B289D4202639C0D300D4E314 /* MTROnboardingPayloadParser.m */, + B2E0D7A9245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h */, + B2E0D7AD245B0B5C003C5B48 /* MTRManualSetupPayloadParser.mm */, + B2E0D7AC245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h */, + B2E0D7AE245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm */, + B2E0D7AF245B0B5C003C5B48 /* MTRSetupPayload.h */, + 9956064326420367000C28DE /* MTRSetupPayload_Internal.h */, + B2E0D7B0245B0B5C003C5B48 /* MTRSetupPayload.mm */, + 991DC0822475F45400C13860 /* MTRDeviceController.h */, + 991DC0872475F47D00C13860 /* MTRDeviceController.mm */, + 5136660F28067D540025EDAE /* MTRDeviceController_Internal.h */, + 5136661128067D540025EDAE /* MTRControllerFactory_Internal.h */, + 51E51FBD282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h */, + 51E51FBC282AD37A00FC978D /* MTRDeviceControllerStartupParams.h */, + 51E51FBE282AD37A00FC978D /* MTRDeviceControllerStartupParams.mm */, + 5136661228067D550025EDAE /* MTRControllerFactory.h */, + 5136661028067D540025EDAE /* MTRControllerFactory.mm */, + 5A7947E227C0101200434CF2 /* MTRDeviceController+XPC.h */, + 517BF3EE282B62B800A8B7DB /* MTRCertificates.h */, + 517BF3EF282B62B800A8B7DB /* MTRCertificates.mm */, + 515C1C6E284F9FFB00A48F0C /* MTRMemory.h */, + 515C1C6D284F9FFB00A48F0C /* MTRMemory.mm */, + 5A7947E327C0129500434CF2 /* MTRDeviceController+XPC.m */, + B20252912459E34F00F97062 /* Info.plist */, + 998F286C26D55E10001846C6 /* MTRKeypair.h */, + 998F286E26D55EC5001846C6 /* MTRP256KeypairBridge.h */, + 998F287026D56940001846C6 /* MTRP256KeypairBridge.mm */, + 5A6FEC8B27B5609C00F25F42 /* MTRDeviceOverXPC.h */, + 5A6FEC9727B5C6AF00F25F42 /* MTRDeviceOverXPC.m */, + 5A6FEC8D27B5624E00F25F42 /* MTRDeviceControllerOverXPC.h */, + 5A830D6B27CFCF590053B85D /* MTRDeviceControllerOverXPC_Internal.h */, + 5A6FEC8F27B563D900F25F42 /* MTRDeviceControllerOverXPC.m */, + 5A6FEC9427B5976200F25F42 /* MTRDeviceControllerXPCConnection.h */, + 5A6FEC9527B5983000F25F42 /* MTRDeviceControllerXPCConnection.m */, + ); + path = CHIP; + sourceTree = ""; + }; + B202529A2459E34F00F97062 /* CHIPTests */ = { + isa = PBXGroup; + children = ( + D437613E285BDC0D0051FEA2 /* MTRErrorTestUtils.h */, + D437613F285BDC0D0051FEA2 /* MTRTestKeys.h */, + D4376140285BDC0D0051FEA2 /* MTRTestStorage.h */, + 51E24E72274E0DAC007CCF6E /* MTRErrorTestUtils.mm */, + 51C8E3F72825CDB600D47D00 /* MTRTestKeys.m */, + 51D10D2D2808E2CA00E8CA3D /* MTRTestStorage.m */, + 1EB41B7A263C4CC60048E4C1 /* MTRClustersTests.m */, + 99C65E0F267282F1003402F6 /* MTRControllerTests.m */, + 5AE6D4E327A99041001F2493 /* MTRDeviceTests.m */, + 5A6FEC9C27B5E48800F25F42 /* MTRXPCProtocolTests.m */, + 5A7947DD27BEC3F500434CF2 /* MTRXPCListenerSampleTests.m */, + B2F53AF1245B0DCF0010745E /* MTRSetupPayloadParserTests.m */, + 997DED1926955D0200975E97 /* MTRThreadOperationalDatasetTests.mm */, + 517BF3F2282B62CB00A8B7DB /* MTRCertificateTests.m */, + B202529D2459E34F00F97062 /* Info.plist */, + ); + path = CHIPTests; + sourceTree = ""; + }; + BA09EB3E2474762900605257 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2C4DF09D248B2C60009307CB /* libmbedtls.a */, + BA09EB3F2474762900605257 /* libCHIP.a */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + B20252882459E34F00F97062 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 517BF3F0282B62B800A8B7DB /* MTRCertificates.h in Headers */, + 51E51FBF282AD37A00FC978D /* MTRDeviceControllerStartupParams.h in Headers */, + 5136661628067D550025EDAE /* MTRControllerFactory.h in Headers */, + 5A6FEC9927B5C88900F25F42 /* MTRDeviceOverXPC.h in Headers */, + 51B22C222740CB1D008D5055 /* MTRCommandPayloadsObjc.h in Headers */, + 51B22C1E2740CB0A008D5055 /* MTRStructsObjc.h in Headers */, + 2CB7163B252E8A7B0026E2BB /* MTRDevicePairingDelegateBridge.h in Headers */, + 5ACDDD7A27CD129700EFD68A /* MTRAttributeCacheContainer.h in Headers */, + 5A6FEC9227B5669C00F25F42 /* MTRDeviceControllerOverXPC.h in Headers */, + 2C1B027B2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h in Headers */, + 99D466E12798936D0089A18F /* MTRCommissioningParameters.h in Headers */, + 5136661528067D550025EDAE /* MTRControllerFactory_Internal.h in Headers */, + 515C1C70284F9FFB00A48F0C /* MTRMemory.h in Headers */, + D4772A46285AE98400383630 /* MTRClusterConstants.h in Headers */, + B289D4212639C0D300D4E314 /* MTROnboardingPayloadParser.h in Headers */, + 513DDB862761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h in Headers */, + 2CB7163F252F731E0026E2BB /* MTRDevicePairingDelegate.h in Headers */, + 88EBF8CE27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h in Headers */, + 2C222AD0255C620600E446B9 /* MTRDevice.h in Headers */, + 991DC0842475F45400C13860 /* MTRDeviceController.h in Headers */, + 754F3DF427FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h in Headers */, + B2E0D7B2245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h in Headers */, + B2E0D7B1245B0B5C003C5B48 /* Matter.h in Headers */, + B2E0D7B8245B0B5C003C5B48 /* MTRSetupPayload.h in Headers */, + 997DED182695344800975E97 /* MTRThreadOperationalDataset.h in Headers */, + 9956064426420367000C28DE /* MTRSetupPayload_Internal.h in Headers */, + 27A53C1727FBC6920053F131 /* MTRAttestationTrustStoreBridge.h in Headers */, + 5A830D6C27CFCF590053B85D /* MTRDeviceControllerOverXPC_Internal.h in Headers */, + 88EBF8D027FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h in Headers */, + 5A60370827EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h in Headers */, + 5ACDDD7E27CD3F3A00EFD68A /* MTRAttributeCacheContainer_Internal.h in Headers */, + 5136661328067D550025EDAE /* MTRDeviceController_Internal.h in Headers */, + 998F286D26D55E10001846C6 /* MTRKeypair.h in Headers */, + 1ED276E426C5832500547A89 /* MTRCluster.h in Headers */, + 5A6FEC9A27B5C89300F25F42 /* MTRDeviceControllerXPCConnection.h in Headers */, + 5129BCFD26A9EE3300122DDF /* MTRError.h in Headers */, + 2C8C8FC1253E0C2100797F05 /* MTRPersistentStorageDelegate.h in Headers */, + B2E0D7B5245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h in Headers */, + 1EC4CE6425CC276600D7304F /* MTRClustersObjc.h in Headers */, + 2C5EEEF6268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h in Headers */, + 2C8C8FC0253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h in Headers */, + 51E51FC0282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h in Headers */, + 998F286F26D55EC5001846C6 /* MTRP256KeypairBridge.h in Headers */, + 2C222ADF255C811800E446B9 /* MTRDevice_Internal.h in Headers */, + 51E0310027EA20D20083DC9C /* MTRControllerAccessControl.h in Headers */, + 991DC08B247704DC00C13860 /* MTRLogging.h in Headers */, + 5A7947E527C0129F00434CF2 /* MTRDeviceController+XPC.h in Headers */, + B2E0D7B4245B0B5C003C5B48 /* MTRError_Internal.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + B202528C2459E34F00F97062 /* Matter */ = { + isa = PBXNativeTarget; + buildConfigurationList = B20252A12459E34F00F97062 /* Build configuration list for PBXNativeTarget "Matter" */; + buildPhases = ( + 0C40A67D246C9AC700885C81 /* Run Script */, + B20252882459E34F00F97062 /* Headers */, + B20252892459E34F00F97062 /* Sources */, + B202528A2459E34F00F97062 /* Frameworks */, + B202528B2459E34F00F97062 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Matter; + productName = CHP; + productReference = B202528D2459E34F00F97062 /* Matter.framework */; + productType = "com.apple.product-type.framework"; + }; + B20252952459E34F00F97062 /* MatterTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B20252A42459E34F00F97062 /* Build configuration list for PBXNativeTarget "MatterTests" */; + buildPhases = ( + B20252922459E34F00F97062 /* Sources */, + B20252932459E34F00F97062 /* Frameworks */, + B20252942459E34F00F97062 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B20252992459E34F00F97062 /* PBXTargetDependency */, + ); + name = MatterTests; + productName = CHPTests; + productReference = B20252962459E34F00F97062 /* MatterTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B20252842459E34F00F97062 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1140; + ORGANIZATIONNAME = CHIP; + TargetAttributes = { + B202528C2459E34F00F97062 = { + CreatedOnToolsVersion = 11.4.1; + }; + B20252952459E34F00F97062 = { + CreatedOnToolsVersion = 11.4.1; + }; + }; + }; + buildConfigurationList = B20252872459E34F00F97062 /* Build configuration list for PBXProject "Matter" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B20252832459E34F00F97062; + productRefGroup = B202528E2459E34F00F97062 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B202528C2459E34F00F97062 /* Matter */, + B20252952459E34F00F97062 /* MatterTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B202528B2459E34F00F97062 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B20252942459E34F00F97062 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0C40A67D246C9AC700885C81 /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "./chip_xcode_build_connector.sh\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B20252892459E34F00F97062 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2C8C8FC2253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.mm in Sources */, + 99AECC802798A57F00B6355B /* MTRCommissioningParameters.m in Sources */, + 2CB7163C252E8A7C0026E2BB /* MTRDevicePairingDelegateBridge.mm in Sources */, + 997DED162695343400975E97 /* MTRThreadOperationalDataset.mm in Sources */, + 515C1C6F284F9FFB00A48F0C /* MTRMemory.mm in Sources */, + 27A53C1827FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm in Sources */, + 998F287126D56940001846C6 /* MTRP256KeypairBridge.mm in Sources */, + 5136661428067D550025EDAE /* MTRControllerFactory.mm in Sources */, + 51B22C2A2740CB47008D5055 /* MTRCommandPayloadsObjc.mm in Sources */, + 2C5EEEF7268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm in Sources */, + 51B22C262740CB32008D5055 /* MTRStructsObjc.mm in Sources */, + 2C222AD1255C620600E446B9 /* MTRDevice.mm in Sources */, + 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */, + 991DC0892475F47D00C13860 /* MTRDeviceController.mm in Sources */, + B2E0D7B7245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm in Sources */, + 1EC4CE5D25CC26E900D7304F /* MTRClustersObjc.mm in Sources */, + 51E0310127EA20D20083DC9C /* MTRControllerAccessControl.mm in Sources */, + 1ED276E226C5812A00547A89 /* MTRCluster.mm in Sources */, + B2E0D7B3245B0B5C003C5B48 /* MTRError.mm in Sources */, + 1E85730C265519AE0050A4D9 /* callback-stub.cpp in Sources */, + 51E51FC1282AD37A00FC978D /* MTRDeviceControllerStartupParams.mm in Sources */, + 1ED276E026C57CF000547A89 /* MTRCallbackBridge.mm in Sources */, + 517BF3F1282B62B800A8B7DB /* MTRCertificates.mm in Sources */, + 5A6FEC9627B5983000F25F42 /* MTRDeviceControllerXPCConnection.m in Sources */, + 5ACDDD7D27CD16D200EFD68A /* MTRAttributeCacheContainer.mm in Sources */, + 513DDB8A2761F6F900DAA01A /* MTRAttributeTLVValueDecoder.mm in Sources */, + 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */, + 5A7947E427C0129600434CF2 /* MTRDeviceController+XPC.m in Sources */, + 5A6FEC9027B563D900F25F42 /* MTRDeviceControllerOverXPC.m in Sources */, + B289D4222639C0D300D4E314 /* MTROnboardingPayloadParser.m in Sources */, + 2C1B027A2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm in Sources */, + 7560FD1C27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm in Sources */, + B2E0D7B9245B0B5C003C5B48 /* MTRSetupPayload.mm in Sources */, + B2E0D7B6245B0B5C003C5B48 /* MTRManualSetupPayloadParser.mm in Sources */, + 88EBF8CF27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm in Sources */, + 5A6FEC9827B5C6AF00F25F42 /* MTRDeviceOverXPC.m in Sources */, + 51431AF927D2973E008A7943 /* MTRIMDispatch.mm in Sources */, + 51431AFB27D29CA4008A7943 /* ota-provider.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B20252922459E34F00F97062 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51D10D2E2808E2CA00E8CA3D /* MTRTestStorage.m in Sources */, + 1EB41B7B263C4CC60048E4C1 /* MTRClustersTests.m in Sources */, + 997DED1A26955D0200975E97 /* MTRThreadOperationalDatasetTests.mm in Sources */, + 51C8E3F82825CDB600D47D00 /* MTRTestKeys.m in Sources */, + 99C65E10267282F1003402F6 /* MTRControllerTests.m in Sources */, + 5A6FEC9D27B5E48900F25F42 /* MTRXPCProtocolTests.m in Sources */, + 5AE6D4E427A99041001F2493 /* MTRDeviceTests.m in Sources */, + 5A7947DE27BEC3F500434CF2 /* MTRXPCListenerSampleTests.m in Sources */, + B2F53AF2245B0DCF0010745E /* MTRSetupPayloadParserTests.m in Sources */, + 517BF3F3282B62CB00A8B7DB /* MTRCertificateTests.m in Sources */, + 51E24E73274E0DAC007CCF6E /* MTRErrorTestUtils.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + B20252992459E34F00F97062 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B202528C2459E34F00F97062 /* Matter */; + targetProxy = B20252982459E34F00F97062 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + BA09EB732474881D00605257 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = "-Wl,-unexported_symbol,\"__Z*\""; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; + SUPPORTS_TEXT_BASED_API = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + BA09EB742474881D00605257 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CHIP_ROOT = "$(PROJECT_DIR)/../../.."; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREPROCESSOR_DEFINITIONS = ( + CHIP_HAVE_CONFIG_H, + "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", + "$(inherited)", + ); + HEADER_SEARCH_PATHS = ( + "$(CHIP_ROOT)/src", + "$(CHIP_ROOT)/src/include", + "$(CHIP_ROOT)/src/lib", + "$(CHIP_ROOT)/src/app", + "$(CHIP_ROOT)/config/ios", + "$(CHIP_ROOT)/third_party/nlassert/repo/include", + "$(CHIP_ROOT)/src/darwin/Framework/CHIP/", + "$(CHIP_ROOT)/src/app/util", + "$(CHIP_ROOT)/third_party/nlio/repo/include", + "$(TEMP_DIR)/out/gen/include", + "$(CHIP_ROOT)/zzz_generated/", + "$(CHIP_ROOT)/zzz_generated/app-common", + "$(CHIP_ROOT)/zzz_generated/controller-clusters", + ); + INFOPLIST_FILE = CHIP/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LIBRARY_SEARCH_PATHS = "$(TEMP_DIR)/out/lib"; + OTHER_CFLAGS = ( + "-Wformat", + "-Wformat-nonliteral", + "-Wformat-security", + ); + OTHER_LDFLAGS = ""; + "OTHER_LDFLAGS[sdk=*]" = ( + "-framework", + CoreData, + "-framework", + Foundation, + "-framework", + CoreBluetooth, + "-lnetwork", + "-Wl,-unexported_symbol,\"__Z*\"", + ); + "OTHER_LDFLAGS[sdk=macosx*]" = ( + "-framework", + IOKit, + "-lnetwork", + "-framework", + CoreBluetooth, + "-framework", + CoreData, + "-Wl,-unexported_symbol,\"__Z*\"", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.csa.matter; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BA09EB752474881D00605257 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + "HEADER_SEARCH_PATHS[arch=*]" = "$(PROJECT_DIR)/../../../src"; + INFOPLIST_FILE = CHIPTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BA09EB772474882200605257 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ""; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = "-Wl,-unexported_symbol,\"__Z*\""; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; + SUPPORTS_TEXT_BASED_API = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + BA09EB782474882200605257 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CHIP_ROOT = "$(PROJECT_DIR)/../../.."; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREPROCESSOR_DEFINITIONS = ( + CHIP_HAVE_CONFIG_H, + "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", + "$(inherited)", + ); + HEADER_SEARCH_PATHS = ( + "$(CHIP_ROOT)/src", + "$(CHIP_ROOT)/src/include", + "$(CHIP_ROOT)/src/lib", + "$(CHIP_ROOT)/src/app", + "$(CHIP_ROOT)/config/ios", + "$(CHIP_ROOT)/third_party/nlassert/repo/include", + "$(CHIP_ROOT)/src/darwin/Framework/CHIP/", + "$(CHIP_ROOT)/src/app/util", + "$(CHIP_ROOT)/third_party/nlio/repo/include", + "$(TEMP_DIR)/out/gen/include", + "$(CHIP_ROOT)/zzz_generated/", + "$(CHIP_ROOT)/zzz_generated/app-common", + "$(CHIP_ROOT)/zzz_generated/controller-clusters", + ); + INFOPLIST_FILE = CHIP/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LIBRARY_SEARCH_PATHS = "$(TEMP_DIR)/out/lib"; + OTHER_CFLAGS = ( + "-Wformat", + "-Wformat-nonliteral", + "-Wformat-security", + ); + OTHER_LDFLAGS = ""; + "OTHER_LDFLAGS[arch=*]" = ( + "-lnetwork", + "-framework", + Foundation, + "-framework", + CoreBluetooth, + "-framework", + CoreData, + "-Wl,-unexported_symbol,\"__Z*\"", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.csa.matter; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + STRIP_STYLE = "non-global"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + BA09EB792474882200605257 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + "HEADER_SEARCH_PATHS[arch=*]" = "$(PROJECT_DIR)/../../../src"; + INFOPLIST_FILE = CHIPTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.chip.CHIPTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B20252872459E34F00F97062 /* Build configuration list for PBXProject "Matter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BA09EB732474881D00605257 /* Debug */, + BA09EB772474882200605257 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B20252A12459E34F00F97062 /* Build configuration list for PBXNativeTarget "Matter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BA09EB742474881D00605257 /* Debug */, + BA09EB782474882200605257 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B20252A42459E34F00F97062 /* Build configuration list for PBXNativeTarget "MatterTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BA09EB752474881D00605257 /* Debug */, + BA09EB792474882200605257 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = B20252842459E34F00F97062 /* Project object */; +} diff --git a/src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework Tests.xcscheme b/src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework Tests.xcscheme similarity index 82% rename from src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework Tests.xcscheme rename to src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework Tests.xcscheme index 1003bb2f9436d4..a0fb4215189540 100644 --- a/src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework Tests.xcscheme +++ b/src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework Tests.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "MatterTests.xctest" + BlueprintName = "MatterTests" + ReferencedContainer = "container:Matter.xcodeproj"> @@ -33,19 +33,19 @@ + BuildableName = "MatterTests.xctest" + BlueprintName = "MatterTests" + ReferencedContainer = "container:Matter.xcodeproj"> + Identifier = "MTRDeviceTests"> + Identifier = "MTRRemoteDeviceSampleTests"> + Identifier = "MTRXPCListenerSampleTests"> diff --git a/src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework.xcscheme b/src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework.xcscheme similarity index 87% rename from src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework.xcscheme rename to src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework.xcscheme index 5755022d721cb1..daea75f7e7e690 100644 --- a/src/darwin/Framework/CHIP.xcodeproj/xcshareddata/xcschemes/CHIP Framework.xcscheme +++ b/src/darwin/Framework/Matter.xcodeproj/xcshareddata/xcschemes/Matter Framework.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "Matter.framework" + BlueprintName = "Matter" + ReferencedContainer = "container:Matter.xcodeproj"> @@ -51,9 +51,9 @@ + BuildableName = "Matter.framework" + BlueprintName = "Matter" + ReferencedContainer = "container:Matter.xcodeproj"> diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index 16537d47bafcf2..4c801a043f15c7 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -19,7 +19,7 @@ #pragma once -#import +#import #include #include @@ -182,13 +182,13 @@ class IdentifyIdentify : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPIdentifyClusterIdentifyParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.identifyTime = [NSNumber numberWithUnsignedShort:mRequest.identifyTime]; @@ -227,13 +227,13 @@ class IdentifyTriggerEffect : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.effectIdentifier = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.effectIdentifier)]; @@ -272,12 +272,12 @@ class ReadIdentifyIdentifyTime : public ReadAttribute { ~ReadIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.IdentifyTime response %@", [value description]); if (error != nil) { @@ -301,12 +301,12 @@ class WriteIdentifyIdentifyTime : public WriteAttribute { ~WriteIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -336,12 +336,12 @@ class SubscribeAttributeIdentifyIdentifyTime : public SubscribeAttribute { ~SubscribeAttributeIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -374,12 +374,12 @@ class ReadIdentifyIdentifyType : public ReadAttribute { ~ReadIdentifyIdentifyType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.IdentifyType response %@", [value description]); if (error != nil) { @@ -400,12 +400,12 @@ class SubscribeAttributeIdentifyIdentifyType : public SubscribeAttribute { ~SubscribeAttributeIdentifyIdentifyType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -438,12 +438,12 @@ class ReadIdentifyGeneratedCommandList : public ReadAttribute { ~ReadIdentifyGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -464,12 +464,12 @@ class SubscribeAttributeIdentifyGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeIdentifyGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -502,12 +502,12 @@ class ReadIdentifyAcceptedCommandList : public ReadAttribute { ~ReadIdentifyAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -528,12 +528,12 @@ class SubscribeAttributeIdentifyAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeIdentifyAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -566,12 +566,12 @@ class ReadIdentifyAttributeList : public ReadAttribute { ~ReadIdentifyAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.AttributeList response %@", [value description]); if (error != nil) { @@ -592,12 +592,12 @@ class SubscribeAttributeIdentifyAttributeList : public SubscribeAttribute { ~SubscribeAttributeIdentifyAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -630,12 +630,12 @@ class ReadIdentifyFeatureMap : public ReadAttribute { ~ReadIdentifyFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.FeatureMap response %@", [value description]); if (error != nil) { @@ -656,12 +656,12 @@ class SubscribeAttributeIdentifyFeatureMap : public SubscribeAttribute { ~SubscribeAttributeIdentifyFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -694,12 +694,12 @@ class ReadIdentifyClusterRevision : public ReadAttribute { ~ReadIdentifyClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.ClusterRevision response %@", [value description]); if (error != nil) { @@ -720,12 +720,12 @@ class SubscribeAttributeIdentifyClusterRevision : public SubscribeAttribute { ~SubscribeAttributeIdentifyClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -781,13 +781,13 @@ class GroupsAddGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterAddGroupParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -798,7 +798,7 @@ class GroupsAddGroup : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster addGroupWithParams:params - completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -829,13 +829,13 @@ class GroupsViewGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -843,7 +843,7 @@ class GroupsViewGroup : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -875,13 +875,13 @@ class GroupsGetGroupMembership : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterGetGroupMembershipParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables @@ -897,7 +897,7 @@ class GroupsGetGroupMembership : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getGroupMembershipWithParams:params - completionHandler:^(CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, + completionHandler:^(MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -930,13 +930,13 @@ class GroupsRemoveGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterRemoveGroupParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -945,7 +945,7 @@ class GroupsRemoveGroup : public ClusterCommand { while (repeatCount--) { [cluster removeGroupWithParams:params - completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -975,13 +975,13 @@ class GroupsRemoveAllGroups : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterRemoveAllGroupsParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterRemoveAllGroupsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -1018,13 +1018,13 @@ class GroupsAddGroupIfIdentifying : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPGroupsClusterAddGroupIfIdentifyingParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRGroupsClusterAddGroupIfIdentifyingParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1065,12 +1065,12 @@ class ReadGroupsNameSupport : public ReadAttribute { ~ReadGroupsNameSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.NameSupport response %@", [value description]); if (error != nil) { @@ -1091,12 +1091,12 @@ class SubscribeAttributeGroupsNameSupport : public SubscribeAttribute { ~SubscribeAttributeGroupsNameSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1129,12 +1129,12 @@ class ReadGroupsGeneratedCommandList : public ReadAttribute { ~ReadGroupsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -1155,12 +1155,12 @@ class SubscribeAttributeGroupsGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeGroupsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1193,12 +1193,12 @@ class ReadGroupsAcceptedCommandList : public ReadAttribute { ~ReadGroupsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -1219,12 +1219,12 @@ class SubscribeAttributeGroupsAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeGroupsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1257,12 +1257,12 @@ class ReadGroupsAttributeList : public ReadAttribute { ~ReadGroupsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.AttributeList response %@", [value description]); if (error != nil) { @@ -1283,12 +1283,12 @@ class SubscribeAttributeGroupsAttributeList : public SubscribeAttribute { ~SubscribeAttributeGroupsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1321,12 +1321,12 @@ class ReadGroupsFeatureMap : public ReadAttribute { ~ReadGroupsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.FeatureMap response %@", [value description]); if (error != nil) { @@ -1347,12 +1347,12 @@ class SubscribeAttributeGroupsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeGroupsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1385,12 +1385,12 @@ class ReadGroupsClusterRevision : public ReadAttribute { ~ReadGroupsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.ClusterRevision response %@", [value description]); if (error != nil) { @@ -1411,12 +1411,12 @@ class SubscribeAttributeGroupsClusterRevision : public SubscribeAttribute { ~SubscribeAttributeGroupsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -1485,13 +1485,13 @@ class ScenesAddScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterAddSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterAddSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1503,14 +1503,14 @@ class ScenesAddScene : public ClusterCommand { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.extensionFieldSets) { - CHIPScenesClusterExtensionFieldSet * newElement_0; - newElement_0 = [CHIPScenesClusterExtensionFieldSet new]; + MTRScenesClusterExtensionFieldSet * newElement_0; + newElement_0 = [MTRScenesClusterExtensionFieldSet new]; newElement_0.clusterId = [NSNumber numberWithUnsignedInt:entry_0.clusterId]; { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; for (auto & entry_2 : entry_0.attributeValueList) { - CHIPScenesClusterAttributeValuePair * newElement_2; - newElement_2 = [CHIPScenesClusterAttributeValuePair new]; + MTRScenesClusterAttributeValuePair * newElement_2; + newElement_2 = [MTRScenesClusterAttributeValuePair new]; if (entry_2.attributeId.HasValue()) { newElement_2.attributeId = [NSNumber numberWithUnsignedInt:entry_2.attributeId.Value()]; } else { @@ -1537,7 +1537,7 @@ class ScenesAddScene : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster addSceneWithParams:params - completionHandler:^(CHIPScenesClusterAddSceneResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRScenesClusterAddSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1571,13 +1571,13 @@ class ScenesViewScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterViewSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterViewSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1586,7 +1586,7 @@ class ScenesViewScene : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster viewSceneWithParams:params - completionHandler:^(CHIPScenesClusterViewSceneResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRScenesClusterViewSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1618,13 +1618,13 @@ class ScenesRemoveScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterRemoveSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterRemoveSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1634,7 +1634,7 @@ class ScenesRemoveScene : public ClusterCommand { while (repeatCount--) { [cluster removeSceneWithParams:params - completionHandler:^(CHIPScenesClusterRemoveSceneResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRScenesClusterRemoveSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1665,13 +1665,13 @@ class ScenesRemoveAllScenes : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterRemoveAllScenesParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterRemoveAllScenesParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1680,7 +1680,7 @@ class ScenesRemoveAllScenes : public ClusterCommand { while (repeatCount--) { [cluster removeAllScenesWithParams:params completionHandler:^( - CHIPScenesClusterRemoveAllScenesResponseParams * _Nullable values, NSError * _Nullable error) { + MTRScenesClusterRemoveAllScenesResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1712,13 +1712,13 @@ class ScenesStoreScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterStoreSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterStoreSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1728,7 +1728,7 @@ class ScenesStoreScene : public ClusterCommand { while (repeatCount--) { [cluster storeSceneWithParams:params - completionHandler:^(CHIPScenesClusterStoreSceneResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRScenesClusterStoreSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1761,13 +1761,13 @@ class ScenesRecallScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterRecallSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterRecallSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1815,13 +1815,13 @@ class ScenesGetSceneMembership : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterGetSceneMembershipParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterGetSceneMembershipParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1829,7 +1829,7 @@ class ScenesGetSceneMembership : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getSceneMembershipWithParams:params - completionHandler:^(CHIPScenesClusterGetSceneMembershipResponseParams * _Nullable values, + completionHandler:^(MTRScenesClusterGetSceneMembershipResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -1866,13 +1866,13 @@ class ScenesEnhancedAddScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterEnhancedAddSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterEnhancedAddSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1884,14 +1884,14 @@ class ScenesEnhancedAddScene : public ClusterCommand { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.extensionFieldSets) { - CHIPScenesClusterExtensionFieldSet * newElement_0; - newElement_0 = [CHIPScenesClusterExtensionFieldSet new]; + MTRScenesClusterExtensionFieldSet * newElement_0; + newElement_0 = [MTRScenesClusterExtensionFieldSet new]; newElement_0.clusterId = [NSNumber numberWithUnsignedInt:entry_0.clusterId]; { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; for (auto & entry_2 : entry_0.attributeValueList) { - CHIPScenesClusterAttributeValuePair * newElement_2; - newElement_2 = [CHIPScenesClusterAttributeValuePair new]; + MTRScenesClusterAttributeValuePair * newElement_2; + newElement_2 = [MTRScenesClusterAttributeValuePair new]; if (entry_2.attributeId.HasValue()) { newElement_2.attributeId = [NSNumber numberWithUnsignedInt:entry_2.attributeId.Value()]; } else { @@ -1919,7 +1919,7 @@ class ScenesEnhancedAddScene : public ClusterCommand { while (repeatCount--) { [cluster enhancedAddSceneWithParams:params completionHandler:^( - CHIPScenesClusterEnhancedAddSceneResponseParams * _Nullable values, NSError * _Nullable error) { + MTRScenesClusterEnhancedAddSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -1953,13 +1953,13 @@ class ScenesEnhancedViewScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterEnhancedViewSceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterEnhancedViewSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupId = [NSNumber numberWithUnsignedShort:mRequest.groupId]; @@ -1969,7 +1969,7 @@ class ScenesEnhancedViewScene : public ClusterCommand { while (repeatCount--) { [cluster enhancedViewSceneWithParams:params completionHandler:^( - CHIPScenesClusterEnhancedViewSceneResponseParams * _Nullable values, NSError * _Nullable error) { + MTRScenesClusterEnhancedViewSceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -2004,13 +2004,13 @@ class ScenesCopyScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPScenesClusterCopySceneParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRScenesClusterCopySceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.mode = [NSNumber numberWithUnsignedChar:mRequest.mode.Raw()]; @@ -2022,7 +2022,7 @@ class ScenesCopyScene : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster copySceneWithParams:params - completionHandler:^(CHIPScenesClusterCopySceneResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRScenesClusterCopySceneResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -2053,12 +2053,12 @@ class ReadScenesSceneCount : public ReadAttribute { ~ReadScenesSceneCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSceneCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.SceneCount response %@", [value description]); if (error != nil) { @@ -2079,12 +2079,12 @@ class SubscribeAttributeScenesSceneCount : public SubscribeAttribute { ~SubscribeAttributeScenesSceneCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2117,12 +2117,12 @@ class ReadScenesCurrentScene : public ReadAttribute { ~ReadScenesCurrentScene() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentSceneWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.CurrentScene response %@", [value description]); if (error != nil) { @@ -2143,12 +2143,12 @@ class SubscribeAttributeScenesCurrentScene : public SubscribeAttribute { ~SubscribeAttributeScenesCurrentScene() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2181,12 +2181,12 @@ class ReadScenesCurrentGroup : public ReadAttribute { ~ReadScenesCurrentGroup() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentGroupWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.CurrentGroup response %@", [value description]); if (error != nil) { @@ -2207,12 +2207,12 @@ class SubscribeAttributeScenesCurrentGroup : public SubscribeAttribute { ~SubscribeAttributeScenesCurrentGroup() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2245,12 +2245,12 @@ class ReadScenesSceneValid : public ReadAttribute { ~ReadScenesSceneValid() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSceneValidWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.SceneValid response %@", [value description]); if (error != nil) { @@ -2271,12 +2271,12 @@ class SubscribeAttributeScenesSceneValid : public SubscribeAttribute { ~SubscribeAttributeScenesSceneValid() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2309,12 +2309,12 @@ class ReadScenesNameSupport : public ReadAttribute { ~ReadScenesNameSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.NameSupport response %@", [value description]); if (error != nil) { @@ -2335,12 +2335,12 @@ class SubscribeAttributeScenesNameSupport : public SubscribeAttribute { ~SubscribeAttributeScenesNameSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2373,12 +2373,12 @@ class ReadScenesLastConfiguredBy : public ReadAttribute { ~ReadScenesLastConfiguredBy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLastConfiguredByWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.LastConfiguredBy response %@", [value description]); if (error != nil) { @@ -2399,12 +2399,12 @@ class SubscribeAttributeScenesLastConfiguredBy : public SubscribeAttribute { ~SubscribeAttributeScenesLastConfiguredBy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2437,12 +2437,12 @@ class ReadScenesGeneratedCommandList : public ReadAttribute { ~ReadScenesGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -2463,12 +2463,12 @@ class SubscribeAttributeScenesGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeScenesGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2501,12 +2501,12 @@ class ReadScenesAcceptedCommandList : public ReadAttribute { ~ReadScenesAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -2527,12 +2527,12 @@ class SubscribeAttributeScenesAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeScenesAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2565,12 +2565,12 @@ class ReadScenesAttributeList : public ReadAttribute { ~ReadScenesAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.AttributeList response %@", [value description]); if (error != nil) { @@ -2591,12 +2591,12 @@ class SubscribeAttributeScenesAttributeList : public SubscribeAttribute { ~SubscribeAttributeScenesAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2629,12 +2629,12 @@ class ReadScenesFeatureMap : public ReadAttribute { ~ReadScenesFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.FeatureMap response %@", [value description]); if (error != nil) { @@ -2655,12 +2655,12 @@ class SubscribeAttributeScenesFeatureMap : public SubscribeAttribute { ~SubscribeAttributeScenesFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2693,12 +2693,12 @@ class ReadScenesClusterRevision : public ReadAttribute { ~ReadScenesClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.ClusterRevision response %@", [value description]); if (error != nil) { @@ -2719,12 +2719,12 @@ class SubscribeAttributeScenesClusterRevision : public SubscribeAttribute { ~SubscribeAttributeScenesClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -2782,13 +2782,13 @@ class OnOffOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterOffParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -2823,13 +2823,13 @@ class OnOffOn : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterOnParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterOnParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -2864,13 +2864,13 @@ class OnOffToggle : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterToggleParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterToggleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -2907,13 +2907,13 @@ class OnOffOffWithEffect : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterOffWithEffectParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterOffWithEffectParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.effectId = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.effectId)]; @@ -2951,13 +2951,13 @@ class OnOffOnWithRecallGlobalScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterOnWithRecallGlobalSceneParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterOnWithRecallGlobalSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -2995,13 +2995,13 @@ class OnOffOnWithTimedOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPOnOffClusterOnWithTimedOffParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTROnOffClusterOnWithTimedOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.onOffControl = [NSNumber numberWithUnsignedChar:mRequest.onOffControl.Raw()]; @@ -3041,12 +3041,12 @@ class ReadOnOffOnOff : public ReadAttribute { ~ReadOnOffOnOff() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OnOff response %@", [value description]); if (error != nil) { @@ -3067,12 +3067,12 @@ class SubscribeAttributeOnOffOnOff : public SubscribeAttribute { ~SubscribeAttributeOnOffOnOff() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3105,12 +3105,12 @@ class ReadOnOffGlobalSceneControl : public ReadAttribute { ~ReadOnOffGlobalSceneControl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.GlobalSceneControl response %@", [value description]); if (error != nil) { @@ -3131,12 +3131,12 @@ class SubscribeAttributeOnOffGlobalSceneControl : public SubscribeAttribute { ~SubscribeAttributeOnOffGlobalSceneControl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3169,12 +3169,12 @@ class ReadOnOffOnTime : public ReadAttribute { ~ReadOnOffOnTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OnTime response %@", [value description]); if (error != nil) { @@ -3198,12 +3198,12 @@ class WriteOnOffOnTime : public WriteAttribute { ~WriteOnOffOnTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -3233,12 +3233,12 @@ class SubscribeAttributeOnOffOnTime : public SubscribeAttribute { ~SubscribeAttributeOnOffOnTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3271,12 +3271,12 @@ class ReadOnOffOffWaitTime : public ReadAttribute { ~ReadOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OffWaitTime response %@", [value description]); if (error != nil) { @@ -3300,12 +3300,12 @@ class WriteOnOffOffWaitTime : public WriteAttribute { ~WriteOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -3335,12 +3335,12 @@ class SubscribeAttributeOnOffOffWaitTime : public SubscribeAttribute { ~SubscribeAttributeOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3373,12 +3373,12 @@ class ReadOnOffStartUpOnOff : public ReadAttribute { ~ReadOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.StartUpOnOff response %@", [value description]); if (error != nil) { @@ -3402,12 +3402,12 @@ class WriteOnOffStartUpOnOff : public WriteAttribute { ~WriteOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -3437,12 +3437,12 @@ class SubscribeAttributeOnOffStartUpOnOff : public SubscribeAttribute { ~SubscribeAttributeOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3475,12 +3475,12 @@ class ReadOnOffGeneratedCommandList : public ReadAttribute { ~ReadOnOffGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -3501,12 +3501,12 @@ class SubscribeAttributeOnOffGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeOnOffGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3539,12 +3539,12 @@ class ReadOnOffAcceptedCommandList : public ReadAttribute { ~ReadOnOffAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -3565,12 +3565,12 @@ class SubscribeAttributeOnOffAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeOnOffAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3603,12 +3603,12 @@ class ReadOnOffAttributeList : public ReadAttribute { ~ReadOnOffAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.AttributeList response %@", [value description]); if (error != nil) { @@ -3629,12 +3629,12 @@ class SubscribeAttributeOnOffAttributeList : public SubscribeAttribute { ~SubscribeAttributeOnOffAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3667,12 +3667,12 @@ class ReadOnOffFeatureMap : public ReadAttribute { ~ReadOnOffFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.FeatureMap response %@", [value description]); if (error != nil) { @@ -3693,12 +3693,12 @@ class SubscribeAttributeOnOffFeatureMap : public SubscribeAttribute { ~SubscribeAttributeOnOffFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3731,12 +3731,12 @@ class ReadOnOffClusterRevision : public ReadAttribute { ~ReadOnOffClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.ClusterRevision response %@", [value description]); if (error != nil) { @@ -3757,12 +3757,12 @@ class SubscribeAttributeOnOffClusterRevision : public SubscribeAttribute { ~SubscribeAttributeOnOffClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3812,14 +3812,14 @@ class ReadOnOffSwitchConfigurationSwitchType : public ReadAttribute { ~ReadOnOffSwitchConfigurationSwitchType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSwitchTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.SwitchType response %@", [value description]); if (error != nil) { @@ -3840,14 +3840,14 @@ class SubscribeAttributeOnOffSwitchConfigurationSwitchType : public SubscribeAtt ~SubscribeAttributeOnOffSwitchConfigurationSwitchType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3880,14 +3880,14 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ReadAttribute { ~ReadOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSwitchActionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.SwitchActions response %@", [value description]); if (error != nil) { @@ -3911,14 +3911,14 @@ class WriteOnOffSwitchConfigurationSwitchActions : public WriteAttribute { ~WriteOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -3948,14 +3948,14 @@ class SubscribeAttributeOnOffSwitchConfigurationSwitchActions : public Subscribe ~SubscribeAttributeOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -3988,14 +3988,14 @@ class ReadOnOffSwitchConfigurationGeneratedCommandList : public ReadAttribute { ~ReadOnOffSwitchConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -4016,14 +4016,14 @@ class SubscribeAttributeOnOffSwitchConfigurationGeneratedCommandList : public Su ~SubscribeAttributeOnOffSwitchConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4056,14 +4056,14 @@ class ReadOnOffSwitchConfigurationAcceptedCommandList : public ReadAttribute { ~ReadOnOffSwitchConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -4084,14 +4084,14 @@ class SubscribeAttributeOnOffSwitchConfigurationAcceptedCommandList : public Sub ~SubscribeAttributeOnOffSwitchConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4124,14 +4124,14 @@ class ReadOnOffSwitchConfigurationAttributeList : public ReadAttribute { ~ReadOnOffSwitchConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -4152,14 +4152,14 @@ class SubscribeAttributeOnOffSwitchConfigurationAttributeList : public Subscribe ~SubscribeAttributeOnOffSwitchConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4192,14 +4192,14 @@ class ReadOnOffSwitchConfigurationFeatureMap : public ReadAttribute { ~ReadOnOffSwitchConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -4220,14 +4220,14 @@ class SubscribeAttributeOnOffSwitchConfigurationFeatureMap : public SubscribeAtt ~SubscribeAttributeOnOffSwitchConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4260,14 +4260,14 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ReadAttribute { ~ReadOnOffSwitchConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -4288,14 +4288,14 @@ class SubscribeAttributeOnOffSwitchConfigurationClusterRevision : public Subscri ~SubscribeAttributeOnOffSwitchConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4369,13 +4369,13 @@ class LevelControlMoveToLevel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.level = [NSNumber numberWithUnsignedChar:mRequest.level]; @@ -4419,13 +4419,13 @@ class LevelControlMove : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterMoveParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -4470,13 +4470,13 @@ class LevelControlStep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterStepParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterStepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -4519,13 +4519,13 @@ class LevelControlStop : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterStopParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.optionMask = [NSNumber numberWithUnsignedChar:mRequest.optionMask]; @@ -4565,13 +4565,13 @@ class LevelControlMoveToLevelWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.level = [NSNumber numberWithUnsignedChar:mRequest.level]; @@ -4611,13 +4611,13 @@ class LevelControlMoveWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterMoveWithOnOffParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterMoveWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -4658,13 +4658,13 @@ class LevelControlStepWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterStepWithOnOffParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterStepWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -4703,13 +4703,13 @@ class LevelControlStopWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterStopWithOnOffParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterStopWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -4745,13 +4745,13 @@ class LevelControlMoveToClosestFrequency : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLevelControlClusterMoveToClosestFrequencyParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLevelControlClusterMoveToClosestFrequencyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.frequency = [NSNumber numberWithUnsignedShort:mRequest.frequency]; @@ -4789,12 +4789,12 @@ class ReadLevelControlCurrentLevel : public ReadAttribute { ~ReadLevelControlCurrentLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.CurrentLevel response %@", [value description]); if (error != nil) { @@ -4815,12 +4815,12 @@ class SubscribeAttributeLevelControlCurrentLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlCurrentLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4853,12 +4853,12 @@ class ReadLevelControlRemainingTime : public ReadAttribute { ~ReadLevelControlRemainingTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.RemainingTime response %@", [value description]); if (error != nil) { @@ -4879,12 +4879,12 @@ class SubscribeAttributeLevelControlRemainingTime : public SubscribeAttribute { ~SubscribeAttributeLevelControlRemainingTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4917,12 +4917,12 @@ class ReadLevelControlMinLevel : public ReadAttribute { ~ReadLevelControlMinLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MinLevel response %@", [value description]); if (error != nil) { @@ -4943,12 +4943,12 @@ class SubscribeAttributeLevelControlMinLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlMinLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -4981,12 +4981,12 @@ class ReadLevelControlMaxLevel : public ReadAttribute { ~ReadLevelControlMaxLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MaxLevel response %@", [value description]); if (error != nil) { @@ -5007,12 +5007,12 @@ class SubscribeAttributeLevelControlMaxLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlMaxLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5045,12 +5045,12 @@ class ReadLevelControlCurrentFrequency : public ReadAttribute { ~ReadLevelControlCurrentFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.CurrentFrequency response %@", [value description]); if (error != nil) { @@ -5071,12 +5071,12 @@ class SubscribeAttributeLevelControlCurrentFrequency : public SubscribeAttribute ~SubscribeAttributeLevelControlCurrentFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5109,12 +5109,12 @@ class ReadLevelControlMinFrequency : public ReadAttribute { ~ReadLevelControlMinFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MinFrequency response %@", [value description]); if (error != nil) { @@ -5135,12 +5135,12 @@ class SubscribeAttributeLevelControlMinFrequency : public SubscribeAttribute { ~SubscribeAttributeLevelControlMinFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5173,12 +5173,12 @@ class ReadLevelControlMaxFrequency : public ReadAttribute { ~ReadLevelControlMaxFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MaxFrequency response %@", [value description]); if (error != nil) { @@ -5199,12 +5199,12 @@ class SubscribeAttributeLevelControlMaxFrequency : public SubscribeAttribute { ~SubscribeAttributeLevelControlMaxFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5237,12 +5237,12 @@ class ReadLevelControlOptions : public ReadAttribute { ~ReadLevelControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.Options response %@", [value description]); if (error != nil) { @@ -5266,12 +5266,12 @@ class WriteLevelControlOptions : public WriteAttribute { ~WriteLevelControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5301,12 +5301,12 @@ class SubscribeAttributeLevelControlOptions : public SubscribeAttribute { ~SubscribeAttributeLevelControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5339,12 +5339,12 @@ class ReadLevelControlOnOffTransitionTime : public ReadAttribute { ~ReadLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnOffTransitionTime response %@", [value description]); if (error != nil) { @@ -5368,12 +5368,12 @@ class WriteLevelControlOnOffTransitionTime : public WriteAttribute { ~WriteLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5403,12 +5403,12 @@ class SubscribeAttributeLevelControlOnOffTransitionTime : public SubscribeAttrib ~SubscribeAttributeLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5441,12 +5441,12 @@ class ReadLevelControlOnLevel : public ReadAttribute { ~ReadLevelControlOnLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnLevel response %@", [value description]); if (error != nil) { @@ -5470,12 +5470,12 @@ class WriteLevelControlOnLevel : public WriteAttribute { ~WriteLevelControlOnLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5505,12 +5505,12 @@ class SubscribeAttributeLevelControlOnLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlOnLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5543,12 +5543,12 @@ class ReadLevelControlOnTransitionTime : public ReadAttribute { ~ReadLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnTransitionTime response %@", [value description]); if (error != nil) { @@ -5572,12 +5572,12 @@ class WriteLevelControlOnTransitionTime : public WriteAttribute { ~WriteLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5607,12 +5607,12 @@ class SubscribeAttributeLevelControlOnTransitionTime : public SubscribeAttribute ~SubscribeAttributeLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5645,12 +5645,12 @@ class ReadLevelControlOffTransitionTime : public ReadAttribute { ~ReadLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OffTransitionTime response %@", [value description]); if (error != nil) { @@ -5674,12 +5674,12 @@ class WriteLevelControlOffTransitionTime : public WriteAttribute { ~WriteLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5709,12 +5709,12 @@ class SubscribeAttributeLevelControlOffTransitionTime : public SubscribeAttribut ~SubscribeAttributeLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5747,12 +5747,12 @@ class ReadLevelControlDefaultMoveRate : public ReadAttribute { ~ReadLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.DefaultMoveRate response %@", [value description]); if (error != nil) { @@ -5776,12 +5776,12 @@ class WriteLevelControlDefaultMoveRate : public WriteAttribute { ~WriteLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5811,12 +5811,12 @@ class SubscribeAttributeLevelControlDefaultMoveRate : public SubscribeAttribute ~SubscribeAttributeLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5849,12 +5849,12 @@ class ReadLevelControlStartUpCurrentLevel : public ReadAttribute { ~ReadLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.StartUpCurrentLevel response %@", [value description]); if (error != nil) { @@ -5878,12 +5878,12 @@ class WriteLevelControlStartUpCurrentLevel : public WriteAttribute { ~WriteLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -5913,12 +5913,12 @@ class SubscribeAttributeLevelControlStartUpCurrentLevel : public SubscribeAttrib ~SubscribeAttributeLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -5951,12 +5951,12 @@ class ReadLevelControlGeneratedCommandList : public ReadAttribute { ~ReadLevelControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -5977,12 +5977,12 @@ class SubscribeAttributeLevelControlGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeLevelControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6015,12 +6015,12 @@ class ReadLevelControlAcceptedCommandList : public ReadAttribute { ~ReadLevelControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -6041,12 +6041,12 @@ class SubscribeAttributeLevelControlAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeLevelControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6079,12 +6079,12 @@ class ReadLevelControlAttributeList : public ReadAttribute { ~ReadLevelControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.AttributeList response %@", [value description]); if (error != nil) { @@ -6105,12 +6105,12 @@ class SubscribeAttributeLevelControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeLevelControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6143,12 +6143,12 @@ class ReadLevelControlFeatureMap : public ReadAttribute { ~ReadLevelControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -6169,12 +6169,12 @@ class SubscribeAttributeLevelControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeLevelControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6207,12 +6207,12 @@ class ReadLevelControlClusterRevision : public ReadAttribute { ~ReadLevelControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -6233,12 +6233,12 @@ class SubscribeAttributeLevelControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeLevelControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6295,14 +6295,12 @@ class ReadBinaryInputBasicActiveText : public ReadAttribute { ~ReadBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ActiveText response %@", [value description]); if (error != nil) { @@ -6326,14 +6324,12 @@ class WriteBinaryInputBasicActiveText : public WriteAttribute { ~WriteBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6365,14 +6361,12 @@ class SubscribeAttributeBinaryInputBasicActiveText : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6405,14 +6399,12 @@ class ReadBinaryInputBasicDescription : public ReadAttribute { ~ReadBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Description response %@", [value description]); if (error != nil) { @@ -6436,14 +6428,12 @@ class WriteBinaryInputBasicDescription : public WriteAttribute { ~WriteBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6475,14 +6465,12 @@ class SubscribeAttributeBinaryInputBasicDescription : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6515,14 +6503,12 @@ class ReadBinaryInputBasicInactiveText : public ReadAttribute { ~ReadBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInactiveTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.InactiveText response %@", [value description]); if (error != nil) { @@ -6546,14 +6532,12 @@ class WriteBinaryInputBasicInactiveText : public WriteAttribute { ~WriteBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6585,14 +6569,12 @@ class SubscribeAttributeBinaryInputBasicInactiveText : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6625,14 +6607,12 @@ class ReadBinaryInputBasicOutOfService : public ReadAttribute { ~ReadBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.OutOfService response %@", [value description]); if (error != nil) { @@ -6656,14 +6636,12 @@ class WriteBinaryInputBasicOutOfService : public WriteAttribute { ~WriteBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6693,14 +6671,12 @@ class SubscribeAttributeBinaryInputBasicOutOfService : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6733,14 +6709,12 @@ class ReadBinaryInputBasicPolarity : public ReadAttribute { ~ReadBinaryInputBasicPolarity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000054) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePolarityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Polarity response %@", [value description]); if (error != nil) { @@ -6761,14 +6735,12 @@ class SubscribeAttributeBinaryInputBasicPolarity : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicPolarity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000054) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6801,14 +6773,12 @@ class ReadBinaryInputBasicPresentValue : public ReadAttribute { ~ReadBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.PresentValue response %@", [value description]); if (error != nil) { @@ -6832,14 +6802,12 @@ class WriteBinaryInputBasicPresentValue : public WriteAttribute { ~WriteBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6869,14 +6837,12 @@ class SubscribeAttributeBinaryInputBasicPresentValue : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -6909,14 +6875,12 @@ class ReadBinaryInputBasicReliability : public ReadAttribute { ~ReadBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeReliabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Reliability response %@", [value description]); if (error != nil) { @@ -6940,14 +6904,12 @@ class WriteBinaryInputBasicReliability : public WriteAttribute { ~WriteBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -6977,14 +6939,12 @@ class SubscribeAttributeBinaryInputBasicReliability : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7017,14 +6977,12 @@ class ReadBinaryInputBasicStatusFlags : public ReadAttribute { ~ReadBinaryInputBasicStatusFlags() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000006F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.StatusFlags response %@", [value description]); if (error != nil) { @@ -7045,14 +7003,12 @@ class SubscribeAttributeBinaryInputBasicStatusFlags : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicStatusFlags() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000006F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7085,14 +7041,12 @@ class ReadBinaryInputBasicApplicationType : public ReadAttribute { ~ReadBinaryInputBasicApplicationType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeApplicationTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ApplicationType response %@", [value description]); if (error != nil) { @@ -7113,14 +7067,12 @@ class SubscribeAttributeBinaryInputBasicApplicationType : public SubscribeAttrib ~SubscribeAttributeBinaryInputBasicApplicationType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7153,14 +7105,12 @@ class ReadBinaryInputBasicGeneratedCommandList : public ReadAttribute { ~ReadBinaryInputBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -7181,14 +7131,12 @@ class SubscribeAttributeBinaryInputBasicGeneratedCommandList : public SubscribeA ~SubscribeAttributeBinaryInputBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7221,14 +7169,12 @@ class ReadBinaryInputBasicAcceptedCommandList : public ReadAttribute { ~ReadBinaryInputBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -7249,14 +7195,12 @@ class SubscribeAttributeBinaryInputBasicAcceptedCommandList : public SubscribeAt ~SubscribeAttributeBinaryInputBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7289,14 +7233,12 @@ class ReadBinaryInputBasicAttributeList : public ReadAttribute { ~ReadBinaryInputBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -7317,14 +7259,12 @@ class SubscribeAttributeBinaryInputBasicAttributeList : public SubscribeAttribut ~SubscribeAttributeBinaryInputBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7357,14 +7297,12 @@ class ReadBinaryInputBasicFeatureMap : public ReadAttribute { ~ReadBinaryInputBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -7385,14 +7323,12 @@ class SubscribeAttributeBinaryInputBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7425,14 +7361,12 @@ class ReadBinaryInputBasicClusterRevision : public ReadAttribute { ~ReadBinaryInputBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -7453,14 +7387,12 @@ class SubscribeAttributeBinaryInputBasicClusterRevision : public SubscribeAttrib ~SubscribeAttributeBinaryInputBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7512,12 +7444,12 @@ class ReadDescriptorDeviceList : public ReadAttribute { ~ReadDescriptorDeviceList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.DeviceList response %@", [value description]); if (error != nil) { @@ -7538,12 +7470,12 @@ class SubscribeAttributeDescriptorDeviceList : public SubscribeAttribute { ~SubscribeAttributeDescriptorDeviceList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7576,12 +7508,12 @@ class ReadDescriptorServerList : public ReadAttribute { ~ReadDescriptorServerList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ServerList response %@", [value description]); if (error != nil) { @@ -7602,12 +7534,12 @@ class SubscribeAttributeDescriptorServerList : public SubscribeAttribute { ~SubscribeAttributeDescriptorServerList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7640,12 +7572,12 @@ class ReadDescriptorClientList : public ReadAttribute { ~ReadDescriptorClientList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ClientList response %@", [value description]); if (error != nil) { @@ -7666,12 +7598,12 @@ class SubscribeAttributeDescriptorClientList : public SubscribeAttribute { ~SubscribeAttributeDescriptorClientList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7704,12 +7636,12 @@ class ReadDescriptorPartsList : public ReadAttribute { ~ReadDescriptorPartsList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.PartsList response %@", [value description]); if (error != nil) { @@ -7730,12 +7662,12 @@ class SubscribeAttributeDescriptorPartsList : public SubscribeAttribute { ~SubscribeAttributeDescriptorPartsList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7768,12 +7700,12 @@ class ReadDescriptorGeneratedCommandList : public ReadAttribute { ~ReadDescriptorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -7794,12 +7726,12 @@ class SubscribeAttributeDescriptorGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeDescriptorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7832,12 +7764,12 @@ class ReadDescriptorAcceptedCommandList : public ReadAttribute { ~ReadDescriptorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -7858,12 +7790,12 @@ class SubscribeAttributeDescriptorAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeDescriptorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7896,12 +7828,12 @@ class ReadDescriptorAttributeList : public ReadAttribute { ~ReadDescriptorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.AttributeList response %@", [value description]); if (error != nil) { @@ -7922,12 +7854,12 @@ class SubscribeAttributeDescriptorAttributeList : public SubscribeAttribute { ~SubscribeAttributeDescriptorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -7960,12 +7892,12 @@ class ReadDescriptorFeatureMap : public ReadAttribute { ~ReadDescriptorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.FeatureMap response %@", [value description]); if (error != nil) { @@ -7986,12 +7918,12 @@ class SubscribeAttributeDescriptorFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDescriptorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8024,12 +7956,12 @@ class ReadDescriptorClusterRevision : public ReadAttribute { ~ReadDescriptorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ClusterRevision response %@", [value description]); if (error != nil) { @@ -8050,12 +7982,12 @@ class SubscribeAttributeDescriptorClusterRevision : public SubscribeAttribute { ~SubscribeAttributeDescriptorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8104,13 +8036,13 @@ class ReadBindingBinding : public ReadAttribute { ~ReadBindingBinding() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeBindingWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -8137,12 +8069,12 @@ class WriteBindingBinding : public WriteAttribute { ~WriteBindingBinding() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -8150,8 +8082,8 @@ class WriteBindingBinding : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPBindingClusterTargetStruct * newElement_0; - newElement_0 = [CHIPBindingClusterTargetStruct new]; + MTRBindingClusterTargetStruct * newElement_0; + newElement_0 = [MTRBindingClusterTargetStruct new]; if (entry_0.node.HasValue()) { newElement_0.node = [NSNumber numberWithUnsignedLongLong:entry_0.node.Value()]; } else { @@ -8203,12 +8135,12 @@ class SubscribeAttributeBindingBinding : public SubscribeAttribute { ~SubscribeAttributeBindingBinding() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8241,12 +8173,12 @@ class ReadBindingGeneratedCommandList : public ReadAttribute { ~ReadBindingGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -8267,12 +8199,12 @@ class SubscribeAttributeBindingGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeBindingGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8305,12 +8237,12 @@ class ReadBindingAcceptedCommandList : public ReadAttribute { ~ReadBindingAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -8331,12 +8263,12 @@ class SubscribeAttributeBindingAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeBindingAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8369,12 +8301,12 @@ class ReadBindingAttributeList : public ReadAttribute { ~ReadBindingAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.AttributeList response %@", [value description]); if (error != nil) { @@ -8395,12 +8327,12 @@ class SubscribeAttributeBindingAttributeList : public SubscribeAttribute { ~SubscribeAttributeBindingAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8433,12 +8365,12 @@ class ReadBindingFeatureMap : public ReadAttribute { ~ReadBindingFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.FeatureMap response %@", [value description]); if (error != nil) { @@ -8459,12 +8391,12 @@ class SubscribeAttributeBindingFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBindingFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8497,12 +8429,12 @@ class ReadBindingClusterRevision : public ReadAttribute { ~ReadBindingClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.ClusterRevision response %@", [value description]); if (error != nil) { @@ -8523,12 +8455,12 @@ class SubscribeAttributeBindingClusterRevision : public SubscribeAttribute { ~SubscribeAttributeBindingClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8583,13 +8515,13 @@ class ReadAccessControlAcl : public ReadAttribute { ~ReadAccessControlAcl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -8616,12 +8548,12 @@ class WriteAccessControlAcl : public WriteAttribute { ~WriteAccessControlAcl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -8629,8 +8561,8 @@ class WriteAccessControlAcl : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPAccessControlClusterAccessControlEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterAccessControlEntry new]; + MTRAccessControlClusterAccessControlEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterAccessControlEntry new]; newElement_0.privilege = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.privilege)]; newElement_0.authMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.authMode)]; if (entry_0.subjects.IsNull()) { @@ -8652,8 +8584,8 @@ class WriteAccessControlAcl : public WriteAttribute { { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; for (auto & entry_3 : entry_0.targets.Value()) { - CHIPAccessControlClusterTarget * newElement_3; - newElement_3 = [CHIPAccessControlClusterTarget new]; + MTRAccessControlClusterTarget * newElement_3; + newElement_3 = [MTRAccessControlClusterTarget new]; if (entry_3.cluster.IsNull()) { newElement_3.cluster = nil; } else { @@ -8706,12 +8638,12 @@ class SubscribeAttributeAccessControlAcl : public SubscribeAttribute { ~SubscribeAttributeAccessControlAcl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8744,13 +8676,13 @@ class ReadAccessControlExtension : public ReadAttribute { ~ReadAccessControlExtension() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeExtensionWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -8777,12 +8709,12 @@ class WriteAccessControlExtension : public WriteAttribute { ~WriteAccessControlExtension() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -8790,8 +8722,8 @@ class WriteAccessControlExtension : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPAccessControlClusterExtensionEntry * newElement_0; - newElement_0 = [CHIPAccessControlClusterExtensionEntry new]; + MTRAccessControlClusterExtensionEntry * newElement_0; + newElement_0 = [MTRAccessControlClusterExtensionEntry new]; newElement_0.data = [NSData dataWithBytes:entry_0.data.data() length:entry_0.data.size()]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; [array_0 addObject:newElement_0]; @@ -8825,12 +8757,12 @@ class SubscribeAttributeAccessControlExtension : public SubscribeAttribute { ~SubscribeAttributeAccessControlExtension() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8863,12 +8795,12 @@ class ReadAccessControlSubjectsPerAccessControlEntry : public ReadAttribute { ~ReadAccessControlSubjectsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSubjectsPerAccessControlEntryWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.SubjectsPerAccessControlEntry response %@", [value description]); @@ -8890,12 +8822,12 @@ class SubscribeAttributeAccessControlSubjectsPerAccessControlEntry : public Subs ~SubscribeAttributeAccessControlSubjectsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8928,12 +8860,12 @@ class ReadAccessControlTargetsPerAccessControlEntry : public ReadAttribute { ~ReadAccessControlTargetsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTargetsPerAccessControlEntryWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.TargetsPerAccessControlEntry response %@", [value description]); @@ -8955,12 +8887,12 @@ class SubscribeAttributeAccessControlTargetsPerAccessControlEntry : public Subsc ~SubscribeAttributeAccessControlTargetsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -8993,12 +8925,12 @@ class ReadAccessControlAccessControlEntriesPerFabric : public ReadAttribute { ~ReadAccessControlAccessControlEntriesPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAccessControlEntriesPerFabricWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AccessControlEntriesPerFabric response %@", [value description]); @@ -9020,12 +8952,12 @@ class SubscribeAttributeAccessControlAccessControlEntriesPerFabric : public Subs ~SubscribeAttributeAccessControlAccessControlEntriesPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9058,12 +8990,12 @@ class ReadAccessControlGeneratedCommandList : public ReadAttribute { ~ReadAccessControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -9084,12 +9016,12 @@ class SubscribeAttributeAccessControlGeneratedCommandList : public SubscribeAttr ~SubscribeAttributeAccessControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9122,12 +9054,12 @@ class ReadAccessControlAcceptedCommandList : public ReadAttribute { ~ReadAccessControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -9148,12 +9080,12 @@ class SubscribeAttributeAccessControlAcceptedCommandList : public SubscribeAttri ~SubscribeAttributeAccessControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9186,12 +9118,12 @@ class ReadAccessControlAttributeList : public ReadAttribute { ~ReadAccessControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AttributeList response %@", [value description]); if (error != nil) { @@ -9212,12 +9144,12 @@ class SubscribeAttributeAccessControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeAccessControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9250,12 +9182,12 @@ class ReadAccessControlFeatureMap : public ReadAttribute { ~ReadAccessControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -9276,12 +9208,12 @@ class SubscribeAttributeAccessControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAccessControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9314,12 +9246,12 @@ class ReadAccessControlClusterRevision : public ReadAttribute { ~ReadAccessControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -9340,12 +9272,12 @@ class SubscribeAttributeAccessControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeAccessControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccessControl * cluster = [[CHIPAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -9411,13 +9343,13 @@ class BridgedActionsInstantAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterInstantActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterInstantActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9462,13 +9394,13 @@ class BridgedActionsInstantActionWithTransition : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterInstantActionWithTransitionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterInstantActionWithTransitionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9513,13 +9445,13 @@ class BridgedActionsStartAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterStartActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterStartActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9564,13 +9496,13 @@ class BridgedActionsStartActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterStartActionWithDurationParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterStartActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9615,13 +9547,13 @@ class BridgedActionsStopAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterStopActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterStopActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9665,13 +9597,13 @@ class BridgedActionsPauseAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterPauseActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterPauseActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9716,13 +9648,13 @@ class BridgedActionsPauseActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterPauseActionWithDurationParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterPauseActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9767,13 +9699,13 @@ class BridgedActionsResumeAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterResumeActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterResumeActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9817,13 +9749,13 @@ class BridgedActionsEnableAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterEnableActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterEnableActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9868,13 +9800,13 @@ class BridgedActionsEnableActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterEnableActionWithDurationParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterEnableActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9919,13 +9851,13 @@ class BridgedActionsDisableAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterDisableActionParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterDisableActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -9970,13 +9902,13 @@ class BridgedActionsDisableActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBridgedActionsClusterDisableActionWithDurationParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBridgedActionsClusterDisableActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.actionID = [NSNumber numberWithUnsignedShort:mRequest.actionID]; @@ -10020,12 +9952,12 @@ class ReadBridgedActionsActionList : public ReadAttribute { ~ReadBridgedActionsActionList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActionListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.ActionList response %@", [value description]); if (error != nil) { @@ -10046,12 +9978,12 @@ class SubscribeAttributeBridgedActionsActionList : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsActionList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10084,12 +10016,12 @@ class ReadBridgedActionsEndpointList : public ReadAttribute { ~ReadBridgedActionsEndpointList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEndpointListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.EndpointList response %@", [value description]); if (error != nil) { @@ -10110,12 +10042,12 @@ class SubscribeAttributeBridgedActionsEndpointList : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsEndpointList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10148,12 +10080,12 @@ class ReadBridgedActionsSetupUrl : public ReadAttribute { ~ReadBridgedActionsSetupUrl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSetupUrlWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.SetupUrl response %@", [value description]); if (error != nil) { @@ -10174,12 +10106,12 @@ class SubscribeAttributeBridgedActionsSetupUrl : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsSetupUrl() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10212,12 +10144,12 @@ class ReadBridgedActionsGeneratedCommandList : public ReadAttribute { ~ReadBridgedActionsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -10238,12 +10170,12 @@ class SubscribeAttributeBridgedActionsGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeBridgedActionsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10276,12 +10208,12 @@ class ReadBridgedActionsAcceptedCommandList : public ReadAttribute { ~ReadBridgedActionsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -10302,12 +10234,12 @@ class SubscribeAttributeBridgedActionsAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeBridgedActionsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10340,12 +10272,12 @@ class ReadBridgedActionsAttributeList : public ReadAttribute { ~ReadBridgedActionsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.AttributeList response %@", [value description]); if (error != nil) { @@ -10366,12 +10298,12 @@ class SubscribeAttributeBridgedActionsAttributeList : public SubscribeAttribute ~SubscribeAttributeBridgedActionsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10404,12 +10336,12 @@ class ReadBridgedActionsFeatureMap : public ReadAttribute { ~ReadBridgedActionsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.FeatureMap response %@", [value description]); if (error != nil) { @@ -10430,12 +10362,12 @@ class SubscribeAttributeBridgedActionsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10468,12 +10400,12 @@ class ReadBridgedActionsClusterRevision : public ReadAttribute { ~ReadBridgedActionsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.ClusterRevision response %@", [value description]); if (error != nil) { @@ -10494,12 +10426,12 @@ class SubscribeAttributeBridgedActionsClusterRevision : public SubscribeAttribut ~SubscribeAttributeBridgedActionsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10571,13 +10503,13 @@ class BasicMfgSpecificPing : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBasicClusterMfgSpecificPingParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBasicClusterMfgSpecificPingParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -10613,12 +10545,12 @@ class ReadBasicDataModelRevision : public ReadAttribute { ~ReadBasicDataModelRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDataModelRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.DataModelRevision response %@", [value description]); if (error != nil) { @@ -10639,12 +10571,12 @@ class SubscribeAttributeBasicDataModelRevision : public SubscribeAttribute { ~SubscribeAttributeBasicDataModelRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10677,12 +10609,12 @@ class ReadBasicVendorName : public ReadAttribute { ~ReadBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.VendorName response %@", [value description]); if (error != nil) { @@ -10703,12 +10635,12 @@ class SubscribeAttributeBasicVendorName : public SubscribeAttribute { ~SubscribeAttributeBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10741,12 +10673,12 @@ class ReadBasicVendorID : public ReadAttribute { ~ReadBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.VendorID response %@", [value description]); if (error != nil) { @@ -10767,12 +10699,12 @@ class SubscribeAttributeBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10805,12 +10737,12 @@ class ReadBasicProductName : public ReadAttribute { ~ReadBasicProductName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductName response %@", [value description]); if (error != nil) { @@ -10831,12 +10763,12 @@ class SubscribeAttributeBasicProductName : public SubscribeAttribute { ~SubscribeAttributeBasicProductName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10869,12 +10801,12 @@ class ReadBasicProductID : public ReadAttribute { ~ReadBasicProductID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductID response %@", [value description]); if (error != nil) { @@ -10895,12 +10827,12 @@ class SubscribeAttributeBasicProductID : public SubscribeAttribute { ~SubscribeAttributeBasicProductID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -10933,12 +10865,12 @@ class ReadBasicNodeLabel : public ReadAttribute { ~ReadBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.NodeLabel response %@", [value description]); if (error != nil) { @@ -10962,12 +10894,12 @@ class WriteBasicNodeLabel : public WriteAttribute { ~WriteBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -10999,12 +10931,12 @@ class SubscribeAttributeBasicNodeLabel : public SubscribeAttribute { ~SubscribeAttributeBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11037,12 +10969,12 @@ class ReadBasicLocation : public ReadAttribute { ~ReadBasicLocation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.Location response %@", [value description]); if (error != nil) { @@ -11066,12 +10998,12 @@ class WriteBasicLocation : public WriteAttribute { ~WriteBasicLocation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -11103,12 +11035,12 @@ class SubscribeAttributeBasicLocation : public SubscribeAttribute { ~SubscribeAttributeBasicLocation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11141,12 +11073,12 @@ class ReadBasicHardwareVersion : public ReadAttribute { ~ReadBasicHardwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.HardwareVersion response %@", [value description]); if (error != nil) { @@ -11167,12 +11099,12 @@ class SubscribeAttributeBasicHardwareVersion : public SubscribeAttribute { ~SubscribeAttributeBasicHardwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11205,12 +11137,12 @@ class ReadBasicHardwareVersionString : public ReadAttribute { ~ReadBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.HardwareVersionString response %@", [value description]); if (error != nil) { @@ -11231,12 +11163,12 @@ class SubscribeAttributeBasicHardwareVersionString : public SubscribeAttribute { ~SubscribeAttributeBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11269,12 +11201,12 @@ class ReadBasicSoftwareVersion : public ReadAttribute { ~ReadBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SoftwareVersion response %@", [value description]); if (error != nil) { @@ -11295,12 +11227,12 @@ class SubscribeAttributeBasicSoftwareVersion : public SubscribeAttribute { ~SubscribeAttributeBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11333,12 +11265,12 @@ class ReadBasicSoftwareVersionString : public ReadAttribute { ~ReadBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SoftwareVersionString response %@", [value description]); if (error != nil) { @@ -11359,12 +11291,12 @@ class SubscribeAttributeBasicSoftwareVersionString : public SubscribeAttribute { ~SubscribeAttributeBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11397,12 +11329,12 @@ class ReadBasicManufacturingDate : public ReadAttribute { ~ReadBasicManufacturingDate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ManufacturingDate response %@", [value description]); if (error != nil) { @@ -11423,12 +11355,12 @@ class SubscribeAttributeBasicManufacturingDate : public SubscribeAttribute { ~SubscribeAttributeBasicManufacturingDate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11461,12 +11393,12 @@ class ReadBasicPartNumber : public ReadAttribute { ~ReadBasicPartNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.PartNumber response %@", [value description]); if (error != nil) { @@ -11487,12 +11419,12 @@ class SubscribeAttributeBasicPartNumber : public SubscribeAttribute { ~SubscribeAttributeBasicPartNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11525,12 +11457,12 @@ class ReadBasicProductURL : public ReadAttribute { ~ReadBasicProductURL() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductURL response %@", [value description]); if (error != nil) { @@ -11551,12 +11483,12 @@ class SubscribeAttributeBasicProductURL : public SubscribeAttribute { ~SubscribeAttributeBasicProductURL() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11589,12 +11521,12 @@ class ReadBasicProductLabel : public ReadAttribute { ~ReadBasicProductLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductLabel response %@", [value description]); if (error != nil) { @@ -11615,12 +11547,12 @@ class SubscribeAttributeBasicProductLabel : public SubscribeAttribute { ~SubscribeAttributeBasicProductLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11653,12 +11585,12 @@ class ReadBasicSerialNumber : public ReadAttribute { ~ReadBasicSerialNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SerialNumber response %@", [value description]); if (error != nil) { @@ -11679,12 +11611,12 @@ class SubscribeAttributeBasicSerialNumber : public SubscribeAttribute { ~SubscribeAttributeBasicSerialNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11717,12 +11649,12 @@ class ReadBasicLocalConfigDisabled : public ReadAttribute { ~ReadBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.LocalConfigDisabled response %@", [value description]); if (error != nil) { @@ -11746,12 +11678,12 @@ class WriteBasicLocalConfigDisabled : public WriteAttribute { ~WriteBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -11781,12 +11713,12 @@ class SubscribeAttributeBasicLocalConfigDisabled : public SubscribeAttribute { ~SubscribeAttributeBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11819,12 +11751,12 @@ class ReadBasicReachable : public ReadAttribute { ~ReadBasicReachable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.Reachable response %@", [value description]); if (error != nil) { @@ -11845,12 +11777,12 @@ class SubscribeAttributeBasicReachable : public SubscribeAttribute { ~SubscribeAttributeBasicReachable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11883,12 +11815,12 @@ class ReadBasicUniqueID : public ReadAttribute { ~ReadBasicUniqueID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.UniqueID response %@", [value description]); if (error != nil) { @@ -11909,12 +11841,12 @@ class SubscribeAttributeBasicUniqueID : public SubscribeAttribute { ~SubscribeAttributeBasicUniqueID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11947,14 +11879,14 @@ class ReadBasicCapabilityMinima : public ReadAttribute { ~ReadBasicCapabilityMinima() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCapabilityMinimaWithCompletionHandler:^( - CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error) { + MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.CapabilityMinima response %@", [value description]); if (error != nil) { LogNSError("Basic CapabilityMinima read Error", error); @@ -11974,12 +11906,12 @@ class SubscribeAttributeBasicCapabilityMinima : public SubscribeAttribute { ~SubscribeAttributeBasicCapabilityMinima() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -11989,7 +11921,7 @@ class SubscribeAttributeBasicCapabilityMinima : public SubscribeAttribute { subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.CapabilityMinima response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -12012,12 +11944,12 @@ class ReadBasicGeneratedCommandList : public ReadAttribute { ~ReadBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -12038,12 +11970,12 @@ class SubscribeAttributeBasicGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12076,12 +12008,12 @@ class ReadBasicAcceptedCommandList : public ReadAttribute { ~ReadBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -12102,12 +12034,12 @@ class SubscribeAttributeBasicAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12140,12 +12072,12 @@ class ReadBasicAttributeList : public ReadAttribute { ~ReadBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.AttributeList response %@", [value description]); if (error != nil) { @@ -12166,12 +12098,12 @@ class SubscribeAttributeBasicAttributeList : public SubscribeAttribute { ~SubscribeAttributeBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12204,12 +12136,12 @@ class ReadBasicFeatureMap : public ReadAttribute { ~ReadBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.FeatureMap response %@", [value description]); if (error != nil) { @@ -12230,12 +12162,12 @@ class SubscribeAttributeBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12268,12 +12200,12 @@ class ReadBasicClusterRevision : public ReadAttribute { ~ReadBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -12294,12 +12226,12 @@ class SubscribeAttributeBasicClusterRevision : public SubscribeAttribute { ~SubscribeAttributeBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBasic * cluster = [[CHIPBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12358,15 +12290,15 @@ class OtaSoftwareUpdateProviderQueryImage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOtaSoftwareUpdateProviderClusterQueryImageParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterQueryImageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.vendorId = [NSNumber numberWithUnsignedShort:chip::to_underlying(mRequest.vendorId)]; @@ -12408,7 +12340,7 @@ class OtaSoftwareUpdateProviderQueryImage : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster queryImageWithParams:params - completionHandler:^(CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable values, + completionHandler:^(MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -12443,15 +12375,15 @@ class OtaSoftwareUpdateProviderApplyUpdateRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.updateToken = [NSData dataWithBytes:mRequest.updateToken.data() length:mRequest.updateToken.size()]; @@ -12459,20 +12391,19 @@ class OtaSoftwareUpdateProviderApplyUpdateRequest : public ClusterCommand { uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - applyUpdateRequestWithParams:params - completionHandler:^(CHIPOtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable values, - NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster applyUpdateRequestWithParams:params + completionHandler:^(MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable values, + NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -12494,15 +12425,15 @@ class OtaSoftwareUpdateProviderNotifyUpdateApplied : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.updateToken = [NSData dataWithBytes:mRequest.updateToken.data() length:mRequest.updateToken.size()]; @@ -12541,14 +12472,14 @@ class ReadOtaSoftwareUpdateProviderGeneratedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -12569,14 +12500,14 @@ class SubscribeAttributeOtaSoftwareUpdateProviderGeneratedCommandList : public S ~SubscribeAttributeOtaSoftwareUpdateProviderGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12609,14 +12540,14 @@ class ReadOtaSoftwareUpdateProviderAcceptedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -12637,14 +12568,14 @@ class SubscribeAttributeOtaSoftwareUpdateProviderAcceptedCommandList : public Su ~SubscribeAttributeOtaSoftwareUpdateProviderAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12677,14 +12608,14 @@ class ReadOtaSoftwareUpdateProviderAttributeList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.AttributeList response %@", [value description]); if (error != nil) { @@ -12705,14 +12636,14 @@ class SubscribeAttributeOtaSoftwareUpdateProviderAttributeList : public Subscrib ~SubscribeAttributeOtaSoftwareUpdateProviderAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12745,14 +12676,14 @@ class ReadOtaSoftwareUpdateProviderFeatureMap : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.FeatureMap response %@", [value description]); if (error != nil) { @@ -12773,14 +12704,14 @@ class SubscribeAttributeOtaSoftwareUpdateProviderFeatureMap : public SubscribeAt ~SubscribeAttributeOtaSoftwareUpdateProviderFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12813,14 +12744,14 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.ClusterRevision response %@", [value description]); if (error != nil) { @@ -12841,14 +12772,14 @@ class SubscribeAttributeOtaSoftwareUpdateProviderClusterRevision : public Subscr ~SubscribeAttributeOtaSoftwareUpdateProviderClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -12908,15 +12839,15 @@ class OtaSoftwareUpdateRequestorAnnounceOtaProvider : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.providerNodeId = [NSNumber numberWithUnsignedLongLong:mRequest.providerNodeId]; @@ -12963,15 +12894,15 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProviders : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeDefaultOtaProvidersWithParams:params @@ -12999,14 +12930,14 @@ class WriteOtaSoftwareUpdateRequestorDefaultOtaProviders : public WriteAttribute ~WriteOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -13014,8 +12945,8 @@ class WriteOtaSoftwareUpdateRequestorDefaultOtaProviders : public WriteAttribute { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPOtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; - newElement_0 = [CHIPOtaSoftwareUpdateRequestorClusterProviderLocation new]; + MTROtaSoftwareUpdateRequestorClusterProviderLocation * newElement_0; + newElement_0 = [MTROtaSoftwareUpdateRequestorClusterProviderLocation new]; newElement_0.providerNodeID = [NSNumber numberWithUnsignedLongLong:entry_0.providerNodeID]; newElement_0.endpoint = [NSNumber numberWithUnsignedShort:entry_0.endpoint]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -13051,14 +12982,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorDefaultOtaProviders : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13091,14 +13022,14 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdatePossible() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUpdatePossibleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdatePossible response %@", [value description]); if (error != nil) { @@ -13119,14 +13050,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdatePossible : public Subscr ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdatePossible() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13159,14 +13090,14 @@ class ReadOtaSoftwareUpdateRequestorUpdateState : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdateState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUpdateStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdateState response %@", [value description]); if (error != nil) { @@ -13187,14 +13118,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdateState : public Subscribe ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdateState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13227,14 +13158,14 @@ class ReadOtaSoftwareUpdateRequestorUpdateStateProgress : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdateStateProgress() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUpdateStateProgressWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdateStateProgress response %@", [value description]); if (error != nil) { @@ -13255,14 +13186,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdateStateProgress : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdateStateProgress() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13295,14 +13226,14 @@ class ReadOtaSoftwareUpdateRequestorGeneratedCommandList : public ReadAttribute ~ReadOtaSoftwareUpdateRequestorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -13323,14 +13254,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorGeneratedCommandList : public ~SubscribeAttributeOtaSoftwareUpdateRequestorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13363,14 +13294,14 @@ class ReadOtaSoftwareUpdateRequestorAcceptedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -13391,14 +13322,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorAcceptedCommandList : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13431,14 +13362,14 @@ class ReadOtaSoftwareUpdateRequestorAttributeList : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.AttributeList response %@", [value description]); if (error != nil) { @@ -13459,14 +13390,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorAttributeList : public Subscri ~SubscribeAttributeOtaSoftwareUpdateRequestorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13499,14 +13430,14 @@ class ReadOtaSoftwareUpdateRequestorFeatureMap : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.FeatureMap response %@", [value description]); if (error != nil) { @@ -13527,14 +13458,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorFeatureMap : public SubscribeA ~SubscribeAttributeOtaSoftwareUpdateRequestorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13567,14 +13498,14 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.ClusterRevision response %@", [value description]); if (error != nil) { @@ -13595,14 +13526,14 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorClusterRevision : public Subsc ~SubscribeAttributeOtaSoftwareUpdateRequestorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13652,14 +13583,14 @@ class ReadLocalizationConfigurationActiveLocale : public ReadAttribute { ~ReadLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveLocaleWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.ActiveLocale response %@", [value description]); if (error != nil) { @@ -13683,14 +13614,14 @@ class WriteLocalizationConfigurationActiveLocale : public WriteAttribute { ~WriteLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -13722,14 +13653,14 @@ class SubscribeAttributeLocalizationConfigurationActiveLocale : public Subscribe ~SubscribeAttributeLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13762,14 +13693,14 @@ class ReadLocalizationConfigurationSupportedLocales : public ReadAttribute { ~ReadLocalizationConfigurationSupportedLocales() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedLocalesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.SupportedLocales response %@", [value description]); if (error != nil) { @@ -13790,14 +13721,14 @@ class SubscribeAttributeLocalizationConfigurationSupportedLocales : public Subsc ~SubscribeAttributeLocalizationConfigurationSupportedLocales() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13830,14 +13761,14 @@ class ReadLocalizationConfigurationGeneratedCommandList : public ReadAttribute { ~ReadLocalizationConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -13858,14 +13789,14 @@ class SubscribeAttributeLocalizationConfigurationGeneratedCommandList : public S ~SubscribeAttributeLocalizationConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13898,14 +13829,14 @@ class ReadLocalizationConfigurationAcceptedCommandList : public ReadAttribute { ~ReadLocalizationConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -13926,14 +13857,14 @@ class SubscribeAttributeLocalizationConfigurationAcceptedCommandList : public Su ~SubscribeAttributeLocalizationConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -13966,14 +13897,14 @@ class ReadLocalizationConfigurationAttributeList : public ReadAttribute { ~ReadLocalizationConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -13994,14 +13925,14 @@ class SubscribeAttributeLocalizationConfigurationAttributeList : public Subscrib ~SubscribeAttributeLocalizationConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14034,14 +13965,14 @@ class ReadLocalizationConfigurationFeatureMap : public ReadAttribute { ~ReadLocalizationConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -14062,14 +13993,14 @@ class SubscribeAttributeLocalizationConfigurationFeatureMap : public SubscribeAt ~SubscribeAttributeLocalizationConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14102,14 +14033,14 @@ class ReadLocalizationConfigurationClusterRevision : public ReadAttribute { ~ReadLocalizationConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -14130,14 +14061,14 @@ class SubscribeAttributeLocalizationConfigurationClusterRevision : public Subscr ~SubscribeAttributeLocalizationConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLocalizationConfiguration * cluster = [[CHIPLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14188,14 +14119,14 @@ class ReadTimeFormatLocalizationHourFormat : public ReadAttribute { ~ReadTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHourFormatWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.HourFormat response %@", [value description]); if (error != nil) { @@ -14219,14 +14150,14 @@ class WriteTimeFormatLocalizationHourFormat : public WriteAttribute { ~WriteTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -14256,14 +14187,14 @@ class SubscribeAttributeTimeFormatLocalizationHourFormat : public SubscribeAttri ~SubscribeAttributeTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14296,14 +14227,14 @@ class ReadTimeFormatLocalizationActiveCalendarType : public ReadAttribute { ~ReadTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveCalendarTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.ActiveCalendarType response %@", [value description]); if (error != nil) { @@ -14327,14 +14258,14 @@ class WriteTimeFormatLocalizationActiveCalendarType : public WriteAttribute { ~WriteTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -14364,14 +14295,14 @@ class SubscribeAttributeTimeFormatLocalizationActiveCalendarType : public Subscr ~SubscribeAttributeTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14404,14 +14335,14 @@ class ReadTimeFormatLocalizationSupportedCalendarTypes : public ReadAttribute { ~ReadTimeFormatLocalizationSupportedCalendarTypes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedCalendarTypesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.SupportedCalendarTypes response %@", [value description]); if (error != nil) { @@ -14432,14 +14363,14 @@ class SubscribeAttributeTimeFormatLocalizationSupportedCalendarTypes : public Su ~SubscribeAttributeTimeFormatLocalizationSupportedCalendarTypes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14472,14 +14403,14 @@ class ReadTimeFormatLocalizationGeneratedCommandList : public ReadAttribute { ~ReadTimeFormatLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -14500,14 +14431,14 @@ class SubscribeAttributeTimeFormatLocalizationGeneratedCommandList : public Subs ~SubscribeAttributeTimeFormatLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14540,14 +14471,14 @@ class ReadTimeFormatLocalizationAcceptedCommandList : public ReadAttribute { ~ReadTimeFormatLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -14568,14 +14499,14 @@ class SubscribeAttributeTimeFormatLocalizationAcceptedCommandList : public Subsc ~SubscribeAttributeTimeFormatLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14608,14 +14539,14 @@ class ReadTimeFormatLocalizationAttributeList : public ReadAttribute { ~ReadTimeFormatLocalizationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.AttributeList response %@", [value description]); if (error != nil) { @@ -14636,14 +14567,14 @@ class SubscribeAttributeTimeFormatLocalizationAttributeList : public SubscribeAt ~SubscribeAttributeTimeFormatLocalizationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14676,14 +14607,14 @@ class ReadTimeFormatLocalizationFeatureMap : public ReadAttribute { ~ReadTimeFormatLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.FeatureMap response %@", [value description]); if (error != nil) { @@ -14704,14 +14635,14 @@ class SubscribeAttributeTimeFormatLocalizationFeatureMap : public SubscribeAttri ~SubscribeAttributeTimeFormatLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14744,14 +14675,14 @@ class ReadTimeFormatLocalizationClusterRevision : public ReadAttribute { ~ReadTimeFormatLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.ClusterRevision response %@", [value description]); if (error != nil) { @@ -14772,14 +14703,14 @@ class SubscribeAttributeTimeFormatLocalizationClusterRevision : public Subscribe ~SubscribeAttributeTimeFormatLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTimeFormatLocalization * cluster = [[CHIPTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14828,14 +14759,12 @@ class ReadUnitLocalizationTemperatureUnit : public ReadAttribute { ~ReadUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTemperatureUnitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.TemperatureUnit response %@", [value description]); if (error != nil) { @@ -14859,14 +14788,12 @@ class WriteUnitLocalizationTemperatureUnit : public WriteAttribute { ~WriteUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -14896,14 +14823,12 @@ class SubscribeAttributeUnitLocalizationTemperatureUnit : public SubscribeAttrib ~SubscribeAttributeUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -14936,14 +14861,12 @@ class ReadUnitLocalizationGeneratedCommandList : public ReadAttribute { ~ReadUnitLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -14964,14 +14887,12 @@ class SubscribeAttributeUnitLocalizationGeneratedCommandList : public SubscribeA ~SubscribeAttributeUnitLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15004,14 +14925,12 @@ class ReadUnitLocalizationAcceptedCommandList : public ReadAttribute { ~ReadUnitLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -15032,14 +14951,12 @@ class SubscribeAttributeUnitLocalizationAcceptedCommandList : public SubscribeAt ~SubscribeAttributeUnitLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15072,14 +14989,12 @@ class ReadUnitLocalizationAttributeList : public ReadAttribute { ~ReadUnitLocalizationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.AttributeList response %@", [value description]); if (error != nil) { @@ -15100,14 +15015,12 @@ class SubscribeAttributeUnitLocalizationAttributeList : public SubscribeAttribut ~SubscribeAttributeUnitLocalizationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15140,14 +15053,12 @@ class ReadUnitLocalizationFeatureMap : public ReadAttribute { ~ReadUnitLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.FeatureMap response %@", [value description]); if (error != nil) { @@ -15168,14 +15079,12 @@ class SubscribeAttributeUnitLocalizationFeatureMap : public SubscribeAttribute { ~SubscribeAttributeUnitLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15208,14 +15117,12 @@ class ReadUnitLocalizationClusterRevision : public ReadAttribute { ~ReadUnitLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.ClusterRevision response %@", [value description]); if (error != nil) { @@ -15236,14 +15143,12 @@ class SubscribeAttributeUnitLocalizationClusterRevision : public SubscribeAttrib ~SubscribeAttributeUnitLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUnitLocalization * cluster = [[CHIPUnitLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15292,14 +15197,14 @@ class ReadPowerSourceConfigurationSources : public ReadAttribute { ~ReadPowerSourceConfigurationSources() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSourcesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.Sources response %@", [value description]); if (error != nil) { @@ -15320,14 +15225,14 @@ class SubscribeAttributePowerSourceConfigurationSources : public SubscribeAttrib ~SubscribeAttributePowerSourceConfigurationSources() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15360,14 +15265,14 @@ class ReadPowerSourceConfigurationGeneratedCommandList : public ReadAttribute { ~ReadPowerSourceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -15388,14 +15293,14 @@ class SubscribeAttributePowerSourceConfigurationGeneratedCommandList : public Su ~SubscribeAttributePowerSourceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15428,14 +15333,14 @@ class ReadPowerSourceConfigurationAcceptedCommandList : public ReadAttribute { ~ReadPowerSourceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -15456,14 +15361,14 @@ class SubscribeAttributePowerSourceConfigurationAcceptedCommandList : public Sub ~SubscribeAttributePowerSourceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15496,14 +15401,14 @@ class ReadPowerSourceConfigurationAttributeList : public ReadAttribute { ~ReadPowerSourceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -15524,14 +15429,14 @@ class SubscribeAttributePowerSourceConfigurationAttributeList : public Subscribe ~SubscribeAttributePowerSourceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15564,14 +15469,14 @@ class ReadPowerSourceConfigurationFeatureMap : public ReadAttribute { ~ReadPowerSourceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -15592,14 +15497,14 @@ class SubscribeAttributePowerSourceConfigurationFeatureMap : public SubscribeAtt ~SubscribeAttributePowerSourceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15632,14 +15537,14 @@ class ReadPowerSourceConfigurationClusterRevision : public ReadAttribute { ~ReadPowerSourceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -15660,14 +15565,14 @@ class SubscribeAttributePowerSourceConfigurationClusterRevision : public Subscri ~SubscribeAttributePowerSourceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSourceConfiguration * cluster = [[CHIPPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15746,12 +15651,12 @@ class ReadPowerSourceStatus : public ReadAttribute { ~ReadPowerSourceStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Status response %@", [value description]); if (error != nil) { @@ -15772,12 +15677,12 @@ class SubscribeAttributePowerSourceStatus : public SubscribeAttribute { ~SubscribeAttributePowerSourceStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15810,12 +15715,12 @@ class ReadPowerSourceOrder : public ReadAttribute { ~ReadPowerSourceOrder() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Order response %@", [value description]); if (error != nil) { @@ -15836,12 +15741,12 @@ class SubscribeAttributePowerSourceOrder : public SubscribeAttribute { ~SubscribeAttributePowerSourceOrder() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15874,12 +15779,12 @@ class ReadPowerSourceDescription : public ReadAttribute { ~ReadPowerSourceDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Description response %@", [value description]); if (error != nil) { @@ -15900,12 +15805,12 @@ class SubscribeAttributePowerSourceDescription : public SubscribeAttribute { ~SubscribeAttributePowerSourceDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -15938,12 +15843,12 @@ class ReadPowerSourceWiredAssessedInputVoltage : public ReadAttribute { ~ReadPowerSourceWiredAssessedInputVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredAssessedInputVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedInputVoltage response %@", [value description]); @@ -15965,12 +15870,12 @@ class SubscribeAttributePowerSourceWiredAssessedInputVoltage : public SubscribeA ~SubscribeAttributePowerSourceWiredAssessedInputVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16003,12 +15908,12 @@ class ReadPowerSourceWiredAssessedInputFrequency : public ReadAttribute { ~ReadPowerSourceWiredAssessedInputFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredAssessedInputFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedInputFrequency response %@", [value description]); @@ -16030,12 +15935,12 @@ class SubscribeAttributePowerSourceWiredAssessedInputFrequency : public Subscrib ~SubscribeAttributePowerSourceWiredAssessedInputFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16068,12 +15973,12 @@ class ReadPowerSourceWiredCurrentType : public ReadAttribute { ~ReadPowerSourceWiredCurrentType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredCurrentTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredCurrentType response %@", [value description]); if (error != nil) { @@ -16094,12 +15999,12 @@ class SubscribeAttributePowerSourceWiredCurrentType : public SubscribeAttribute ~SubscribeAttributePowerSourceWiredCurrentType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16132,12 +16037,12 @@ class ReadPowerSourceWiredAssessedCurrent : public ReadAttribute { ~ReadPowerSourceWiredAssessedCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredAssessedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedCurrent response %@", [value description]); if (error != nil) { @@ -16158,12 +16063,12 @@ class SubscribeAttributePowerSourceWiredAssessedCurrent : public SubscribeAttrib ~SubscribeAttributePowerSourceWiredAssessedCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16196,12 +16101,12 @@ class ReadPowerSourceWiredNominalVoltage : public ReadAttribute { ~ReadPowerSourceWiredNominalVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredNominalVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredNominalVoltage response %@", [value description]); if (error != nil) { @@ -16222,12 +16127,12 @@ class SubscribeAttributePowerSourceWiredNominalVoltage : public SubscribeAttribu ~SubscribeAttributePowerSourceWiredNominalVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16260,12 +16165,12 @@ class ReadPowerSourceWiredMaximumCurrent : public ReadAttribute { ~ReadPowerSourceWiredMaximumCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredMaximumCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredMaximumCurrent response %@", [value description]); if (error != nil) { @@ -16286,12 +16191,12 @@ class SubscribeAttributePowerSourceWiredMaximumCurrent : public SubscribeAttribu ~SubscribeAttributePowerSourceWiredMaximumCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16324,12 +16229,12 @@ class ReadPowerSourceWiredPresent : public ReadAttribute { ~ReadPowerSourceWiredPresent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiredPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredPresent response %@", [value description]); if (error != nil) { @@ -16350,12 +16255,12 @@ class SubscribeAttributePowerSourceWiredPresent : public SubscribeAttribute { ~SubscribeAttributePowerSourceWiredPresent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16388,12 +16293,12 @@ class ReadPowerSourceActiveWiredFaults : public ReadAttribute { ~ReadPowerSourceActiveWiredFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveWiredFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveWiredFaults response %@", [value description]); if (error != nil) { @@ -16414,12 +16319,12 @@ class SubscribeAttributePowerSourceActiveWiredFaults : public SubscribeAttribute ~SubscribeAttributePowerSourceActiveWiredFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16452,12 +16357,12 @@ class ReadPowerSourceBatteryVoltage : public ReadAttribute { ~ReadPowerSourceBatteryVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryVoltage response %@", [value description]); if (error != nil) { @@ -16478,12 +16383,12 @@ class SubscribeAttributePowerSourceBatteryVoltage : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16516,12 +16421,12 @@ class ReadPowerSourceBatteryPercentRemaining : public ReadAttribute { ~ReadPowerSourceBatteryPercentRemaining() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryPercentRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryPercentRemaining response %@", [value description]); @@ -16543,12 +16448,12 @@ class SubscribeAttributePowerSourceBatteryPercentRemaining : public SubscribeAtt ~SubscribeAttributePowerSourceBatteryPercentRemaining() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16581,12 +16486,12 @@ class ReadPowerSourceBatteryTimeRemaining : public ReadAttribute { ~ReadPowerSourceBatteryTimeRemaining() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryTimeRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryTimeRemaining response %@", [value description]); if (error != nil) { @@ -16607,12 +16512,12 @@ class SubscribeAttributePowerSourceBatteryTimeRemaining : public SubscribeAttrib ~SubscribeAttributePowerSourceBatteryTimeRemaining() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16645,12 +16550,12 @@ class ReadPowerSourceBatteryChargeLevel : public ReadAttribute { ~ReadPowerSourceBatteryChargeLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargeLevel response %@", [value description]); if (error != nil) { @@ -16671,12 +16576,12 @@ class SubscribeAttributePowerSourceBatteryChargeLevel : public SubscribeAttribut ~SubscribeAttributePowerSourceBatteryChargeLevel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16709,12 +16614,12 @@ class ReadPowerSourceBatteryReplacementNeeded : public ReadAttribute { ~ReadPowerSourceBatteryReplacementNeeded() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryReplacementNeededWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplacementNeeded response %@", [value description]); @@ -16736,12 +16641,12 @@ class SubscribeAttributePowerSourceBatteryReplacementNeeded : public SubscribeAt ~SubscribeAttributePowerSourceBatteryReplacementNeeded() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16774,12 +16679,12 @@ class ReadPowerSourceBatteryReplaceability : public ReadAttribute { ~ReadPowerSourceBatteryReplaceability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryReplaceabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplaceability response %@", [value description]); if (error != nil) { @@ -16800,12 +16705,12 @@ class SubscribeAttributePowerSourceBatteryReplaceability : public SubscribeAttri ~SubscribeAttributePowerSourceBatteryReplaceability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16838,12 +16743,12 @@ class ReadPowerSourceBatteryPresent : public ReadAttribute { ~ReadPowerSourceBatteryPresent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryPresent response %@", [value description]); if (error != nil) { @@ -16864,12 +16769,12 @@ class SubscribeAttributePowerSourceBatteryPresent : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryPresent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16902,12 +16807,12 @@ class ReadPowerSourceActiveBatteryFaults : public ReadAttribute { ~ReadPowerSourceActiveBatteryFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveBatteryFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveBatteryFaults response %@", [value description]); if (error != nil) { @@ -16928,12 +16833,12 @@ class SubscribeAttributePowerSourceActiveBatteryFaults : public SubscribeAttribu ~SubscribeAttributePowerSourceActiveBatteryFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -16966,12 +16871,12 @@ class ReadPowerSourceBatteryReplacementDescription : public ReadAttribute { ~ReadPowerSourceBatteryReplacementDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryReplacementDescriptionWithCompletionHandler:^( NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplacementDescription response %@", [value description]); @@ -16993,12 +16898,12 @@ class SubscribeAttributePowerSourceBatteryReplacementDescription : public Subscr ~SubscribeAttributePowerSourceBatteryReplacementDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17031,12 +16936,12 @@ class ReadPowerSourceBatteryCommonDesignation : public ReadAttribute { ~ReadPowerSourceBatteryCommonDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryCommonDesignationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryCommonDesignation response %@", [value description]); @@ -17058,12 +16963,12 @@ class SubscribeAttributePowerSourceBatteryCommonDesignation : public SubscribeAt ~SubscribeAttributePowerSourceBatteryCommonDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17096,12 +17001,12 @@ class ReadPowerSourceBatteryANSIDesignation : public ReadAttribute { ~ReadPowerSourceBatteryANSIDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryANSIDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryANSIDesignation response %@", [value description]); if (error != nil) { @@ -17122,12 +17027,12 @@ class SubscribeAttributePowerSourceBatteryANSIDesignation : public SubscribeAttr ~SubscribeAttributePowerSourceBatteryANSIDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17160,12 +17065,12 @@ class ReadPowerSourceBatteryIECDesignation : public ReadAttribute { ~ReadPowerSourceBatteryIECDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryIECDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryIECDesignation response %@", [value description]); if (error != nil) { @@ -17186,12 +17091,12 @@ class SubscribeAttributePowerSourceBatteryIECDesignation : public SubscribeAttri ~SubscribeAttributePowerSourceBatteryIECDesignation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17224,12 +17129,12 @@ class ReadPowerSourceBatteryApprovedChemistry : public ReadAttribute { ~ReadPowerSourceBatteryApprovedChemistry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryApprovedChemistryWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryApprovedChemistry response %@", [value description]); @@ -17251,12 +17156,12 @@ class SubscribeAttributePowerSourceBatteryApprovedChemistry : public SubscribeAt ~SubscribeAttributePowerSourceBatteryApprovedChemistry() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17289,12 +17194,12 @@ class ReadPowerSourceBatteryCapacity : public ReadAttribute { ~ReadPowerSourceBatteryCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryCapacity response %@", [value description]); if (error != nil) { @@ -17315,12 +17220,12 @@ class SubscribeAttributePowerSourceBatteryCapacity : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17353,12 +17258,12 @@ class ReadPowerSourceBatteryQuantity : public ReadAttribute { ~ReadPowerSourceBatteryQuantity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryQuantityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryQuantity response %@", [value description]); if (error != nil) { @@ -17379,12 +17284,12 @@ class SubscribeAttributePowerSourceBatteryQuantity : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryQuantity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17417,12 +17322,12 @@ class ReadPowerSourceBatteryChargeState : public ReadAttribute { ~ReadPowerSourceBatteryChargeState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryChargeStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargeState response %@", [value description]); if (error != nil) { @@ -17443,12 +17348,12 @@ class SubscribeAttributePowerSourceBatteryChargeState : public SubscribeAttribut ~SubscribeAttributePowerSourceBatteryChargeState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17481,12 +17386,12 @@ class ReadPowerSourceBatteryTimeToFullCharge : public ReadAttribute { ~ReadPowerSourceBatteryTimeToFullCharge() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryTimeToFullChargeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryTimeToFullCharge response %@", [value description]); @@ -17508,12 +17413,12 @@ class SubscribeAttributePowerSourceBatteryTimeToFullCharge : public SubscribeAtt ~SubscribeAttributePowerSourceBatteryTimeToFullCharge() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17546,12 +17451,12 @@ class ReadPowerSourceBatteryFunctionalWhileCharging : public ReadAttribute { ~ReadPowerSourceBatteryFunctionalWhileCharging() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryFunctionalWhileChargingWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryFunctionalWhileCharging response %@", [value description]); @@ -17573,12 +17478,12 @@ class SubscribeAttributePowerSourceBatteryFunctionalWhileCharging : public Subsc ~SubscribeAttributePowerSourceBatteryFunctionalWhileCharging() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17611,12 +17516,12 @@ class ReadPowerSourceBatteryChargingCurrent : public ReadAttribute { ~ReadPowerSourceBatteryChargingCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBatteryChargingCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargingCurrent response %@", [value description]); if (error != nil) { @@ -17637,12 +17542,12 @@ class SubscribeAttributePowerSourceBatteryChargingCurrent : public SubscribeAttr ~SubscribeAttributePowerSourceBatteryChargingCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17675,12 +17580,12 @@ class ReadPowerSourceActiveBatteryChargeFaults : public ReadAttribute { ~ReadPowerSourceActiveBatteryChargeFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveBatteryChargeFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveBatteryChargeFaults response %@", [value description]); @@ -17702,12 +17607,12 @@ class SubscribeAttributePowerSourceActiveBatteryChargeFaults : public SubscribeA ~SubscribeAttributePowerSourceActiveBatteryChargeFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17740,12 +17645,12 @@ class ReadPowerSourceGeneratedCommandList : public ReadAttribute { ~ReadPowerSourceGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -17766,12 +17671,12 @@ class SubscribeAttributePowerSourceGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributePowerSourceGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17804,12 +17709,12 @@ class ReadPowerSourceAcceptedCommandList : public ReadAttribute { ~ReadPowerSourceAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -17830,12 +17735,12 @@ class SubscribeAttributePowerSourceAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributePowerSourceAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17868,12 +17773,12 @@ class ReadPowerSourceAttributeList : public ReadAttribute { ~ReadPowerSourceAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.AttributeList response %@", [value description]); if (error != nil) { @@ -17894,12 +17799,12 @@ class SubscribeAttributePowerSourceAttributeList : public SubscribeAttribute { ~SubscribeAttributePowerSourceAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17932,12 +17837,12 @@ class ReadPowerSourceFeatureMap : public ReadAttribute { ~ReadPowerSourceFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.FeatureMap response %@", [value description]); if (error != nil) { @@ -17958,12 +17863,12 @@ class SubscribeAttributePowerSourceFeatureMap : public SubscribeAttribute { ~SubscribeAttributePowerSourceFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -17996,12 +17901,12 @@ class ReadPowerSourceClusterRevision : public ReadAttribute { ~ReadPowerSourceClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ClusterRevision response %@", [value description]); if (error != nil) { @@ -18022,12 +17927,12 @@ class SubscribeAttributePowerSourceClusterRevision : public SubscribeAttribute { ~SubscribeAttributePowerSourceClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18084,15 +17989,15 @@ class GeneralCommissioningArmFailSafe : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:mRequest.expiryLengthSeconds]; @@ -18101,7 +18006,7 @@ class GeneralCommissioningArmFailSafe : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster armFailSafeWithParams:params - completionHandler:^(CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, + completionHandler:^(MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -18135,15 +18040,15 @@ class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGeneralCommissioningClusterSetRegulatoryConfigParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGeneralCommissioningClusterSetRegulatoryConfigParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.newRegulatoryConfig = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.newRegulatoryConfig)]; @@ -18156,7 +18061,7 @@ class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand { while (repeatCount--) { [cluster setRegulatoryConfigWithParams:params - completionHandler:^(CHIPGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable values, + completionHandler:^(MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -18187,15 +18092,15 @@ class GeneralCommissioningCommissioningComplete : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGeneralCommissioningClusterCommissioningCompleteParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGeneralCommissioningClusterCommissioningCompleteParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -18203,7 +18108,7 @@ class GeneralCommissioningCommissioningComplete : public ClusterCommand { while (repeatCount--) { [cluster commissioningCompleteWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, + MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -18234,14 +18139,14 @@ class ReadGeneralCommissioningBreadcrumb : public ReadAttribute { ~ReadGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.Breadcrumb response %@", [value description]); if (error != nil) { @@ -18265,14 +18170,14 @@ class WriteGeneralCommissioningBreadcrumb : public WriteAttribute { ~WriteGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -18302,14 +18207,14 @@ class SubscribeAttributeGeneralCommissioningBreadcrumb : public SubscribeAttribu ~SubscribeAttributeGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18342,16 +18247,16 @@ class ReadGeneralCommissioningBasicCommissioningInfo : public ReadAttribute { ~ReadGeneralCommissioningBasicCommissioningInfo() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBasicCommissioningInfoWithCompletionHandler:^( - CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error) { + MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.BasicCommissioningInfo response %@", [value description]); if (error != nil) { LogNSError("GeneralCommissioning BasicCommissioningInfo read Error", error); @@ -18371,14 +18276,14 @@ class SubscribeAttributeGeneralCommissioningBasicCommissioningInfo : public Subs ~SubscribeAttributeGeneralCommissioningBasicCommissioningInfo() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18388,7 +18293,7 @@ class SubscribeAttributeGeneralCommissioningBasicCommissioningInfo : public Subs subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.BasicCommissioningInfo response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -18411,14 +18316,14 @@ class ReadGeneralCommissioningRegulatoryConfig : public ReadAttribute { ~ReadGeneralCommissioningRegulatoryConfig() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRegulatoryConfigWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.RegulatoryConfig response %@", [value description]); if (error != nil) { @@ -18439,14 +18344,14 @@ class SubscribeAttributeGeneralCommissioningRegulatoryConfig : public SubscribeA ~SubscribeAttributeGeneralCommissioningRegulatoryConfig() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18479,14 +18384,14 @@ class ReadGeneralCommissioningLocationCapability : public ReadAttribute { ~ReadGeneralCommissioningLocationCapability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLocationCapabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.LocationCapability response %@", [value description]); if (error != nil) { @@ -18507,14 +18412,14 @@ class SubscribeAttributeGeneralCommissioningLocationCapability : public Subscrib ~SubscribeAttributeGeneralCommissioningLocationCapability() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18547,14 +18452,14 @@ class ReadGeneralCommissioningSupportsConcurrentConnection : public ReadAttribut ~ReadGeneralCommissioningSupportsConcurrentConnection() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportsConcurrentConnectionWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.SupportsConcurrentConnection response %@", [value description]); @@ -18576,14 +18481,14 @@ class SubscribeAttributeGeneralCommissioningSupportsConcurrentConnection : publi ~SubscribeAttributeGeneralCommissioningSupportsConcurrentConnection() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18616,14 +18521,14 @@ class ReadGeneralCommissioningGeneratedCommandList : public ReadAttribute { ~ReadGeneralCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -18644,14 +18549,14 @@ class SubscribeAttributeGeneralCommissioningGeneratedCommandList : public Subscr ~SubscribeAttributeGeneralCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18684,14 +18589,14 @@ class ReadGeneralCommissioningAcceptedCommandList : public ReadAttribute { ~ReadGeneralCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -18712,14 +18617,14 @@ class SubscribeAttributeGeneralCommissioningAcceptedCommandList : public Subscri ~SubscribeAttributeGeneralCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18752,14 +18657,14 @@ class ReadGeneralCommissioningAttributeList : public ReadAttribute { ~ReadGeneralCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -18780,14 +18685,14 @@ class SubscribeAttributeGeneralCommissioningAttributeList : public SubscribeAttr ~SubscribeAttributeGeneralCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18820,14 +18725,14 @@ class ReadGeneralCommissioningFeatureMap : public ReadAttribute { ~ReadGeneralCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -18848,14 +18753,14 @@ class SubscribeAttributeGeneralCommissioningFeatureMap : public SubscribeAttribu ~SubscribeAttributeGeneralCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18888,14 +18793,14 @@ class ReadGeneralCommissioningClusterRevision : public ReadAttribute { ~ReadGeneralCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -18916,14 +18821,14 @@ class SubscribeAttributeGeneralCommissioningClusterRevision : public SubscribeAt ~SubscribeAttributeGeneralCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -18986,15 +18891,15 @@ class NetworkCommissioningScanNetworks : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterScanNetworksParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterScanNetworksParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.ssid.HasValue()) { @@ -19016,7 +18921,7 @@ class NetworkCommissioningScanNetworks : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster scanNetworksWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterScanNetworksResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterScanNetworksResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19050,15 +18955,15 @@ class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.ssid = [NSData dataWithBytes:mRequest.ssid.data() length:mRequest.ssid.size()]; @@ -19073,7 +18978,7 @@ class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand { while (repeatCount--) { [cluster addOrUpdateWiFiNetworkWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19106,15 +19011,15 @@ class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterAddOrUpdateThreadNetworkParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.operationalDataset = [NSData dataWithBytes:mRequest.operationalDataset.data() @@ -19129,7 +19034,7 @@ class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand { while (repeatCount--) { [cluster addOrUpdateThreadNetworkWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19162,15 +19067,15 @@ class NetworkCommissioningRemoveNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterRemoveNetworkParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterRemoveNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.networkID = [NSData dataWithBytes:mRequest.networkID.data() length:mRequest.networkID.size()]; @@ -19183,7 +19088,7 @@ class NetworkCommissioningRemoveNetwork : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster removeNetworkWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19216,15 +19121,15 @@ class NetworkCommissioningConnectNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterConnectNetworkParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterConnectNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.networkID = [NSData dataWithBytes:mRequest.networkID.data() length:mRequest.networkID.size()]; @@ -19237,7 +19142,7 @@ class NetworkCommissioningConnectNetwork : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster connectNetworkWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterConnectNetworkResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19271,15 +19176,15 @@ class NetworkCommissioningReorderNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPNetworkCommissioningClusterReorderNetworkParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRNetworkCommissioningClusterReorderNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.networkID = [NSData dataWithBytes:mRequest.networkID.data() length:mRequest.networkID.size()]; @@ -19293,7 +19198,7 @@ class NetworkCommissioningReorderNetwork : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster reorderNetworkWithParams:params - completionHandler:^(CHIPNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, + completionHandler:^(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -19325,14 +19230,14 @@ class ReadNetworkCommissioningMaxNetworks : public ReadAttribute { ~ReadNetworkCommissioningMaxNetworks() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxNetworksWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.MaxNetworks response %@", [value description]); if (error != nil) { @@ -19353,14 +19258,14 @@ class SubscribeAttributeNetworkCommissioningMaxNetworks : public SubscribeAttrib ~SubscribeAttributeNetworkCommissioningMaxNetworks() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19393,14 +19298,14 @@ class ReadNetworkCommissioningNetworks : public ReadAttribute { ~ReadNetworkCommissioningNetworks() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNetworksWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.Networks response %@", [value description]); if (error != nil) { @@ -19421,14 +19326,14 @@ class SubscribeAttributeNetworkCommissioningNetworks : public SubscribeAttribute ~SubscribeAttributeNetworkCommissioningNetworks() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19461,14 +19366,14 @@ class ReadNetworkCommissioningScanMaxTimeSeconds : public ReadAttribute { ~ReadNetworkCommissioningScanMaxTimeSeconds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScanMaxTimeSecondsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ScanMaxTimeSeconds response %@", [value description]); if (error != nil) { @@ -19489,14 +19394,14 @@ class SubscribeAttributeNetworkCommissioningScanMaxTimeSeconds : public Subscrib ~SubscribeAttributeNetworkCommissioningScanMaxTimeSeconds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19529,14 +19434,14 @@ class ReadNetworkCommissioningConnectMaxTimeSeconds : public ReadAttribute { ~ReadNetworkCommissioningConnectMaxTimeSeconds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeConnectMaxTimeSecondsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ConnectMaxTimeSeconds response %@", [value description]); if (error != nil) { @@ -19557,14 +19462,14 @@ class SubscribeAttributeNetworkCommissioningConnectMaxTimeSeconds : public Subsc ~SubscribeAttributeNetworkCommissioningConnectMaxTimeSeconds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19597,14 +19502,14 @@ class ReadNetworkCommissioningInterfaceEnabled : public ReadAttribute { ~ReadNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInterfaceEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.InterfaceEnabled response %@", [value description]); if (error != nil) { @@ -19628,14 +19533,14 @@ class WriteNetworkCommissioningInterfaceEnabled : public WriteAttribute { ~WriteNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -19665,14 +19570,14 @@ class SubscribeAttributeNetworkCommissioningInterfaceEnabled : public SubscribeA ~SubscribeAttributeNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19705,14 +19610,14 @@ class ReadNetworkCommissioningLastNetworkingStatus : public ReadAttribute { ~ReadNetworkCommissioningLastNetworkingStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastNetworkingStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastNetworkingStatus response %@", [value description]); if (error != nil) { @@ -19733,14 +19638,14 @@ class SubscribeAttributeNetworkCommissioningLastNetworkingStatus : public Subscr ~SubscribeAttributeNetworkCommissioningLastNetworkingStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19773,14 +19678,14 @@ class ReadNetworkCommissioningLastNetworkID : public ReadAttribute { ~ReadNetworkCommissioningLastNetworkID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastNetworkIDWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastNetworkID response %@", [value description]); if (error != nil) { @@ -19801,14 +19706,14 @@ class SubscribeAttributeNetworkCommissioningLastNetworkID : public SubscribeAttr ~SubscribeAttributeNetworkCommissioningLastNetworkID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19841,14 +19746,14 @@ class ReadNetworkCommissioningLastConnectErrorValue : public ReadAttribute { ~ReadNetworkCommissioningLastConnectErrorValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastConnectErrorValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastConnectErrorValue response %@", [value description]); if (error != nil) { @@ -19869,14 +19774,14 @@ class SubscribeAttributeNetworkCommissioningLastConnectErrorValue : public Subsc ~SubscribeAttributeNetworkCommissioningLastConnectErrorValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19909,14 +19814,14 @@ class ReadNetworkCommissioningGeneratedCommandList : public ReadAttribute { ~ReadNetworkCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -19937,14 +19842,14 @@ class SubscribeAttributeNetworkCommissioningGeneratedCommandList : public Subscr ~SubscribeAttributeNetworkCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -19977,14 +19882,14 @@ class ReadNetworkCommissioningAcceptedCommandList : public ReadAttribute { ~ReadNetworkCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -20005,14 +19910,14 @@ class SubscribeAttributeNetworkCommissioningAcceptedCommandList : public Subscri ~SubscribeAttributeNetworkCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20045,14 +19950,14 @@ class ReadNetworkCommissioningAttributeList : public ReadAttribute { ~ReadNetworkCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -20073,14 +19978,14 @@ class SubscribeAttributeNetworkCommissioningAttributeList : public SubscribeAttr ~SubscribeAttributeNetworkCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20113,14 +20018,14 @@ class ReadNetworkCommissioningFeatureMap : public ReadAttribute { ~ReadNetworkCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -20141,14 +20046,14 @@ class SubscribeAttributeNetworkCommissioningFeatureMap : public SubscribeAttribu ~SubscribeAttributeNetworkCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20181,14 +20086,14 @@ class ReadNetworkCommissioningClusterRevision : public ReadAttribute { ~ReadNetworkCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -20209,14 +20114,14 @@ class SubscribeAttributeNetworkCommissioningClusterRevision : public SubscribeAt ~SubscribeAttributeNetworkCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20267,13 +20172,13 @@ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDiagnosticLogsClusterRetrieveLogsRequestParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDiagnosticLogsClusterRetrieveLogsRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.intent = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.intent)]; @@ -20284,7 +20189,7 @@ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster retrieveLogsRequestWithParams:params - completionHandler:^(CHIPDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable values, + completionHandler:^(MTRDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -20316,12 +20221,12 @@ class ReadDiagnosticLogsGeneratedCommandList : public ReadAttribute { ~ReadDiagnosticLogsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -20342,12 +20247,12 @@ class SubscribeAttributeDiagnosticLogsGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeDiagnosticLogsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20380,12 +20285,12 @@ class ReadDiagnosticLogsAcceptedCommandList : public ReadAttribute { ~ReadDiagnosticLogsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -20406,12 +20311,12 @@ class SubscribeAttributeDiagnosticLogsAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeDiagnosticLogsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20444,12 +20349,12 @@ class ReadDiagnosticLogsAttributeList : public ReadAttribute { ~ReadDiagnosticLogsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.AttributeList response %@", [value description]); if (error != nil) { @@ -20470,12 +20375,12 @@ class SubscribeAttributeDiagnosticLogsAttributeList : public SubscribeAttribute ~SubscribeAttributeDiagnosticLogsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20508,12 +20413,12 @@ class ReadDiagnosticLogsFeatureMap : public ReadAttribute { ~ReadDiagnosticLogsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.FeatureMap response %@", [value description]); if (error != nil) { @@ -20534,12 +20439,12 @@ class SubscribeAttributeDiagnosticLogsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDiagnosticLogsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20572,12 +20477,12 @@ class ReadDiagnosticLogsClusterRevision : public ReadAttribute { ~ReadDiagnosticLogsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.ClusterRevision response %@", [value description]); if (error != nil) { @@ -20598,12 +20503,12 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut ~SubscribeAttributeDiagnosticLogsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDiagnosticLogs * cluster = [[CHIPDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20666,15 +20571,15 @@ class GeneralDiagnosticsTestEventTrigger : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.enableKey = [NSData dataWithBytes:mRequest.enableKey.data() length:mRequest.enableKey.size()]; @@ -20713,14 +20618,14 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ReadAttribute { ~ReadGeneralDiagnosticsNetworkInterfaces() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.NetworkInterfaces response %@", [value description]); if (error != nil) { @@ -20741,14 +20646,14 @@ class SubscribeAttributeGeneralDiagnosticsNetworkInterfaces : public SubscribeAt ~SubscribeAttributeGeneralDiagnosticsNetworkInterfaces() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20781,14 +20686,14 @@ class ReadGeneralDiagnosticsRebootCount : public ReadAttribute { ~ReadGeneralDiagnosticsRebootCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRebootCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.RebootCount response %@", [value description]); if (error != nil) { @@ -20809,14 +20714,14 @@ class SubscribeAttributeGeneralDiagnosticsRebootCount : public SubscribeAttribut ~SubscribeAttributeGeneralDiagnosticsRebootCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20849,14 +20754,14 @@ class ReadGeneralDiagnosticsUpTime : public ReadAttribute { ~ReadGeneralDiagnosticsUpTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUpTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.UpTime response %@", [value description]); if (error != nil) { @@ -20877,14 +20782,14 @@ class SubscribeAttributeGeneralDiagnosticsUpTime : public SubscribeAttribute { ~SubscribeAttributeGeneralDiagnosticsUpTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20917,14 +20822,14 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ReadAttribute { ~ReadGeneralDiagnosticsTotalOperationalHours() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalOperationalHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.TotalOperationalHours response %@", [value description]); if (error != nil) { @@ -20945,14 +20850,14 @@ class SubscribeAttributeGeneralDiagnosticsTotalOperationalHours : public Subscri ~SubscribeAttributeGeneralDiagnosticsTotalOperationalHours() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -20985,14 +20890,14 @@ class ReadGeneralDiagnosticsBootReasons : public ReadAttribute { ~ReadGeneralDiagnosticsBootReasons() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBootReasonsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.BootReasons response %@", [value description]); if (error != nil) { @@ -21013,14 +20918,14 @@ class SubscribeAttributeGeneralDiagnosticsBootReasons : public SubscribeAttribut ~SubscribeAttributeGeneralDiagnosticsBootReasons() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21053,14 +20958,14 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveHardwareFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveHardwareFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveHardwareFaults response %@", [value description]); if (error != nil) { @@ -21081,14 +20986,14 @@ class SubscribeAttributeGeneralDiagnosticsActiveHardwareFaults : public Subscrib ~SubscribeAttributeGeneralDiagnosticsActiveHardwareFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21121,14 +21026,14 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveRadioFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveRadioFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveRadioFaults response %@", [value description]); if (error != nil) { @@ -21149,14 +21054,14 @@ class SubscribeAttributeGeneralDiagnosticsActiveRadioFaults : public SubscribeAt ~SubscribeAttributeGeneralDiagnosticsActiveRadioFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21189,14 +21094,14 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveNetworkFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveNetworkFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveNetworkFaults response %@", [value description]); if (error != nil) { @@ -21217,14 +21122,14 @@ class SubscribeAttributeGeneralDiagnosticsActiveNetworkFaults : public Subscribe ~SubscribeAttributeGeneralDiagnosticsActiveNetworkFaults() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21257,14 +21162,14 @@ class ReadGeneralDiagnosticsTestEventTriggersEnabled : public ReadAttribute { ~ReadGeneralDiagnosticsTestEventTriggersEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTestEventTriggersEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.TestEventTriggersEnabled response %@", [value description]); @@ -21286,14 +21191,14 @@ class SubscribeAttributeGeneralDiagnosticsTestEventTriggersEnabled : public Subs ~SubscribeAttributeGeneralDiagnosticsTestEventTriggersEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21326,14 +21231,14 @@ class ReadGeneralDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadGeneralDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -21354,14 +21259,14 @@ class SubscribeAttributeGeneralDiagnosticsGeneratedCommandList : public Subscrib ~SubscribeAttributeGeneralDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21394,14 +21299,14 @@ class ReadGeneralDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadGeneralDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -21422,14 +21327,14 @@ class SubscribeAttributeGeneralDiagnosticsAcceptedCommandList : public Subscribe ~SubscribeAttributeGeneralDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21462,14 +21367,14 @@ class ReadGeneralDiagnosticsAttributeList : public ReadAttribute { ~ReadGeneralDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -21490,14 +21395,14 @@ class SubscribeAttributeGeneralDiagnosticsAttributeList : public SubscribeAttrib ~SubscribeAttributeGeneralDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21530,14 +21435,14 @@ class ReadGeneralDiagnosticsFeatureMap : public ReadAttribute { ~ReadGeneralDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -21558,14 +21463,14 @@ class SubscribeAttributeGeneralDiagnosticsFeatureMap : public SubscribeAttribute ~SubscribeAttributeGeneralDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21598,14 +21503,14 @@ class ReadGeneralDiagnosticsClusterRevision : public ReadAttribute { ~ReadGeneralDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -21626,14 +21531,14 @@ class SubscribeAttributeGeneralDiagnosticsClusterRevision : public SubscribeAttr ~SubscribeAttributeGeneralDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21686,15 +21591,15 @@ class SoftwareDiagnosticsResetWatermarks : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPSoftwareDiagnosticsClusterResetWatermarksParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRSoftwareDiagnosticsClusterResetWatermarksParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -21730,14 +21635,14 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ReadAttribute { ~ReadSoftwareDiagnosticsThreadMetrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.ThreadMetrics response %@", [value description]); if (error != nil) { @@ -21758,14 +21663,14 @@ class SubscribeAttributeSoftwareDiagnosticsThreadMetrics : public SubscribeAttri ~SubscribeAttributeSoftwareDiagnosticsThreadMetrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21798,14 +21703,14 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapFree() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapFreeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapFree response %@", [value description]); if (error != nil) { @@ -21826,14 +21731,14 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapFree : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapFree() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21866,14 +21771,14 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapUsed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapUsed response %@", [value description]); if (error != nil) { @@ -21894,14 +21799,14 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapUsed : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapUsed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -21934,14 +21839,14 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapHighWatermark() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapHighWatermark response %@", [value description]); @@ -21963,14 +21868,14 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapHighWatermark : public Sub ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapHighWatermark() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22003,14 +21908,14 @@ class ReadSoftwareDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadSoftwareDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -22031,14 +21936,14 @@ class SubscribeAttributeSoftwareDiagnosticsGeneratedCommandList : public Subscri ~SubscribeAttributeSoftwareDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22071,14 +21976,14 @@ class ReadSoftwareDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadSoftwareDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -22099,14 +22004,14 @@ class SubscribeAttributeSoftwareDiagnosticsAcceptedCommandList : public Subscrib ~SubscribeAttributeSoftwareDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22139,14 +22044,14 @@ class ReadSoftwareDiagnosticsAttributeList : public ReadAttribute { ~ReadSoftwareDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -22167,14 +22072,14 @@ class SubscribeAttributeSoftwareDiagnosticsAttributeList : public SubscribeAttri ~SubscribeAttributeSoftwareDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22207,14 +22112,14 @@ class ReadSoftwareDiagnosticsFeatureMap : public ReadAttribute { ~ReadSoftwareDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -22235,14 +22140,14 @@ class SubscribeAttributeSoftwareDiagnosticsFeatureMap : public SubscribeAttribut ~SubscribeAttributeSoftwareDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22275,14 +22180,14 @@ class ReadSoftwareDiagnosticsClusterRevision : public ReadAttribute { ~ReadSoftwareDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -22303,14 +22208,14 @@ class SubscribeAttributeSoftwareDiagnosticsClusterRevision : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22422,15 +22327,15 @@ class ThreadNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPThreadNetworkDiagnosticsClusterResetCountsParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRThreadNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -22466,14 +22371,14 @@ class ReadThreadNetworkDiagnosticsChannel : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChannel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeChannelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Channel response %@", [value description]); if (error != nil) { @@ -22494,14 +22399,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsChannel : public SubscribeAttrib ~SubscribeAttributeThreadNetworkDiagnosticsChannel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22534,14 +22439,14 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRoutingRole() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRoutingRoleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RoutingRole response %@", [value description]); if (error != nil) { @@ -22562,14 +22467,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRoutingRole : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsRoutingRole() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22602,14 +22507,14 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ReadAttribute { ~ReadThreadNetworkDiagnosticsNetworkName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNetworkNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.NetworkName response %@", [value description]); if (error != nil) { @@ -22630,14 +22535,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsNetworkName : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsNetworkName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22670,14 +22575,14 @@ class ReadThreadNetworkDiagnosticsPanId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPanId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PanId response %@", [value description]); if (error != nil) { @@ -22698,14 +22603,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsPanId : public SubscribeAttribut ~SubscribeAttributeThreadNetworkDiagnosticsPanId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22738,14 +22643,14 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsExtendedPanId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeExtendedPanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ExtendedPanId response %@", [value description]); if (error != nil) { @@ -22766,14 +22671,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsExtendedPanId : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsExtendedPanId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22806,14 +22711,14 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ReadAttribute { ~ReadThreadNetworkDiagnosticsMeshLocalPrefix() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeshLocalPrefixWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.MeshLocalPrefix response %@", [value description]); if (error != nil) { @@ -22834,14 +22739,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsMeshLocalPrefix : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsMeshLocalPrefix() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22874,14 +22779,14 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -22902,14 +22807,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsOverrunCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -22942,14 +22847,14 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsNeighborTableList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNeighborTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.NeighborTableList response %@", [value description]); if (error != nil) { @@ -22970,14 +22875,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsNeighborTableList : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsNeighborTableList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23010,14 +22915,14 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRouteTableList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRouteTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RouteTableList response %@", [value description]); if (error != nil) { @@ -23038,14 +22943,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRouteTableList : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsRouteTableList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23078,14 +22983,14 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPartitionId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePartitionIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PartitionId response %@", [value description]); if (error != nil) { @@ -23106,14 +23011,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsPartitionId : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsPartitionId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23146,14 +23051,14 @@ class ReadThreadNetworkDiagnosticsWeighting : public ReadAttribute { ~ReadThreadNetworkDiagnosticsWeighting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWeightingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Weighting response %@", [value description]); if (error != nil) { @@ -23174,14 +23079,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsWeighting : public SubscribeAttr ~SubscribeAttributeThreadNetworkDiagnosticsWeighting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23214,14 +23119,14 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDataVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.DataVersion response %@", [value description]); if (error != nil) { @@ -23242,14 +23147,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsDataVersion : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsDataVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23282,14 +23187,14 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ReadAttribute { ~ReadThreadNetworkDiagnosticsStableDataVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStableDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.StableDataVersion response %@", [value description]); if (error != nil) { @@ -23310,14 +23215,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsStableDataVersion : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsStableDataVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23350,14 +23255,14 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsLeaderRouterId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLeaderRouterIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.LeaderRouterId response %@", [value description]); if (error != nil) { @@ -23378,14 +23283,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsLeaderRouterId : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsLeaderRouterId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23418,14 +23323,14 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDetachedRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDetachedRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.DetachedRoleCount response %@", [value description]); if (error != nil) { @@ -23446,14 +23351,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsDetachedRoleCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsDetachedRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23486,14 +23391,14 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChildRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeChildRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ChildRoleCount response %@", [value description]); if (error != nil) { @@ -23514,14 +23419,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsChildRoleCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsChildRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23554,14 +23459,14 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRouterRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRouterRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RouterRoleCount response %@", [value description]); if (error != nil) { @@ -23582,14 +23487,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRouterRoleCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRouterRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23622,14 +23527,14 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsLeaderRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLeaderRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.LeaderRoleCount response %@", [value description]); if (error != nil) { @@ -23650,14 +23555,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsLeaderRoleCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsLeaderRoleCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23690,14 +23595,14 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAttachAttemptCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AttachAttemptCount response %@", [value description]); if (error != nil) { @@ -23718,14 +23623,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsAttachAttemptCount : public Subs ~SubscribeAttributeThreadNetworkDiagnosticsAttachAttemptCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23758,14 +23663,14 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsPartitionIdChangeCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePartitionIdChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PartitionIdChangeCount response %@", [value description]); if (error != nil) { @@ -23786,14 +23691,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsPartitionIdChangeCount : public ~SubscribeAttributeThreadNetworkDiagnosticsPartitionIdChangeCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23826,14 +23731,14 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Rea ~ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBetterPartitionAttachAttemptCountWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.BetterPartitionAttachAttemptCount response %@", [value description]); @@ -23855,14 +23760,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsBetterPartitionAttachAttemptCoun ~SubscribeAttributeThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23895,14 +23800,14 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsParentChangeCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeParentChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ParentChangeCount response %@", [value description]); if (error != nil) { @@ -23923,14 +23828,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsParentChangeCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsParentChangeCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -23963,14 +23868,14 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxTotalCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxTotalCount response %@", [value description]); if (error != nil) { @@ -23991,14 +23896,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxTotalCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxTotalCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24031,14 +23936,14 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxUnicastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxUnicastCount response %@", [value description]); if (error != nil) { @@ -24059,14 +23964,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxUnicastCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsTxUnicastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24099,14 +24004,14 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBroadcastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBroadcastCount response %@", [value description]); if (error != nil) { @@ -24127,14 +24032,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBroadcastCount : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsTxBroadcastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24167,14 +24072,14 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxAckRequestedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxAckRequestedCount response %@", [value description]); if (error != nil) { @@ -24195,14 +24100,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxAckRequestedCount : public Sub ~SubscribeAttributeThreadNetworkDiagnosticsTxAckRequestedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24235,14 +24140,14 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxAckedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxAckedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxAckedCount response %@", [value description]); if (error != nil) { @@ -24263,14 +24168,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxAckedCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxAckedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24303,14 +24208,14 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxNoAckRequestedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxNoAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxNoAckRequestedCount response %@", [value description]); if (error != nil) { @@ -24331,14 +24236,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxNoAckRequestedCount : public S ~SubscribeAttributeThreadNetworkDiagnosticsTxNoAckRequestedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24371,14 +24276,14 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxDataCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDataCount response %@", [value description]); if (error != nil) { @@ -24399,14 +24304,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDataCount : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsTxDataCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24439,14 +24344,14 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxDataPollCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDataPollCount response %@", [value description]); if (error != nil) { @@ -24467,14 +24372,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDataPollCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsTxDataPollCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24507,14 +24412,14 @@ class ReadThreadNetworkDiagnosticsTxBeaconCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBeaconCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBeaconCount response %@", [value description]); if (error != nil) { @@ -24535,14 +24440,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBeaconCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsTxBeaconCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24575,14 +24480,14 @@ class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBeaconRequestCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBeaconRequestCount response %@", [value description]); if (error != nil) { @@ -24603,14 +24508,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBeaconRequestCount : public Su ~SubscribeAttributeThreadNetworkDiagnosticsTxBeaconRequestCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24643,14 +24548,14 @@ class ReadThreadNetworkDiagnosticsTxOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxOtherCount response %@", [value description]); if (error != nil) { @@ -24671,14 +24576,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxOtherCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24711,14 +24616,14 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxRetryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxRetryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxRetryCount response %@", [value description]); if (error != nil) { @@ -24739,14 +24644,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxRetryCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxRetryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24779,14 +24684,14 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ReadAttri ~ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDirectMaxRetryExpiryCount response %@", [value description]); @@ -24808,14 +24713,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : pu ~SubscribeAttributeThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24848,14 +24753,14 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ReadAtt ~ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxIndirectMaxRetryExpiryCount response %@", [value description]); @@ -24877,14 +24782,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : ~SubscribeAttributeThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24917,14 +24822,14 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrCcaCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxErrCcaCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrCcaCount response %@", [value description]); if (error != nil) { @@ -24945,14 +24850,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrCcaCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsTxErrCcaCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -24985,14 +24890,14 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrAbortCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxErrAbortCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrAbortCount response %@", [value description]); if (error != nil) { @@ -25013,14 +24918,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrAbortCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsTxErrAbortCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25053,14 +24958,14 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrBusyChannelCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxErrBusyChannelCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrBusyChannelCount response %@", [value description]); if (error != nil) { @@ -25081,14 +24986,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrBusyChannelCount : public S ~SubscribeAttributeThreadNetworkDiagnosticsTxErrBusyChannelCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25121,14 +25026,14 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxTotalCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxTotalCount response %@", [value description]); if (error != nil) { @@ -25149,14 +25054,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxTotalCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsRxTotalCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25189,14 +25094,14 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxUnicastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxUnicastCount response %@", [value description]); if (error != nil) { @@ -25217,14 +25122,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxUnicastCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsRxUnicastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25257,14 +25162,14 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBroadcastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBroadcastCount response %@", [value description]); if (error != nil) { @@ -25285,14 +25190,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBroadcastCount : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsRxBroadcastCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25325,14 +25230,14 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDataCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDataCount response %@", [value description]); if (error != nil) { @@ -25353,14 +25258,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDataCount : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsRxDataCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25393,14 +25298,14 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDataPollCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDataPollCount response %@", [value description]); if (error != nil) { @@ -25421,14 +25326,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDataPollCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRxDataPollCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25461,14 +25366,14 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBeaconCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBeaconCount response %@", [value description]); if (error != nil) { @@ -25489,14 +25394,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBeaconCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxBeaconCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25529,14 +25434,14 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBeaconRequestCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBeaconRequestCount response %@", [value description]); if (error != nil) { @@ -25557,14 +25462,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBeaconRequestCount : public Su ~SubscribeAttributeThreadNetworkDiagnosticsRxBeaconRequestCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25597,14 +25502,14 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxOtherCount response %@", [value description]); if (error != nil) { @@ -25625,14 +25530,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxOtherCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsRxOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25665,14 +25570,14 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsRxAddressFilteredCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxAddressFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxAddressFilteredCount response %@", [value description]); if (error != nil) { @@ -25693,14 +25598,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxAddressFilteredCount : public ~SubscribeAttributeThreadNetworkDiagnosticsRxAddressFilteredCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25733,14 +25638,14 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxDestAddrFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDestAddrFilteredCount response %@", [value description]); @@ -25762,14 +25667,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ~SubscribeAttributeThreadNetworkDiagnosticsRxDestAddrFilteredCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25802,14 +25707,14 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDuplicatedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxDuplicatedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDuplicatedCount response %@", [value description]); if (error != nil) { @@ -25830,14 +25735,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDuplicatedCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsRxDuplicatedCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25870,14 +25775,14 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrNoFrameCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrNoFrameCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrNoFrameCount response %@", [value description]); if (error != nil) { @@ -25898,14 +25803,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrNoFrameCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsRxErrNoFrameCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -25938,14 +25843,14 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ReadAttribu ~ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrUnknownNeighborCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrUnknownNeighborCount response %@", [value description]); @@ -25967,14 +25872,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrUnknownNeighborCount : publ ~SubscribeAttributeThreadNetworkDiagnosticsRxErrUnknownNeighborCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26007,14 +25912,14 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ReadAttribut ~ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrInvalidSrcAddrCount response %@", [value description]); @@ -26036,14 +25941,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : publi ~SubscribeAttributeThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26076,14 +25981,14 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrSecCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrSecCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrSecCount response %@", [value description]); if (error != nil) { @@ -26104,14 +26009,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrSecCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxErrSecCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26144,14 +26049,14 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrFcsCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrFcsCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrFcsCount response %@", [value description]); if (error != nil) { @@ -26172,14 +26077,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrFcsCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxErrFcsCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26212,14 +26117,14 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRxErrOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrOtherCount response %@", [value description]); if (error != nil) { @@ -26240,14 +26145,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrOtherCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRxErrOtherCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26280,14 +26185,14 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ReadAttribute { ~ReadThreadNetworkDiagnosticsActiveTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ActiveTimestamp response %@", [value description]); if (error != nil) { @@ -26308,14 +26213,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsActiveTimestamp : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsActiveTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26348,14 +26253,14 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPendingTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePendingTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PendingTimestamp response %@", [value description]); if (error != nil) { @@ -26376,14 +26281,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsPendingTimestamp : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsPendingTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26416,14 +26321,14 @@ class ReadThreadNetworkDiagnosticsDelay : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Delay response %@", [value description]); if (error != nil) { @@ -26444,14 +26349,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsDelay : public SubscribeAttribut ~SubscribeAttributeThreadNetworkDiagnosticsDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26484,16 +26389,16 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ReadAttribute { ~ReadThreadNetworkDiagnosticsSecurityPolicy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSecurityPolicyWithCompletionHandler:^( - CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error) { + MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.SecurityPolicy response %@", [value description]); if (error != nil) { LogNSError("ThreadNetworkDiagnostics SecurityPolicy read Error", error); @@ -26513,14 +26418,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsSecurityPolicy : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsSecurityPolicy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26530,7 +26435,7 @@ class SubscribeAttributeThreadNetworkDiagnosticsSecurityPolicy : public Subscrib subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.SecurityPolicy response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -26553,14 +26458,14 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChannelMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeChannelMaskWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ChannelMask response %@", [value description]); if (error != nil) { @@ -26581,14 +26486,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsChannelMask : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsChannelMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26621,16 +26526,16 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ReadAttr ~ReadThreadNetworkDiagnosticsOperationalDatasetComponents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOperationalDatasetComponentsWithCompletionHandler:^( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error) { + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.OperationalDatasetComponents response %@", [value description]); if (error != nil) { LogNSError("ThreadNetworkDiagnostics OperationalDatasetComponents read Error", error); @@ -26650,14 +26555,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsOperationalDatasetComponents : p ~SubscribeAttributeThreadNetworkDiagnosticsOperationalDatasetComponents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26668,7 +26573,7 @@ class SubscribeAttributeThreadNetworkDiagnosticsOperationalDatasetComponents : p mSubscriptionEstablished = YES; } reportHandler:^( - CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error) { + MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.OperationalDatasetComponents response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -26691,14 +26596,14 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ReadAttribute ~ReadThreadNetworkDiagnosticsActiveNetworkFaultsList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveNetworkFaultsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ActiveNetworkFaultsList response %@", [value description]); if (error != nil) { @@ -26719,14 +26624,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsActiveNetworkFaultsList : public ~SubscribeAttributeThreadNetworkDiagnosticsActiveNetworkFaultsList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26759,14 +26664,14 @@ class ReadThreadNetworkDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -26787,14 +26692,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsGeneratedCommandList : public Su ~SubscribeAttributeThreadNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26827,14 +26732,14 @@ class ReadThreadNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -26855,14 +26760,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsAcceptedCommandList : public Sub ~SubscribeAttributeThreadNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26895,14 +26800,14 @@ class ReadThreadNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -26923,14 +26828,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsAttributeList : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -26963,14 +26868,14 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadThreadNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -26991,14 +26896,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsFeatureMap : public SubscribeAtt ~SubscribeAttributeThreadNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27031,14 +26936,14 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadThreadNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -27059,14 +26964,14 @@ class SubscribeAttributeThreadNetworkDiagnosticsClusterRevision : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27130,15 +27035,15 @@ class WiFiNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPWiFiNetworkDiagnosticsClusterResetCountsParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRWiFiNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -27174,14 +27079,14 @@ class ReadWiFiNetworkDiagnosticsBssid : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBssid() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBssidWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.Bssid response %@", [value description]); if (error != nil) { @@ -27202,14 +27107,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBssid : public SubscribeAttribute ~SubscribeAttributeWiFiNetworkDiagnosticsBssid() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27242,14 +27147,14 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsSecurityType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.SecurityType response %@", [value description]); if (error != nil) { @@ -27270,14 +27175,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsSecurityType : public SubscribeAtt ~SubscribeAttributeWiFiNetworkDiagnosticsSecurityType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27310,14 +27215,14 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsWiFiVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.WiFiVersion response %@", [value description]); if (error != nil) { @@ -27338,14 +27243,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsWiFiVersion : public SubscribeAttr ~SubscribeAttributeWiFiNetworkDiagnosticsWiFiVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27378,14 +27283,14 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsChannelNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.ChannelNumber response %@", [value description]); if (error != nil) { @@ -27406,14 +27311,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsChannelNumber : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsChannelNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27446,14 +27351,14 @@ class ReadWiFiNetworkDiagnosticsRssi : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsRssi() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.Rssi response %@", [value description]); if (error != nil) { @@ -27474,14 +27379,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsRssi : public SubscribeAttribute { ~SubscribeAttributeWiFiNetworkDiagnosticsRssi() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27514,14 +27419,14 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBeaconLostCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.BeaconLostCount response %@", [value description]); if (error != nil) { @@ -27542,14 +27447,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBeaconLostCount : public Subscribe ~SubscribeAttributeWiFiNetworkDiagnosticsBeaconLostCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27582,14 +27487,14 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBeaconRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.BeaconRxCount response %@", [value description]); if (error != nil) { @@ -27610,14 +27515,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBeaconRxCount : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsBeaconRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27650,14 +27555,14 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketMulticastRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketMulticastRxCount response %@", [value description]); if (error != nil) { @@ -27678,14 +27583,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastRxCount : public Su ~SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27718,14 +27623,14 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketMulticastTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketMulticastTxCount response %@", [value description]); if (error != nil) { @@ -27746,14 +27651,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastTxCount : public Su ~SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27786,14 +27691,14 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketUnicastRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketUnicastRxCount response %@", [value description]); if (error != nil) { @@ -27814,14 +27719,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastRxCount : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27854,14 +27759,14 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketUnicastTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketUnicastTxCount response %@", [value description]); if (error != nil) { @@ -27882,14 +27787,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastTxCount : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27922,14 +27827,14 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsCurrentMaxRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentMaxRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.CurrentMaxRate response %@", [value description]); if (error != nil) { @@ -27950,14 +27855,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsCurrentMaxRate : public SubscribeA ~SubscribeAttributeWiFiNetworkDiagnosticsCurrentMaxRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -27990,14 +27895,14 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -28018,14 +27923,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsOverrunCount : public SubscribeAtt ~SubscribeAttributeWiFiNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28058,14 +27963,14 @@ class ReadWiFiNetworkDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -28086,14 +27991,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsGeneratedCommandList : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28126,14 +28031,14 @@ class ReadWiFiNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -28154,14 +28059,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsAcceptedCommandList : public Subsc ~SubscribeAttributeWiFiNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28194,14 +28099,14 @@ class ReadWiFiNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -28222,14 +28127,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsAttributeList : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28262,14 +28167,14 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -28290,14 +28195,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsFeatureMap : public SubscribeAttri ~SubscribeAttributeWiFiNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28330,14 +28235,14 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -28358,14 +28263,14 @@ class SubscribeAttributeWiFiNetworkDiagnosticsClusterRevision : public Subscribe ~SubscribeAttributeWiFiNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28422,15 +28327,15 @@ class EthernetNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPEthernetNetworkDiagnosticsClusterResetCountsParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTREthernetNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -28466,14 +28371,14 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPHYRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PHYRate response %@", [value description]); if (error != nil) { @@ -28494,14 +28399,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPHYRate : public SubscribeAttr ~SubscribeAttributeEthernetNetworkDiagnosticsPHYRate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28534,14 +28439,14 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsFullDuplex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.FullDuplex response %@", [value description]); if (error != nil) { @@ -28562,14 +28467,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsFullDuplex : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsFullDuplex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28602,14 +28507,14 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPacketRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PacketRxCount response %@", [value description]); if (error != nil) { @@ -28630,14 +28535,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPacketRxCount : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsPacketRxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28670,14 +28575,14 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPacketTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PacketTxCount response %@", [value description]); if (error != nil) { @@ -28698,14 +28603,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPacketTxCount : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsPacketTxCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28738,14 +28643,14 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsTxErrCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.TxErrCount response %@", [value description]); if (error != nil) { @@ -28766,14 +28671,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsTxErrCount : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsTxErrCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28806,14 +28711,14 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsCollisionCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.CollisionCount response %@", [value description]); if (error != nil) { @@ -28834,14 +28739,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsCollisionCount : public Subscr ~SubscribeAttributeEthernetNetworkDiagnosticsCollisionCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28874,14 +28779,14 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -28902,14 +28807,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsOverrunCount : public Subscrib ~SubscribeAttributeEthernetNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -28942,14 +28847,14 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsCarrierDetect() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.CarrierDetect response %@", [value description]); if (error != nil) { @@ -28970,14 +28875,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsCarrierDetect : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsCarrierDetect() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29010,14 +28915,14 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsTimeSinceReset() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.TimeSinceReset response %@", [value description]); if (error != nil) { @@ -29038,14 +28943,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsTimeSinceReset : public Subscr ~SubscribeAttributeEthernetNetworkDiagnosticsTimeSinceReset() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29078,14 +28983,14 @@ class ReadEthernetNetworkDiagnosticsGeneratedCommandList : public ReadAttribute ~ReadEthernetNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -29106,14 +29011,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsGeneratedCommandList : public ~SubscribeAttributeEthernetNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29146,14 +29051,14 @@ class ReadEthernetNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -29174,14 +29079,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsAcceptedCommandList : public S ~SubscribeAttributeEthernetNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29214,14 +29119,14 @@ class ReadEthernetNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -29242,14 +29147,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsAttributeList : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29282,14 +29187,14 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -29310,14 +29215,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsFeatureMap : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29350,14 +29255,14 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -29378,14 +29283,14 @@ class SubscribeAttributeEthernetNetworkDiagnosticsClusterRevision : public Subsc ~SubscribeAttributeEthernetNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29452,14 +29357,14 @@ class ReadBridgedDeviceBasicVendorName : public ReadAttribute { ~ReadBridgedDeviceBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.VendorName response %@", [value description]); if (error != nil) { @@ -29480,14 +29385,14 @@ class SubscribeAttributeBridgedDeviceBasicVendorName : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29520,14 +29425,14 @@ class ReadBridgedDeviceBasicVendorID : public ReadAttribute { ~ReadBridgedDeviceBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.VendorID response %@", [value description]); if (error != nil) { @@ -29548,14 +29453,14 @@ class SubscribeAttributeBridgedDeviceBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeBridgedDeviceBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29588,14 +29493,14 @@ class ReadBridgedDeviceBasicProductName : public ReadAttribute { ~ReadBridgedDeviceBasicProductName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductName response %@", [value description]); if (error != nil) { @@ -29616,14 +29521,14 @@ class SubscribeAttributeBridgedDeviceBasicProductName : public SubscribeAttribut ~SubscribeAttributeBridgedDeviceBasicProductName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29656,14 +29561,14 @@ class ReadBridgedDeviceBasicNodeLabel : public ReadAttribute { ~ReadBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.NodeLabel response %@", [value description]); if (error != nil) { @@ -29687,14 +29592,14 @@ class WriteBridgedDeviceBasicNodeLabel : public WriteAttribute { ~WriteBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -29726,14 +29631,14 @@ class SubscribeAttributeBridgedDeviceBasicNodeLabel : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29766,14 +29671,14 @@ class ReadBridgedDeviceBasicHardwareVersion : public ReadAttribute { ~ReadBridgedDeviceBasicHardwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.HardwareVersion response %@", [value description]); if (error != nil) { @@ -29794,14 +29699,14 @@ class SubscribeAttributeBridgedDeviceBasicHardwareVersion : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicHardwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29834,14 +29739,14 @@ class ReadBridgedDeviceBasicHardwareVersionString : public ReadAttribute { ~ReadBridgedDeviceBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.HardwareVersionString response %@", [value description]); if (error != nil) { @@ -29862,14 +29767,14 @@ class SubscribeAttributeBridgedDeviceBasicHardwareVersionString : public Subscri ~SubscribeAttributeBridgedDeviceBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29902,14 +29807,14 @@ class ReadBridgedDeviceBasicSoftwareVersion : public ReadAttribute { ~ReadBridgedDeviceBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SoftwareVersion response %@", [value description]); if (error != nil) { @@ -29930,14 +29835,14 @@ class SubscribeAttributeBridgedDeviceBasicSoftwareVersion : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -29970,14 +29875,14 @@ class ReadBridgedDeviceBasicSoftwareVersionString : public ReadAttribute { ~ReadBridgedDeviceBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SoftwareVersionString response %@", [value description]); if (error != nil) { @@ -29998,14 +29903,14 @@ class SubscribeAttributeBridgedDeviceBasicSoftwareVersionString : public Subscri ~SubscribeAttributeBridgedDeviceBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30038,14 +29943,14 @@ class ReadBridgedDeviceBasicManufacturingDate : public ReadAttribute { ~ReadBridgedDeviceBasicManufacturingDate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ManufacturingDate response %@", [value description]); if (error != nil) { @@ -30066,14 +29971,14 @@ class SubscribeAttributeBridgedDeviceBasicManufacturingDate : public SubscribeAt ~SubscribeAttributeBridgedDeviceBasicManufacturingDate() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30106,14 +30011,14 @@ class ReadBridgedDeviceBasicPartNumber : public ReadAttribute { ~ReadBridgedDeviceBasicPartNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.PartNumber response %@", [value description]); if (error != nil) { @@ -30134,14 +30039,14 @@ class SubscribeAttributeBridgedDeviceBasicPartNumber : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicPartNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30174,14 +30079,14 @@ class ReadBridgedDeviceBasicProductURL : public ReadAttribute { ~ReadBridgedDeviceBasicProductURL() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductURL response %@", [value description]); if (error != nil) { @@ -30202,14 +30107,14 @@ class SubscribeAttributeBridgedDeviceBasicProductURL : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicProductURL() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30242,14 +30147,14 @@ class ReadBridgedDeviceBasicProductLabel : public ReadAttribute { ~ReadBridgedDeviceBasicProductLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductLabel response %@", [value description]); if (error != nil) { @@ -30270,14 +30175,14 @@ class SubscribeAttributeBridgedDeviceBasicProductLabel : public SubscribeAttribu ~SubscribeAttributeBridgedDeviceBasicProductLabel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30310,14 +30215,14 @@ class ReadBridgedDeviceBasicSerialNumber : public ReadAttribute { ~ReadBridgedDeviceBasicSerialNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SerialNumber response %@", [value description]); if (error != nil) { @@ -30338,14 +30243,14 @@ class SubscribeAttributeBridgedDeviceBasicSerialNumber : public SubscribeAttribu ~SubscribeAttributeBridgedDeviceBasicSerialNumber() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30378,14 +30283,14 @@ class ReadBridgedDeviceBasicReachable : public ReadAttribute { ~ReadBridgedDeviceBasicReachable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.Reachable response %@", [value description]); if (error != nil) { @@ -30406,14 +30311,14 @@ class SubscribeAttributeBridgedDeviceBasicReachable : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicReachable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30446,14 +30351,14 @@ class ReadBridgedDeviceBasicUniqueID : public ReadAttribute { ~ReadBridgedDeviceBasicUniqueID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.UniqueID response %@", [value description]); if (error != nil) { @@ -30474,14 +30379,14 @@ class SubscribeAttributeBridgedDeviceBasicUniqueID : public SubscribeAttribute { ~SubscribeAttributeBridgedDeviceBasicUniqueID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30514,14 +30419,14 @@ class ReadBridgedDeviceBasicGeneratedCommandList : public ReadAttribute { ~ReadBridgedDeviceBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -30542,14 +30447,14 @@ class SubscribeAttributeBridgedDeviceBasicGeneratedCommandList : public Subscrib ~SubscribeAttributeBridgedDeviceBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30582,14 +30487,14 @@ class ReadBridgedDeviceBasicAcceptedCommandList : public ReadAttribute { ~ReadBridgedDeviceBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -30610,14 +30515,14 @@ class SubscribeAttributeBridgedDeviceBasicAcceptedCommandList : public Subscribe ~SubscribeAttributeBridgedDeviceBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30650,14 +30555,14 @@ class ReadBridgedDeviceBasicAttributeList : public ReadAttribute { ~ReadBridgedDeviceBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -30678,14 +30583,14 @@ class SubscribeAttributeBridgedDeviceBasicAttributeList : public SubscribeAttrib ~SubscribeAttributeBridgedDeviceBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30718,14 +30623,14 @@ class ReadBridgedDeviceBasicFeatureMap : public ReadAttribute { ~ReadBridgedDeviceBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -30746,14 +30651,14 @@ class SubscribeAttributeBridgedDeviceBasicFeatureMap : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30786,14 +30691,14 @@ class ReadBridgedDeviceBasicClusterRevision : public ReadAttribute { ~ReadBridgedDeviceBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -30814,14 +30719,14 @@ class SubscribeAttributeBridgedDeviceBasicClusterRevision : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30879,12 +30784,12 @@ class ReadSwitchNumberOfPositions : public ReadAttribute { ~ReadSwitchNumberOfPositions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.NumberOfPositions response %@", [value description]); if (error != nil) { @@ -30905,12 +30810,12 @@ class SubscribeAttributeSwitchNumberOfPositions : public SubscribeAttribute { ~SubscribeAttributeSwitchNumberOfPositions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -30943,12 +30848,12 @@ class ReadSwitchCurrentPosition : public ReadAttribute { ~ReadSwitchCurrentPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.CurrentPosition response %@", [value description]); if (error != nil) { @@ -30969,12 +30874,12 @@ class SubscribeAttributeSwitchCurrentPosition : public SubscribeAttribute { ~SubscribeAttributeSwitchCurrentPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31007,12 +30912,12 @@ class ReadSwitchMultiPressMax : public ReadAttribute { ~ReadSwitchMultiPressMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.MultiPressMax response %@", [value description]); if (error != nil) { @@ -31033,12 +30938,12 @@ class SubscribeAttributeSwitchMultiPressMax : public SubscribeAttribute { ~SubscribeAttributeSwitchMultiPressMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31071,12 +30976,12 @@ class ReadSwitchGeneratedCommandList : public ReadAttribute { ~ReadSwitchGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -31097,12 +31002,12 @@ class SubscribeAttributeSwitchGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeSwitchGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31135,12 +31040,12 @@ class ReadSwitchAcceptedCommandList : public ReadAttribute { ~ReadSwitchAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -31161,12 +31066,12 @@ class SubscribeAttributeSwitchAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeSwitchAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31199,12 +31104,12 @@ class ReadSwitchAttributeList : public ReadAttribute { ~ReadSwitchAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.AttributeList response %@", [value description]); if (error != nil) { @@ -31225,12 +31130,12 @@ class SubscribeAttributeSwitchAttributeList : public SubscribeAttribute { ~SubscribeAttributeSwitchAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31263,12 +31168,12 @@ class ReadSwitchFeatureMap : public ReadAttribute { ~ReadSwitchFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.FeatureMap response %@", [value description]); if (error != nil) { @@ -31289,12 +31194,12 @@ class SubscribeAttributeSwitchFeatureMap : public SubscribeAttribute { ~SubscribeAttributeSwitchFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31327,12 +31232,12 @@ class ReadSwitchClusterRevision : public ReadAttribute { ~ReadSwitchClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.ClusterRevision response %@", [value description]); if (error != nil) { @@ -31353,12 +31258,12 @@ class SubscribeAttributeSwitchClusterRevision : public SubscribeAttribute { ~SubscribeAttributeSwitchClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31416,15 +31321,15 @@ class AdministratorCommissioningOpenCommissioningWindow : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:mRequest.commissioningTimeout]; @@ -31466,15 +31371,15 @@ class AdministratorCommissioningOpenBasicCommissioningWindow : public ClusterCom ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:mRequest.commissioningTimeout]; @@ -31511,15 +31416,15 @@ class AdministratorCommissioningRevokeCommissioning : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPAdministratorCommissioningClusterRevokeCommissioningParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRAdministratorCommissioningClusterRevokeCommissioningParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -31555,14 +31460,14 @@ class ReadAdministratorCommissioningWindowStatus : public ReadAttribute { ~ReadAdministratorCommissioningWindowStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWindowStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.WindowStatus response %@", [value description]); if (error != nil) { @@ -31583,14 +31488,14 @@ class SubscribeAttributeAdministratorCommissioningWindowStatus : public Subscrib ~SubscribeAttributeAdministratorCommissioningWindowStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31623,14 +31528,14 @@ class ReadAdministratorCommissioningAdminFabricIndex : public ReadAttribute { ~ReadAdministratorCommissioningAdminFabricIndex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAdminFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AdminFabricIndex response %@", [value description]); if (error != nil) { @@ -31651,14 +31556,14 @@ class SubscribeAttributeAdministratorCommissioningAdminFabricIndex : public Subs ~SubscribeAttributeAdministratorCommissioningAdminFabricIndex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31691,14 +31596,14 @@ class ReadAdministratorCommissioningAdminVendorId : public ReadAttribute { ~ReadAdministratorCommissioningAdminVendorId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAdminVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AdminVendorId response %@", [value description]); if (error != nil) { @@ -31719,14 +31624,14 @@ class SubscribeAttributeAdministratorCommissioningAdminVendorId : public Subscri ~SubscribeAttributeAdministratorCommissioningAdminVendorId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31759,14 +31664,14 @@ class ReadAdministratorCommissioningGeneratedCommandList : public ReadAttribute ~ReadAdministratorCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -31787,14 +31692,14 @@ class SubscribeAttributeAdministratorCommissioningGeneratedCommandList : public ~SubscribeAttributeAdministratorCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31827,14 +31732,14 @@ class ReadAdministratorCommissioningAcceptedCommandList : public ReadAttribute { ~ReadAdministratorCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -31855,14 +31760,14 @@ class SubscribeAttributeAdministratorCommissioningAcceptedCommandList : public S ~SubscribeAttributeAdministratorCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31895,14 +31800,14 @@ class ReadAdministratorCommissioningAttributeList : public ReadAttribute { ~ReadAdministratorCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -31923,14 +31828,14 @@ class SubscribeAttributeAdministratorCommissioningAttributeList : public Subscri ~SubscribeAttributeAdministratorCommissioningAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -31963,14 +31868,14 @@ class ReadAdministratorCommissioningFeatureMap : public ReadAttribute { ~ReadAdministratorCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -31991,14 +31896,14 @@ class SubscribeAttributeAdministratorCommissioningFeatureMap : public SubscribeA ~SubscribeAttributeAdministratorCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32031,14 +31936,14 @@ class ReadAdministratorCommissioningClusterRevision : public ReadAttribute { ~ReadAdministratorCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -32059,14 +31964,14 @@ class SubscribeAttributeAdministratorCommissioningClusterRevision : public Subsc ~SubscribeAttributeAdministratorCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32128,15 +32033,15 @@ class OperationalCredentialsAttestationRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterAttestationRequestParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterAttestationRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.attestationNonce = [NSData dataWithBytes:mRequest.attestationNonce.data() length:mRequest.attestationNonce.size()]; @@ -32144,7 +32049,7 @@ class OperationalCredentialsAttestationRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster attestationRequestWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterAttestationResponseParams * _Nullable values, + completionHandler:^(MTROperationalCredentialsClusterAttestationResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -32176,15 +32081,15 @@ class OperationalCredentialsCertificateChainRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterCertificateChainRequestParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterCertificateChainRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.certificateType = [NSNumber numberWithUnsignedChar:mRequest.certificateType]; @@ -32193,7 +32098,7 @@ class OperationalCredentialsCertificateChainRequest : public ClusterCommand { while (repeatCount--) { [cluster certificateChainRequestWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterCertificateChainResponseParams * _Nullable values, + MTROperationalCredentialsClusterCertificateChainResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -32226,15 +32131,15 @@ class OperationalCredentialsCSRRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterCSRRequestParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterCSRRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.csrNonce = [NSData dataWithBytes:mRequest.CSRNonce.data() length:mRequest.CSRNonce.size()]; @@ -32248,7 +32153,7 @@ class OperationalCredentialsCSRRequest : public ClusterCommand { while (repeatCount--) { [cluster CSRRequestWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterCSRResponseParams * _Nullable values, NSError * _Nullable error) { + MTROperationalCredentialsClusterCSRResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -32283,15 +32188,15 @@ class OperationalCredentialsAddNOC : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterAddNOCParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterAddNOCParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.nocValue = [NSData dataWithBytes:mRequest.NOCValue.data() length:mRequest.NOCValue.size()]; @@ -32308,7 +32213,7 @@ class OperationalCredentialsAddNOC : public ClusterCommand { while (repeatCount--) { [cluster addNOCWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -32340,15 +32245,15 @@ class OperationalCredentialsUpdateNOC : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterUpdateNOCParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterUpdateNOCParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.nocValue = [NSData dataWithBytes:mRequest.NOCValue.data() length:mRequest.NOCValue.size()]; @@ -32362,7 +32267,7 @@ class OperationalCredentialsUpdateNOC : public ClusterCommand { while (repeatCount--) { [cluster updateNOCWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -32393,15 +32298,15 @@ class OperationalCredentialsUpdateFabricLabel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.label = [[NSString alloc] initWithBytes:mRequest.label.data() @@ -32411,7 +32316,7 @@ class OperationalCredentialsUpdateFabricLabel : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster updateFabricLabelWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -32443,15 +32348,15 @@ class OperationalCredentialsRemoveFabric : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterRemoveFabricParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.fabricIndex = [NSNumber numberWithUnsignedChar:mRequest.fabricIndex]; @@ -32460,7 +32365,7 @@ class OperationalCredentialsRemoveFabric : public ClusterCommand { while (repeatCount--) { [cluster removeFabricWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -32491,15 +32396,15 @@ class OperationalCredentialsAddTrustedRootCertificate : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTROperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.rootCertificate = [NSData dataWithBytes:mRequest.rootCertificate.data() length:mRequest.rootCertificate.size()]; @@ -32537,15 +32442,15 @@ class ReadOperationalCredentialsNOCs : public ReadAttribute { ~ReadOperationalCredentialsNOCs() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeNOCsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -32568,14 +32473,14 @@ class SubscribeAttributeOperationalCredentialsNOCs : public SubscribeAttribute { ~SubscribeAttributeOperationalCredentialsNOCs() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32608,15 +32513,15 @@ class ReadOperationalCredentialsFabrics : public ReadAttribute { ~ReadOperationalCredentialsFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -32639,14 +32544,14 @@ class SubscribeAttributeOperationalCredentialsFabrics : public SubscribeAttribut ~SubscribeAttributeOperationalCredentialsFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32679,14 +32584,14 @@ class ReadOperationalCredentialsSupportedFabrics : public ReadAttribute { ~ReadOperationalCredentialsSupportedFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.SupportedFabrics response %@", [value description]); if (error != nil) { @@ -32707,14 +32612,14 @@ class SubscribeAttributeOperationalCredentialsSupportedFabrics : public Subscrib ~SubscribeAttributeOperationalCredentialsSupportedFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32747,14 +32652,14 @@ class ReadOperationalCredentialsCommissionedFabrics : public ReadAttribute { ~ReadOperationalCredentialsCommissionedFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.CommissionedFabrics response %@", [value description]); if (error != nil) { @@ -32775,14 +32680,14 @@ class SubscribeAttributeOperationalCredentialsCommissionedFabrics : public Subsc ~SubscribeAttributeOperationalCredentialsCommissionedFabrics() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32815,14 +32720,14 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ReadAttribute { ~ReadOperationalCredentialsTrustedRootCertificates() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTrustedRootCertificatesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.TrustedRootCertificates response %@", [value description]); if (error != nil) { @@ -32843,14 +32748,14 @@ class SubscribeAttributeOperationalCredentialsTrustedRootCertificates : public S ~SubscribeAttributeOperationalCredentialsTrustedRootCertificates() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32883,14 +32788,14 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ReadAttribute { ~ReadOperationalCredentialsCurrentFabricIndex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.CurrentFabricIndex response %@", [value description]); if (error != nil) { @@ -32911,14 +32816,14 @@ class SubscribeAttributeOperationalCredentialsCurrentFabricIndex : public Subscr ~SubscribeAttributeOperationalCredentialsCurrentFabricIndex() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -32951,14 +32856,14 @@ class ReadOperationalCredentialsGeneratedCommandList : public ReadAttribute { ~ReadOperationalCredentialsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -32979,14 +32884,14 @@ class SubscribeAttributeOperationalCredentialsGeneratedCommandList : public Subs ~SubscribeAttributeOperationalCredentialsGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33019,14 +32924,14 @@ class ReadOperationalCredentialsAcceptedCommandList : public ReadAttribute { ~ReadOperationalCredentialsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -33047,14 +32952,14 @@ class SubscribeAttributeOperationalCredentialsAcceptedCommandList : public Subsc ~SubscribeAttributeOperationalCredentialsAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33087,14 +32992,14 @@ class ReadOperationalCredentialsAttributeList : public ReadAttribute { ~ReadOperationalCredentialsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.AttributeList response %@", [value description]); if (error != nil) { @@ -33115,14 +33020,14 @@ class SubscribeAttributeOperationalCredentialsAttributeList : public SubscribeAt ~SubscribeAttributeOperationalCredentialsAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33155,14 +33060,14 @@ class ReadOperationalCredentialsFeatureMap : public ReadAttribute { ~ReadOperationalCredentialsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.FeatureMap response %@", [value description]); if (error != nil) { @@ -33183,14 +33088,14 @@ class SubscribeAttributeOperationalCredentialsFeatureMap : public SubscribeAttri ~SubscribeAttributeOperationalCredentialsFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33223,14 +33128,14 @@ class ReadOperationalCredentialsClusterRevision : public ReadAttribute { ~ReadOperationalCredentialsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.ClusterRevision response %@", [value description]); if (error != nil) { @@ -33251,14 +33156,14 @@ class SubscribeAttributeOperationalCredentialsClusterRevision : public Subscribe ~SubscribeAttributeOperationalCredentialsClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33315,18 +33220,18 @@ class GroupKeyManagementKeySetWrite : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetWriteParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.groupKeySet = [CHIPGroupKeyManagementClusterGroupKeySetStruct new]; + params.groupKeySet = [MTRGroupKeyManagementClusterGroupKeySetStruct new]; params.groupKeySet.groupKeySetID = [NSNumber numberWithUnsignedShort:mRequest.groupKeySet.groupKeySetID]; params.groupKeySet.groupKeySecurityPolicy = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.groupKeySet.groupKeySecurityPolicy)]; @@ -33398,15 +33303,15 @@ class GroupKeyManagementKeySetRead : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupKeySetID = [NSNumber numberWithUnsignedShort:mRequest.groupKeySetID]; @@ -33415,7 +33320,7 @@ class GroupKeyManagementKeySetRead : public ClusterCommand { while (repeatCount--) { [cluster keySetReadWithParams:params completionHandler:^( - CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable error) { + MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -33446,15 +33351,15 @@ class GroupKeyManagementKeySetRemove : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetRemoveParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.groupKeySetID = [NSNumber numberWithUnsignedShort:mRequest.groupKeySetID]; @@ -33493,15 +33398,15 @@ class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadAllIndicesParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadAllIndicesParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables @@ -33518,7 +33423,7 @@ class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand { while (repeatCount--) { [cluster keySetReadAllIndicesWithParams:params - completionHandler:^(CHIPGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable values, + completionHandler:^(MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -33551,15 +33456,15 @@ class ReadGroupKeyManagementGroupKeyMap : public ReadAttribute { ~ReadGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeGroupKeyMapWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -33586,14 +33491,14 @@ class WriteGroupKeyManagementGroupKeyMap : public WriteAttribute { ~WriteGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -33601,8 +33506,8 @@ class WriteGroupKeyManagementGroupKeyMap : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; - newElement_0 = [CHIPGroupKeyManagementClusterGroupKeyMapStruct new]; + MTRGroupKeyManagementClusterGroupKeyMapStruct * newElement_0; + newElement_0 = [MTRGroupKeyManagementClusterGroupKeyMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; newElement_0.groupKeySetID = [NSNumber numberWithUnsignedShort:entry_0.groupKeySetID]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; @@ -33638,14 +33543,14 @@ class SubscribeAttributeGroupKeyManagementGroupKeyMap : public SubscribeAttribut ~SubscribeAttributeGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33678,15 +33583,15 @@ class ReadGroupKeyManagementGroupTable : public ReadAttribute { ~ReadGroupKeyManagementGroupTable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeGroupTableWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -33709,14 +33614,14 @@ class SubscribeAttributeGroupKeyManagementGroupTable : public SubscribeAttribute ~SubscribeAttributeGroupKeyManagementGroupTable() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33749,14 +33654,14 @@ class ReadGroupKeyManagementMaxGroupsPerFabric : public ReadAttribute { ~ReadGroupKeyManagementMaxGroupsPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxGroupsPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.MaxGroupsPerFabric response %@", [value description]); if (error != nil) { @@ -33777,14 +33682,14 @@ class SubscribeAttributeGroupKeyManagementMaxGroupsPerFabric : public SubscribeA ~SubscribeAttributeGroupKeyManagementMaxGroupsPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33817,14 +33722,14 @@ class ReadGroupKeyManagementMaxGroupKeysPerFabric : public ReadAttribute { ~ReadGroupKeyManagementMaxGroupKeysPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxGroupKeysPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.MaxGroupKeysPerFabric response %@", [value description]); if (error != nil) { @@ -33845,14 +33750,14 @@ class SubscribeAttributeGroupKeyManagementMaxGroupKeysPerFabric : public Subscri ~SubscribeAttributeGroupKeyManagementMaxGroupKeysPerFabric() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33885,14 +33790,14 @@ class ReadGroupKeyManagementGeneratedCommandList : public ReadAttribute { ~ReadGroupKeyManagementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -33913,14 +33818,14 @@ class SubscribeAttributeGroupKeyManagementGeneratedCommandList : public Subscrib ~SubscribeAttributeGroupKeyManagementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -33953,14 +33858,14 @@ class ReadGroupKeyManagementAcceptedCommandList : public ReadAttribute { ~ReadGroupKeyManagementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -33981,14 +33886,14 @@ class SubscribeAttributeGroupKeyManagementAcceptedCommandList : public Subscribe ~SubscribeAttributeGroupKeyManagementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34021,14 +33926,14 @@ class ReadGroupKeyManagementAttributeList : public ReadAttribute { ~ReadGroupKeyManagementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.AttributeList response %@", [value description]); if (error != nil) { @@ -34049,14 +33954,14 @@ class SubscribeAttributeGroupKeyManagementAttributeList : public SubscribeAttrib ~SubscribeAttributeGroupKeyManagementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34089,14 +33994,14 @@ class ReadGroupKeyManagementFeatureMap : public ReadAttribute { ~ReadGroupKeyManagementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.FeatureMap response %@", [value description]); if (error != nil) { @@ -34117,14 +34022,14 @@ class SubscribeAttributeGroupKeyManagementFeatureMap : public SubscribeAttribute ~SubscribeAttributeGroupKeyManagementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34157,14 +34062,14 @@ class ReadGroupKeyManagementClusterRevision : public ReadAttribute { ~ReadGroupKeyManagementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -34185,14 +34090,14 @@ class SubscribeAttributeGroupKeyManagementClusterRevision : public SubscribeAttr ~SubscribeAttributeGroupKeyManagementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34241,12 +34146,12 @@ class ReadFixedLabelLabelList : public ReadAttribute { ~ReadFixedLabelLabelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.LabelList response %@", [value description]); if (error != nil) { @@ -34267,12 +34172,12 @@ class SubscribeAttributeFixedLabelLabelList : public SubscribeAttribute { ~SubscribeAttributeFixedLabelLabelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34305,12 +34210,12 @@ class ReadFixedLabelGeneratedCommandList : public ReadAttribute { ~ReadFixedLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -34331,12 +34236,12 @@ class SubscribeAttributeFixedLabelGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeFixedLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34369,12 +34274,12 @@ class ReadFixedLabelAcceptedCommandList : public ReadAttribute { ~ReadFixedLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -34395,12 +34300,12 @@ class SubscribeAttributeFixedLabelAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeFixedLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34433,12 +34338,12 @@ class ReadFixedLabelAttributeList : public ReadAttribute { ~ReadFixedLabelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.AttributeList response %@", [value description]); if (error != nil) { @@ -34459,12 +34364,12 @@ class SubscribeAttributeFixedLabelAttributeList : public SubscribeAttribute { ~SubscribeAttributeFixedLabelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34497,12 +34402,12 @@ class ReadFixedLabelFeatureMap : public ReadAttribute { ~ReadFixedLabelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.FeatureMap response %@", [value description]); if (error != nil) { @@ -34523,12 +34428,12 @@ class SubscribeAttributeFixedLabelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFixedLabelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34561,12 +34466,12 @@ class ReadFixedLabelClusterRevision : public ReadAttribute { ~ReadFixedLabelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -34587,12 +34492,12 @@ class SubscribeAttributeFixedLabelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeFixedLabelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34641,12 +34546,12 @@ class ReadUserLabelLabelList : public ReadAttribute { ~ReadUserLabelLabelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.LabelList response %@", [value description]); if (error != nil) { @@ -34671,12 +34576,12 @@ class WriteUserLabelLabelList : public WriteAttribute { ~WriteUserLabelLabelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -34684,8 +34589,8 @@ class WriteUserLabelLabelList : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPUserLabelClusterLabelStruct * newElement_0; - newElement_0 = [CHIPUserLabelClusterLabelStruct new]; + MTRUserLabelClusterLabelStruct * newElement_0; + newElement_0 = [MTRUserLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() length:entry_0.label.size() encoding:NSUTF8StringEncoding]; @@ -34722,12 +34627,12 @@ class SubscribeAttributeUserLabelLabelList : public SubscribeAttribute { ~SubscribeAttributeUserLabelLabelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34760,12 +34665,12 @@ class ReadUserLabelGeneratedCommandList : public ReadAttribute { ~ReadUserLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -34786,12 +34691,12 @@ class SubscribeAttributeUserLabelGeneratedCommandList : public SubscribeAttribut ~SubscribeAttributeUserLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34824,12 +34729,12 @@ class ReadUserLabelAcceptedCommandList : public ReadAttribute { ~ReadUserLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -34850,12 +34755,12 @@ class SubscribeAttributeUserLabelAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeUserLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34888,12 +34793,12 @@ class ReadUserLabelAttributeList : public ReadAttribute { ~ReadUserLabelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.AttributeList response %@", [value description]); if (error != nil) { @@ -34914,12 +34819,12 @@ class SubscribeAttributeUserLabelAttributeList : public SubscribeAttribute { ~SubscribeAttributeUserLabelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -34952,12 +34857,12 @@ class ReadUserLabelFeatureMap : public ReadAttribute { ~ReadUserLabelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.FeatureMap response %@", [value description]); if (error != nil) { @@ -34978,12 +34883,12 @@ class SubscribeAttributeUserLabelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeUserLabelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35016,12 +34921,12 @@ class ReadUserLabelClusterRevision : public ReadAttribute { ~ReadUserLabelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -35042,12 +34947,12 @@ class SubscribeAttributeUserLabelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeUserLabelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPUserLabel * cluster = [[CHIPUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35097,12 +35002,12 @@ class ReadBooleanStateStateValue : public ReadAttribute { ~ReadBooleanStateStateValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.StateValue response %@", [value description]); if (error != nil) { @@ -35123,12 +35028,12 @@ class SubscribeAttributeBooleanStateStateValue : public SubscribeAttribute { ~SubscribeAttributeBooleanStateStateValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35161,12 +35066,12 @@ class ReadBooleanStateGeneratedCommandList : public ReadAttribute { ~ReadBooleanStateGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -35187,12 +35092,12 @@ class SubscribeAttributeBooleanStateGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeBooleanStateGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35225,12 +35130,12 @@ class ReadBooleanStateAcceptedCommandList : public ReadAttribute { ~ReadBooleanStateAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -35251,12 +35156,12 @@ class SubscribeAttributeBooleanStateAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeBooleanStateAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35289,12 +35194,12 @@ class ReadBooleanStateAttributeList : public ReadAttribute { ~ReadBooleanStateAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.AttributeList response %@", [value description]); if (error != nil) { @@ -35315,12 +35220,12 @@ class SubscribeAttributeBooleanStateAttributeList : public SubscribeAttribute { ~SubscribeAttributeBooleanStateAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35353,12 +35258,12 @@ class ReadBooleanStateFeatureMap : public ReadAttribute { ~ReadBooleanStateFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.FeatureMap response %@", [value description]); if (error != nil) { @@ -35379,12 +35284,12 @@ class SubscribeAttributeBooleanStateFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBooleanStateFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35417,12 +35322,12 @@ class ReadBooleanStateClusterRevision : public ReadAttribute { ~ReadBooleanStateClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.ClusterRevision response %@", [value description]); if (error != nil) { @@ -35443,12 +35348,12 @@ class SubscribeAttributeBooleanStateClusterRevision : public SubscribeAttribute ~SubscribeAttributeBooleanStateClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35503,13 +35408,13 @@ class ModeSelectChangeToMode : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPModeSelectClusterChangeToModeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.newMode = [NSNumber numberWithUnsignedChar:mRequest.newMode]; @@ -35547,12 +35452,12 @@ class ReadModeSelectDescription : public ReadAttribute { ~ReadModeSelectDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.Description response %@", [value description]); if (error != nil) { @@ -35573,12 +35478,12 @@ class SubscribeAttributeModeSelectDescription : public SubscribeAttribute { ~SubscribeAttributeModeSelectDescription() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35611,12 +35516,12 @@ class ReadModeSelectStandardNamespace : public ReadAttribute { ~ReadModeSelectStandardNamespace() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStandardNamespaceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.StandardNamespace response %@", [value description]); if (error != nil) { @@ -35637,12 +35542,12 @@ class SubscribeAttributeModeSelectStandardNamespace : public SubscribeAttribute ~SubscribeAttributeModeSelectStandardNamespace() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35675,12 +35580,12 @@ class ReadModeSelectSupportedModes : public ReadAttribute { ~ReadModeSelectSupportedModes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.SupportedModes response %@", [value description]); if (error != nil) { @@ -35701,12 +35606,12 @@ class SubscribeAttributeModeSelectSupportedModes : public SubscribeAttribute { ~SubscribeAttributeModeSelectSupportedModes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35739,12 +35644,12 @@ class ReadModeSelectCurrentMode : public ReadAttribute { ~ReadModeSelectCurrentMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.CurrentMode response %@", [value description]); if (error != nil) { @@ -35765,12 +35670,12 @@ class SubscribeAttributeModeSelectCurrentMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectCurrentMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35803,12 +35708,12 @@ class ReadModeSelectStartUpMode : public ReadAttribute { ~ReadModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.StartUpMode response %@", [value description]); if (error != nil) { @@ -35832,12 +35737,12 @@ class WriteModeSelectStartUpMode : public WriteAttribute { ~WriteModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -35867,12 +35772,12 @@ class SubscribeAttributeModeSelectStartUpMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -35905,12 +35810,12 @@ class ReadModeSelectOnMode : public ReadAttribute { ~ReadModeSelectOnMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.OnMode response %@", [value description]); if (error != nil) { @@ -35934,12 +35839,12 @@ class WriteModeSelectOnMode : public WriteAttribute { ~WriteModeSelectOnMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -35969,12 +35874,12 @@ class SubscribeAttributeModeSelectOnMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectOnMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36007,12 +35912,12 @@ class ReadModeSelectGeneratedCommandList : public ReadAttribute { ~ReadModeSelectGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -36033,12 +35938,12 @@ class SubscribeAttributeModeSelectGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeModeSelectGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36071,12 +35976,12 @@ class ReadModeSelectAcceptedCommandList : public ReadAttribute { ~ReadModeSelectAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -36097,12 +36002,12 @@ class SubscribeAttributeModeSelectAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeModeSelectAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36135,12 +36040,12 @@ class ReadModeSelectAttributeList : public ReadAttribute { ~ReadModeSelectAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.AttributeList response %@", [value description]); if (error != nil) { @@ -36161,12 +36066,12 @@ class SubscribeAttributeModeSelectAttributeList : public SubscribeAttribute { ~SubscribeAttributeModeSelectAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36199,12 +36104,12 @@ class ReadModeSelectFeatureMap : public ReadAttribute { ~ReadModeSelectFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.FeatureMap response %@", [value description]); if (error != nil) { @@ -36225,12 +36130,12 @@ class SubscribeAttributeModeSelectFeatureMap : public SubscribeAttribute { ~SubscribeAttributeModeSelectFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36263,12 +36168,12 @@ class ReadModeSelectClusterRevision : public ReadAttribute { ~ReadModeSelectClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.ClusterRevision response %@", [value description]); if (error != nil) { @@ -36289,12 +36194,12 @@ class SubscribeAttributeModeSelectClusterRevision : public SubscribeAttribute { ~SubscribeAttributeModeSelectClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -36401,13 +36306,13 @@ class DoorLockLockDoor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.pinCode.HasValue()) { @@ -36449,13 +36354,13 @@ class DoorLockUnlockDoor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterUnlockDoorParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.pinCode.HasValue()) { @@ -36498,13 +36403,13 @@ class DoorLockUnlockWithTimeout : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterUnlockWithTimeoutParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterUnlockWithTimeoutParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.timeout = [NSNumber numberWithUnsignedShort:mRequest.timeout]; @@ -36553,13 +36458,13 @@ class DoorLockSetWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.weekDayIndex = [NSNumber numberWithUnsignedChar:mRequest.weekDayIndex]; @@ -36604,13 +36509,13 @@ class DoorLockGetWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.weekDayIndex = [NSNumber numberWithUnsignedChar:mRequest.weekDayIndex]; @@ -36619,7 +36524,7 @@ class DoorLockGetWeekDaySchedule : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getWeekDayScheduleWithParams:params - completionHandler:^(CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, + completionHandler:^(MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -36652,13 +36557,13 @@ class DoorLockClearWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.weekDayIndex = [NSNumber numberWithUnsignedChar:mRequest.weekDayIndex]; @@ -36700,13 +36605,13 @@ class DoorLockSetYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.yearDayIndex = [NSNumber numberWithUnsignedChar:mRequest.yearDayIndex]; @@ -36748,13 +36653,13 @@ class DoorLockGetYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.yearDayIndex = [NSNumber numberWithUnsignedChar:mRequest.yearDayIndex]; @@ -36763,7 +36668,7 @@ class DoorLockGetYearDaySchedule : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getYearDayScheduleWithParams:params - completionHandler:^(CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, + completionHandler:^(MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -36796,13 +36701,13 @@ class DoorLockClearYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.yearDayIndex = [NSNumber numberWithUnsignedChar:mRequest.yearDayIndex]; @@ -36844,13 +36749,13 @@ class DoorLockSetHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.holidayIndex = [NSNumber numberWithUnsignedChar:mRequest.holidayIndex]; @@ -36891,13 +36796,13 @@ class DoorLockGetHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.holidayIndex = [NSNumber numberWithUnsignedChar:mRequest.holidayIndex]; @@ -36905,7 +36810,7 @@ class DoorLockGetHolidaySchedule : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getHolidayScheduleWithParams:params - completionHandler:^(CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, + completionHandler:^(MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -36937,13 +36842,13 @@ class DoorLockClearHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearHolidayScheduleParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.holidayIndex = [NSNumber numberWithUnsignedChar:mRequest.holidayIndex]; @@ -36987,13 +36892,13 @@ class DoorLockSetUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.operationType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.operationType)]; @@ -37059,13 +36964,13 @@ class DoorLockGetUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.userIndex = [NSNumber numberWithUnsignedShort:mRequest.userIndex]; @@ -37073,7 +36978,7 @@ class DoorLockGetUser : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -37104,13 +37009,13 @@ class DoorLockClearUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.userIndex = [NSNumber numberWithUnsignedShort:mRequest.userIndex]; @@ -37154,17 +37059,17 @@ class DoorLockSetCredential : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.operationType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.operationType)]; - params.credential = [CHIPDoorLockClusterDlCredential new]; + params.credential = [MTRDoorLockClusterDlCredential new]; params.credential.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.credential.credentialType)]; params.credential.credentialIndex = [NSNumber numberWithUnsignedShort:mRequest.credential.credentialIndex]; @@ -37189,7 +37094,7 @@ class DoorLockSetCredential : public ClusterCommand { while (repeatCount--) { [cluster setCredentialWithParams:params completionHandler:^( - CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable error) { + MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -37222,16 +37127,16 @@ class DoorLockGetCredentialStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.credential = [CHIPDoorLockClusterDlCredential new]; + params.credential = [MTRDoorLockClusterDlCredential new]; params.credential.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.credential.credentialType)]; params.credential.credentialIndex = [NSNumber numberWithUnsignedShort:mRequest.credential.credentialIndex]; @@ -37239,7 +37144,7 @@ class DoorLockGetCredentialStatus : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getCredentialStatusWithParams:params - completionHandler:^(CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, + completionHandler:^(MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -37273,19 +37178,19 @@ class DoorLockClearCredential : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.credential.IsNull()) { params.credential = nil; } else { - params.credential = [CHIPDoorLockClusterDlCredential new]; + params.credential = [MTRDoorLockClusterDlCredential new]; params.credential.credentialType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.credential.Value().credentialType)]; params.credential.credentialIndex = [NSNumber numberWithUnsignedShort:mRequest.credential.Value().credentialIndex]; @@ -37326,12 +37231,12 @@ class ReadDoorLockLockState : public ReadAttribute { ~ReadDoorLockLockState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LockState response %@", [value description]); if (error != nil) { @@ -37352,12 +37257,12 @@ class SubscribeAttributeDoorLockLockState : public SubscribeAttribute { ~SubscribeAttributeDoorLockLockState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37390,12 +37295,12 @@ class ReadDoorLockLockType : public ReadAttribute { ~ReadDoorLockLockType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLockTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LockType response %@", [value description]); if (error != nil) { @@ -37416,12 +37321,12 @@ class SubscribeAttributeDoorLockLockType : public SubscribeAttribute { ~SubscribeAttributeDoorLockLockType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37454,12 +37359,12 @@ class ReadDoorLockActuatorEnabled : public ReadAttribute { ~ReadDoorLockActuatorEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActuatorEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ActuatorEnabled response %@", [value description]); if (error != nil) { @@ -37480,12 +37385,12 @@ class SubscribeAttributeDoorLockActuatorEnabled : public SubscribeAttribute { ~SubscribeAttributeDoorLockActuatorEnabled() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37518,12 +37423,12 @@ class ReadDoorLockDoorState : public ReadAttribute { ~ReadDoorLockDoorState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDoorStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorState response %@", [value description]); if (error != nil) { @@ -37544,12 +37449,12 @@ class SubscribeAttributeDoorLockDoorState : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37582,12 +37487,12 @@ class ReadDoorLockDoorOpenEvents : public ReadAttribute { ~ReadDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDoorOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorOpenEvents response %@", [value description]); if (error != nil) { @@ -37611,12 +37516,12 @@ class WriteDoorLockDoorOpenEvents : public WriteAttribute { ~WriteDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -37646,12 +37551,12 @@ class SubscribeAttributeDoorLockDoorOpenEvents : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37684,12 +37589,12 @@ class ReadDoorLockDoorClosedEvents : public ReadAttribute { ~ReadDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDoorClosedEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorClosedEvents response %@", [value description]); if (error != nil) { @@ -37713,12 +37618,12 @@ class WriteDoorLockDoorClosedEvents : public WriteAttribute { ~WriteDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -37748,12 +37653,12 @@ class SubscribeAttributeDoorLockDoorClosedEvents : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37786,12 +37691,12 @@ class ReadDoorLockOpenPeriod : public ReadAttribute { ~ReadDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOpenPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.OpenPeriod response %@", [value description]); if (error != nil) { @@ -37815,12 +37720,12 @@ class WriteDoorLockOpenPeriod : public WriteAttribute { ~WriteDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -37850,12 +37755,12 @@ class SubscribeAttributeDoorLockOpenPeriod : public SubscribeAttribute { ~SubscribeAttributeDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37888,12 +37793,12 @@ class ReadDoorLockNumberOfTotalUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfTotalUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfTotalUsersSupported response %@", [value description]); @@ -37915,12 +37820,12 @@ class SubscribeAttributeDoorLockNumberOfTotalUsersSupported : public SubscribeAt ~SubscribeAttributeDoorLockNumberOfTotalUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -37953,12 +37858,12 @@ class ReadDoorLockNumberOfPINUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfPINUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfPINUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfPINUsersSupported response %@", [value description]); @@ -37980,12 +37885,12 @@ class SubscribeAttributeDoorLockNumberOfPINUsersSupported : public SubscribeAttr ~SubscribeAttributeDoorLockNumberOfPINUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38018,12 +37923,12 @@ class ReadDoorLockNumberOfRFIDUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfRFIDUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfRFIDUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfRFIDUsersSupported response %@", [value description]); @@ -38045,12 +37950,12 @@ class SubscribeAttributeDoorLockNumberOfRFIDUsersSupported : public SubscribeAtt ~SubscribeAttributeDoorLockNumberOfRFIDUsersSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38083,12 +37988,12 @@ class ReadDoorLockNumberOfWeekDaySchedulesSupportedPerUser : public ReadAttribut ~ReadDoorLockNumberOfWeekDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfWeekDaySchedulesSupportedPerUser response %@", [value description]); @@ -38110,12 +38015,12 @@ class SubscribeAttributeDoorLockNumberOfWeekDaySchedulesSupportedPerUser : publi ~SubscribeAttributeDoorLockNumberOfWeekDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38149,12 +38054,12 @@ class ReadDoorLockNumberOfYearDaySchedulesSupportedPerUser : public ReadAttribut ~ReadDoorLockNumberOfYearDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfYearDaySchedulesSupportedPerUser response %@", [value description]); @@ -38176,12 +38081,12 @@ class SubscribeAttributeDoorLockNumberOfYearDaySchedulesSupportedPerUser : publi ~SubscribeAttributeDoorLockNumberOfYearDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38215,12 +38120,12 @@ class ReadDoorLockNumberOfHolidaySchedulesSupported : public ReadAttribute { ~ReadDoorLockNumberOfHolidaySchedulesSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfHolidaySchedulesSupportedWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfHolidaySchedulesSupported response %@", [value description]); @@ -38242,12 +38147,12 @@ class SubscribeAttributeDoorLockNumberOfHolidaySchedulesSupported : public Subsc ~SubscribeAttributeDoorLockNumberOfHolidaySchedulesSupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38280,12 +38185,12 @@ class ReadDoorLockMaxPINCodeLength : public ReadAttribute { ~ReadDoorLockMaxPINCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxPINCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MaxPINCodeLength response %@", [value description]); if (error != nil) { @@ -38306,12 +38211,12 @@ class SubscribeAttributeDoorLockMaxPINCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMaxPINCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38344,12 +38249,12 @@ class ReadDoorLockMinPINCodeLength : public ReadAttribute { ~ReadDoorLockMinPINCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinPINCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MinPINCodeLength response %@", [value description]); if (error != nil) { @@ -38370,12 +38275,12 @@ class SubscribeAttributeDoorLockMinPINCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMinPINCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38408,12 +38313,12 @@ class ReadDoorLockMaxRFIDCodeLength : public ReadAttribute { ~ReadDoorLockMaxRFIDCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxRFIDCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MaxRFIDCodeLength response %@", [value description]); if (error != nil) { @@ -38434,12 +38339,12 @@ class SubscribeAttributeDoorLockMaxRFIDCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMaxRFIDCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38472,12 +38377,12 @@ class ReadDoorLockMinRFIDCodeLength : public ReadAttribute { ~ReadDoorLockMinRFIDCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinRFIDCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MinRFIDCodeLength response %@", [value description]); if (error != nil) { @@ -38498,12 +38403,12 @@ class SubscribeAttributeDoorLockMinRFIDCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMinRFIDCodeLength() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38536,12 +38441,12 @@ class ReadDoorLockCredentialRulesSupport : public ReadAttribute { ~ReadDoorLockCredentialRulesSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCredentialRulesSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.CredentialRulesSupport response %@", [value description]); if (error != nil) { @@ -38562,12 +38467,12 @@ class SubscribeAttributeDoorLockCredentialRulesSupport : public SubscribeAttribu ~SubscribeAttributeDoorLockCredentialRulesSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38600,12 +38505,12 @@ class ReadDoorLockNumberOfCredentialsSupportedPerUser : public ReadAttribute { ~ReadDoorLockNumberOfCredentialsSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfCredentialsSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfCredentialsSupportedPerUser response %@", [value description]); @@ -38627,12 +38532,12 @@ class SubscribeAttributeDoorLockNumberOfCredentialsSupportedPerUser : public Sub ~SubscribeAttributeDoorLockNumberOfCredentialsSupportedPerUser() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38665,12 +38570,12 @@ class ReadDoorLockLanguage : public ReadAttribute { ~ReadDoorLockLanguage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLanguageWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.Language response %@", [value description]); if (error != nil) { @@ -38694,12 +38599,12 @@ class WriteDoorLockLanguage : public WriteAttribute { ~WriteDoorLockLanguage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -38731,12 +38636,12 @@ class SubscribeAttributeDoorLockLanguage : public SubscribeAttribute { ~SubscribeAttributeDoorLockLanguage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38769,12 +38674,12 @@ class ReadDoorLockLEDSettings : public ReadAttribute { ~ReadDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLEDSettingsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LEDSettings response %@", [value description]); if (error != nil) { @@ -38798,12 +38703,12 @@ class WriteDoorLockLEDSettings : public WriteAttribute { ~WriteDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -38833,12 +38738,12 @@ class SubscribeAttributeDoorLockLEDSettings : public SubscribeAttribute { ~SubscribeAttributeDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38871,12 +38776,12 @@ class ReadDoorLockAutoRelockTime : public ReadAttribute { ~ReadDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AutoRelockTime response %@", [value description]); if (error != nil) { @@ -38900,12 +38805,12 @@ class WriteDoorLockAutoRelockTime : public WriteAttribute { ~WriteDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -38935,12 +38840,12 @@ class SubscribeAttributeDoorLockAutoRelockTime : public SubscribeAttribute { ~SubscribeAttributeDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -38973,12 +38878,12 @@ class ReadDoorLockSoundVolume : public ReadAttribute { ~ReadDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSoundVolumeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SoundVolume response %@", [value description]); if (error != nil) { @@ -39002,12 +38907,12 @@ class WriteDoorLockSoundVolume : public WriteAttribute { ~WriteDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39037,12 +38942,12 @@ class SubscribeAttributeDoorLockSoundVolume : public SubscribeAttribute { ~SubscribeAttributeDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39075,12 +38980,12 @@ class ReadDoorLockOperatingMode : public ReadAttribute { ~ReadDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOperatingModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.OperatingMode response %@", [value description]); if (error != nil) { @@ -39104,12 +39009,12 @@ class WriteDoorLockOperatingMode : public WriteAttribute { ~WriteDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39139,12 +39044,12 @@ class SubscribeAttributeDoorLockOperatingMode : public SubscribeAttribute { ~SubscribeAttributeDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39177,12 +39082,12 @@ class ReadDoorLockSupportedOperatingModes : public ReadAttribute { ~ReadDoorLockSupportedOperatingModes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedOperatingModesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SupportedOperatingModes response %@", [value description]); @@ -39204,12 +39109,12 @@ class SubscribeAttributeDoorLockSupportedOperatingModes : public SubscribeAttrib ~SubscribeAttributeDoorLockSupportedOperatingModes() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39242,12 +39147,12 @@ class ReadDoorLockDefaultConfigurationRegister : public ReadAttribute { ~ReadDoorLockDefaultConfigurationRegister() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDefaultConfigurationRegisterWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DefaultConfigurationRegister response %@", [value description]); @@ -39269,12 +39174,12 @@ class SubscribeAttributeDoorLockDefaultConfigurationRegister : public SubscribeA ~SubscribeAttributeDoorLockDefaultConfigurationRegister() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39307,12 +39212,12 @@ class ReadDoorLockEnableLocalProgramming : public ReadAttribute { ~ReadDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnableLocalProgrammingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableLocalProgramming response %@", [value description]); if (error != nil) { @@ -39336,12 +39241,12 @@ class WriteDoorLockEnableLocalProgramming : public WriteAttribute { ~WriteDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39371,12 +39276,12 @@ class SubscribeAttributeDoorLockEnableLocalProgramming : public SubscribeAttribu ~SubscribeAttributeDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39409,12 +39314,12 @@ class ReadDoorLockEnableOneTouchLocking : public ReadAttribute { ~ReadDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnableOneTouchLockingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableOneTouchLocking response %@", [value description]); if (error != nil) { @@ -39438,12 +39343,12 @@ class WriteDoorLockEnableOneTouchLocking : public WriteAttribute { ~WriteDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39473,12 +39378,12 @@ class SubscribeAttributeDoorLockEnableOneTouchLocking : public SubscribeAttribut ~SubscribeAttributeDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39511,12 +39416,12 @@ class ReadDoorLockEnableInsideStatusLED : public ReadAttribute { ~ReadDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnableInsideStatusLEDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableInsideStatusLED response %@", [value description]); if (error != nil) { @@ -39540,12 +39445,12 @@ class WriteDoorLockEnableInsideStatusLED : public WriteAttribute { ~WriteDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39575,12 +39480,12 @@ class SubscribeAttributeDoorLockEnableInsideStatusLED : public SubscribeAttribut ~SubscribeAttributeDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39613,12 +39518,12 @@ class ReadDoorLockEnablePrivacyModeButton : public ReadAttribute { ~ReadDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnablePrivacyModeButtonWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnablePrivacyModeButton response %@", [value description]); @@ -39643,12 +39548,12 @@ class WriteDoorLockEnablePrivacyModeButton : public WriteAttribute { ~WriteDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39678,12 +39583,12 @@ class SubscribeAttributeDoorLockEnablePrivacyModeButton : public SubscribeAttrib ~SubscribeAttributeDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39716,12 +39621,12 @@ class ReadDoorLockLocalProgrammingFeatures : public ReadAttribute { ~ReadDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocalProgrammingFeaturesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LocalProgrammingFeatures response %@", [value description]); @@ -39746,12 +39651,12 @@ class WriteDoorLockLocalProgrammingFeatures : public WriteAttribute { ~WriteDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39781,12 +39686,12 @@ class SubscribeAttributeDoorLockLocalProgrammingFeatures : public SubscribeAttri ~SubscribeAttributeDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39819,12 +39724,12 @@ class ReadDoorLockWrongCodeEntryLimit : public ReadAttribute { ~ReadDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWrongCodeEntryLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.WrongCodeEntryLimit response %@", [value description]); if (error != nil) { @@ -39848,12 +39753,12 @@ class WriteDoorLockWrongCodeEntryLimit : public WriteAttribute { ~WriteDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39883,12 +39788,12 @@ class SubscribeAttributeDoorLockWrongCodeEntryLimit : public SubscribeAttribute ~SubscribeAttributeDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -39921,12 +39826,12 @@ class ReadDoorLockUserCodeTemporaryDisableTime : public ReadAttribute { ~ReadDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUserCodeTemporaryDisableTimeWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.UserCodeTemporaryDisableTime response %@", [value description]); @@ -39951,12 +39856,12 @@ class WriteDoorLockUserCodeTemporaryDisableTime : public WriteAttribute { ~WriteDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -39986,12 +39891,12 @@ class SubscribeAttributeDoorLockUserCodeTemporaryDisableTime : public SubscribeA ~SubscribeAttributeDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40024,12 +39929,12 @@ class ReadDoorLockSendPINOverTheAir : public ReadAttribute { ~ReadDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSendPINOverTheAirWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SendPINOverTheAir response %@", [value description]); if (error != nil) { @@ -40053,12 +39958,12 @@ class WriteDoorLockSendPINOverTheAir : public WriteAttribute { ~WriteDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -40088,12 +39993,12 @@ class SubscribeAttributeDoorLockSendPINOverTheAir : public SubscribeAttribute { ~SubscribeAttributeDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40126,12 +40031,12 @@ class ReadDoorLockRequirePINforRemoteOperation : public ReadAttribute { ~ReadDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRequirePINforRemoteOperationWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.RequirePINforRemoteOperation response %@", [value description]); @@ -40156,12 +40061,12 @@ class WriteDoorLockRequirePINforRemoteOperation : public WriteAttribute { ~WriteDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -40191,12 +40096,12 @@ class SubscribeAttributeDoorLockRequirePINforRemoteOperation : public SubscribeA ~SubscribeAttributeDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40229,12 +40134,12 @@ class ReadDoorLockExpiringUserTimeout : public ReadAttribute { ~ReadDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeExpiringUserTimeoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ExpiringUserTimeout response %@", [value description]); if (error != nil) { @@ -40258,12 +40163,12 @@ class WriteDoorLockExpiringUserTimeout : public WriteAttribute { ~WriteDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -40293,12 +40198,12 @@ class SubscribeAttributeDoorLockExpiringUserTimeout : public SubscribeAttribute ~SubscribeAttributeDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40331,12 +40236,12 @@ class ReadDoorLockGeneratedCommandList : public ReadAttribute { ~ReadDoorLockGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -40357,12 +40262,12 @@ class SubscribeAttributeDoorLockGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeDoorLockGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40395,12 +40300,12 @@ class ReadDoorLockAcceptedCommandList : public ReadAttribute { ~ReadDoorLockAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -40421,12 +40326,12 @@ class SubscribeAttributeDoorLockAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeDoorLockAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40459,12 +40364,12 @@ class ReadDoorLockAttributeList : public ReadAttribute { ~ReadDoorLockAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AttributeList response %@", [value description]); if (error != nil) { @@ -40485,12 +40390,12 @@ class SubscribeAttributeDoorLockAttributeList : public SubscribeAttribute { ~SubscribeAttributeDoorLockAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40523,12 +40428,12 @@ class ReadDoorLockFeatureMap : public ReadAttribute { ~ReadDoorLockFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.FeatureMap response %@", [value description]); if (error != nil) { @@ -40549,12 +40454,12 @@ class SubscribeAttributeDoorLockFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDoorLockFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40587,12 +40492,12 @@ class ReadDoorLockClusterRevision : public ReadAttribute { ~ReadDoorLockClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ClusterRevision response %@", [value description]); if (error != nil) { @@ -40613,12 +40518,12 @@ class SubscribeAttributeDoorLockClusterRevision : public SubscribeAttribute { ~SubscribeAttributeDoorLockClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -40694,13 +40599,13 @@ class WindowCoveringUpOrOpen : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterUpOrOpenParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterUpOrOpenParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -40735,13 +40640,13 @@ class WindowCoveringDownOrClose : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterDownOrCloseParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterDownOrCloseParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -40776,13 +40681,13 @@ class WindowCoveringStopMotion : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterStopMotionParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterStopMotionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -40818,13 +40723,13 @@ class WindowCoveringGoToLiftValue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftValueParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftValueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.liftValue = [NSNumber numberWithUnsignedShort:mRequest.liftValue]; @@ -40862,13 +40767,13 @@ class WindowCoveringGoToLiftPercentage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:mRequest.liftPercent100thsValue]; @@ -40906,13 +40811,13 @@ class WindowCoveringGoToTiltValue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltValueParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltValueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.tiltValue = [NSNumber numberWithUnsignedShort:mRequest.tiltValue]; @@ -40950,13 +40855,13 @@ class WindowCoveringGoToTiltPercentage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:mRequest.tiltPercent100thsValue]; @@ -40994,12 +40899,12 @@ class ReadWindowCoveringType : public ReadAttribute { ~ReadWindowCoveringType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.Type response %@", [value description]); if (error != nil) { @@ -41020,12 +40925,12 @@ class SubscribeAttributeWindowCoveringType : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41058,12 +40963,12 @@ class ReadWindowCoveringPhysicalClosedLimitLift : public ReadAttribute { ~ReadWindowCoveringPhysicalClosedLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePhysicalClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.PhysicalClosedLimitLift response %@", [value description]); @@ -41085,12 +40990,12 @@ class SubscribeAttributeWindowCoveringPhysicalClosedLimitLift : public Subscribe ~SubscribeAttributeWindowCoveringPhysicalClosedLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41123,12 +41028,12 @@ class ReadWindowCoveringPhysicalClosedLimitTilt : public ReadAttribute { ~ReadWindowCoveringPhysicalClosedLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePhysicalClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.PhysicalClosedLimitTilt response %@", [value description]); @@ -41150,12 +41055,12 @@ class SubscribeAttributeWindowCoveringPhysicalClosedLimitTilt : public Subscribe ~SubscribeAttributeWindowCoveringPhysicalClosedLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41188,12 +41093,12 @@ class ReadWindowCoveringCurrentPositionLift : public ReadAttribute { ~ReadWindowCoveringCurrentPositionLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLift response %@", [value description]); if (error != nil) { @@ -41214,12 +41119,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionLift : public SubscribeAttr ~SubscribeAttributeWindowCoveringCurrentPositionLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41252,12 +41157,12 @@ class ReadWindowCoveringCurrentPositionTilt : public ReadAttribute { ~ReadWindowCoveringCurrentPositionTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTilt response %@", [value description]); if (error != nil) { @@ -41278,12 +41183,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionTilt : public SubscribeAttr ~SubscribeAttributeWindowCoveringCurrentPositionTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41316,12 +41221,12 @@ class ReadWindowCoveringNumberOfActuationsLift : public ReadAttribute { ~ReadWindowCoveringNumberOfActuationsLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfActuationsLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.NumberOfActuationsLift response %@", [value description]); if (error != nil) { @@ -41342,12 +41247,12 @@ class SubscribeAttributeWindowCoveringNumberOfActuationsLift : public SubscribeA ~SubscribeAttributeWindowCoveringNumberOfActuationsLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41380,12 +41285,12 @@ class ReadWindowCoveringNumberOfActuationsTilt : public ReadAttribute { ~ReadWindowCoveringNumberOfActuationsTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfActuationsTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.NumberOfActuationsTilt response %@", [value description]); if (error != nil) { @@ -41406,12 +41311,12 @@ class SubscribeAttributeWindowCoveringNumberOfActuationsTilt : public SubscribeA ~SubscribeAttributeWindowCoveringNumberOfActuationsTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41444,12 +41349,12 @@ class ReadWindowCoveringConfigStatus : public ReadAttribute { ~ReadWindowCoveringConfigStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.ConfigStatus response %@", [value description]); if (error != nil) { @@ -41470,12 +41375,12 @@ class SubscribeAttributeWindowCoveringConfigStatus : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringConfigStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41508,12 +41413,12 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ReadAttribute { ~ReadWindowCoveringCurrentPositionLiftPercentage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLiftPercentage response %@", [value description]); @@ -41535,12 +41440,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionLiftPercentage : public Sub ~SubscribeAttributeWindowCoveringCurrentPositionLiftPercentage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41573,12 +41478,12 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ReadAttribute { ~ReadWindowCoveringCurrentPositionTiltPercentage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTiltPercentage response %@", [value description]); @@ -41600,12 +41505,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionTiltPercentage : public Sub ~SubscribeAttributeWindowCoveringCurrentPositionTiltPercentage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41638,12 +41543,12 @@ class ReadWindowCoveringOperationalStatus : public ReadAttribute { ~ReadWindowCoveringOperationalStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.OperationalStatus response %@", [value description]); if (error != nil) { @@ -41664,12 +41569,12 @@ class SubscribeAttributeWindowCoveringOperationalStatus : public SubscribeAttrib ~SubscribeAttributeWindowCoveringOperationalStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41702,12 +41607,12 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ReadAttribute { ~ReadWindowCoveringTargetPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.TargetPositionLiftPercent100ths response %@", [value description]); @@ -41729,12 +41634,12 @@ class SubscribeAttributeWindowCoveringTargetPositionLiftPercent100ths : public S ~SubscribeAttributeWindowCoveringTargetPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41767,12 +41672,12 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ReadAttribute { ~ReadWindowCoveringTargetPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.TargetPositionTiltPercent100ths response %@", [value description]); @@ -41794,12 +41699,12 @@ class SubscribeAttributeWindowCoveringTargetPositionTiltPercent100ths : public S ~SubscribeAttributeWindowCoveringTargetPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41832,12 +41737,12 @@ class ReadWindowCoveringEndProductType : public ReadAttribute { ~ReadWindowCoveringEndProductType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.EndProductType response %@", [value description]); if (error != nil) { @@ -41858,12 +41763,12 @@ class SubscribeAttributeWindowCoveringEndProductType : public SubscribeAttribute ~SubscribeAttributeWindowCoveringEndProductType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41896,12 +41801,12 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ReadAttribute ~ReadWindowCoveringCurrentPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLiftPercent100ths response %@", [value description]); @@ -41923,12 +41828,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionLiftPercent100ths : public ~SubscribeAttributeWindowCoveringCurrentPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -41961,12 +41866,12 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ReadAttribute ~ReadWindowCoveringCurrentPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTiltPercent100ths response %@", [value description]); @@ -41988,12 +41893,12 @@ class SubscribeAttributeWindowCoveringCurrentPositionTiltPercent100ths : public ~SubscribeAttributeWindowCoveringCurrentPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42026,12 +41931,12 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ReadAttribute { ~ReadWindowCoveringInstalledOpenLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledOpenLimitLift response %@", [value description]); if (error != nil) { @@ -42052,12 +41957,12 @@ class SubscribeAttributeWindowCoveringInstalledOpenLimitLift : public SubscribeA ~SubscribeAttributeWindowCoveringInstalledOpenLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42090,12 +41995,12 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ReadAttribute { ~ReadWindowCoveringInstalledClosedLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledClosedLimitLift response %@", [value description]); @@ -42117,12 +42022,12 @@ class SubscribeAttributeWindowCoveringInstalledClosedLimitLift : public Subscrib ~SubscribeAttributeWindowCoveringInstalledClosedLimitLift() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42155,12 +42060,12 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ReadAttribute { ~ReadWindowCoveringInstalledOpenLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledOpenLimitTilt response %@", [value description]); if (error != nil) { @@ -42181,12 +42086,12 @@ class SubscribeAttributeWindowCoveringInstalledOpenLimitTilt : public SubscribeA ~SubscribeAttributeWindowCoveringInstalledOpenLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42219,12 +42124,12 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ReadAttribute { ~ReadWindowCoveringInstalledClosedLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledClosedLimitTilt response %@", [value description]); @@ -42246,12 +42151,12 @@ class SubscribeAttributeWindowCoveringInstalledClosedLimitTilt : public Subscrib ~SubscribeAttributeWindowCoveringInstalledClosedLimitTilt() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42284,12 +42189,12 @@ class ReadWindowCoveringMode : public ReadAttribute { ~ReadWindowCoveringMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.Mode response %@", [value description]); if (error != nil) { @@ -42313,12 +42218,12 @@ class WriteWindowCoveringMode : public WriteAttribute { ~WriteWindowCoveringMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -42348,12 +42253,12 @@ class SubscribeAttributeWindowCoveringMode : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42386,12 +42291,12 @@ class ReadWindowCoveringSafetyStatus : public ReadAttribute { ~ReadWindowCoveringSafetyStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.SafetyStatus response %@", [value description]); if (error != nil) { @@ -42412,12 +42317,12 @@ class SubscribeAttributeWindowCoveringSafetyStatus : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringSafetyStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42450,12 +42355,12 @@ class ReadWindowCoveringGeneratedCommandList : public ReadAttribute { ~ReadWindowCoveringGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -42476,12 +42381,12 @@ class SubscribeAttributeWindowCoveringGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeWindowCoveringGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42514,12 +42419,12 @@ class ReadWindowCoveringAcceptedCommandList : public ReadAttribute { ~ReadWindowCoveringAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -42540,12 +42445,12 @@ class SubscribeAttributeWindowCoveringAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeWindowCoveringAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42578,12 +42483,12 @@ class ReadWindowCoveringAttributeList : public ReadAttribute { ~ReadWindowCoveringAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.AttributeList response %@", [value description]); if (error != nil) { @@ -42604,12 +42509,12 @@ class SubscribeAttributeWindowCoveringAttributeList : public SubscribeAttribute ~SubscribeAttributeWindowCoveringAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42642,12 +42547,12 @@ class ReadWindowCoveringFeatureMap : public ReadAttribute { ~ReadWindowCoveringFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.FeatureMap response %@", [value description]); if (error != nil) { @@ -42668,12 +42573,12 @@ class SubscribeAttributeWindowCoveringFeatureMap : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42706,12 +42611,12 @@ class ReadWindowCoveringClusterRevision : public ReadAttribute { ~ReadWindowCoveringClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.ClusterRevision response %@", [value description]); if (error != nil) { @@ -42732,12 +42637,12 @@ class SubscribeAttributeWindowCoveringClusterRevision : public SubscribeAttribut ~SubscribeAttributeWindowCoveringClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42797,13 +42702,13 @@ class BarrierControlBarrierControlGoToPercent : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBarrierControlClusterBarrierControlGoToPercentParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBarrierControlClusterBarrierControlGoToPercentParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.percentOpen = [NSNumber numberWithUnsignedChar:mRequest.percentOpen]; @@ -42840,13 +42745,13 @@ class BarrierControlBarrierControlStop : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPBarrierControlClusterBarrierControlStopParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRBarrierControlClusterBarrierControlStopParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -42882,12 +42787,12 @@ class ReadBarrierControlBarrierMovingState : public ReadAttribute { ~ReadBarrierControlBarrierMovingState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierMovingStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierMovingState response %@", [value description]); if (error != nil) { @@ -42908,12 +42813,12 @@ class SubscribeAttributeBarrierControlBarrierMovingState : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierMovingState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -42946,12 +42851,12 @@ class ReadBarrierControlBarrierSafetyStatus : public ReadAttribute { ~ReadBarrierControlBarrierSafetyStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierSafetyStatus response %@", [value description]); if (error != nil) { @@ -42972,12 +42877,12 @@ class SubscribeAttributeBarrierControlBarrierSafetyStatus : public SubscribeAttr ~SubscribeAttributeBarrierControlBarrierSafetyStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43010,12 +42915,12 @@ class ReadBarrierControlBarrierCapabilities : public ReadAttribute { ~ReadBarrierControlBarrierCapabilities() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCapabilities response %@", [value description]); if (error != nil) { @@ -43036,12 +42941,12 @@ class SubscribeAttributeBarrierControlBarrierCapabilities : public SubscribeAttr ~SubscribeAttributeBarrierControlBarrierCapabilities() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43074,12 +42979,12 @@ class ReadBarrierControlBarrierOpenEvents : public ReadAttribute { ~ReadBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierOpenEvents response %@", [value description]); if (error != nil) { @@ -43103,12 +43008,12 @@ class WriteBarrierControlBarrierOpenEvents : public WriteAttribute { ~WriteBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43138,12 +43043,12 @@ class SubscribeAttributeBarrierControlBarrierOpenEvents : public SubscribeAttrib ~SubscribeAttributeBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43176,12 +43081,12 @@ class ReadBarrierControlBarrierCloseEvents : public ReadAttribute { ~ReadBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierCloseEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCloseEvents response %@", [value description]); if (error != nil) { @@ -43205,12 +43110,12 @@ class WriteBarrierControlBarrierCloseEvents : public WriteAttribute { ~WriteBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43240,12 +43145,12 @@ class SubscribeAttributeBarrierControlBarrierCloseEvents : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43278,12 +43183,12 @@ class ReadBarrierControlBarrierCommandOpenEvents : public ReadAttribute { ~ReadBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierCommandOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCommandOpenEvents response %@", [value description]); @@ -43308,12 +43213,12 @@ class WriteBarrierControlBarrierCommandOpenEvents : public WriteAttribute { ~WriteBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43343,12 +43248,12 @@ class SubscribeAttributeBarrierControlBarrierCommandOpenEvents : public Subscrib ~SubscribeAttributeBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43381,12 +43286,12 @@ class ReadBarrierControlBarrierCommandCloseEvents : public ReadAttribute { ~ReadBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierCommandCloseEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCommandCloseEvents response %@", [value description]); @@ -43411,12 +43316,12 @@ class WriteBarrierControlBarrierCommandCloseEvents : public WriteAttribute { ~WriteBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43446,12 +43351,12 @@ class SubscribeAttributeBarrierControlBarrierCommandCloseEvents : public Subscri ~SubscribeAttributeBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43484,12 +43389,12 @@ class ReadBarrierControlBarrierOpenPeriod : public ReadAttribute { ~ReadBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierOpenPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierOpenPeriod response %@", [value description]); if (error != nil) { @@ -43513,12 +43418,12 @@ class WriteBarrierControlBarrierOpenPeriod : public WriteAttribute { ~WriteBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43548,12 +43453,12 @@ class SubscribeAttributeBarrierControlBarrierOpenPeriod : public SubscribeAttrib ~SubscribeAttributeBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43586,12 +43491,12 @@ class ReadBarrierControlBarrierClosePeriod : public ReadAttribute { ~ReadBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierClosePeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierClosePeriod response %@", [value description]); if (error != nil) { @@ -43615,12 +43520,12 @@ class WriteBarrierControlBarrierClosePeriod : public WriteAttribute { ~WriteBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -43650,12 +43555,12 @@ class SubscribeAttributeBarrierControlBarrierClosePeriod : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43688,12 +43593,12 @@ class ReadBarrierControlBarrierPosition : public ReadAttribute { ~ReadBarrierControlBarrierPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBarrierPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierPosition response %@", [value description]); if (error != nil) { @@ -43714,12 +43619,12 @@ class SubscribeAttributeBarrierControlBarrierPosition : public SubscribeAttribut ~SubscribeAttributeBarrierControlBarrierPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43752,12 +43657,12 @@ class ReadBarrierControlGeneratedCommandList : public ReadAttribute { ~ReadBarrierControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -43778,12 +43683,12 @@ class SubscribeAttributeBarrierControlGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeBarrierControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43816,12 +43721,12 @@ class ReadBarrierControlAcceptedCommandList : public ReadAttribute { ~ReadBarrierControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -43842,12 +43747,12 @@ class SubscribeAttributeBarrierControlAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeBarrierControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43880,12 +43785,12 @@ class ReadBarrierControlAttributeList : public ReadAttribute { ~ReadBarrierControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.AttributeList response %@", [value description]); if (error != nil) { @@ -43906,12 +43811,12 @@ class SubscribeAttributeBarrierControlAttributeList : public SubscribeAttribute ~SubscribeAttributeBarrierControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -43944,12 +43849,12 @@ class ReadBarrierControlFeatureMap : public ReadAttribute { ~ReadBarrierControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -43970,12 +43875,12 @@ class SubscribeAttributeBarrierControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBarrierControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44008,12 +43913,12 @@ class ReadBarrierControlClusterRevision : public ReadAttribute { ~ReadBarrierControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -44034,12 +43939,12 @@ class SubscribeAttributeBarrierControlClusterRevision : public SubscribeAttribut ~SubscribeAttributeBarrierControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44127,14 +44032,14 @@ class ReadPumpConfigurationAndControlMaxPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxPressure response %@", [value description]); if (error != nil) { @@ -44155,14 +44060,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxPressure : public Subscrib ~SubscribeAttributePumpConfigurationAndControlMaxPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44195,14 +44100,14 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxSpeed response %@", [value description]); if (error != nil) { @@ -44223,14 +44128,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxSpeed : public SubscribeAt ~SubscribeAttributePumpConfigurationAndControlMaxSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44263,14 +44168,14 @@ class ReadPumpConfigurationAndControlMaxFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxFlow response %@", [value description]); if (error != nil) { @@ -44291,14 +44196,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxFlow : public SubscribeAtt ~SubscribeAttributePumpConfigurationAndControlMaxFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44331,14 +44236,14 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstPressure response %@", [value description]); if (error != nil) { @@ -44359,14 +44264,14 @@ class SubscribeAttributePumpConfigurationAndControlMinConstPressure : public Sub ~SubscribeAttributePumpConfigurationAndControlMinConstPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44399,14 +44304,14 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstPressure response %@", [value description]); if (error != nil) { @@ -44427,14 +44332,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstPressure : public Sub ~SubscribeAttributePumpConfigurationAndControlMaxConstPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44467,14 +44372,14 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMinCompPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinCompPressure response %@", [value description]); if (error != nil) { @@ -44495,14 +44400,14 @@ class SubscribeAttributePumpConfigurationAndControlMinCompPressure : public Subs ~SubscribeAttributePumpConfigurationAndControlMinCompPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44535,14 +44440,14 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxCompPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxCompPressure response %@", [value description]); if (error != nil) { @@ -44563,14 +44468,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxCompPressure : public Subs ~SubscribeAttributePumpConfigurationAndControlMaxCompPressure() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44603,14 +44508,14 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstSpeed response %@", [value description]); if (error != nil) { @@ -44631,14 +44536,14 @@ class SubscribeAttributePumpConfigurationAndControlMinConstSpeed : public Subscr ~SubscribeAttributePumpConfigurationAndControlMinConstSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44671,14 +44576,14 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstSpeed response %@", [value description]); if (error != nil) { @@ -44699,14 +44604,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstSpeed : public Subscr ~SubscribeAttributePumpConfigurationAndControlMaxConstSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44739,14 +44644,14 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstFlow response %@", [value description]); if (error != nil) { @@ -44767,14 +44672,14 @@ class SubscribeAttributePumpConfigurationAndControlMinConstFlow : public Subscri ~SubscribeAttributePumpConfigurationAndControlMinConstFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44807,14 +44712,14 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstFlow response %@", [value description]); if (error != nil) { @@ -44835,14 +44740,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstFlow : public Subscri ~SubscribeAttributePumpConfigurationAndControlMaxConstFlow() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44875,14 +44780,14 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstTemp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstTemp response %@", [value description]); if (error != nil) { @@ -44903,14 +44808,14 @@ class SubscribeAttributePumpConfigurationAndControlMinConstTemp : public Subscri ~SubscribeAttributePumpConfigurationAndControlMinConstTemp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -44943,14 +44848,14 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstTemp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstTemp response %@", [value description]); if (error != nil) { @@ -44971,14 +44876,14 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstTemp : public Subscri ~SubscribeAttributePumpConfigurationAndControlMaxConstTemp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45011,14 +44916,14 @@ class ReadPumpConfigurationAndControlPumpStatus : public ReadAttribute { ~ReadPumpConfigurationAndControlPumpStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePumpStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.PumpStatus response %@", [value description]); if (error != nil) { @@ -45039,14 +44944,14 @@ class SubscribeAttributePumpConfigurationAndControlPumpStatus : public Subscribe ~SubscribeAttributePumpConfigurationAndControlPumpStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45079,14 +44984,14 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ReadAttribu ~ReadPumpConfigurationAndControlEffectiveOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.EffectiveOperationMode response %@", [value description]); if (error != nil) { @@ -45107,14 +45012,14 @@ class SubscribeAttributePumpConfigurationAndControlEffectiveOperationMode : publ ~SubscribeAttributePumpConfigurationAndControlEffectiveOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45147,14 +45052,14 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ReadAttribute ~ReadPumpConfigurationAndControlEffectiveControlMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.EffectiveControlMode response %@", [value description]); if (error != nil) { @@ -45175,14 +45080,14 @@ class SubscribeAttributePumpConfigurationAndControlEffectiveControlMode : public ~SubscribeAttributePumpConfigurationAndControlEffectiveControlMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45215,14 +45120,14 @@ class ReadPumpConfigurationAndControlCapacity : public ReadAttribute { ~ReadPumpConfigurationAndControlCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Capacity response %@", [value description]); if (error != nil) { @@ -45243,14 +45148,14 @@ class SubscribeAttributePumpConfigurationAndControlCapacity : public SubscribeAt ~SubscribeAttributePumpConfigurationAndControlCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45283,14 +45188,14 @@ class ReadPumpConfigurationAndControlSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Speed response %@", [value description]); if (error != nil) { @@ -45311,14 +45216,14 @@ class SubscribeAttributePumpConfigurationAndControlSpeed : public SubscribeAttri ~SubscribeAttributePumpConfigurationAndControlSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45351,14 +45256,14 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ReadAttribute ~ReadPumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.LifetimeRunningHours response %@", [value description]); if (error != nil) { @@ -45382,14 +45287,14 @@ class WritePumpConfigurationAndControlLifetimeRunningHours : public WriteAttribu ~WritePumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -45420,14 +45325,14 @@ class SubscribeAttributePumpConfigurationAndControlLifetimeRunningHours : public ~SubscribeAttributePumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45460,14 +45365,14 @@ class ReadPumpConfigurationAndControlPower : public ReadAttribute { ~ReadPumpConfigurationAndControlPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Power response %@", [value description]); if (error != nil) { @@ -45488,14 +45393,14 @@ class SubscribeAttributePumpConfigurationAndControlPower : public SubscribeAttri ~SubscribeAttributePumpConfigurationAndControlPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45528,14 +45433,14 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ReadAttribu ~ReadPumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.LifetimeEnergyConsumed response %@", [value description]); if (error != nil) { @@ -45559,14 +45464,14 @@ class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public WriteAttri ~WritePumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -45597,14 +45502,14 @@ class SubscribeAttributePumpConfigurationAndControlLifetimeEnergyConsumed : publ ~SubscribeAttributePumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45637,14 +45542,14 @@ class ReadPumpConfigurationAndControlOperationMode : public ReadAttribute { ~ReadPumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.OperationMode response %@", [value description]); if (error != nil) { @@ -45668,14 +45573,14 @@ class WritePumpConfigurationAndControlOperationMode : public WriteAttribute { ~WritePumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -45705,14 +45610,14 @@ class SubscribeAttributePumpConfigurationAndControlOperationMode : public Subscr ~SubscribeAttributePumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45745,14 +45650,14 @@ class ReadPumpConfigurationAndControlControlMode : public ReadAttribute { ~ReadPumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.ControlMode response %@", [value description]); if (error != nil) { @@ -45776,14 +45681,14 @@ class WritePumpConfigurationAndControlControlMode : public WriteAttribute { ~WritePumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -45813,14 +45718,14 @@ class SubscribeAttributePumpConfigurationAndControlControlMode : public Subscrib ~SubscribeAttributePumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45853,14 +45758,14 @@ class ReadPumpConfigurationAndControlGeneratedCommandList : public ReadAttribute ~ReadPumpConfigurationAndControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -45881,14 +45786,14 @@ class SubscribeAttributePumpConfigurationAndControlGeneratedCommandList : public ~SubscribeAttributePumpConfigurationAndControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45921,14 +45826,14 @@ class ReadPumpConfigurationAndControlAcceptedCommandList : public ReadAttribute ~ReadPumpConfigurationAndControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -45949,14 +45854,14 @@ class SubscribeAttributePumpConfigurationAndControlAcceptedCommandList : public ~SubscribeAttributePumpConfigurationAndControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -45989,14 +45894,14 @@ class ReadPumpConfigurationAndControlAttributeList : public ReadAttribute { ~ReadPumpConfigurationAndControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.AttributeList response %@", [value description]); if (error != nil) { @@ -46017,14 +45922,14 @@ class SubscribeAttributePumpConfigurationAndControlAttributeList : public Subscr ~SubscribeAttributePumpConfigurationAndControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46057,14 +45962,14 @@ class ReadPumpConfigurationAndControlFeatureMap : public ReadAttribute { ~ReadPumpConfigurationAndControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -46085,14 +45990,14 @@ class SubscribeAttributePumpConfigurationAndControlFeatureMap : public Subscribe ~SubscribeAttributePumpConfigurationAndControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46125,14 +46030,14 @@ class ReadPumpConfigurationAndControlClusterRevision : public ReadAttribute { ~ReadPumpConfigurationAndControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -46153,14 +46058,14 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs ~SubscribeAttributePumpConfigurationAndControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46262,13 +46167,13 @@ class ThermostatSetpointRaiseLower : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.mode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.mode)]; @@ -46311,13 +46216,13 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPThermostatClusterSetWeeklyScheduleParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterSetWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.numberOfTransitionsForSequence = [NSNumber numberWithUnsignedChar:mRequest.numberOfTransitionsForSequence]; @@ -46326,8 +46231,8 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.transitions) { - CHIPThermostatClusterThermostatScheduleTransition * newElement_0; - newElement_0 = [CHIPThermostatClusterThermostatScheduleTransition new]; + MTRThermostatClusterThermostatScheduleTransition * newElement_0; + newElement_0 = [MTRThermostatClusterThermostatScheduleTransition new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; if (entry_0.heatSetpoint.IsNull()) { newElement_0.heatSetpoint = nil; @@ -46381,13 +46286,13 @@ class ThermostatGetWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPThermostatClusterGetWeeklyScheduleParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterGetWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.daysToReturn = [NSNumber numberWithUnsignedChar:mRequest.daysToReturn.Raw()]; @@ -46396,7 +46301,7 @@ class ThermostatGetWeeklySchedule : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster getWeeklyScheduleWithParams:params - completionHandler:^(CHIPThermostatClusterGetWeeklyScheduleResponseParams * _Nullable values, + completionHandler:^(MTRThermostatClusterGetWeeklyScheduleResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -46427,13 +46332,13 @@ class ThermostatClearWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPThermostatClusterClearWeeklyScheduleParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterClearWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -46469,12 +46374,12 @@ class ReadThermostatLocalTemperature : public ReadAttribute { ~ReadThermostatLocalTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocalTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.LocalTemperature response %@", [value description]); if (error != nil) { @@ -46495,12 +46400,12 @@ class SubscribeAttributeThermostatLocalTemperature : public SubscribeAttribute { ~SubscribeAttributeThermostatLocalTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46533,12 +46438,12 @@ class ReadThermostatOutdoorTemperature : public ReadAttribute { ~ReadThermostatOutdoorTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOutdoorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OutdoorTemperature response %@", [value description]); if (error != nil) { @@ -46559,12 +46464,12 @@ class SubscribeAttributeThermostatOutdoorTemperature : public SubscribeAttribute ~SubscribeAttributeThermostatOutdoorTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46597,12 +46502,12 @@ class ReadThermostatOccupancy : public ReadAttribute { ~ReadThermostatOccupancy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.Occupancy response %@", [value description]); if (error != nil) { @@ -46623,12 +46528,12 @@ class SubscribeAttributeThermostatOccupancy : public SubscribeAttribute { ~SubscribeAttributeThermostatOccupancy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46661,12 +46566,12 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMinHeatSetpointLimit response %@", [value description]); @@ -46688,12 +46593,12 @@ class SubscribeAttributeThermostatAbsMinHeatSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46726,12 +46631,12 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMaxHeatSetpointLimit response %@", [value description]); @@ -46753,12 +46658,12 @@ class SubscribeAttributeThermostatAbsMaxHeatSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46791,12 +46696,12 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAbsMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMinCoolSetpointLimit response %@", [value description]); @@ -46818,12 +46723,12 @@ class SubscribeAttributeThermostatAbsMinCoolSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46856,12 +46761,12 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAbsMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMaxCoolSetpointLimit response %@", [value description]); @@ -46883,12 +46788,12 @@ class SubscribeAttributeThermostatAbsMaxCoolSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46921,12 +46826,12 @@ class ReadThermostatPICoolingDemand : public ReadAttribute { ~ReadThermostatPICoolingDemand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePICoolingDemandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.PICoolingDemand response %@", [value description]); if (error != nil) { @@ -46947,12 +46852,12 @@ class SubscribeAttributeThermostatPICoolingDemand : public SubscribeAttribute { ~SubscribeAttributeThermostatPICoolingDemand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -46985,12 +46890,12 @@ class ReadThermostatPIHeatingDemand : public ReadAttribute { ~ReadThermostatPIHeatingDemand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePIHeatingDemandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.PIHeatingDemand response %@", [value description]); if (error != nil) { @@ -47011,12 +46916,12 @@ class SubscribeAttributeThermostatPIHeatingDemand : public SubscribeAttribute { ~SubscribeAttributeThermostatPIHeatingDemand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47049,12 +46954,12 @@ class ReadThermostatHVACSystemTypeConfiguration : public ReadAttribute { ~ReadThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHVACSystemTypeConfigurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.HVACSystemTypeConfiguration response %@", [value description]); @@ -47079,12 +46984,12 @@ class WriteThermostatHVACSystemTypeConfiguration : public WriteAttribute { ~WriteThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47114,12 +47019,12 @@ class SubscribeAttributeThermostatHVACSystemTypeConfiguration : public Subscribe ~SubscribeAttributeThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47152,12 +47057,12 @@ class ReadThermostatLocalTemperatureCalibration : public ReadAttribute { ~ReadThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocalTemperatureCalibrationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.LocalTemperatureCalibration response %@", [value description]); @@ -47182,12 +47087,12 @@ class WriteThermostatLocalTemperatureCalibration : public WriteAttribute { ~WriteThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47217,12 +47122,12 @@ class SubscribeAttributeThermostatLocalTemperatureCalibration : public Subscribe ~SubscribeAttributeThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47255,12 +47160,12 @@ class ReadThermostatOccupiedCoolingSetpoint : public ReadAttribute { ~ReadThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedCoolingSetpoint response %@", [value description]); @@ -47285,12 +47190,12 @@ class WriteThermostatOccupiedCoolingSetpoint : public WriteAttribute { ~WriteThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47320,12 +47225,12 @@ class SubscribeAttributeThermostatOccupiedCoolingSetpoint : public SubscribeAttr ~SubscribeAttributeThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47358,12 +47263,12 @@ class ReadThermostatOccupiedHeatingSetpoint : public ReadAttribute { ~ReadThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedHeatingSetpoint response %@", [value description]); @@ -47388,12 +47293,12 @@ class WriteThermostatOccupiedHeatingSetpoint : public WriteAttribute { ~WriteThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47423,12 +47328,12 @@ class SubscribeAttributeThermostatOccupiedHeatingSetpoint : public SubscribeAttr ~SubscribeAttributeThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47461,12 +47366,12 @@ class ReadThermostatUnoccupiedCoolingSetpoint : public ReadAttribute { ~ReadThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedCoolingSetpoint response %@", [value description]); @@ -47491,12 +47396,12 @@ class WriteThermostatUnoccupiedCoolingSetpoint : public WriteAttribute { ~WriteThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47526,12 +47431,12 @@ class SubscribeAttributeThermostatUnoccupiedCoolingSetpoint : public SubscribeAt ~SubscribeAttributeThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47564,12 +47469,12 @@ class ReadThermostatUnoccupiedHeatingSetpoint : public ReadAttribute { ~ReadThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedHeatingSetpoint response %@", [value description]); @@ -47594,12 +47499,12 @@ class WriteThermostatUnoccupiedHeatingSetpoint : public WriteAttribute { ~WriteThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47629,12 +47534,12 @@ class SubscribeAttributeThermostatUnoccupiedHeatingSetpoint : public SubscribeAt ~SubscribeAttributeThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47667,12 +47572,12 @@ class ReadThermostatMinHeatSetpointLimit : public ReadAttribute { ~ReadThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinHeatSetpointLimit response %@", [value description]); if (error != nil) { @@ -47696,12 +47601,12 @@ class WriteThermostatMinHeatSetpointLimit : public WriteAttribute { ~WriteThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47731,12 +47636,12 @@ class SubscribeAttributeThermostatMinHeatSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47769,12 +47674,12 @@ class ReadThermostatMaxHeatSetpointLimit : public ReadAttribute { ~ReadThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MaxHeatSetpointLimit response %@", [value description]); if (error != nil) { @@ -47798,12 +47703,12 @@ class WriteThermostatMaxHeatSetpointLimit : public WriteAttribute { ~WriteThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47833,12 +47738,12 @@ class SubscribeAttributeThermostatMaxHeatSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47871,12 +47776,12 @@ class ReadThermostatMinCoolSetpointLimit : public ReadAttribute { ~ReadThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinCoolSetpointLimit response %@", [value description]); if (error != nil) { @@ -47900,12 +47805,12 @@ class WriteThermostatMinCoolSetpointLimit : public WriteAttribute { ~WriteThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -47935,12 +47840,12 @@ class SubscribeAttributeThermostatMinCoolSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -47973,12 +47878,12 @@ class ReadThermostatMaxCoolSetpointLimit : public ReadAttribute { ~ReadThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MaxCoolSetpointLimit response %@", [value description]); if (error != nil) { @@ -48002,12 +47907,12 @@ class WriteThermostatMaxCoolSetpointLimit : public WriteAttribute { ~WriteThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48037,12 +47942,12 @@ class SubscribeAttributeThermostatMaxCoolSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48075,12 +47980,12 @@ class ReadThermostatMinSetpointDeadBand : public ReadAttribute { ~ReadThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinSetpointDeadBand response %@", [value description]); if (error != nil) { @@ -48104,12 +48009,12 @@ class WriteThermostatMinSetpointDeadBand : public WriteAttribute { ~WriteThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48139,12 +48044,12 @@ class SubscribeAttributeThermostatMinSetpointDeadBand : public SubscribeAttribut ~SubscribeAttributeThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48177,12 +48082,12 @@ class ReadThermostatRemoteSensing : public ReadAttribute { ~ReadThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRemoteSensingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.RemoteSensing response %@", [value description]); if (error != nil) { @@ -48206,12 +48111,12 @@ class WriteThermostatRemoteSensing : public WriteAttribute { ~WriteThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48241,12 +48146,12 @@ class SubscribeAttributeThermostatRemoteSensing : public SubscribeAttribute { ~SubscribeAttributeThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48279,12 +48184,12 @@ class ReadThermostatControlSequenceOfOperation : public ReadAttribute { ~ReadThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeControlSequenceOfOperationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ControlSequenceOfOperation response %@", [value description]); @@ -48309,12 +48214,12 @@ class WriteThermostatControlSequenceOfOperation : public WriteAttribute { ~WriteThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48344,12 +48249,12 @@ class SubscribeAttributeThermostatControlSequenceOfOperation : public SubscribeA ~SubscribeAttributeThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48382,12 +48287,12 @@ class ReadThermostatSystemMode : public ReadAttribute { ~ReadThermostatSystemMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSystemModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SystemMode response %@", [value description]); if (error != nil) { @@ -48411,12 +48316,12 @@ class WriteThermostatSystemMode : public WriteAttribute { ~WriteThermostatSystemMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48446,12 +48351,12 @@ class SubscribeAttributeThermostatSystemMode : public SubscribeAttribute { ~SubscribeAttributeThermostatSystemMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48484,12 +48389,12 @@ class ReadThermostatThermostatRunningMode : public ReadAttribute { ~ReadThermostatThermostatRunningMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeThermostatRunningModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatRunningMode response %@", [value description]); if (error != nil) { @@ -48510,12 +48415,12 @@ class SubscribeAttributeThermostatThermostatRunningMode : public SubscribeAttrib ~SubscribeAttributeThermostatThermostatRunningMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48548,12 +48453,12 @@ class ReadThermostatStartOfWeek : public ReadAttribute { ~ReadThermostatStartOfWeek() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartOfWeekWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.StartOfWeek response %@", [value description]); if (error != nil) { @@ -48574,12 +48479,12 @@ class SubscribeAttributeThermostatStartOfWeek : public SubscribeAttribute { ~SubscribeAttributeThermostatStartOfWeek() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48612,12 +48517,12 @@ class ReadThermostatNumberOfWeeklyTransitions : public ReadAttribute { ~ReadThermostatNumberOfWeeklyTransitions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfWeeklyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.NumberOfWeeklyTransitions response %@", [value description]); @@ -48639,12 +48544,12 @@ class SubscribeAttributeThermostatNumberOfWeeklyTransitions : public SubscribeAt ~SubscribeAttributeThermostatNumberOfWeeklyTransitions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48677,12 +48582,12 @@ class ReadThermostatNumberOfDailyTransitions : public ReadAttribute { ~ReadThermostatNumberOfDailyTransitions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfDailyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.NumberOfDailyTransitions response %@", [value description]); @@ -48704,12 +48609,12 @@ class SubscribeAttributeThermostatNumberOfDailyTransitions : public SubscribeAtt ~SubscribeAttributeThermostatNumberOfDailyTransitions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48742,12 +48647,12 @@ class ReadThermostatTemperatureSetpointHold : public ReadAttribute { ~ReadThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTemperatureSetpointHoldWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.TemperatureSetpointHold response %@", [value description]); @@ -48772,12 +48677,12 @@ class WriteThermostatTemperatureSetpointHold : public WriteAttribute { ~WriteThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48807,12 +48712,12 @@ class SubscribeAttributeThermostatTemperatureSetpointHold : public SubscribeAttr ~SubscribeAttributeThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48845,12 +48750,12 @@ class ReadThermostatTemperatureSetpointHoldDuration : public ReadAttribute { ~ReadThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTemperatureSetpointHoldDurationWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.TemperatureSetpointHoldDuration response %@", [value description]); @@ -48875,12 +48780,12 @@ class WriteThermostatTemperatureSetpointHoldDuration : public WriteAttribute { ~WriteThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -48911,12 +48816,12 @@ class SubscribeAttributeThermostatTemperatureSetpointHoldDuration : public Subsc ~SubscribeAttributeThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -48949,12 +48854,12 @@ class ReadThermostatThermostatProgrammingOperationMode : public ReadAttribute { ~ReadThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeThermostatProgrammingOperationModeWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatProgrammingOperationMode response %@", [value description]); @@ -48979,12 +48884,12 @@ class WriteThermostatThermostatProgrammingOperationMode : public WriteAttribute ~WriteThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -49016,12 +48921,12 @@ class SubscribeAttributeThermostatThermostatProgrammingOperationMode : public Su ~SubscribeAttributeThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49054,12 +48959,12 @@ class ReadThermostatThermostatRunningState : public ReadAttribute { ~ReadThermostatThermostatRunningState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeThermostatRunningStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatRunningState response %@", [value description]); if (error != nil) { @@ -49080,12 +48985,12 @@ class SubscribeAttributeThermostatThermostatRunningState : public SubscribeAttri ~SubscribeAttributeThermostatThermostatRunningState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49118,12 +49023,12 @@ class ReadThermostatSetpointChangeSource : public ReadAttribute { ~ReadThermostatSetpointChangeSource() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSetpointChangeSourceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeSource response %@", [value description]); if (error != nil) { @@ -49144,12 +49049,12 @@ class SubscribeAttributeThermostatSetpointChangeSource : public SubscribeAttribu ~SubscribeAttributeThermostatSetpointChangeSource() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49182,12 +49087,12 @@ class ReadThermostatSetpointChangeAmount : public ReadAttribute { ~ReadThermostatSetpointChangeAmount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSetpointChangeAmountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeAmount response %@", [value description]); if (error != nil) { @@ -49208,12 +49113,12 @@ class SubscribeAttributeThermostatSetpointChangeAmount : public SubscribeAttribu ~SubscribeAttributeThermostatSetpointChangeAmount() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49246,12 +49151,12 @@ class ReadThermostatSetpointChangeSourceTimestamp : public ReadAttribute { ~ReadThermostatSetpointChangeSourceTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSetpointChangeSourceTimestampWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeSourceTimestamp response %@", [value description]); @@ -49273,12 +49178,12 @@ class SubscribeAttributeThermostatSetpointChangeSourceTimestamp : public Subscri ~SubscribeAttributeThermostatSetpointChangeSourceTimestamp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49311,12 +49216,12 @@ class ReadThermostatOccupiedSetback : public ReadAttribute { ~ReadThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupiedSetbackWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetback response %@", [value description]); if (error != nil) { @@ -49340,12 +49245,12 @@ class WriteThermostatOccupiedSetback : public WriteAttribute { ~WriteThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -49375,12 +49280,12 @@ class SubscribeAttributeThermostatOccupiedSetback : public SubscribeAttribute { ~SubscribeAttributeThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49413,12 +49318,12 @@ class ReadThermostatOccupiedSetbackMin : public ReadAttribute { ~ReadThermostatOccupiedSetbackMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupiedSetbackMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetbackMin response %@", [value description]); if (error != nil) { @@ -49439,12 +49344,12 @@ class SubscribeAttributeThermostatOccupiedSetbackMin : public SubscribeAttribute ~SubscribeAttributeThermostatOccupiedSetbackMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49477,12 +49382,12 @@ class ReadThermostatOccupiedSetbackMax : public ReadAttribute { ~ReadThermostatOccupiedSetbackMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupiedSetbackMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetbackMax response %@", [value description]); if (error != nil) { @@ -49503,12 +49408,12 @@ class SubscribeAttributeThermostatOccupiedSetbackMax : public SubscribeAttribute ~SubscribeAttributeThermostatOccupiedSetbackMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49541,12 +49446,12 @@ class ReadThermostatUnoccupiedSetback : public ReadAttribute { ~ReadThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetback response %@", [value description]); if (error != nil) { @@ -49570,12 +49475,12 @@ class WriteThermostatUnoccupiedSetback : public WriteAttribute { ~WriteThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -49605,12 +49510,12 @@ class SubscribeAttributeThermostatUnoccupiedSetback : public SubscribeAttribute ~SubscribeAttributeThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49643,12 +49548,12 @@ class ReadThermostatUnoccupiedSetbackMin : public ReadAttribute { ~ReadThermostatUnoccupiedSetbackMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetbackMin response %@", [value description]); if (error != nil) { @@ -49669,12 +49574,12 @@ class SubscribeAttributeThermostatUnoccupiedSetbackMin : public SubscribeAttribu ~SubscribeAttributeThermostatUnoccupiedSetbackMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49707,12 +49612,12 @@ class ReadThermostatUnoccupiedSetbackMax : public ReadAttribute { ~ReadThermostatUnoccupiedSetbackMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetbackMax response %@", [value description]); if (error != nil) { @@ -49733,12 +49638,12 @@ class SubscribeAttributeThermostatUnoccupiedSetbackMax : public SubscribeAttribu ~SubscribeAttributeThermostatUnoccupiedSetbackMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49771,12 +49676,12 @@ class ReadThermostatEmergencyHeatDelta : public ReadAttribute { ~ReadThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEmergencyHeatDeltaWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.EmergencyHeatDelta response %@", [value description]); if (error != nil) { @@ -49800,12 +49705,12 @@ class WriteThermostatEmergencyHeatDelta : public WriteAttribute { ~WriteThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -49835,12 +49740,12 @@ class SubscribeAttributeThermostatEmergencyHeatDelta : public SubscribeAttribute ~SubscribeAttributeThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49873,12 +49778,12 @@ class ReadThermostatACType : public ReadAttribute { ~ReadThermostatACType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACType response %@", [value description]); if (error != nil) { @@ -49902,12 +49807,12 @@ class WriteThermostatACType : public WriteAttribute { ~WriteThermostatACType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -49937,12 +49842,12 @@ class SubscribeAttributeThermostatACType : public SubscribeAttribute { ~SubscribeAttributeThermostatACType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -49975,12 +49880,12 @@ class ReadThermostatACCapacity : public ReadAttribute { ~ReadThermostatACCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCapacity response %@", [value description]); if (error != nil) { @@ -50004,12 +49909,12 @@ class WriteThermostatACCapacity : public WriteAttribute { ~WriteThermostatACCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50039,12 +49944,12 @@ class SubscribeAttributeThermostatACCapacity : public SubscribeAttribute { ~SubscribeAttributeThermostatACCapacity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50077,12 +49982,12 @@ class ReadThermostatACRefrigerantType : public ReadAttribute { ~ReadThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACRefrigerantTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACRefrigerantType response %@", [value description]); if (error != nil) { @@ -50106,12 +50011,12 @@ class WriteThermostatACRefrigerantType : public WriteAttribute { ~WriteThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50141,12 +50046,12 @@ class SubscribeAttributeThermostatACRefrigerantType : public SubscribeAttribute ~SubscribeAttributeThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50179,12 +50084,12 @@ class ReadThermostatACCompressorType : public ReadAttribute { ~ReadThermostatACCompressorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACCompressorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCompressorType response %@", [value description]); if (error != nil) { @@ -50208,12 +50113,12 @@ class WriteThermostatACCompressorType : public WriteAttribute { ~WriteThermostatACCompressorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50243,12 +50148,12 @@ class SubscribeAttributeThermostatACCompressorType : public SubscribeAttribute { ~SubscribeAttributeThermostatACCompressorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50281,12 +50186,12 @@ class ReadThermostatACErrorCode : public ReadAttribute { ~ReadThermostatACErrorCode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACErrorCodeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACErrorCode response %@", [value description]); if (error != nil) { @@ -50310,12 +50215,12 @@ class WriteThermostatACErrorCode : public WriteAttribute { ~WriteThermostatACErrorCode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50345,12 +50250,12 @@ class SubscribeAttributeThermostatACErrorCode : public SubscribeAttribute { ~SubscribeAttributeThermostatACErrorCode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50383,12 +50288,12 @@ class ReadThermostatACLouverPosition : public ReadAttribute { ~ReadThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACLouverPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACLouverPosition response %@", [value description]); if (error != nil) { @@ -50412,12 +50317,12 @@ class WriteThermostatACLouverPosition : public WriteAttribute { ~WriteThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50447,12 +50352,12 @@ class SubscribeAttributeThermostatACLouverPosition : public SubscribeAttribute { ~SubscribeAttributeThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50485,12 +50390,12 @@ class ReadThermostatACCoilTemperature : public ReadAttribute { ~ReadThermostatACCoilTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000046) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACCoilTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCoilTemperature response %@", [value description]); if (error != nil) { @@ -50511,12 +50416,12 @@ class SubscribeAttributeThermostatACCoilTemperature : public SubscribeAttribute ~SubscribeAttributeThermostatACCoilTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000046) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50549,12 +50454,12 @@ class ReadThermostatACCapacityformat : public ReadAttribute { ~ReadThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeACCapacityformatWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCapacityformat response %@", [value description]); if (error != nil) { @@ -50578,12 +50483,12 @@ class WriteThermostatACCapacityformat : public WriteAttribute { ~WriteThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -50613,12 +50518,12 @@ class SubscribeAttributeThermostatACCapacityformat : public SubscribeAttribute { ~SubscribeAttributeThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50651,12 +50556,12 @@ class ReadThermostatGeneratedCommandList : public ReadAttribute { ~ReadThermostatGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -50677,12 +50582,12 @@ class SubscribeAttributeThermostatGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeThermostatGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50715,12 +50620,12 @@ class ReadThermostatAcceptedCommandList : public ReadAttribute { ~ReadThermostatAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -50741,12 +50646,12 @@ class SubscribeAttributeThermostatAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeThermostatAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50779,12 +50684,12 @@ class ReadThermostatAttributeList : public ReadAttribute { ~ReadThermostatAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AttributeList response %@", [value description]); if (error != nil) { @@ -50805,12 +50710,12 @@ class SubscribeAttributeThermostatAttributeList : public SubscribeAttribute { ~SubscribeAttributeThermostatAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50843,12 +50748,12 @@ class ReadThermostatFeatureMap : public ReadAttribute { ~ReadThermostatFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.FeatureMap response %@", [value description]); if (error != nil) { @@ -50869,12 +50774,12 @@ class SubscribeAttributeThermostatFeatureMap : public SubscribeAttribute { ~SubscribeAttributeThermostatFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50907,12 +50812,12 @@ class ReadThermostatClusterRevision : public ReadAttribute { ~ReadThermostatClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ClusterRevision response %@", [value description]); if (error != nil) { @@ -50933,12 +50838,12 @@ class SubscribeAttributeThermostatClusterRevision : public SubscribeAttribute { ~SubscribeAttributeThermostatClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -50997,12 +50902,12 @@ class ReadFanControlFanMode : public ReadAttribute { ~ReadFanControlFanMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFanModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FanMode response %@", [value description]); if (error != nil) { @@ -51026,12 +50931,12 @@ class WriteFanControlFanMode : public WriteAttribute { ~WriteFanControlFanMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51061,12 +50966,12 @@ class SubscribeAttributeFanControlFanMode : public SubscribeAttribute { ~SubscribeAttributeFanControlFanMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51099,12 +51004,12 @@ class ReadFanControlFanModeSequence : public ReadAttribute { ~ReadFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFanModeSequenceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FanModeSequence response %@", [value description]); if (error != nil) { @@ -51128,12 +51033,12 @@ class WriteFanControlFanModeSequence : public WriteAttribute { ~WriteFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51163,12 +51068,12 @@ class SubscribeAttributeFanControlFanModeSequence : public SubscribeAttribute { ~SubscribeAttributeFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51201,12 +51106,12 @@ class ReadFanControlPercentSetting : public ReadAttribute { ~ReadFanControlPercentSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.PercentSetting response %@", [value description]); if (error != nil) { @@ -51230,12 +51135,12 @@ class WriteFanControlPercentSetting : public WriteAttribute { ~WriteFanControlPercentSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51265,12 +51170,12 @@ class SubscribeAttributeFanControlPercentSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlPercentSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51303,12 +51208,12 @@ class ReadFanControlPercentCurrent : public ReadAttribute { ~ReadFanControlPercentCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.PercentCurrent response %@", [value description]); if (error != nil) { @@ -51329,12 +51234,12 @@ class SubscribeAttributeFanControlPercentCurrent : public SubscribeAttribute { ~SubscribeAttributeFanControlPercentCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51367,12 +51272,12 @@ class ReadFanControlSpeedMax : public ReadAttribute { ~ReadFanControlSpeedMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSpeedMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedMax response %@", [value description]); if (error != nil) { @@ -51393,12 +51298,12 @@ class SubscribeAttributeFanControlSpeedMax : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51431,12 +51336,12 @@ class ReadFanControlSpeedSetting : public ReadAttribute { ~ReadFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedSetting response %@", [value description]); if (error != nil) { @@ -51460,12 +51365,12 @@ class WriteFanControlSpeedSetting : public WriteAttribute { ~WriteFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51495,12 +51400,12 @@ class SubscribeAttributeFanControlSpeedSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51533,12 +51438,12 @@ class ReadFanControlSpeedCurrent : public ReadAttribute { ~ReadFanControlSpeedCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedCurrent response %@", [value description]); if (error != nil) { @@ -51559,12 +51464,12 @@ class SubscribeAttributeFanControlSpeedCurrent : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51597,12 +51502,12 @@ class ReadFanControlRockSupport : public ReadAttribute { ~ReadFanControlRockSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRockSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.RockSupport response %@", [value description]); if (error != nil) { @@ -51623,12 +51528,12 @@ class SubscribeAttributeFanControlRockSupport : public SubscribeAttribute { ~SubscribeAttributeFanControlRockSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51661,12 +51566,12 @@ class ReadFanControlRockSetting : public ReadAttribute { ~ReadFanControlRockSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRockSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.RockSetting response %@", [value description]); if (error != nil) { @@ -51690,12 +51595,12 @@ class WriteFanControlRockSetting : public WriteAttribute { ~WriteFanControlRockSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51725,12 +51630,12 @@ class SubscribeAttributeFanControlRockSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlRockSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51763,12 +51668,12 @@ class ReadFanControlWindSupport : public ReadAttribute { ~ReadFanControlWindSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWindSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.WindSupport response %@", [value description]); if (error != nil) { @@ -51789,12 +51694,12 @@ class SubscribeAttributeFanControlWindSupport : public SubscribeAttribute { ~SubscribeAttributeFanControlWindSupport() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51827,12 +51732,12 @@ class ReadFanControlWindSetting : public ReadAttribute { ~ReadFanControlWindSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWindSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.WindSetting response %@", [value description]); if (error != nil) { @@ -51856,12 +51761,12 @@ class WriteFanControlWindSetting : public WriteAttribute { ~WriteFanControlWindSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -51891,12 +51796,12 @@ class SubscribeAttributeFanControlWindSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlWindSetting() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51929,12 +51834,12 @@ class ReadFanControlGeneratedCommandList : public ReadAttribute { ~ReadFanControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -51955,12 +51860,12 @@ class SubscribeAttributeFanControlGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeFanControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -51993,12 +51898,12 @@ class ReadFanControlAcceptedCommandList : public ReadAttribute { ~ReadFanControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -52019,12 +51924,12 @@ class SubscribeAttributeFanControlAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeFanControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52057,12 +51962,12 @@ class ReadFanControlAttributeList : public ReadAttribute { ~ReadFanControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.AttributeList response %@", [value description]); if (error != nil) { @@ -52083,12 +51988,12 @@ class SubscribeAttributeFanControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeFanControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52121,12 +52026,12 @@ class ReadFanControlFeatureMap : public ReadAttribute { ~ReadFanControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -52147,12 +52052,12 @@ class SubscribeAttributeFanControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFanControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52185,12 +52090,12 @@ class ReadFanControlClusterRevision : public ReadAttribute { ~ReadFanControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -52211,12 +52116,12 @@ class SubscribeAttributeFanControlClusterRevision : public SubscribeAttribute { ~SubscribeAttributeFanControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFanControl * cluster = [[CHIPFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52267,13 +52172,13 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Re ~ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.TemperatureDisplayMode response %@", [value description]); if (error != nil) { @@ -52297,13 +52202,13 @@ class WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode : public W ~WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -52335,13 +52240,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationTemperatureDisplayMo ~SubscribeAttributeThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52374,13 +52279,13 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ReadAttribu ~ReadThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.KeypadLockout response %@", [value description]); if (error != nil) { @@ -52404,13 +52309,13 @@ class WriteThermostatUserInterfaceConfigurationKeypadLockout : public WriteAttri ~WriteThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -52440,13 +52345,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationKeypadLockout : publ ~SubscribeAttributeThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52479,13 +52384,13 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu ~ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeScheduleProgrammingVisibilityWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.ScheduleProgrammingVisibility response %@", [value description]); @@ -52510,13 +52415,13 @@ class WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : p ~WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -52548,13 +52453,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationScheduleProgrammingV ~SubscribeAttributeThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52587,13 +52492,13 @@ class ReadThermostatUserInterfaceConfigurationGeneratedCommandList : public Read ~ReadThermostatUserInterfaceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -52614,13 +52519,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationGeneratedCommandList ~SubscribeAttributeThermostatUserInterfaceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52653,13 +52558,13 @@ class ReadThermostatUserInterfaceConfigurationAcceptedCommandList : public ReadA ~ReadThermostatUserInterfaceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -52680,13 +52585,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationAcceptedCommandList ~SubscribeAttributeThermostatUserInterfaceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52719,13 +52624,13 @@ class ReadThermostatUserInterfaceConfigurationAttributeList : public ReadAttribu ~ReadThermostatUserInterfaceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -52746,13 +52651,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationAttributeList : publ ~SubscribeAttributeThermostatUserInterfaceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52785,13 +52690,13 @@ class ReadThermostatUserInterfaceConfigurationFeatureMap : public ReadAttribute ~ReadThermostatUserInterfaceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -52812,13 +52717,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationFeatureMap : public ~SubscribeAttributeThermostatUserInterfaceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -52851,13 +52756,13 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ReadAttri ~ReadThermostatUserInterfaceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -52878,13 +52783,13 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationClusterRevision : pu ~SubscribeAttributeThermostatUserInterfaceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPThermostatUserInterfaceConfiguration * cluster = - [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRThermostatUserInterfaceConfiguration * cluster = + [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -53007,13 +52912,13 @@ class ColorControlMoveToHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveToHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.hue = [NSNumber numberWithUnsignedChar:mRequest.hue]; @@ -53058,13 +52963,13 @@ class ColorControlMoveHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -53109,13 +53014,13 @@ class ColorControlStepHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterStepHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -53160,13 +53065,13 @@ class ColorControlMoveToSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveToSaturationParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveToSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.saturation = [NSNumber numberWithUnsignedChar:mRequest.saturation]; @@ -53210,13 +53115,13 @@ class ColorControlMoveSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -53261,13 +53166,13 @@ class ColorControlStepSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterStepSaturationParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -53313,13 +53218,13 @@ class ColorControlMoveToHueAndSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveToHueAndSaturationParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveToHueAndSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.hue = [NSNumber numberWithUnsignedChar:mRequest.hue]; @@ -53365,13 +53270,13 @@ class ColorControlMoveToColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveToColorParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveToColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.colorX = [NSNumber numberWithUnsignedShort:mRequest.colorX]; @@ -53416,13 +53321,13 @@ class ColorControlMoveColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveColorParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.rateX = [NSNumber numberWithShort:mRequest.rateX]; @@ -53467,13 +53372,13 @@ class ColorControlStepColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterStepColorParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterStepColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepX = [NSNumber numberWithShort:mRequest.stepX]; @@ -53518,13 +53423,13 @@ class ColorControlMoveToColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveToColorTemperatureParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveToColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.colorTemperature = [NSNumber numberWithUnsignedShort:mRequest.colorTemperature]; @@ -53569,13 +53474,13 @@ class ColorControlEnhancedMoveToHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.enhancedHue = [NSNumber numberWithUnsignedShort:mRequest.enhancedHue]; @@ -53620,13 +53525,13 @@ class ColorControlEnhancedMoveHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -53671,13 +53576,13 @@ class ColorControlEnhancedStepHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterEnhancedStepHueParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -53723,13 +53628,13 @@ class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.enhancedHue = [NSNumber numberWithUnsignedShort:mRequest.enhancedHue]; @@ -53777,13 +53682,13 @@ class ColorControlColorLoopSet : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterColorLoopSetParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterColorLoopSetParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.updateFlags = [NSNumber numberWithUnsignedChar:mRequest.updateFlags.Raw()]; @@ -53828,13 +53733,13 @@ class ColorControlStopMoveStep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.optionsMask = [NSNumber numberWithUnsignedChar:mRequest.optionsMask]; @@ -53878,13 +53783,13 @@ class ColorControlMoveColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.moveMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.moveMode)]; @@ -53933,13 +53838,13 @@ class ColorControlStepColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPColorControlClusterStepColorTemperatureParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.stepMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.stepMode)]; @@ -53983,12 +53888,12 @@ class ReadColorControlCurrentHue : public ReadAttribute { ~ReadColorControlCurrentHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentHue response %@", [value description]); if (error != nil) { @@ -54009,12 +53914,12 @@ class SubscribeAttributeColorControlCurrentHue : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54047,12 +53952,12 @@ class ReadColorControlCurrentSaturation : public ReadAttribute { ~ReadColorControlCurrentSaturation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentSaturation response %@", [value description]); if (error != nil) { @@ -54073,12 +53978,12 @@ class SubscribeAttributeColorControlCurrentSaturation : public SubscribeAttribut ~SubscribeAttributeColorControlCurrentSaturation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54111,12 +54016,12 @@ class ReadColorControlRemainingTime : public ReadAttribute { ~ReadColorControlRemainingTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.RemainingTime response %@", [value description]); if (error != nil) { @@ -54137,12 +54042,12 @@ class SubscribeAttributeColorControlRemainingTime : public SubscribeAttribute { ~SubscribeAttributeColorControlRemainingTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54175,12 +54080,12 @@ class ReadColorControlCurrentX : public ReadAttribute { ~ReadColorControlCurrentX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentX response %@", [value description]); if (error != nil) { @@ -54201,12 +54106,12 @@ class SubscribeAttributeColorControlCurrentX : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54239,12 +54144,12 @@ class ReadColorControlCurrentY : public ReadAttribute { ~ReadColorControlCurrentY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentY response %@", [value description]); if (error != nil) { @@ -54265,12 +54170,12 @@ class SubscribeAttributeColorControlCurrentY : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54303,12 +54208,12 @@ class ReadColorControlDriftCompensation : public ReadAttribute { ~ReadColorControlDriftCompensation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.DriftCompensation response %@", [value description]); if (error != nil) { @@ -54329,12 +54234,12 @@ class SubscribeAttributeColorControlDriftCompensation : public SubscribeAttribut ~SubscribeAttributeColorControlDriftCompensation() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54367,12 +54272,12 @@ class ReadColorControlCompensationText : public ReadAttribute { ~ReadColorControlCompensationText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CompensationText response %@", [value description]); if (error != nil) { @@ -54393,12 +54298,12 @@ class SubscribeAttributeColorControlCompensationText : public SubscribeAttribute ~SubscribeAttributeColorControlCompensationText() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54431,12 +54336,12 @@ class ReadColorControlColorTemperature : public ReadAttribute { ~ReadColorControlColorTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTemperature response %@", [value description]); if (error != nil) { @@ -54457,12 +54362,12 @@ class SubscribeAttributeColorControlColorTemperature : public SubscribeAttribute ~SubscribeAttributeColorControlColorTemperature() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54495,12 +54400,12 @@ class ReadColorControlColorMode : public ReadAttribute { ~ReadColorControlColorMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorMode response %@", [value description]); if (error != nil) { @@ -54521,12 +54426,12 @@ class SubscribeAttributeColorControlColorMode : public SubscribeAttribute { ~SubscribeAttributeColorControlColorMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54559,12 +54464,12 @@ class ReadColorControlOptions : public ReadAttribute { ~ReadColorControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Options response %@", [value description]); if (error != nil) { @@ -54588,12 +54493,12 @@ class WriteColorControlOptions : public WriteAttribute { ~WriteColorControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -54623,12 +54528,12 @@ class SubscribeAttributeColorControlOptions : public SubscribeAttribute { ~SubscribeAttributeColorControlOptions() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54661,12 +54566,12 @@ class ReadColorControlNumberOfPrimaries : public ReadAttribute { ~ReadColorControlNumberOfPrimaries() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.NumberOfPrimaries response %@", [value description]); if (error != nil) { @@ -54687,12 +54592,12 @@ class SubscribeAttributeColorControlNumberOfPrimaries : public SubscribeAttribut ~SubscribeAttributeColorControlNumberOfPrimaries() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54725,12 +54630,12 @@ class ReadColorControlPrimary1X : public ReadAttribute { ~ReadColorControlPrimary1X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1X response %@", [value description]); if (error != nil) { @@ -54751,12 +54656,12 @@ class SubscribeAttributeColorControlPrimary1X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary1X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54789,12 +54694,12 @@ class ReadColorControlPrimary1Y : public ReadAttribute { ~ReadColorControlPrimary1Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1Y response %@", [value description]); if (error != nil) { @@ -54815,12 +54720,12 @@ class SubscribeAttributeColorControlPrimary1Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary1Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54853,12 +54758,12 @@ class ReadColorControlPrimary1Intensity : public ReadAttribute { ~ReadColorControlPrimary1Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1Intensity response %@", [value description]); if (error != nil) { @@ -54879,12 +54784,12 @@ class SubscribeAttributeColorControlPrimary1Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary1Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54917,12 +54822,12 @@ class ReadColorControlPrimary2X : public ReadAttribute { ~ReadColorControlPrimary2X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2X response %@", [value description]); if (error != nil) { @@ -54943,12 +54848,12 @@ class SubscribeAttributeColorControlPrimary2X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary2X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -54981,12 +54886,12 @@ class ReadColorControlPrimary2Y : public ReadAttribute { ~ReadColorControlPrimary2Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2Y response %@", [value description]); if (error != nil) { @@ -55007,12 +54912,12 @@ class SubscribeAttributeColorControlPrimary2Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary2Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55045,12 +54950,12 @@ class ReadColorControlPrimary2Intensity : public ReadAttribute { ~ReadColorControlPrimary2Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2Intensity response %@", [value description]); if (error != nil) { @@ -55071,12 +54976,12 @@ class SubscribeAttributeColorControlPrimary2Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary2Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55109,12 +55014,12 @@ class ReadColorControlPrimary3X : public ReadAttribute { ~ReadColorControlPrimary3X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3X response %@", [value description]); if (error != nil) { @@ -55135,12 +55040,12 @@ class SubscribeAttributeColorControlPrimary3X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary3X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55173,12 +55078,12 @@ class ReadColorControlPrimary3Y : public ReadAttribute { ~ReadColorControlPrimary3Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3Y response %@", [value description]); if (error != nil) { @@ -55199,12 +55104,12 @@ class SubscribeAttributeColorControlPrimary3Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary3Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55237,12 +55142,12 @@ class ReadColorControlPrimary3Intensity : public ReadAttribute { ~ReadColorControlPrimary3Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3Intensity response %@", [value description]); if (error != nil) { @@ -55263,12 +55168,12 @@ class SubscribeAttributeColorControlPrimary3Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary3Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55301,12 +55206,12 @@ class ReadColorControlPrimary4X : public ReadAttribute { ~ReadColorControlPrimary4X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4X response %@", [value description]); if (error != nil) { @@ -55327,12 +55232,12 @@ class SubscribeAttributeColorControlPrimary4X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary4X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55365,12 +55270,12 @@ class ReadColorControlPrimary4Y : public ReadAttribute { ~ReadColorControlPrimary4Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4Y response %@", [value description]); if (error != nil) { @@ -55391,12 +55296,12 @@ class SubscribeAttributeColorControlPrimary4Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary4Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55429,12 +55334,12 @@ class ReadColorControlPrimary4Intensity : public ReadAttribute { ~ReadColorControlPrimary4Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4Intensity response %@", [value description]); if (error != nil) { @@ -55455,12 +55360,12 @@ class SubscribeAttributeColorControlPrimary4Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary4Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55493,12 +55398,12 @@ class ReadColorControlPrimary5X : public ReadAttribute { ~ReadColorControlPrimary5X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5X response %@", [value description]); if (error != nil) { @@ -55519,12 +55424,12 @@ class SubscribeAttributeColorControlPrimary5X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary5X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55557,12 +55462,12 @@ class ReadColorControlPrimary5Y : public ReadAttribute { ~ReadColorControlPrimary5Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5Y response %@", [value description]); if (error != nil) { @@ -55583,12 +55488,12 @@ class SubscribeAttributeColorControlPrimary5Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary5Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55621,12 +55526,12 @@ class ReadColorControlPrimary5Intensity : public ReadAttribute { ~ReadColorControlPrimary5Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5Intensity response %@", [value description]); if (error != nil) { @@ -55647,12 +55552,12 @@ class SubscribeAttributeColorControlPrimary5Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary5Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55685,12 +55590,12 @@ class ReadColorControlPrimary6X : public ReadAttribute { ~ReadColorControlPrimary6X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6X response %@", [value description]); if (error != nil) { @@ -55711,12 +55616,12 @@ class SubscribeAttributeColorControlPrimary6X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary6X() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55749,12 +55654,12 @@ class ReadColorControlPrimary6Y : public ReadAttribute { ~ReadColorControlPrimary6Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6Y response %@", [value description]); if (error != nil) { @@ -55775,12 +55680,12 @@ class SubscribeAttributeColorControlPrimary6Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary6Y() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55813,12 +55718,12 @@ class ReadColorControlPrimary6Intensity : public ReadAttribute { ~ReadColorControlPrimary6Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6Intensity response %@", [value description]); if (error != nil) { @@ -55839,12 +55744,12 @@ class SubscribeAttributeColorControlPrimary6Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary6Intensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55877,12 +55782,12 @@ class ReadColorControlWhitePointX : public ReadAttribute { ~ReadColorControlWhitePointX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.WhitePointX response %@", [value description]); if (error != nil) { @@ -55906,12 +55811,12 @@ class WriteColorControlWhitePointX : public WriteAttribute { ~WriteColorControlWhitePointX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -55941,12 +55846,12 @@ class SubscribeAttributeColorControlWhitePointX : public SubscribeAttribute { ~SubscribeAttributeColorControlWhitePointX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -55979,12 +55884,12 @@ class ReadColorControlWhitePointY : public ReadAttribute { ~ReadColorControlWhitePointY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.WhitePointY response %@", [value description]); if (error != nil) { @@ -56008,12 +55913,12 @@ class WriteColorControlWhitePointY : public WriteAttribute { ~WriteColorControlWhitePointY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56043,12 +55948,12 @@ class SubscribeAttributeColorControlWhitePointY : public SubscribeAttribute { ~SubscribeAttributeColorControlWhitePointY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56081,12 +55986,12 @@ class ReadColorControlColorPointRX : public ReadAttribute { ~ReadColorControlColorPointRX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRX response %@", [value description]); if (error != nil) { @@ -56110,12 +56015,12 @@ class WriteColorControlColorPointRX : public WriteAttribute { ~WriteColorControlColorPointRX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56145,12 +56050,12 @@ class SubscribeAttributeColorControlColorPointRX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointRX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56183,12 +56088,12 @@ class ReadColorControlColorPointRY : public ReadAttribute { ~ReadColorControlColorPointRY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRY response %@", [value description]); if (error != nil) { @@ -56212,12 +56117,12 @@ class WriteColorControlColorPointRY : public WriteAttribute { ~WriteColorControlColorPointRY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56247,12 +56152,12 @@ class SubscribeAttributeColorControlColorPointRY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointRY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56285,12 +56190,12 @@ class ReadColorControlColorPointRIntensity : public ReadAttribute { ~ReadColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRIntensity response %@", [value description]); if (error != nil) { @@ -56314,12 +56219,12 @@ class WriteColorControlColorPointRIntensity : public WriteAttribute { ~WriteColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56349,12 +56254,12 @@ class SubscribeAttributeColorControlColorPointRIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56387,12 +56292,12 @@ class ReadColorControlColorPointGX : public ReadAttribute { ~ReadColorControlColorPointGX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGX response %@", [value description]); if (error != nil) { @@ -56416,12 +56321,12 @@ class WriteColorControlColorPointGX : public WriteAttribute { ~WriteColorControlColorPointGX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56451,12 +56356,12 @@ class SubscribeAttributeColorControlColorPointGX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointGX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56489,12 +56394,12 @@ class ReadColorControlColorPointGY : public ReadAttribute { ~ReadColorControlColorPointGY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGY response %@", [value description]); if (error != nil) { @@ -56518,12 +56423,12 @@ class WriteColorControlColorPointGY : public WriteAttribute { ~WriteColorControlColorPointGY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56553,12 +56458,12 @@ class SubscribeAttributeColorControlColorPointGY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointGY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56591,12 +56496,12 @@ class ReadColorControlColorPointGIntensity : public ReadAttribute { ~ReadColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGIntensity response %@", [value description]); if (error != nil) { @@ -56620,12 +56525,12 @@ class WriteColorControlColorPointGIntensity : public WriteAttribute { ~WriteColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56655,12 +56560,12 @@ class SubscribeAttributeColorControlColorPointGIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56693,12 +56598,12 @@ class ReadColorControlColorPointBX : public ReadAttribute { ~ReadColorControlColorPointBX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBX response %@", [value description]); if (error != nil) { @@ -56722,12 +56627,12 @@ class WriteColorControlColorPointBX : public WriteAttribute { ~WriteColorControlColorPointBX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56757,12 +56662,12 @@ class SubscribeAttributeColorControlColorPointBX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointBX() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56795,12 +56700,12 @@ class ReadColorControlColorPointBY : public ReadAttribute { ~ReadColorControlColorPointBY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBY response %@", [value description]); if (error != nil) { @@ -56824,12 +56729,12 @@ class WriteColorControlColorPointBY : public WriteAttribute { ~WriteColorControlColorPointBY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56859,12 +56764,12 @@ class SubscribeAttributeColorControlColorPointBY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointBY() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56897,12 +56802,12 @@ class ReadColorControlColorPointBIntensity : public ReadAttribute { ~ReadColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBIntensity response %@", [value description]); if (error != nil) { @@ -56926,12 +56831,12 @@ class WriteColorControlColorPointBIntensity : public WriteAttribute { ~WriteColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -56961,12 +56866,12 @@ class SubscribeAttributeColorControlColorPointBIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -56999,12 +56904,12 @@ class ReadColorControlEnhancedCurrentHue : public ReadAttribute { ~ReadColorControlEnhancedCurrentHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.EnhancedCurrentHue response %@", [value description]); if (error != nil) { @@ -57025,12 +56930,12 @@ class SubscribeAttributeColorControlEnhancedCurrentHue : public SubscribeAttribu ~SubscribeAttributeColorControlEnhancedCurrentHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57063,12 +56968,12 @@ class ReadColorControlEnhancedColorMode : public ReadAttribute { ~ReadColorControlEnhancedColorMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.EnhancedColorMode response %@", [value description]); if (error != nil) { @@ -57089,12 +56994,12 @@ class SubscribeAttributeColorControlEnhancedColorMode : public SubscribeAttribut ~SubscribeAttributeColorControlEnhancedColorMode() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57127,12 +57032,12 @@ class ReadColorControlColorLoopActive : public ReadAttribute { ~ReadColorControlColorLoopActive() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopActive response %@", [value description]); if (error != nil) { @@ -57153,12 +57058,12 @@ class SubscribeAttributeColorControlColorLoopActive : public SubscribeAttribute ~SubscribeAttributeColorControlColorLoopActive() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57191,12 +57096,12 @@ class ReadColorControlColorLoopDirection : public ReadAttribute { ~ReadColorControlColorLoopDirection() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopDirection response %@", [value description]); if (error != nil) { @@ -57217,12 +57122,12 @@ class SubscribeAttributeColorControlColorLoopDirection : public SubscribeAttribu ~SubscribeAttributeColorControlColorLoopDirection() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57255,12 +57160,12 @@ class ReadColorControlColorLoopTime : public ReadAttribute { ~ReadColorControlColorLoopTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopTime response %@", [value description]); if (error != nil) { @@ -57281,12 +57186,12 @@ class SubscribeAttributeColorControlColorLoopTime : public SubscribeAttribute { ~SubscribeAttributeColorControlColorLoopTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57319,12 +57224,12 @@ class ReadColorControlColorLoopStartEnhancedHue : public ReadAttribute { ~ReadColorControlColorLoopStartEnhancedHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopStartEnhancedHue response %@", [value description]); @@ -57346,12 +57251,12 @@ class SubscribeAttributeColorControlColorLoopStartEnhancedHue : public Subscribe ~SubscribeAttributeColorControlColorLoopStartEnhancedHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57384,12 +57289,12 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ReadAttribute { ~ReadColorControlColorLoopStoredEnhancedHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopStoredEnhancedHue response %@", [value description]); @@ -57411,12 +57316,12 @@ class SubscribeAttributeColorControlColorLoopStoredEnhancedHue : public Subscrib ~SubscribeAttributeColorControlColorLoopStoredEnhancedHue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57449,12 +57354,12 @@ class ReadColorControlColorCapabilities : public ReadAttribute { ~ReadColorControlColorCapabilities() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorCapabilities response %@", [value description]); if (error != nil) { @@ -57475,12 +57380,12 @@ class SubscribeAttributeColorControlColorCapabilities : public SubscribeAttribut ~SubscribeAttributeColorControlColorCapabilities() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57513,12 +57418,12 @@ class ReadColorControlColorTempPhysicalMinMireds : public ReadAttribute { ~ReadColorControlColorTempPhysicalMinMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorTempPhysicalMinMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTempPhysicalMinMireds response %@", [value description]); @@ -57540,12 +57445,12 @@ class SubscribeAttributeColorControlColorTempPhysicalMinMireds : public Subscrib ~SubscribeAttributeColorControlColorTempPhysicalMinMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57578,12 +57483,12 @@ class ReadColorControlColorTempPhysicalMaxMireds : public ReadAttribute { ~ReadColorControlColorTempPhysicalMaxMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeColorTempPhysicalMaxMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTempPhysicalMaxMireds response %@", [value description]); @@ -57605,12 +57510,12 @@ class SubscribeAttributeColorControlColorTempPhysicalMaxMireds : public Subscrib ~SubscribeAttributeColorControlColorTempPhysicalMaxMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57643,12 +57548,12 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ReadAttribute { ~ReadColorControlCoupleColorTempToLevelMinMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CoupleColorTempToLevelMinMireds response %@", [value description]); @@ -57670,12 +57575,12 @@ class SubscribeAttributeColorControlCoupleColorTempToLevelMinMireds : public Sub ~SubscribeAttributeColorControlCoupleColorTempToLevelMinMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57708,12 +57613,12 @@ class ReadColorControlStartUpColorTemperatureMireds : public ReadAttribute { ~ReadColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.StartUpColorTemperatureMireds response %@", [value description]); @@ -57738,12 +57643,12 @@ class WriteColorControlStartUpColorTemperatureMireds : public WriteAttribute { ~WriteColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -57774,12 +57679,12 @@ class SubscribeAttributeColorControlStartUpColorTemperatureMireds : public Subsc ~SubscribeAttributeColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57812,12 +57717,12 @@ class ReadColorControlGeneratedCommandList : public ReadAttribute { ~ReadColorControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -57838,12 +57743,12 @@ class SubscribeAttributeColorControlGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeColorControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57876,12 +57781,12 @@ class ReadColorControlAcceptedCommandList : public ReadAttribute { ~ReadColorControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -57902,12 +57807,12 @@ class SubscribeAttributeColorControlAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeColorControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -57940,12 +57845,12 @@ class ReadColorControlAttributeList : public ReadAttribute { ~ReadColorControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.AttributeList response %@", [value description]); if (error != nil) { @@ -57966,12 +57871,12 @@ class SubscribeAttributeColorControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeColorControlAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58004,12 +57909,12 @@ class ReadColorControlFeatureMap : public ReadAttribute { ~ReadColorControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -58030,12 +57935,12 @@ class SubscribeAttributeColorControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeColorControlFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58068,12 +57973,12 @@ class ReadColorControlClusterRevision : public ReadAttribute { ~ReadColorControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -58094,12 +57999,12 @@ class SubscribeAttributeColorControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeColorControlClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58152,14 +58057,14 @@ class ReadIlluminanceMeasurementMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -58180,14 +58085,14 @@ class SubscribeAttributeIlluminanceMeasurementMeasuredValue : public SubscribeAt ~SubscribeAttributeIlluminanceMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58220,14 +58125,14 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -58248,14 +58153,14 @@ class SubscribeAttributeIlluminanceMeasurementMinMeasuredValue : public Subscrib ~SubscribeAttributeIlluminanceMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58288,14 +58193,14 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -58316,14 +58221,14 @@ class SubscribeAttributeIlluminanceMeasurementMaxMeasuredValue : public Subscrib ~SubscribeAttributeIlluminanceMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58356,14 +58261,14 @@ class ReadIlluminanceMeasurementTolerance : public ReadAttribute { ~ReadIlluminanceMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -58384,14 +58289,14 @@ class SubscribeAttributeIlluminanceMeasurementTolerance : public SubscribeAttrib ~SubscribeAttributeIlluminanceMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58424,14 +58329,14 @@ class ReadIlluminanceMeasurementLightSensorType : public ReadAttribute { ~ReadIlluminanceMeasurementLightSensorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.LightSensorType response %@", [value description]); if (error != nil) { @@ -58452,14 +58357,14 @@ class SubscribeAttributeIlluminanceMeasurementLightSensorType : public Subscribe ~SubscribeAttributeIlluminanceMeasurementLightSensorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58492,14 +58397,14 @@ class ReadIlluminanceMeasurementGeneratedCommandList : public ReadAttribute { ~ReadIlluminanceMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -58520,14 +58425,14 @@ class SubscribeAttributeIlluminanceMeasurementGeneratedCommandList : public Subs ~SubscribeAttributeIlluminanceMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58560,14 +58465,14 @@ class ReadIlluminanceMeasurementAcceptedCommandList : public ReadAttribute { ~ReadIlluminanceMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -58588,14 +58493,14 @@ class SubscribeAttributeIlluminanceMeasurementAcceptedCommandList : public Subsc ~SubscribeAttributeIlluminanceMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58628,14 +58533,14 @@ class ReadIlluminanceMeasurementAttributeList : public ReadAttribute { ~ReadIlluminanceMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -58656,14 +58561,14 @@ class SubscribeAttributeIlluminanceMeasurementAttributeList : public SubscribeAt ~SubscribeAttributeIlluminanceMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58696,14 +58601,14 @@ class ReadIlluminanceMeasurementFeatureMap : public ReadAttribute { ~ReadIlluminanceMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -58724,14 +58629,14 @@ class SubscribeAttributeIlluminanceMeasurementFeatureMap : public SubscribeAttri ~SubscribeAttributeIlluminanceMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58764,14 +58669,14 @@ class ReadIlluminanceMeasurementClusterRevision : public ReadAttribute { ~ReadIlluminanceMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -58792,14 +58697,14 @@ class SubscribeAttributeIlluminanceMeasurementClusterRevision : public Subscribe ~SubscribeAttributeIlluminanceMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58851,14 +58756,14 @@ class ReadTemperatureMeasurementMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -58879,14 +58784,14 @@ class SubscribeAttributeTemperatureMeasurementMeasuredValue : public SubscribeAt ~SubscribeAttributeTemperatureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58919,14 +58824,14 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -58947,14 +58852,14 @@ class SubscribeAttributeTemperatureMeasurementMinMeasuredValue : public Subscrib ~SubscribeAttributeTemperatureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -58987,14 +58892,14 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -59015,14 +58920,14 @@ class SubscribeAttributeTemperatureMeasurementMaxMeasuredValue : public Subscrib ~SubscribeAttributeTemperatureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59055,14 +58960,14 @@ class ReadTemperatureMeasurementTolerance : public ReadAttribute { ~ReadTemperatureMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -59083,14 +58988,14 @@ class SubscribeAttributeTemperatureMeasurementTolerance : public SubscribeAttrib ~SubscribeAttributeTemperatureMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59123,14 +59028,14 @@ class ReadTemperatureMeasurementGeneratedCommandList : public ReadAttribute { ~ReadTemperatureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -59151,14 +59056,14 @@ class SubscribeAttributeTemperatureMeasurementGeneratedCommandList : public Subs ~SubscribeAttributeTemperatureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59191,14 +59096,14 @@ class ReadTemperatureMeasurementAcceptedCommandList : public ReadAttribute { ~ReadTemperatureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -59219,14 +59124,14 @@ class SubscribeAttributeTemperatureMeasurementAcceptedCommandList : public Subsc ~SubscribeAttributeTemperatureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59259,14 +59164,14 @@ class ReadTemperatureMeasurementAttributeList : public ReadAttribute { ~ReadTemperatureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -59287,14 +59192,14 @@ class SubscribeAttributeTemperatureMeasurementAttributeList : public SubscribeAt ~SubscribeAttributeTemperatureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59327,14 +59232,14 @@ class ReadTemperatureMeasurementFeatureMap : public ReadAttribute { ~ReadTemperatureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -59355,14 +59260,14 @@ class SubscribeAttributeTemperatureMeasurementFeatureMap : public SubscribeAttri ~SubscribeAttributeTemperatureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59395,14 +59300,14 @@ class ReadTemperatureMeasurementClusterRevision : public ReadAttribute { ~ReadTemperatureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -59423,14 +59328,14 @@ class SubscribeAttributeTemperatureMeasurementClusterRevision : public Subscribe ~SubscribeAttributeTemperatureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59487,14 +59392,14 @@ class ReadPressureMeasurementMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -59515,14 +59420,14 @@ class SubscribeAttributePressureMeasurementMeasuredValue : public SubscribeAttri ~SubscribeAttributePressureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59555,14 +59460,14 @@ class ReadPressureMeasurementMinMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -59583,14 +59488,14 @@ class SubscribeAttributePressureMeasurementMinMeasuredValue : public SubscribeAt ~SubscribeAttributePressureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59623,14 +59528,14 @@ class ReadPressureMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -59651,14 +59556,14 @@ class SubscribeAttributePressureMeasurementMaxMeasuredValue : public SubscribeAt ~SubscribeAttributePressureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59691,14 +59596,14 @@ class ReadPressureMeasurementTolerance : public ReadAttribute { ~ReadPressureMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -59719,14 +59624,14 @@ class SubscribeAttributePressureMeasurementTolerance : public SubscribeAttribute ~SubscribeAttributePressureMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59759,14 +59664,14 @@ class ReadPressureMeasurementScaledValue : public ReadAttribute { ~ReadPressureMeasurementScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ScaledValue response %@", [value description]); if (error != nil) { @@ -59787,14 +59692,14 @@ class SubscribeAttributePressureMeasurementScaledValue : public SubscribeAttribu ~SubscribeAttributePressureMeasurementScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59827,14 +59732,14 @@ class ReadPressureMeasurementMinScaledValue : public ReadAttribute { ~ReadPressureMeasurementMinScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MinScaledValue response %@", [value description]); if (error != nil) { @@ -59855,14 +59760,14 @@ class SubscribeAttributePressureMeasurementMinScaledValue : public SubscribeAttr ~SubscribeAttributePressureMeasurementMinScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59895,14 +59800,14 @@ class ReadPressureMeasurementMaxScaledValue : public ReadAttribute { ~ReadPressureMeasurementMaxScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MaxScaledValue response %@", [value description]); if (error != nil) { @@ -59923,14 +59828,14 @@ class SubscribeAttributePressureMeasurementMaxScaledValue : public SubscribeAttr ~SubscribeAttributePressureMeasurementMaxScaledValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -59963,14 +59868,14 @@ class ReadPressureMeasurementScaledTolerance : public ReadAttribute { ~ReadPressureMeasurementScaledTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaledToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ScaledTolerance response %@", [value description]); if (error != nil) { @@ -59991,14 +59896,14 @@ class SubscribeAttributePressureMeasurementScaledTolerance : public SubscribeAtt ~SubscribeAttributePressureMeasurementScaledTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60031,14 +59936,14 @@ class ReadPressureMeasurementScale : public ReadAttribute { ~ReadPressureMeasurementScale() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.Scale response %@", [value description]); if (error != nil) { @@ -60059,14 +59964,14 @@ class SubscribeAttributePressureMeasurementScale : public SubscribeAttribute { ~SubscribeAttributePressureMeasurementScale() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60099,14 +60004,14 @@ class ReadPressureMeasurementGeneratedCommandList : public ReadAttribute { ~ReadPressureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -60127,14 +60032,14 @@ class SubscribeAttributePressureMeasurementGeneratedCommandList : public Subscri ~SubscribeAttributePressureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60167,14 +60072,14 @@ class ReadPressureMeasurementAcceptedCommandList : public ReadAttribute { ~ReadPressureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -60195,14 +60100,14 @@ class SubscribeAttributePressureMeasurementAcceptedCommandList : public Subscrib ~SubscribeAttributePressureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60235,14 +60140,14 @@ class ReadPressureMeasurementAttributeList : public ReadAttribute { ~ReadPressureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -60263,14 +60168,14 @@ class SubscribeAttributePressureMeasurementAttributeList : public SubscribeAttri ~SubscribeAttributePressureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60303,14 +60208,14 @@ class ReadPressureMeasurementFeatureMap : public ReadAttribute { ~ReadPressureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -60331,14 +60236,14 @@ class SubscribeAttributePressureMeasurementFeatureMap : public SubscribeAttribut ~SubscribeAttributePressureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60371,14 +60276,14 @@ class ReadPressureMeasurementClusterRevision : public ReadAttribute { ~ReadPressureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -60399,14 +60304,14 @@ class SubscribeAttributePressureMeasurementClusterRevision : public SubscribeAtt ~SubscribeAttributePressureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60458,12 +60363,12 @@ class ReadFlowMeasurementMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -60484,12 +60389,12 @@ class SubscribeAttributeFlowMeasurementMeasuredValue : public SubscribeAttribute ~SubscribeAttributeFlowMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60522,12 +60427,12 @@ class ReadFlowMeasurementMinMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -60548,12 +60453,12 @@ class SubscribeAttributeFlowMeasurementMinMeasuredValue : public SubscribeAttrib ~SubscribeAttributeFlowMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60586,12 +60491,12 @@ class ReadFlowMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -60612,12 +60517,12 @@ class SubscribeAttributeFlowMeasurementMaxMeasuredValue : public SubscribeAttrib ~SubscribeAttributeFlowMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60650,12 +60555,12 @@ class ReadFlowMeasurementTolerance : public ReadAttribute { ~ReadFlowMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -60676,12 +60581,12 @@ class SubscribeAttributeFlowMeasurementTolerance : public SubscribeAttribute { ~SubscribeAttributeFlowMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60714,12 +60619,12 @@ class ReadFlowMeasurementGeneratedCommandList : public ReadAttribute { ~ReadFlowMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -60740,12 +60645,12 @@ class SubscribeAttributeFlowMeasurementGeneratedCommandList : public SubscribeAt ~SubscribeAttributeFlowMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60778,12 +60683,12 @@ class ReadFlowMeasurementAcceptedCommandList : public ReadAttribute { ~ReadFlowMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -60804,12 +60709,12 @@ class SubscribeAttributeFlowMeasurementAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeFlowMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60842,12 +60747,12 @@ class ReadFlowMeasurementAttributeList : public ReadAttribute { ~ReadFlowMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -60868,12 +60773,12 @@ class SubscribeAttributeFlowMeasurementAttributeList : public SubscribeAttribute ~SubscribeAttributeFlowMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60906,12 +60811,12 @@ class ReadFlowMeasurementFeatureMap : public ReadAttribute { ~ReadFlowMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -60932,12 +60837,12 @@ class SubscribeAttributeFlowMeasurementFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFlowMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -60970,12 +60875,12 @@ class ReadFlowMeasurementClusterRevision : public ReadAttribute { ~ReadFlowMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -60996,12 +60901,12 @@ class SubscribeAttributeFlowMeasurementClusterRevision : public SubscribeAttribu ~SubscribeAttributeFlowMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61053,14 +60958,14 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -61081,14 +60986,14 @@ class SubscribeAttributeRelativeHumidityMeasurementMeasuredValue : public Subscr ~SubscribeAttributeRelativeHumidityMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61121,14 +61026,14 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -61149,14 +61054,14 @@ class SubscribeAttributeRelativeHumidityMeasurementMinMeasuredValue : public Sub ~SubscribeAttributeRelativeHumidityMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61189,14 +61094,14 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -61217,14 +61122,14 @@ class SubscribeAttributeRelativeHumidityMeasurementMaxMeasuredValue : public Sub ~SubscribeAttributeRelativeHumidityMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61257,14 +61162,14 @@ class ReadRelativeHumidityMeasurementTolerance : public ReadAttribute { ~ReadRelativeHumidityMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -61285,14 +61190,14 @@ class SubscribeAttributeRelativeHumidityMeasurementTolerance : public SubscribeA ~SubscribeAttributeRelativeHumidityMeasurementTolerance() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61325,14 +61230,14 @@ class ReadRelativeHumidityMeasurementGeneratedCommandList : public ReadAttribute ~ReadRelativeHumidityMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -61353,14 +61258,14 @@ class SubscribeAttributeRelativeHumidityMeasurementGeneratedCommandList : public ~SubscribeAttributeRelativeHumidityMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61393,14 +61298,14 @@ class ReadRelativeHumidityMeasurementAcceptedCommandList : public ReadAttribute ~ReadRelativeHumidityMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -61421,14 +61326,14 @@ class SubscribeAttributeRelativeHumidityMeasurementAcceptedCommandList : public ~SubscribeAttributeRelativeHumidityMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61461,14 +61366,14 @@ class ReadRelativeHumidityMeasurementAttributeList : public ReadAttribute { ~ReadRelativeHumidityMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -61489,14 +61394,14 @@ class SubscribeAttributeRelativeHumidityMeasurementAttributeList : public Subscr ~SubscribeAttributeRelativeHumidityMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61529,14 +61434,14 @@ class ReadRelativeHumidityMeasurementFeatureMap : public ReadAttribute { ~ReadRelativeHumidityMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -61557,14 +61462,14 @@ class SubscribeAttributeRelativeHumidityMeasurementFeatureMap : public Subscribe ~SubscribeAttributeRelativeHumidityMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61597,14 +61502,14 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ReadAttribute { ~ReadRelativeHumidityMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -61625,14 +61530,14 @@ class SubscribeAttributeRelativeHumidityMeasurementClusterRevision : public Subs ~SubscribeAttributeRelativeHumidityMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61692,14 +61597,12 @@ class ReadOccupancySensingOccupancy : public ReadAttribute { ~ReadOccupancySensingOccupancy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.Occupancy response %@", [value description]); if (error != nil) { @@ -61720,14 +61623,12 @@ class SubscribeAttributeOccupancySensingOccupancy : public SubscribeAttribute { ~SubscribeAttributeOccupancySensingOccupancy() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61760,14 +61661,12 @@ class ReadOccupancySensingOccupancySensorType : public ReadAttribute { ~ReadOccupancySensingOccupancySensorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.OccupancySensorType response %@", [value description]); if (error != nil) { @@ -61788,14 +61687,12 @@ class SubscribeAttributeOccupancySensingOccupancySensorType : public SubscribeAt ~SubscribeAttributeOccupancySensingOccupancySensorType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61828,14 +61725,12 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ReadAttribute { ~ReadOccupancySensingOccupancySensorTypeBitmap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOccupancySensorTypeBitmapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.OccupancySensorTypeBitmap response %@", [value description]); @@ -61857,14 +61752,12 @@ class SubscribeAttributeOccupancySensingOccupancySensorTypeBitmap : public Subsc ~SubscribeAttributeOccupancySensingOccupancySensorTypeBitmap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -61897,14 +61790,12 @@ class ReadOccupancySensingPirOccupiedToUnoccupiedDelay : public ReadAttribute { ~ReadOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePirOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirOccupiedToUnoccupiedDelay response %@", [value description]); @@ -61929,14 +61820,12 @@ class WriteOccupancySensingPirOccupiedToUnoccupiedDelay : public WriteAttribute ~WriteOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -61967,14 +61856,12 @@ class SubscribeAttributeOccupancySensingPirOccupiedToUnoccupiedDelay : public Su ~SubscribeAttributeOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62007,14 +61894,12 @@ class ReadOccupancySensingPirUnoccupiedToOccupiedDelay : public ReadAttribute { ~ReadOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePirUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirUnoccupiedToOccupiedDelay response %@", [value description]); @@ -62039,14 +61924,12 @@ class WriteOccupancySensingPirUnoccupiedToOccupiedDelay : public WriteAttribute ~WriteOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62077,14 +61960,12 @@ class SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedDelay : public Su ~SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62117,14 +61998,12 @@ class ReadOccupancySensingPirUnoccupiedToOccupiedThreshold : public ReadAttribut ~ReadOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePirUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62149,14 +62028,12 @@ class WriteOccupancySensingPirUnoccupiedToOccupiedThreshold : public WriteAttrib ~WriteOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62188,14 +62065,12 @@ class SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedThreshold : publi ~SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62228,14 +62103,12 @@ class ReadOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : public ReadAttri ~ReadOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUltrasonicOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicOccupiedToUnoccupiedDelay response %@", [value description]); @@ -62260,14 +62133,12 @@ class WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : public WriteAtt ~WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62300,14 +62171,12 @@ class SubscribeAttributeOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : pu ~SubscribeAttributeOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62340,14 +62209,12 @@ class ReadOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : public ReadAttri ~ReadOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUltrasonicUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicUnoccupiedToOccupiedDelay response %@", [value description]); @@ -62372,14 +62239,12 @@ class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : public WriteAtt ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62412,14 +62277,12 @@ class SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : pu ~SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62452,14 +62315,12 @@ class ReadOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold : public ReadA ~ReadOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62484,14 +62345,12 @@ class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold : public Writ ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62524,14 +62383,12 @@ class SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold ~SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62565,14 +62422,12 @@ class ReadOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay : public Read ~ReadOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePhysicalContactOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactOccupiedToUnoccupiedDelay response %@", [value description]); @@ -62597,14 +62452,12 @@ class WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay : public Wri ~WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62637,14 +62490,12 @@ class SubscribeAttributeOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay ~SubscribeAttributeOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62678,14 +62529,12 @@ class ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay : public Read ~ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePhysicalContactUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactUnoccupiedToOccupiedDelay response %@", [value description]); @@ -62710,14 +62559,12 @@ class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay : public Wri ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62750,14 +62597,12 @@ class SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay ~SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62791,14 +62636,12 @@ class ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold : public ~ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62823,14 +62666,12 @@ class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold : public ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -62863,14 +62704,12 @@ class SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedThres ~SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62905,14 +62744,12 @@ class ReadOccupancySensingGeneratedCommandList : public ReadAttribute { ~ReadOccupancySensingGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -62933,14 +62770,12 @@ class SubscribeAttributeOccupancySensingGeneratedCommandList : public SubscribeA ~SubscribeAttributeOccupancySensingGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -62973,14 +62808,12 @@ class ReadOccupancySensingAcceptedCommandList : public ReadAttribute { ~ReadOccupancySensingAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -63001,14 +62834,12 @@ class SubscribeAttributeOccupancySensingAcceptedCommandList : public SubscribeAt ~SubscribeAttributeOccupancySensingAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63041,14 +62872,12 @@ class ReadOccupancySensingAttributeList : public ReadAttribute { ~ReadOccupancySensingAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.AttributeList response %@", [value description]); if (error != nil) { @@ -63069,14 +62898,12 @@ class SubscribeAttributeOccupancySensingAttributeList : public SubscribeAttribut ~SubscribeAttributeOccupancySensingAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63109,14 +62936,12 @@ class ReadOccupancySensingFeatureMap : public ReadAttribute { ~ReadOccupancySensingFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.FeatureMap response %@", [value description]); if (error != nil) { @@ -63137,14 +62962,12 @@ class SubscribeAttributeOccupancySensingFeatureMap : public SubscribeAttribute { ~SubscribeAttributeOccupancySensingFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63177,14 +63000,12 @@ class ReadOccupancySensingClusterRevision : public ReadAttribute { ~ReadOccupancySensingClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.ClusterRevision response %@", [value description]); if (error != nil) { @@ -63205,14 +63026,12 @@ class SubscribeAttributeOccupancySensingClusterRevision : public SubscribeAttrib ~SubscribeAttributeOccupancySensingClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63261,12 +63080,12 @@ class ReadWakeOnLanMACAddress : public ReadAttribute { ~ReadWakeOnLanMACAddress() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMACAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.MACAddress response %@", [value description]); if (error != nil) { @@ -63287,12 +63106,12 @@ class SubscribeAttributeWakeOnLanMACAddress : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanMACAddress() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63325,12 +63144,12 @@ class ReadWakeOnLanGeneratedCommandList : public ReadAttribute { ~ReadWakeOnLanGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -63351,12 +63170,12 @@ class SubscribeAttributeWakeOnLanGeneratedCommandList : public SubscribeAttribut ~SubscribeAttributeWakeOnLanGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63389,12 +63208,12 @@ class ReadWakeOnLanAcceptedCommandList : public ReadAttribute { ~ReadWakeOnLanAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -63415,12 +63234,12 @@ class SubscribeAttributeWakeOnLanAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeWakeOnLanAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63453,12 +63272,12 @@ class ReadWakeOnLanAttributeList : public ReadAttribute { ~ReadWakeOnLanAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.AttributeList response %@", [value description]); if (error != nil) { @@ -63479,12 +63298,12 @@ class SubscribeAttributeWakeOnLanAttributeList : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63517,12 +63336,12 @@ class ReadWakeOnLanFeatureMap : public ReadAttribute { ~ReadWakeOnLanFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.FeatureMap response %@", [value description]); if (error != nil) { @@ -63543,12 +63362,12 @@ class SubscribeAttributeWakeOnLanFeatureMap : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63581,12 +63400,12 @@ class ReadWakeOnLanClusterRevision : public ReadAttribute { ~ReadWakeOnLanClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.ClusterRevision response %@", [value description]); if (error != nil) { @@ -63607,12 +63426,12 @@ class SubscribeAttributeWakeOnLanClusterRevision : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63666,13 +63485,13 @@ class ChannelChangeChannel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPChannelClusterChangeChannelParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRChannelClusterChangeChannelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.match = [[NSString alloc] initWithBytes:mRequest.match.data() @@ -63683,7 +63502,7 @@ class ChannelChangeChannel : public ClusterCommand { while (repeatCount--) { [cluster changeChannelWithParams:params completionHandler:^( - CHIPChannelClusterChangeChannelResponseParams * _Nullable values, NSError * _Nullable error) { + MTRChannelClusterChangeChannelResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -63715,13 +63534,13 @@ class ChannelChangeChannelByNumber : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPChannelClusterChangeChannelByNumberParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.majorNumber = [NSNumber numberWithUnsignedShort:mRequest.majorNumber]; @@ -63760,13 +63579,13 @@ class ChannelSkipChannel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPChannelClusterSkipChannelParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.count = [NSNumber numberWithUnsignedShort:mRequest.count]; @@ -63804,12 +63623,12 @@ class ReadChannelChannelList : public ReadAttribute { ~ReadChannelChannelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.ChannelList response %@", [value description]); if (error != nil) { @@ -63830,12 +63649,12 @@ class SubscribeAttributeChannelChannelList : public SubscribeAttribute { ~SubscribeAttributeChannelChannelList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63868,14 +63687,14 @@ class ReadChannelLineup : public ReadAttribute { ~ReadChannelLineup() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster - readAttributeLineupWithCompletionHandler:^(CHIPChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error) { + readAttributeLineupWithCompletionHandler:^(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.Lineup response %@", [value description]); if (error != nil) { LogNSError("Channel Lineup read Error", error); @@ -63895,12 +63714,12 @@ class SubscribeAttributeChannelLineup : public SubscribeAttribute { ~SubscribeAttributeChannelLineup() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63910,7 +63729,7 @@ class SubscribeAttributeChannelLineup : public SubscribeAttribute { subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.Lineup response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -63933,14 +63752,14 @@ class ReadChannelCurrentChannel : public ReadAttribute { ~ReadChannelCurrentChannel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentChannelWithCompletionHandler:^( - CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error) { + MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.CurrentChannel response %@", [value description]); if (error != nil) { LogNSError("Channel CurrentChannel read Error", error); @@ -63960,12 +63779,12 @@ class SubscribeAttributeChannelCurrentChannel : public SubscribeAttribute { ~SubscribeAttributeChannelCurrentChannel() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -63975,7 +63794,7 @@ class SubscribeAttributeChannelCurrentChannel : public SubscribeAttribute { subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.CurrentChannel response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -63998,12 +63817,12 @@ class ReadChannelGeneratedCommandList : public ReadAttribute { ~ReadChannelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -64024,12 +63843,12 @@ class SubscribeAttributeChannelGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeChannelGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64062,12 +63881,12 @@ class ReadChannelAcceptedCommandList : public ReadAttribute { ~ReadChannelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -64088,12 +63907,12 @@ class SubscribeAttributeChannelAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeChannelAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64126,12 +63945,12 @@ class ReadChannelAttributeList : public ReadAttribute { ~ReadChannelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.AttributeList response %@", [value description]); if (error != nil) { @@ -64152,12 +63971,12 @@ class SubscribeAttributeChannelAttributeList : public SubscribeAttribute { ~SubscribeAttributeChannelAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64190,12 +64009,12 @@ class ReadChannelFeatureMap : public ReadAttribute { ~ReadChannelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.FeatureMap response %@", [value description]); if (error != nil) { @@ -64216,12 +64035,12 @@ class SubscribeAttributeChannelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeChannelFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64254,12 +64073,12 @@ class ReadChannelClusterRevision : public ReadAttribute { ~ReadChannelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -64280,12 +64099,12 @@ class SubscribeAttributeChannelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeChannelClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPChannel * cluster = [[CHIPChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64337,13 +64156,13 @@ class TargetNavigatorNavigateTarget : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTargetNavigatorClusterNavigateTargetParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.target = [NSNumber numberWithUnsignedChar:mRequest.target]; @@ -64358,7 +64177,7 @@ class TargetNavigatorNavigateTarget : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster navigateTargetWithParams:params - completionHandler:^(CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, + completionHandler:^(MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -64390,12 +64209,12 @@ class ReadTargetNavigatorTargetList : public ReadAttribute { ~ReadTargetNavigatorTargetList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.TargetList response %@", [value description]); if (error != nil) { @@ -64416,12 +64235,12 @@ class SubscribeAttributeTargetNavigatorTargetList : public SubscribeAttribute { ~SubscribeAttributeTargetNavigatorTargetList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64454,12 +64273,12 @@ class ReadTargetNavigatorCurrentTarget : public ReadAttribute { ~ReadTargetNavigatorCurrentTarget() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.CurrentTarget response %@", [value description]); if (error != nil) { @@ -64480,12 +64299,12 @@ class SubscribeAttributeTargetNavigatorCurrentTarget : public SubscribeAttribute ~SubscribeAttributeTargetNavigatorCurrentTarget() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64518,12 +64337,12 @@ class ReadTargetNavigatorGeneratedCommandList : public ReadAttribute { ~ReadTargetNavigatorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -64544,12 +64363,12 @@ class SubscribeAttributeTargetNavigatorGeneratedCommandList : public SubscribeAt ~SubscribeAttributeTargetNavigatorGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64582,12 +64401,12 @@ class ReadTargetNavigatorAcceptedCommandList : public ReadAttribute { ~ReadTargetNavigatorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -64608,12 +64427,12 @@ class SubscribeAttributeTargetNavigatorAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeTargetNavigatorAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64646,12 +64465,12 @@ class ReadTargetNavigatorAttributeList : public ReadAttribute { ~ReadTargetNavigatorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.AttributeList response %@", [value description]); if (error != nil) { @@ -64672,12 +64491,12 @@ class SubscribeAttributeTargetNavigatorAttributeList : public SubscribeAttribute ~SubscribeAttributeTargetNavigatorAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64710,12 +64529,12 @@ class ReadTargetNavigatorFeatureMap : public ReadAttribute { ~ReadTargetNavigatorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.FeatureMap response %@", [value description]); if (error != nil) { @@ -64736,12 +64555,12 @@ class SubscribeAttributeTargetNavigatorFeatureMap : public SubscribeAttribute { ~SubscribeAttributeTargetNavigatorFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64774,12 +64593,12 @@ class ReadTargetNavigatorClusterRevision : public ReadAttribute { ~ReadTargetNavigatorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.ClusterRevision response %@", [value description]); if (error != nil) { @@ -64800,12 +64619,12 @@ class SubscribeAttributeTargetNavigatorClusterRevision : public SubscribeAttribu ~SubscribeAttributeTargetNavigatorClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -64870,31 +64689,30 @@ class MediaPlaybackPlay : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterPlayParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterPlayParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - playWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster playWithParams:params + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -64913,13 +64731,13 @@ class MediaPlaybackPause : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterPauseParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterPauseParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -64927,7 +64745,7 @@ class MediaPlaybackPause : public ClusterCommand { while (repeatCount--) { [cluster pauseWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -64956,13 +64774,13 @@ class MediaPlaybackStopPlayback : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterStopPlaybackParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterStopPlaybackParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -64970,7 +64788,7 @@ class MediaPlaybackStopPlayback : public ClusterCommand { while (repeatCount--) { [cluster stopPlaybackWithParams:params completionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -64999,31 +64817,31 @@ class MediaPlaybackStartOver : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterStartOverParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterStartOverParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster startOverWithParams:params - completionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster + startOverWithParams:params + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -65042,13 +64860,13 @@ class MediaPlaybackPrevious : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterPreviousParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterPreviousParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -65056,7 +64874,7 @@ class MediaPlaybackPrevious : public ClusterCommand { while (repeatCount--) { [cluster previousWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -65085,31 +64903,30 @@ class MediaPlaybackNext : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterNextParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterNextParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - nextWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster nextWithParams:params + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -65128,13 +64945,13 @@ class MediaPlaybackRewind : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterRewindParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterRewindParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -65142,7 +64959,7 @@ class MediaPlaybackRewind : public ClusterCommand { while (repeatCount--) { [cluster rewindWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -65171,13 +64988,13 @@ class MediaPlaybackFastForward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterFastForwardParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterFastForwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -65185,7 +65002,7 @@ class MediaPlaybackFastForward : public ClusterCommand { while (repeatCount--) { [cluster fastForwardWithParams:params completionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -65215,13 +65032,13 @@ class MediaPlaybackSkipForward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterSkipForwardParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:mRequest.deltaPositionMilliseconds]; @@ -65230,7 +65047,7 @@ class MediaPlaybackSkipForward : public ClusterCommand { while (repeatCount--) { [cluster skipForwardWithParams:params completionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -65261,13 +65078,13 @@ class MediaPlaybackSkipBackward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterSkipBackwardParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:mRequest.deltaPositionMilliseconds]; @@ -65276,7 +65093,7 @@ class MediaPlaybackSkipBackward : public ClusterCommand { while (repeatCount--) { [cluster skipBackwardWithParams:params completionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -65307,32 +65124,31 @@ class MediaPlaybackSeek : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaPlaybackClusterSeekParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.position = [NSNumber numberWithUnsignedLongLong:mRequest.position]; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - seekWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster seekWithParams:params + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -65353,12 +65169,12 @@ class ReadMediaPlaybackCurrentState : public ReadAttribute { ~ReadMediaPlaybackCurrentState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.CurrentState response %@", [value description]); if (error != nil) { @@ -65379,12 +65195,12 @@ class SubscribeAttributeMediaPlaybackCurrentState : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackCurrentState() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65417,12 +65233,12 @@ class ReadMediaPlaybackStartTime : public ReadAttribute { ~ReadMediaPlaybackStartTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.StartTime response %@", [value description]); if (error != nil) { @@ -65443,12 +65259,12 @@ class SubscribeAttributeMediaPlaybackStartTime : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackStartTime() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65481,12 +65297,12 @@ class ReadMediaPlaybackDuration : public ReadAttribute { ~ReadMediaPlaybackDuration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.Duration response %@", [value description]); if (error != nil) { @@ -65507,12 +65323,12 @@ class SubscribeAttributeMediaPlaybackDuration : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackDuration() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65545,14 +65361,14 @@ class ReadMediaPlaybackSampledPosition : public ReadAttribute { ~ReadMediaPlaybackSampledPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SampledPosition response %@", [value description]); if (error != nil) { LogNSError("MediaPlayback SampledPosition read Error", error); @@ -65572,12 +65388,12 @@ class SubscribeAttributeMediaPlaybackSampledPosition : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackSampledPosition() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65587,7 +65403,7 @@ class SubscribeAttributeMediaPlaybackSampledPosition : public SubscribeAttribute subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SampledPosition response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -65610,12 +65426,12 @@ class ReadMediaPlaybackPlaybackSpeed : public ReadAttribute { ~ReadMediaPlaybackPlaybackSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.PlaybackSpeed response %@", [value description]); if (error != nil) { @@ -65636,12 +65452,12 @@ class SubscribeAttributeMediaPlaybackPlaybackSpeed : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackPlaybackSpeed() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65674,12 +65490,12 @@ class ReadMediaPlaybackSeekRangeEnd : public ReadAttribute { ~ReadMediaPlaybackSeekRangeEnd() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SeekRangeEnd response %@", [value description]); if (error != nil) { @@ -65700,12 +65516,12 @@ class SubscribeAttributeMediaPlaybackSeekRangeEnd : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackSeekRangeEnd() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65738,12 +65554,12 @@ class ReadMediaPlaybackSeekRangeStart : public ReadAttribute { ~ReadMediaPlaybackSeekRangeStart() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SeekRangeStart response %@", [value description]); if (error != nil) { @@ -65764,12 +65580,12 @@ class SubscribeAttributeMediaPlaybackSeekRangeStart : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackSeekRangeStart() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65802,12 +65618,12 @@ class ReadMediaPlaybackGeneratedCommandList : public ReadAttribute { ~ReadMediaPlaybackGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -65828,12 +65644,12 @@ class SubscribeAttributeMediaPlaybackGeneratedCommandList : public SubscribeAttr ~SubscribeAttributeMediaPlaybackGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65866,12 +65682,12 @@ class ReadMediaPlaybackAcceptedCommandList : public ReadAttribute { ~ReadMediaPlaybackAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -65892,12 +65708,12 @@ class SubscribeAttributeMediaPlaybackAcceptedCommandList : public SubscribeAttri ~SubscribeAttributeMediaPlaybackAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65930,12 +65746,12 @@ class ReadMediaPlaybackAttributeList : public ReadAttribute { ~ReadMediaPlaybackAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.AttributeList response %@", [value description]); if (error != nil) { @@ -65956,12 +65772,12 @@ class SubscribeAttributeMediaPlaybackAttributeList : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -65994,12 +65810,12 @@ class ReadMediaPlaybackFeatureMap : public ReadAttribute { ~ReadMediaPlaybackFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.FeatureMap response %@", [value description]); if (error != nil) { @@ -66020,12 +65836,12 @@ class SubscribeAttributeMediaPlaybackFeatureMap : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66058,12 +65874,12 @@ class ReadMediaPlaybackClusterRevision : public ReadAttribute { ~ReadMediaPlaybackClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.ClusterRevision response %@", [value description]); if (error != nil) { @@ -66084,12 +65900,12 @@ class SubscribeAttributeMediaPlaybackClusterRevision : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66143,13 +65959,13 @@ class MediaInputSelectInput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaInputClusterSelectInputParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.index = [NSNumber numberWithUnsignedChar:mRequest.index]; @@ -66186,13 +66002,13 @@ class MediaInputShowInputStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaInputClusterShowInputStatusParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaInputClusterShowInputStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -66227,13 +66043,13 @@ class MediaInputHideInputStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaInputClusterHideInputStatusParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaInputClusterHideInputStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -66270,13 +66086,13 @@ class MediaInputRenameInput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPMediaInputClusterRenameInputParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.index = [NSNumber numberWithUnsignedChar:mRequest.index]; @@ -66317,12 +66133,12 @@ class ReadMediaInputInputList : public ReadAttribute { ~ReadMediaInputInputList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.InputList response %@", [value description]); if (error != nil) { @@ -66343,12 +66159,12 @@ class SubscribeAttributeMediaInputInputList : public SubscribeAttribute { ~SubscribeAttributeMediaInputInputList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66381,12 +66197,12 @@ class ReadMediaInputCurrentInput : public ReadAttribute { ~ReadMediaInputCurrentInput() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.CurrentInput response %@", [value description]); if (error != nil) { @@ -66407,12 +66223,12 @@ class SubscribeAttributeMediaInputCurrentInput : public SubscribeAttribute { ~SubscribeAttributeMediaInputCurrentInput() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66445,12 +66261,12 @@ class ReadMediaInputGeneratedCommandList : public ReadAttribute { ~ReadMediaInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -66471,12 +66287,12 @@ class SubscribeAttributeMediaInputGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeMediaInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66509,12 +66325,12 @@ class ReadMediaInputAcceptedCommandList : public ReadAttribute { ~ReadMediaInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -66535,12 +66351,12 @@ class SubscribeAttributeMediaInputAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeMediaInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66573,12 +66389,12 @@ class ReadMediaInputAttributeList : public ReadAttribute { ~ReadMediaInputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.AttributeList response %@", [value description]); if (error != nil) { @@ -66599,12 +66415,12 @@ class SubscribeAttributeMediaInputAttributeList : public SubscribeAttribute { ~SubscribeAttributeMediaInputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66637,12 +66453,12 @@ class ReadMediaInputFeatureMap : public ReadAttribute { ~ReadMediaInputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.FeatureMap response %@", [value description]); if (error != nil) { @@ -66663,12 +66479,12 @@ class SubscribeAttributeMediaInputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeMediaInputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66701,12 +66517,12 @@ class ReadMediaInputClusterRevision : public ReadAttribute { ~ReadMediaInputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -66727,12 +66543,12 @@ class SubscribeAttributeMediaInputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeMediaInputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66780,13 +66596,13 @@ class LowPowerSleep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPLowPowerClusterSleepParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRLowPowerClusterSleepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -66822,12 +66638,12 @@ class ReadLowPowerGeneratedCommandList : public ReadAttribute { ~ReadLowPowerGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -66848,12 +66664,12 @@ class SubscribeAttributeLowPowerGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeLowPowerGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66886,12 +66702,12 @@ class ReadLowPowerAcceptedCommandList : public ReadAttribute { ~ReadLowPowerAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -66912,12 +66728,12 @@ class SubscribeAttributeLowPowerAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeLowPowerAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -66950,12 +66766,12 @@ class ReadLowPowerAttributeList : public ReadAttribute { ~ReadLowPowerAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.AttributeList response %@", [value description]); if (error != nil) { @@ -66976,12 +66792,12 @@ class SubscribeAttributeLowPowerAttributeList : public SubscribeAttribute { ~SubscribeAttributeLowPowerAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67014,12 +66830,12 @@ class ReadLowPowerFeatureMap : public ReadAttribute { ~ReadLowPowerFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.FeatureMap response %@", [value description]); if (error != nil) { @@ -67040,12 +66856,12 @@ class SubscribeAttributeLowPowerFeatureMap : public SubscribeAttribute { ~SubscribeAttributeLowPowerFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67078,12 +66894,12 @@ class ReadLowPowerClusterRevision : public ReadAttribute { ~ReadLowPowerClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.ClusterRevision response %@", [value description]); if (error != nil) { @@ -67104,12 +66920,12 @@ class SubscribeAttributeLowPowerClusterRevision : public SubscribeAttribute { ~SubscribeAttributeLowPowerClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67158,32 +66974,31 @@ class KeypadInputSendKey : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.keyCode = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.keyCode)]; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster sendKeyWithParams:params + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -67204,12 +67019,12 @@ class ReadKeypadInputGeneratedCommandList : public ReadAttribute { ~ReadKeypadInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -67230,12 +67045,12 @@ class SubscribeAttributeKeypadInputGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeKeypadInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67268,12 +67083,12 @@ class ReadKeypadInputAcceptedCommandList : public ReadAttribute { ~ReadKeypadInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -67294,12 +67109,12 @@ class SubscribeAttributeKeypadInputAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeKeypadInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67332,12 +67147,12 @@ class ReadKeypadInputAttributeList : public ReadAttribute { ~ReadKeypadInputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.AttributeList response %@", [value description]); if (error != nil) { @@ -67358,12 +67173,12 @@ class SubscribeAttributeKeypadInputAttributeList : public SubscribeAttribute { ~SubscribeAttributeKeypadInputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67396,12 +67211,12 @@ class ReadKeypadInputFeatureMap : public ReadAttribute { ~ReadKeypadInputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.FeatureMap response %@", [value description]); if (error != nil) { @@ -67422,12 +67237,12 @@ class SubscribeAttributeKeypadInputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeKeypadInputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67460,12 +67275,12 @@ class ReadKeypadInputClusterRevision : public ReadAttribute { ~ReadKeypadInputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -67486,12 +67301,12 @@ class SubscribeAttributeKeypadInputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeKeypadInputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67546,21 +67361,21 @@ class ContentLauncherLaunchContent : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPContentLauncherClusterLaunchContentParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRContentLauncherClusterLaunchContentParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.search = [CHIPContentLauncherClusterContentSearch new]; + params.search = [MTRContentLauncherClusterContentSearch new]; { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; for (auto & entry_1 : mRequest.search.parameterList) { - CHIPContentLauncherClusterParameter * newElement_1; - newElement_1 = [CHIPContentLauncherClusterParameter new]; + MTRContentLauncherClusterParameter * newElement_1; + newElement_1 = [MTRContentLauncherClusterParameter new]; newElement_1.type = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_1.type)]; newElement_1.value = [[NSString alloc] initWithBytes:entry_1.value.data() length:entry_1.value.size() @@ -67569,8 +67384,8 @@ class ContentLauncherLaunchContent : public ClusterCommand { { // Scope for our temporary variables auto * array_4 = [NSMutableArray new]; for (auto & entry_4 : entry_1.externalIDList.Value()) { - CHIPContentLauncherClusterAdditionalInfo * newElement_4; - newElement_4 = [CHIPContentLauncherClusterAdditionalInfo new]; + MTRContentLauncherClusterAdditionalInfo * newElement_4; + newElement_4 = [MTRContentLauncherClusterAdditionalInfo new]; newElement_4.name = [[NSString alloc] initWithBytes:entry_4.name.data() length:entry_4.name.size() encoding:NSUTF8StringEncoding]; @@ -67601,7 +67416,7 @@ class ContentLauncherLaunchContent : public ClusterCommand { while (repeatCount--) { [cluster launchContentWithParams:params completionHandler:^( - CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable error) { + MTRContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -67636,13 +67451,13 @@ class ContentLauncherLaunchURL : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPContentLauncherClusterLaunchURLParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRContentLauncherClusterLaunchURLParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.contentURL = [[NSString alloc] initWithBytes:mRequest.contentURL.data() @@ -67656,13 +67471,13 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.displayString = nil; } if (mRequest.brandingInformation.HasValue()) { - params.brandingInformation = [CHIPContentLauncherClusterBrandingInformation new]; + params.brandingInformation = [MTRContentLauncherClusterBrandingInformation new]; params.brandingInformation.providerName = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().providerName.data() length:mRequest.brandingInformation.Value().providerName.size() encoding:NSUTF8StringEncoding]; if (mRequest.brandingInformation.Value().background.HasValue()) { - params.brandingInformation.background = [CHIPContentLauncherClusterStyleInformation new]; + params.brandingInformation.background = [MTRContentLauncherClusterStyleInformation new]; if (mRequest.brandingInformation.Value().background.Value().imageUrl.HasValue()) { params.brandingInformation.background.imageUrl = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().background.Value().imageUrl.Value().data() @@ -67680,7 +67495,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.background.color = nil; } if (mRequest.brandingInformation.Value().background.Value().size.HasValue()) { - params.brandingInformation.background.size = [CHIPContentLauncherClusterDimension new]; + params.brandingInformation.background.size = [MTRContentLauncherClusterDimension new]; params.brandingInformation.background.size.width = [NSNumber numberWithDouble:mRequest.brandingInformation.Value().background.Value().size.Value().width]; params.brandingInformation.background.size.height = @@ -67695,7 +67510,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.background = nil; } if (mRequest.brandingInformation.Value().logo.HasValue()) { - params.brandingInformation.logo = [CHIPContentLauncherClusterStyleInformation new]; + params.brandingInformation.logo = [MTRContentLauncherClusterStyleInformation new]; if (mRequest.brandingInformation.Value().logo.Value().imageUrl.HasValue()) { params.brandingInformation.logo.imageUrl = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().logo.Value().imageUrl.Value().data() @@ -67713,7 +67528,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.logo.color = nil; } if (mRequest.brandingInformation.Value().logo.Value().size.HasValue()) { - params.brandingInformation.logo.size = [CHIPContentLauncherClusterDimension new]; + params.brandingInformation.logo.size = [MTRContentLauncherClusterDimension new]; params.brandingInformation.logo.size.width = [NSNumber numberWithDouble:mRequest.brandingInformation.Value().logo.Value().size.Value().width]; params.brandingInformation.logo.size.height = @@ -67728,7 +67543,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.logo = nil; } if (mRequest.brandingInformation.Value().progressBar.HasValue()) { - params.brandingInformation.progressBar = [CHIPContentLauncherClusterStyleInformation new]; + params.brandingInformation.progressBar = [MTRContentLauncherClusterStyleInformation new]; if (mRequest.brandingInformation.Value().progressBar.Value().imageUrl.HasValue()) { params.brandingInformation.progressBar.imageUrl = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().progressBar.Value().imageUrl.Value().data() @@ -67746,7 +67561,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.progressBar.color = nil; } if (mRequest.brandingInformation.Value().progressBar.Value().size.HasValue()) { - params.brandingInformation.progressBar.size = [CHIPContentLauncherClusterDimension new]; + params.brandingInformation.progressBar.size = [MTRContentLauncherClusterDimension new]; params.brandingInformation.progressBar.size.width = [NSNumber numberWithDouble:mRequest.brandingInformation.Value().progressBar.Value().size.Value().width]; params.brandingInformation.progressBar.size.height = @@ -67761,7 +67576,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.progressBar = nil; } if (mRequest.brandingInformation.Value().splash.HasValue()) { - params.brandingInformation.splash = [CHIPContentLauncherClusterStyleInformation new]; + params.brandingInformation.splash = [MTRContentLauncherClusterStyleInformation new]; if (mRequest.brandingInformation.Value().splash.Value().imageUrl.HasValue()) { params.brandingInformation.splash.imageUrl = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().splash.Value().imageUrl.Value().data() @@ -67779,7 +67594,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.splash.color = nil; } if (mRequest.brandingInformation.Value().splash.Value().size.HasValue()) { - params.brandingInformation.splash.size = [CHIPContentLauncherClusterDimension new]; + params.brandingInformation.splash.size = [MTRContentLauncherClusterDimension new]; params.brandingInformation.splash.size.width = [NSNumber numberWithDouble:mRequest.brandingInformation.Value().splash.Value().size.Value().width]; params.brandingInformation.splash.size.height = @@ -67794,7 +67609,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.splash = nil; } if (mRequest.brandingInformation.Value().waterMark.HasValue()) { - params.brandingInformation.waterMark = [CHIPContentLauncherClusterStyleInformation new]; + params.brandingInformation.waterMark = [MTRContentLauncherClusterStyleInformation new]; if (mRequest.brandingInformation.Value().waterMark.Value().imageUrl.HasValue()) { params.brandingInformation.waterMark.imageUrl = [[NSString alloc] initWithBytes:mRequest.brandingInformation.Value().waterMark.Value().imageUrl.Value().data() @@ -67812,7 +67627,7 @@ class ContentLauncherLaunchURL : public ClusterCommand { params.brandingInformation.waterMark.color = nil; } if (mRequest.brandingInformation.Value().waterMark.Value().size.HasValue()) { - params.brandingInformation.waterMark.size = [CHIPContentLauncherClusterDimension new]; + params.brandingInformation.waterMark.size = [MTRContentLauncherClusterDimension new]; params.brandingInformation.waterMark.size.width = [NSNumber numberWithDouble:mRequest.brandingInformation.Value().waterMark.Value().size.Value().width]; params.brandingInformation.waterMark.size.height = @@ -67832,19 +67647,19 @@ class ContentLauncherLaunchURL : public ClusterCommand { uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster launchURLWithParams:params - completionHandler:^( - CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster + launchURLWithParams:params + completionHandler:^(MTRContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -67867,12 +67682,12 @@ class ReadContentLauncherAcceptHeader : public ReadAttribute { ~ReadContentLauncherAcceptHeader() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AcceptHeader response %@", [value description]); if (error != nil) { @@ -67893,12 +67708,12 @@ class SubscribeAttributeContentLauncherAcceptHeader : public SubscribeAttribute ~SubscribeAttributeContentLauncherAcceptHeader() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -67931,12 +67746,12 @@ class ReadContentLauncherSupportedStreamingProtocols : public ReadAttribute { ~ReadContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedStreamingProtocolsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.SupportedStreamingProtocols response %@", [value description]); @@ -67961,12 +67776,12 @@ class WriteContentLauncherSupportedStreamingProtocols : public WriteAttribute { ~WriteContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -67997,12 +67812,12 @@ class SubscribeAttributeContentLauncherSupportedStreamingProtocols : public Subs ~SubscribeAttributeContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68035,12 +67850,12 @@ class ReadContentLauncherGeneratedCommandList : public ReadAttribute { ~ReadContentLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -68061,12 +67876,12 @@ class SubscribeAttributeContentLauncherGeneratedCommandList : public SubscribeAt ~SubscribeAttributeContentLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68099,12 +67914,12 @@ class ReadContentLauncherAcceptedCommandList : public ReadAttribute { ~ReadContentLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -68125,12 +67940,12 @@ class SubscribeAttributeContentLauncherAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeContentLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68163,12 +67978,12 @@ class ReadContentLauncherAttributeList : public ReadAttribute { ~ReadContentLauncherAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AttributeList response %@", [value description]); if (error != nil) { @@ -68189,12 +68004,12 @@ class SubscribeAttributeContentLauncherAttributeList : public SubscribeAttribute ~SubscribeAttributeContentLauncherAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68227,12 +68042,12 @@ class ReadContentLauncherFeatureMap : public ReadAttribute { ~ReadContentLauncherFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.FeatureMap response %@", [value description]); if (error != nil) { @@ -68253,12 +68068,12 @@ class SubscribeAttributeContentLauncherFeatureMap : public SubscribeAttribute { ~SubscribeAttributeContentLauncherFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68291,12 +68106,12 @@ class ReadContentLauncherClusterRevision : public ReadAttribute { ~ReadContentLauncherClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.ClusterRevision response %@", [value description]); if (error != nil) { @@ -68317,12 +68132,12 @@ class SubscribeAttributeContentLauncherClusterRevision : public SubscribeAttribu ~SubscribeAttributeContentLauncherClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68374,13 +68189,13 @@ class AudioOutputSelectOutput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPAudioOutputClusterSelectOutputParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.index = [NSNumber numberWithUnsignedChar:mRequest.index]; @@ -68419,13 +68234,13 @@ class AudioOutputRenameOutput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPAudioOutputClusterRenameOutputParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.index = [NSNumber numberWithUnsignedChar:mRequest.index]; @@ -68466,12 +68281,12 @@ class ReadAudioOutputOutputList : public ReadAttribute { ~ReadAudioOutputOutputList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.OutputList response %@", [value description]); if (error != nil) { @@ -68492,12 +68307,12 @@ class SubscribeAttributeAudioOutputOutputList : public SubscribeAttribute { ~SubscribeAttributeAudioOutputOutputList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68530,12 +68345,12 @@ class ReadAudioOutputCurrentOutput : public ReadAttribute { ~ReadAudioOutputCurrentOutput() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.CurrentOutput response %@", [value description]); if (error != nil) { @@ -68556,12 +68371,12 @@ class SubscribeAttributeAudioOutputCurrentOutput : public SubscribeAttribute { ~SubscribeAttributeAudioOutputCurrentOutput() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68594,12 +68409,12 @@ class ReadAudioOutputGeneratedCommandList : public ReadAttribute { ~ReadAudioOutputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -68620,12 +68435,12 @@ class SubscribeAttributeAudioOutputGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeAudioOutputGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68658,12 +68473,12 @@ class ReadAudioOutputAcceptedCommandList : public ReadAttribute { ~ReadAudioOutputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -68684,12 +68499,12 @@ class SubscribeAttributeAudioOutputAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeAudioOutputAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68722,12 +68537,12 @@ class ReadAudioOutputAttributeList : public ReadAttribute { ~ReadAudioOutputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.AttributeList response %@", [value description]); if (error != nil) { @@ -68748,12 +68563,12 @@ class SubscribeAttributeAudioOutputAttributeList : public SubscribeAttribute { ~SubscribeAttributeAudioOutputAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68786,12 +68601,12 @@ class ReadAudioOutputFeatureMap : public ReadAttribute { ~ReadAudioOutputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.FeatureMap response %@", [value description]); if (error != nil) { @@ -68812,12 +68627,12 @@ class SubscribeAttributeAudioOutputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAudioOutputFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68850,12 +68665,12 @@ class ReadAudioOutputClusterRevision : public ReadAttribute { ~ReadAudioOutputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -68876,12 +68691,12 @@ class SubscribeAttributeAudioOutputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeAudioOutputClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -68936,18 +68751,18 @@ class ApplicationLauncherLaunchApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPApplicationLauncherClusterLaunchAppParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRApplicationLauncherClusterLaunchAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.application = [CHIPApplicationLauncherClusterApplication new]; + params.application = [MTRApplicationLauncherClusterApplication new]; params.application.catalogVendorId = [NSNumber numberWithUnsignedShort:mRequest.application.catalogVendorId]; params.application.applicationId = [[NSString alloc] initWithBytes:mRequest.application.applicationId.data() length:mRequest.application.applicationId.size() @@ -68962,7 +68777,7 @@ class ApplicationLauncherLaunchApp : public ClusterCommand { while (repeatCount--) { [cluster launchAppWithParams:params completionHandler:^( - CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { + MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -68995,18 +68810,18 @@ class ApplicationLauncherStopApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPApplicationLauncherClusterStopAppParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRApplicationLauncherClusterStopAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.application = [CHIPApplicationLauncherClusterApplication new]; + params.application = [MTRApplicationLauncherClusterApplication new]; params.application.catalogVendorId = [NSNumber numberWithUnsignedShort:mRequest.application.catalogVendorId]; params.application.applicationId = [[NSString alloc] initWithBytes:mRequest.application.applicationId.data() length:mRequest.application.applicationId.size() @@ -69016,7 +68831,7 @@ class ApplicationLauncherStopApp : public ClusterCommand { while (repeatCount--) { [cluster stopAppWithParams:params completionHandler:^( - CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { + MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -69049,18 +68864,18 @@ class ApplicationLauncherHideApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPApplicationLauncherClusterHideAppParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRApplicationLauncherClusterHideAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.application = [CHIPApplicationLauncherClusterApplication new]; + params.application = [MTRApplicationLauncherClusterApplication new]; params.application.catalogVendorId = [NSNumber numberWithUnsignedShort:mRequest.application.catalogVendorId]; params.application.applicationId = [[NSString alloc] initWithBytes:mRequest.application.applicationId.data() length:mRequest.application.applicationId.size() @@ -69070,7 +68885,7 @@ class ApplicationLauncherHideApp : public ClusterCommand { while (repeatCount--) { [cluster hideAppWithParams:params completionHandler:^( - CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { + MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -69102,14 +68917,14 @@ class ReadApplicationLauncherCatalogList : public ReadAttribute { ~ReadApplicationLauncherCatalogList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.CatalogList response %@", [value description]); if (error != nil) { @@ -69130,14 +68945,14 @@ class SubscribeAttributeApplicationLauncherCatalogList : public SubscribeAttribu ~SubscribeAttributeApplicationLauncherCatalogList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69170,16 +68985,16 @@ class ReadApplicationLauncherCurrentApp : public ReadAttribute { ~ReadApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentAppWithCompletionHandler:^( - CHIPApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error) { + MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.CurrentApp response %@", [value description]); if (error != nil) { LogNSError("ApplicationLauncher CurrentApp read Error", error); @@ -69203,23 +69018,23 @@ class WriteApplicationLauncherCurrentApp : public WriteAttribute { ~WriteApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - CHIPApplicationLauncherClusterApplicationEP * _Nullable value; + MTRApplicationLauncherClusterApplicationEP * _Nullable value; if (mValue.IsNull()) { value = nil; } else { - value = [CHIPApplicationLauncherClusterApplicationEP new]; - value.application = [CHIPApplicationLauncherClusterApplication new]; + value = [MTRApplicationLauncherClusterApplicationEP new]; + value.application = [MTRApplicationLauncherClusterApplication new]; value.application.catalogVendorId = [NSNumber numberWithUnsignedShort:mValue.Value().application.catalogVendorId]; value.application.applicationId = [[NSString alloc] initWithBytes:mValue.Value().application.applicationId.data() length:mValue.Value().application.applicationId.size() @@ -69257,14 +69072,14 @@ class SubscribeAttributeApplicationLauncherCurrentApp : public SubscribeAttribut ~SubscribeAttributeApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69274,7 +69089,7 @@ class SubscribeAttributeApplicationLauncherCurrentApp : public SubscribeAttribut subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.CurrentApp response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -69297,14 +69112,14 @@ class ReadApplicationLauncherGeneratedCommandList : public ReadAttribute { ~ReadApplicationLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -69325,14 +69140,14 @@ class SubscribeAttributeApplicationLauncherGeneratedCommandList : public Subscri ~SubscribeAttributeApplicationLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69365,14 +69180,14 @@ class ReadApplicationLauncherAcceptedCommandList : public ReadAttribute { ~ReadApplicationLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -69393,14 +69208,14 @@ class SubscribeAttributeApplicationLauncherAcceptedCommandList : public Subscrib ~SubscribeAttributeApplicationLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69433,14 +69248,14 @@ class ReadApplicationLauncherAttributeList : public ReadAttribute { ~ReadApplicationLauncherAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.AttributeList response %@", [value description]); if (error != nil) { @@ -69461,14 +69276,14 @@ class SubscribeAttributeApplicationLauncherAttributeList : public SubscribeAttri ~SubscribeAttributeApplicationLauncherAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69501,14 +69316,14 @@ class ReadApplicationLauncherFeatureMap : public ReadAttribute { ~ReadApplicationLauncherFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.FeatureMap response %@", [value description]); if (error != nil) { @@ -69529,14 +69344,14 @@ class SubscribeAttributeApplicationLauncherFeatureMap : public SubscribeAttribut ~SubscribeAttributeApplicationLauncherFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69569,14 +69384,14 @@ class ReadApplicationLauncherClusterRevision : public ReadAttribute { ~ReadApplicationLauncherClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.ClusterRevision response %@", [value description]); if (error != nil) { @@ -69597,14 +69412,14 @@ class SubscribeAttributeApplicationLauncherClusterRevision : public SubscribeAtt ~SubscribeAttributeApplicationLauncherClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69660,14 +69475,12 @@ class ReadApplicationBasicVendorName : public ReadAttribute { ~ReadApplicationBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.VendorName response %@", [value description]); if (error != nil) { @@ -69688,14 +69501,12 @@ class SubscribeAttributeApplicationBasicVendorName : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicVendorName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69728,14 +69539,12 @@ class ReadApplicationBasicVendorID : public ReadAttribute { ~ReadApplicationBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.VendorID response %@", [value description]); if (error != nil) { @@ -69756,14 +69565,12 @@ class SubscribeAttributeApplicationBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicVendorID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69796,14 +69603,12 @@ class ReadApplicationBasicApplicationName : public ReadAttribute { ~ReadApplicationBasicApplicationName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ApplicationName response %@", [value description]); if (error != nil) { @@ -69824,14 +69629,12 @@ class SubscribeAttributeApplicationBasicApplicationName : public SubscribeAttrib ~SubscribeAttributeApplicationBasicApplicationName() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69864,14 +69667,12 @@ class ReadApplicationBasicProductID : public ReadAttribute { ~ReadApplicationBasicProductID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ProductID response %@", [value description]); if (error != nil) { @@ -69892,14 +69693,12 @@ class SubscribeAttributeApplicationBasicProductID : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicProductID() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69932,16 +69731,14 @@ class ReadApplicationBasicApplication : public ReadAttribute { ~ReadApplicationBasicApplication() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeApplicationWithCompletionHandler:^( - CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error) { + MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.Application response %@", [value description]); if (error != nil) { LogNSError("ApplicationBasic Application read Error", error); @@ -69961,14 +69758,12 @@ class SubscribeAttributeApplicationBasicApplication : public SubscribeAttribute ~SubscribeAttributeApplicationBasicApplication() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -69978,7 +69773,7 @@ class SubscribeAttributeApplicationBasicApplication : public SubscribeAttribute subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.Application response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -70001,14 +69796,12 @@ class ReadApplicationBasicStatus : public ReadAttribute { ~ReadApplicationBasicStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.Status response %@", [value description]); if (error != nil) { @@ -70029,14 +69822,12 @@ class SubscribeAttributeApplicationBasicStatus : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicStatus() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70069,14 +69860,12 @@ class ReadApplicationBasicApplicationVersion : public ReadAttribute { ~ReadApplicationBasicApplicationVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ApplicationVersion response %@", [value description]); if (error != nil) { @@ -70097,14 +69886,12 @@ class SubscribeAttributeApplicationBasicApplicationVersion : public SubscribeAtt ~SubscribeAttributeApplicationBasicApplicationVersion() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70137,14 +69924,12 @@ class ReadApplicationBasicAllowedVendorList : public ReadAttribute { ~ReadApplicationBasicAllowedVendorList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AllowedVendorList response %@", [value description]); if (error != nil) { @@ -70165,14 +69950,12 @@ class SubscribeAttributeApplicationBasicAllowedVendorList : public SubscribeAttr ~SubscribeAttributeApplicationBasicAllowedVendorList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70205,14 +69988,12 @@ class ReadApplicationBasicGeneratedCommandList : public ReadAttribute { ~ReadApplicationBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -70233,14 +70014,12 @@ class SubscribeAttributeApplicationBasicGeneratedCommandList : public SubscribeA ~SubscribeAttributeApplicationBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70273,14 +70052,12 @@ class ReadApplicationBasicAcceptedCommandList : public ReadAttribute { ~ReadApplicationBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -70301,14 +70078,12 @@ class SubscribeAttributeApplicationBasicAcceptedCommandList : public SubscribeAt ~SubscribeAttributeApplicationBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70341,14 +70116,12 @@ class ReadApplicationBasicAttributeList : public ReadAttribute { ~ReadApplicationBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -70369,14 +70142,12 @@ class SubscribeAttributeApplicationBasicAttributeList : public SubscribeAttribut ~SubscribeAttributeApplicationBasicAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70409,14 +70180,12 @@ class ReadApplicationBasicFeatureMap : public ReadAttribute { ~ReadApplicationBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -70437,14 +70206,12 @@ class SubscribeAttributeApplicationBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70477,14 +70244,12 @@ class ReadApplicationBasicClusterRevision : public ReadAttribute { ~ReadApplicationBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -70505,14 +70270,12 @@ class SubscribeAttributeApplicationBasicClusterRevision : public SubscribeAttrib ~SubscribeAttributeApplicationBasicClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70563,13 +70326,13 @@ class AccountLoginGetSetupPIN : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPAccountLoginClusterGetSetupPINParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRAccountLoginClusterGetSetupPINParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.tempAccountIdentifier = [[NSString alloc] initWithBytes:mRequest.tempAccountIdentifier.data() @@ -70580,7 +70343,7 @@ class AccountLoginGetSetupPIN : public ClusterCommand { while (repeatCount--) { [cluster getSetupPINWithParams:params completionHandler:^( - CHIPAccountLoginClusterGetSetupPINResponseParams * _Nullable values, NSError * _Nullable error) { + MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -70612,13 +70375,13 @@ class AccountLoginLogin : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPAccountLoginClusterLoginParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRAccountLoginClusterLoginParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.tempAccountIdentifier = [[NSString alloc] initWithBytes:mRequest.tempAccountIdentifier.data() @@ -70660,13 +70423,13 @@ class AccountLoginLogout : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPAccountLoginClusterLogoutParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRAccountLoginClusterLogoutParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -70702,12 +70465,12 @@ class ReadAccountLoginGeneratedCommandList : public ReadAttribute { ~ReadAccountLoginGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -70728,12 +70491,12 @@ class SubscribeAttributeAccountLoginGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeAccountLoginGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70766,12 +70529,12 @@ class ReadAccountLoginAcceptedCommandList : public ReadAttribute { ~ReadAccountLoginAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -70792,12 +70555,12 @@ class SubscribeAttributeAccountLoginAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeAccountLoginAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70830,12 +70593,12 @@ class ReadAccountLoginAttributeList : public ReadAttribute { ~ReadAccountLoginAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.AttributeList response %@", [value description]); if (error != nil) { @@ -70856,12 +70619,12 @@ class SubscribeAttributeAccountLoginAttributeList : public SubscribeAttribute { ~SubscribeAttributeAccountLoginAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70894,12 +70657,12 @@ class ReadAccountLoginFeatureMap : public ReadAttribute { ~ReadAccountLoginFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.FeatureMap response %@", [value description]); if (error != nil) { @@ -70920,12 +70683,12 @@ class SubscribeAttributeAccountLoginFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAccountLoginFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -70958,12 +70721,12 @@ class ReadAccountLoginClusterRevision : public ReadAttribute { ~ReadAccountLoginClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.ClusterRevision response %@", [value description]); if (error != nil) { @@ -70984,12 +70747,12 @@ class SubscribeAttributeAccountLoginClusterRevision : public SubscribeAttribute ~SubscribeAttributeAccountLoginClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71166,15 +70929,15 @@ class ElectricalMeasurementGetProfileInfoCommand : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPElectricalMeasurementClusterGetProfileInfoCommandParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRElectricalMeasurementClusterGetProfileInfoCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -71212,15 +70975,15 @@ class ElectricalMeasurementGetMeasurementProfileCommand : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - __auto_type * params = [[CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + __auto_type * params = [[MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.attributeId = [NSNumber numberWithUnsignedShort:mRequest.attributeId]; @@ -71260,14 +71023,14 @@ class ReadElectricalMeasurementMeasurementType : public ReadAttribute { ~ReadElectricalMeasurementMeasurementType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasurementTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasurementType response %@", [value description]); if (error != nil) { @@ -71288,14 +71051,14 @@ class SubscribeAttributeElectricalMeasurementMeasurementType : public SubscribeA ~SubscribeAttributeElectricalMeasurementMeasurementType() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71328,14 +71091,14 @@ class ReadElectricalMeasurementDcVoltage : public ReadAttribute { ~ReadElectricalMeasurementDcVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltage response %@", [value description]); if (error != nil) { @@ -71356,14 +71119,14 @@ class SubscribeAttributeElectricalMeasurementDcVoltage : public SubscribeAttribu ~SubscribeAttributeElectricalMeasurementDcVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71396,14 +71159,14 @@ class ReadElectricalMeasurementDcVoltageMin : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000101) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMin response %@", [value description]); if (error != nil) { @@ -71424,14 +71187,14 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMin : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcVoltageMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000101) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71464,14 +71227,14 @@ class ReadElectricalMeasurementDcVoltageMax : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000102) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMax response %@", [value description]); if (error != nil) { @@ -71492,14 +71255,14 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMax : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcVoltageMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000102) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71532,14 +71295,14 @@ class ReadElectricalMeasurementDcCurrent : public ReadAttribute { ~ReadElectricalMeasurementDcCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000103) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrent response %@", [value description]); if (error != nil) { @@ -71560,14 +71323,14 @@ class SubscribeAttributeElectricalMeasurementDcCurrent : public SubscribeAttribu ~SubscribeAttributeElectricalMeasurementDcCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000103) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71600,14 +71363,14 @@ class ReadElectricalMeasurementDcCurrentMin : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000104) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMin response %@", [value description]); if (error != nil) { @@ -71628,14 +71391,14 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMin : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcCurrentMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000104) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71668,14 +71431,14 @@ class ReadElectricalMeasurementDcCurrentMax : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000105) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMax response %@", [value description]); if (error != nil) { @@ -71696,14 +71459,14 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMax : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcCurrentMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000105) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71736,14 +71499,14 @@ class ReadElectricalMeasurementDcPower : public ReadAttribute { ~ReadElectricalMeasurementDcPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000106) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPower response %@", [value description]); if (error != nil) { @@ -71764,14 +71527,14 @@ class SubscribeAttributeElectricalMeasurementDcPower : public SubscribeAttribute ~SubscribeAttributeElectricalMeasurementDcPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000106) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71804,14 +71567,14 @@ class ReadElectricalMeasurementDcPowerMin : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000107) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMin response %@", [value description]); if (error != nil) { @@ -71832,14 +71595,14 @@ class SubscribeAttributeElectricalMeasurementDcPowerMin : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementDcPowerMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000107) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71872,14 +71635,14 @@ class ReadElectricalMeasurementDcPowerMax : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000108) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMax response %@", [value description]); if (error != nil) { @@ -71900,14 +71663,14 @@ class SubscribeAttributeElectricalMeasurementDcPowerMax : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementDcPowerMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000108) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -71940,14 +71703,14 @@ class ReadElectricalMeasurementDcVoltageMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000200) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMultiplier response %@", [value description]); if (error != nil) { @@ -71968,14 +71731,14 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementDcVoltageMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000200) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72008,14 +71771,14 @@ class ReadElectricalMeasurementDcVoltageDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000201) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageDivisor response %@", [value description]); if (error != nil) { @@ -72036,14 +71799,14 @@ class SubscribeAttributeElectricalMeasurementDcVoltageDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementDcVoltageDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000201) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72076,14 +71839,14 @@ class ReadElectricalMeasurementDcCurrentMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000202) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMultiplier response %@", [value description]); if (error != nil) { @@ -72104,14 +71867,14 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementDcCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000202) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72144,14 +71907,14 @@ class ReadElectricalMeasurementDcCurrentDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000203) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentDivisor response %@", [value description]); if (error != nil) { @@ -72172,14 +71935,14 @@ class SubscribeAttributeElectricalMeasurementDcCurrentDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementDcCurrentDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000203) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72212,14 +71975,14 @@ class ReadElectricalMeasurementDcPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000204) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMultiplier response %@", [value description]); if (error != nil) { @@ -72240,14 +72003,14 @@ class SubscribeAttributeElectricalMeasurementDcPowerMultiplier : public Subscrib ~SubscribeAttributeElectricalMeasurementDcPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000204) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72280,14 +72043,14 @@ class ReadElectricalMeasurementDcPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000205) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerDivisor response %@", [value description]); if (error != nil) { @@ -72308,14 +72071,14 @@ class SubscribeAttributeElectricalMeasurementDcPowerDivisor : public SubscribeAt ~SubscribeAttributeElectricalMeasurementDcPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000205) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72348,14 +72111,14 @@ class ReadElectricalMeasurementAcFrequency : public ReadAttribute { ~ReadElectricalMeasurementAcFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000300) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequency response %@", [value description]); if (error != nil) { @@ -72376,14 +72139,14 @@ class SubscribeAttributeElectricalMeasurementAcFrequency : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementAcFrequency() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000300) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72416,14 +72179,14 @@ class ReadElectricalMeasurementAcFrequencyMin : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000301) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMin response %@", [value description]); if (error != nil) { @@ -72444,14 +72207,14 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMin : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcFrequencyMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000301) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72484,14 +72247,14 @@ class ReadElectricalMeasurementAcFrequencyMax : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000302) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMax response %@", [value description]); if (error != nil) { @@ -72512,14 +72275,14 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMax : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcFrequencyMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000302) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72552,14 +72315,14 @@ class ReadElectricalMeasurementNeutralCurrent : public ReadAttribute { ~ReadElectricalMeasurementNeutralCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000303) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNeutralCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.NeutralCurrent response %@", [value description]); if (error != nil) { @@ -72580,14 +72343,14 @@ class SubscribeAttributeElectricalMeasurementNeutralCurrent : public SubscribeAt ~SubscribeAttributeElectricalMeasurementNeutralCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000303) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72620,14 +72383,14 @@ class ReadElectricalMeasurementTotalActivePower : public ReadAttribute { ~ReadElectricalMeasurementTotalActivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000304) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalActivePower response %@", [value description]); if (error != nil) { @@ -72648,14 +72411,14 @@ class SubscribeAttributeElectricalMeasurementTotalActivePower : public Subscribe ~SubscribeAttributeElectricalMeasurementTotalActivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000304) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72688,14 +72451,14 @@ class ReadElectricalMeasurementTotalReactivePower : public ReadAttribute { ~ReadElectricalMeasurementTotalReactivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000305) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalReactivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalReactivePower response %@", [value description]); if (error != nil) { @@ -72716,14 +72479,14 @@ class SubscribeAttributeElectricalMeasurementTotalReactivePower : public Subscri ~SubscribeAttributeElectricalMeasurementTotalReactivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000305) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72756,14 +72519,14 @@ class ReadElectricalMeasurementTotalApparentPower : public ReadAttribute { ~ReadElectricalMeasurementTotalApparentPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000306) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalApparentPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalApparentPower response %@", [value description]); if (error != nil) { @@ -72784,14 +72547,14 @@ class SubscribeAttributeElectricalMeasurementTotalApparentPower : public Subscri ~SubscribeAttributeElectricalMeasurementTotalApparentPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000306) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72824,14 +72587,14 @@ class ReadElectricalMeasurementMeasured1stHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000307) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured1stHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured1stHarmonicCurrent response %@", [value description]); @@ -72853,14 +72616,14 @@ class SubscribeAttributeElectricalMeasurementMeasured1stHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000307) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72893,14 +72656,14 @@ class ReadElectricalMeasurementMeasured3rdHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000308) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured3rdHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured3rdHarmonicCurrent response %@", [value description]); @@ -72922,14 +72685,14 @@ class SubscribeAttributeElectricalMeasurementMeasured3rdHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000308) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -72962,14 +72725,14 @@ class ReadElectricalMeasurementMeasured5thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000309) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured5thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured5thHarmonicCurrent response %@", [value description]); @@ -72991,14 +72754,14 @@ class SubscribeAttributeElectricalMeasurementMeasured5thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000309) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73031,14 +72794,14 @@ class ReadElectricalMeasurementMeasured7thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured7thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured7thHarmonicCurrent response %@", [value description]); @@ -73060,14 +72823,14 @@ class SubscribeAttributeElectricalMeasurementMeasured7thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73100,14 +72863,14 @@ class ReadElectricalMeasurementMeasured9thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured9thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured9thHarmonicCurrent response %@", [value description]); @@ -73129,14 +72892,14 @@ class SubscribeAttributeElectricalMeasurementMeasured9thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73169,14 +72932,14 @@ class ReadElectricalMeasurementMeasured11thHarmonicCurrent : public ReadAttribut ~ReadElectricalMeasurementMeasured11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured11thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured11thHarmonicCurrent response %@", [value description]); @@ -73198,14 +72961,14 @@ class SubscribeAttributeElectricalMeasurementMeasured11thHarmonicCurrent : publi ~SubscribeAttributeElectricalMeasurementMeasured11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73238,14 +73001,14 @@ class ReadElectricalMeasurementMeasuredPhase1stHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase1stHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase1stHarmonicCurrent response %@", [value description]); @@ -73267,14 +73030,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase1stHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73307,14 +73070,14 @@ class ReadElectricalMeasurementMeasuredPhase3rdHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase3rdHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase3rdHarmonicCurrent response %@", [value description]); @@ -73336,14 +73099,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase3rdHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73376,14 +73139,14 @@ class ReadElectricalMeasurementMeasuredPhase5thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase5thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase5thHarmonicCurrent response %@", [value description]); @@ -73405,14 +73168,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase5thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73445,14 +73208,14 @@ class ReadElectricalMeasurementMeasuredPhase7thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000310) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase7thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase7thHarmonicCurrent response %@", [value description]); @@ -73474,14 +73237,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase7thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000310) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73514,14 +73277,14 @@ class ReadElectricalMeasurementMeasuredPhase9thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000311) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase9thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase9thHarmonicCurrent response %@", [value description]); @@ -73543,14 +73306,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase9thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000311) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73583,14 +73346,14 @@ class ReadElectricalMeasurementMeasuredPhase11thHarmonicCurrent : public ReadAtt ~ReadElectricalMeasurementMeasuredPhase11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000312) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase11thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase11thHarmonicCurrent response %@", [value description]); @@ -73612,14 +73375,14 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase11thHarmonicCurrent : ~SubscribeAttributeElectricalMeasurementMeasuredPhase11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000312) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73652,14 +73415,14 @@ class ReadElectricalMeasurementAcFrequencyMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000400) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMultiplier response %@", [value description]); if (error != nil) { @@ -73680,14 +73443,14 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMultiplier : public Subs ~SubscribeAttributeElectricalMeasurementAcFrequencyMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000400) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73720,14 +73483,14 @@ class ReadElectricalMeasurementAcFrequencyDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000401) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyDivisor response %@", [value description]); if (error != nil) { @@ -73748,14 +73511,14 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyDivisor : public Subscri ~SubscribeAttributeElectricalMeasurementAcFrequencyDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000401) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73788,14 +73551,14 @@ class ReadElectricalMeasurementPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000402) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerMultiplier response %@", [value description]); if (error != nil) { @@ -73816,14 +73579,14 @@ class SubscribeAttributeElectricalMeasurementPowerMultiplier : public SubscribeA ~SubscribeAttributeElectricalMeasurementPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000402) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73856,14 +73619,14 @@ class ReadElectricalMeasurementPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000403) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerDivisor response %@", [value description]); if (error != nil) { @@ -73884,14 +73647,14 @@ class SubscribeAttributeElectricalMeasurementPowerDivisor : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000403) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73924,14 +73687,14 @@ class ReadElectricalMeasurementHarmonicCurrentMultiplier : public ReadAttribute ~ReadElectricalMeasurementHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000404) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHarmonicCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.HarmonicCurrentMultiplier response %@", [value description]); @@ -73953,14 +73716,14 @@ class SubscribeAttributeElectricalMeasurementHarmonicCurrentMultiplier : public ~SubscribeAttributeElectricalMeasurementHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000404) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -73993,14 +73756,14 @@ class ReadElectricalMeasurementPhaseHarmonicCurrentMultiplier : public ReadAttri ~ReadElectricalMeasurementPhaseHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000405) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhaseHarmonicCurrentMultiplierWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PhaseHarmonicCurrentMultiplier response %@", [value description]); @@ -74022,14 +73785,14 @@ class SubscribeAttributeElectricalMeasurementPhaseHarmonicCurrentMultiplier : pu ~SubscribeAttributeElectricalMeasurementPhaseHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000405) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74062,14 +73825,14 @@ class ReadElectricalMeasurementInstantaneousVoltage : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000500) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousVoltage response %@", [value description]); if (error != nil) { @@ -74090,14 +73853,14 @@ class SubscribeAttributeElectricalMeasurementInstantaneousVoltage : public Subsc ~SubscribeAttributeElectricalMeasurementInstantaneousVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000500) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74130,14 +73893,14 @@ class ReadElectricalMeasurementInstantaneousLineCurrent : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousLineCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000501) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousLineCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousLineCurrent response %@", [value description]); @@ -74159,14 +73922,14 @@ class SubscribeAttributeElectricalMeasurementInstantaneousLineCurrent : public S ~SubscribeAttributeElectricalMeasurementInstantaneousLineCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000501) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74199,14 +73962,14 @@ class ReadElectricalMeasurementInstantaneousActiveCurrent : public ReadAttribute ~ReadElectricalMeasurementInstantaneousActiveCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000502) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousActiveCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousActiveCurrent response %@", [value description]); @@ -74228,14 +73991,14 @@ class SubscribeAttributeElectricalMeasurementInstantaneousActiveCurrent : public ~SubscribeAttributeElectricalMeasurementInstantaneousActiveCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000502) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74268,14 +74031,14 @@ class ReadElectricalMeasurementInstantaneousReactiveCurrent : public ReadAttribu ~ReadElectricalMeasurementInstantaneousReactiveCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000503) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousReactiveCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousReactiveCurrent response %@", [value description]); @@ -74297,14 +74060,14 @@ class SubscribeAttributeElectricalMeasurementInstantaneousReactiveCurrent : publ ~SubscribeAttributeElectricalMeasurementInstantaneousReactiveCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000503) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74337,14 +74100,14 @@ class ReadElectricalMeasurementInstantaneousPower : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000504) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousPower response %@", [value description]); if (error != nil) { @@ -74365,14 +74128,14 @@ class SubscribeAttributeElectricalMeasurementInstantaneousPower : public Subscri ~SubscribeAttributeElectricalMeasurementInstantaneousPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000504) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74405,14 +74168,14 @@ class ReadElectricalMeasurementRmsVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000505) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltage response %@", [value description]); if (error != nil) { @@ -74433,14 +74196,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltage : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementRmsVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000505) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74473,14 +74236,14 @@ class ReadElectricalMeasurementRmsVoltageMin : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000506) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMin response %@", [value description]); if (error != nil) { @@ -74501,14 +74264,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMin : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000506) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74541,14 +74304,14 @@ class ReadElectricalMeasurementRmsVoltageMax : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000507) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMax response %@", [value description]); if (error != nil) { @@ -74569,14 +74332,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMax : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000507) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74609,14 +74372,14 @@ class ReadElectricalMeasurementRmsCurrent : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000508) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrent response %@", [value description]); if (error != nil) { @@ -74637,14 +74400,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrent : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementRmsCurrent() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000508) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74677,14 +74440,14 @@ class ReadElectricalMeasurementRmsCurrentMin : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000509) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMin response %@", [value description]); if (error != nil) { @@ -74705,14 +74468,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMin : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsCurrentMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000509) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74745,14 +74508,14 @@ class ReadElectricalMeasurementRmsCurrentMax : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMax response %@", [value description]); if (error != nil) { @@ -74773,14 +74536,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMax : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsCurrentMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74813,14 +74576,14 @@ class ReadElectricalMeasurementActivePower : public ReadAttribute { ~ReadElectricalMeasurementActivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePower response %@", [value description]); if (error != nil) { @@ -74841,14 +74604,14 @@ class SubscribeAttributeElectricalMeasurementActivePower : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementActivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74881,14 +74644,14 @@ class ReadElectricalMeasurementActivePowerMin : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMin response %@", [value description]); if (error != nil) { @@ -74909,14 +74672,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMin : public SubscribeAt ~SubscribeAttributeElectricalMeasurementActivePowerMin() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -74949,14 +74712,14 @@ class ReadElectricalMeasurementActivePowerMax : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMax response %@", [value description]); if (error != nil) { @@ -74977,14 +74740,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMax : public SubscribeAt ~SubscribeAttributeElectricalMeasurementActivePowerMax() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75017,14 +74780,14 @@ class ReadElectricalMeasurementReactivePower : public ReadAttribute { ~ReadElectricalMeasurementReactivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePower response %@", [value description]); if (error != nil) { @@ -75045,14 +74808,14 @@ class SubscribeAttributeElectricalMeasurementReactivePower : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementReactivePower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75085,14 +74848,14 @@ class ReadElectricalMeasurementApparentPower : public ReadAttribute { ~ReadElectricalMeasurementApparentPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPower response %@", [value description]); if (error != nil) { @@ -75113,14 +74876,14 @@ class SubscribeAttributeElectricalMeasurementApparentPower : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementApparentPower() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75153,14 +74916,14 @@ class ReadElectricalMeasurementPowerFactor : public ReadAttribute { ~ReadElectricalMeasurementPowerFactor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000510) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactor response %@", [value description]); if (error != nil) { @@ -75181,14 +74944,14 @@ class SubscribeAttributeElectricalMeasurementPowerFactor : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementPowerFactor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000510) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75221,14 +74984,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public ReadA ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriod response %@", [value description]); @@ -75253,14 +75016,14 @@ class WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public Writ ~WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75292,14 +75055,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriod ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75332,14 +75095,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounter : public ReadAttrib ~ReadElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounter response %@", [value description]); @@ -75364,14 +75127,14 @@ class WriteElectricalMeasurementAverageRmsUnderVoltageCounter : public WriteAttr ~WriteElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75403,14 +75166,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounter : pub ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75443,14 +75206,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriod : public ReadAttribut ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriod response %@", [value description]); @@ -75475,14 +75238,14 @@ class WriteElectricalMeasurementRmsExtremeOverVoltagePeriod : public WriteAttrib ~WriteElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75514,14 +75277,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriod : publi ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75554,14 +75317,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriod : public ReadAttribu ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriod response %@", [value description]); @@ -75586,14 +75349,14 @@ class WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod : public WriteAttri ~WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75625,14 +75388,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriod : publ ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75665,14 +75428,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriod : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriod response %@", [value description]); if (error != nil) { @@ -75696,14 +75459,14 @@ class WriteElectricalMeasurementRmsVoltageSagPeriod : public WriteAttribute { ~WriteElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75733,14 +75496,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriod : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75773,14 +75536,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriod : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriod response %@", [value description]); if (error != nil) { @@ -75804,14 +75567,14 @@ class WriteElectricalMeasurementRmsVoltageSwellPeriod : public WriteAttribute { ~WriteElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -75841,14 +75604,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriod : public Subs ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75881,14 +75644,14 @@ class ReadElectricalMeasurementAcVoltageMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000600) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageMultiplier response %@", [value description]); if (error != nil) { @@ -75909,14 +75672,14 @@ class SubscribeAttributeElectricalMeasurementAcVoltageMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementAcVoltageMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000600) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -75949,14 +75712,14 @@ class ReadElectricalMeasurementAcVoltageDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000601) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageDivisor response %@", [value description]); if (error != nil) { @@ -75977,14 +75740,14 @@ class SubscribeAttributeElectricalMeasurementAcVoltageDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementAcVoltageDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000601) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76017,14 +75780,14 @@ class ReadElectricalMeasurementAcCurrentMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000602) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentMultiplier response %@", [value description]); if (error != nil) { @@ -76045,14 +75808,14 @@ class SubscribeAttributeElectricalMeasurementAcCurrentMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementAcCurrentMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000602) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76085,14 +75848,14 @@ class ReadElectricalMeasurementAcCurrentDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000603) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentDivisor response %@", [value description]); if (error != nil) { @@ -76113,14 +75876,14 @@ class SubscribeAttributeElectricalMeasurementAcCurrentDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementAcCurrentDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000603) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76153,14 +75916,14 @@ class ReadElectricalMeasurementAcPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000604) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcPowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcPowerMultiplier response %@", [value description]); if (error != nil) { @@ -76181,14 +75944,14 @@ class SubscribeAttributeElectricalMeasurementAcPowerMultiplier : public Subscrib ~SubscribeAttributeElectricalMeasurementAcPowerMultiplier() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000604) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76221,14 +75984,14 @@ class ReadElectricalMeasurementAcPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000605) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcPowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcPowerDivisor response %@", [value description]); if (error != nil) { @@ -76249,14 +76012,14 @@ class SubscribeAttributeElectricalMeasurementAcPowerDivisor : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcPowerDivisor() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000605) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76289,14 +76052,14 @@ class ReadElectricalMeasurementOverloadAlarmsMask : public ReadAttribute { ~ReadElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOverloadAlarmsMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.OverloadAlarmsMask response %@", [value description]); if (error != nil) { @@ -76320,14 +76083,14 @@ class WriteElectricalMeasurementOverloadAlarmsMask : public WriteAttribute { ~WriteElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -76357,14 +76120,14 @@ class SubscribeAttributeElectricalMeasurementOverloadAlarmsMask : public Subscri ~SubscribeAttributeElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76397,14 +76160,14 @@ class ReadElectricalMeasurementVoltageOverload : public ReadAttribute { ~ReadElectricalMeasurementVoltageOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000701) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVoltageOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.VoltageOverload response %@", [value description]); if (error != nil) { @@ -76425,14 +76188,14 @@ class SubscribeAttributeElectricalMeasurementVoltageOverload : public SubscribeA ~SubscribeAttributeElectricalMeasurementVoltageOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000701) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76465,14 +76228,14 @@ class ReadElectricalMeasurementCurrentOverload : public ReadAttribute { ~ReadElectricalMeasurementCurrentOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000702) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.CurrentOverload response %@", [value description]); if (error != nil) { @@ -76493,14 +76256,14 @@ class SubscribeAttributeElectricalMeasurementCurrentOverload : public SubscribeA ~SubscribeAttributeElectricalMeasurementCurrentOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000702) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76533,14 +76296,14 @@ class ReadElectricalMeasurementAcOverloadAlarmsMask : public ReadAttribute { ~ReadElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcOverloadAlarmsMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcOverloadAlarmsMask response %@", [value description]); if (error != nil) { @@ -76564,14 +76327,14 @@ class WriteElectricalMeasurementAcOverloadAlarmsMask : public WriteAttribute { ~WriteElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -76601,14 +76364,14 @@ class SubscribeAttributeElectricalMeasurementAcOverloadAlarmsMask : public Subsc ~SubscribeAttributeElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76641,14 +76404,14 @@ class ReadElectricalMeasurementAcVoltageOverload : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000801) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageOverload response %@", [value description]); if (error != nil) { @@ -76669,14 +76432,14 @@ class SubscribeAttributeElectricalMeasurementAcVoltageOverload : public Subscrib ~SubscribeAttributeElectricalMeasurementAcVoltageOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000801) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76709,14 +76472,14 @@ class ReadElectricalMeasurementAcCurrentOverload : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000802) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentOverload response %@", [value description]); if (error != nil) { @@ -76737,14 +76500,14 @@ class SubscribeAttributeElectricalMeasurementAcCurrentOverload : public Subscrib ~SubscribeAttributeElectricalMeasurementAcCurrentOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000802) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76777,14 +76540,14 @@ class ReadElectricalMeasurementAcActivePowerOverload : public ReadAttribute { ~ReadElectricalMeasurementAcActivePowerOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000803) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcActivePowerOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcActivePowerOverload response %@", [value description]); if (error != nil) { @@ -76805,14 +76568,14 @@ class SubscribeAttributeElectricalMeasurementAcActivePowerOverload : public Subs ~SubscribeAttributeElectricalMeasurementAcActivePowerOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000803) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76845,14 +76608,14 @@ class ReadElectricalMeasurementAcReactivePowerOverload : public ReadAttribute { ~ReadElectricalMeasurementAcReactivePowerOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000804) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcReactivePowerOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcReactivePowerOverload response %@", [value description]); @@ -76874,14 +76637,14 @@ class SubscribeAttributeElectricalMeasurementAcReactivePowerOverload : public Su ~SubscribeAttributeElectricalMeasurementAcReactivePowerOverload() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000804) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76914,14 +76677,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltage : public ReadAttribute { ~ReadElectricalMeasurementAverageRmsOverVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000805) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltage response %@", [value description]); if (error != nil) { @@ -76942,14 +76705,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltage : public Subs ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000805) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -76982,14 +76745,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltage : public ReadAttribute { ~ReadElectricalMeasurementAverageRmsUnderVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000806) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltage response %@", [value description]); if (error != nil) { @@ -77010,14 +76773,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltage : public Sub ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000806) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77050,14 +76813,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsExtremeOverVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000807) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltage response %@", [value description]); if (error != nil) { @@ -77078,14 +76841,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltage : public Subs ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000807) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77118,14 +76881,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsExtremeUnderVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000808) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltage response %@", [value description]); if (error != nil) { @@ -77146,14 +76909,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltage : public Sub ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltage() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000808) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77186,14 +76949,14 @@ class ReadElectricalMeasurementRmsVoltageSag : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSag() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000809) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSag response %@", [value description]); if (error != nil) { @@ -77214,14 +76977,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSag : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageSag() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000809) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77254,14 +77017,14 @@ class ReadElectricalMeasurementRmsVoltageSwell : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSwell() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000080A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwell response %@", [value description]); if (error != nil) { @@ -77282,14 +77045,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwell : public SubscribeA ~SubscribeAttributeElectricalMeasurementRmsVoltageSwell() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000080A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77322,14 +77085,14 @@ class ReadElectricalMeasurementLineCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementLineCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000901) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLineCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.LineCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77350,14 +77113,14 @@ class SubscribeAttributeElectricalMeasurementLineCurrentPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementLineCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000901) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77390,14 +77153,14 @@ class ReadElectricalMeasurementActiveCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000902) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActiveCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77418,14 +77181,14 @@ class SubscribeAttributeElectricalMeasurementActiveCurrentPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementActiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000902) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77458,14 +77221,14 @@ class ReadElectricalMeasurementReactiveCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementReactiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000903) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactiveCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactiveCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77486,14 +77249,14 @@ class SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseB : public Subs ~SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000903) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77526,14 +77289,14 @@ class ReadElectricalMeasurementRmsVoltagePhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltagePhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000905) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltagePhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltagePhaseB response %@", [value description]); if (error != nil) { @@ -77554,14 +77317,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltagePhaseB : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsVoltagePhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000905) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77594,14 +77357,14 @@ class ReadElectricalMeasurementRmsVoltageMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000906) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMinPhaseB response %@", [value description]); if (error != nil) { @@ -77622,14 +77385,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000906) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77662,14 +77425,14 @@ class ReadElectricalMeasurementRmsVoltageMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000907) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMaxPhaseB response %@", [value description]); if (error != nil) { @@ -77690,14 +77453,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000907) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77730,14 +77493,14 @@ class ReadElectricalMeasurementRmsCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000908) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77758,14 +77521,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentPhaseB : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsCurrentPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000908) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77798,14 +77561,14 @@ class ReadElectricalMeasurementRmsCurrentMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000909) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMinPhaseB response %@", [value description]); if (error != nil) { @@ -77826,14 +77589,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000909) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77866,14 +77629,14 @@ class ReadElectricalMeasurementRmsCurrentMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMaxPhaseB response %@", [value description]); if (error != nil) { @@ -77894,14 +77657,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -77934,14 +77697,14 @@ class ReadElectricalMeasurementActivePowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerPhaseB response %@", [value description]); if (error != nil) { @@ -77962,14 +77725,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementActivePowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78002,14 +77765,14 @@ class ReadElectricalMeasurementActivePowerMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMinPhaseB response %@", [value description]); if (error != nil) { @@ -78030,14 +77793,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMinPhaseB : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMinPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78070,14 +77833,14 @@ class ReadElectricalMeasurementActivePowerMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMaxPhaseB response %@", [value description]); if (error != nil) { @@ -78098,14 +77861,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseB : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78138,14 +77901,14 @@ class ReadElectricalMeasurementReactivePowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementReactivePowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePowerPhaseB response %@", [value description]); if (error != nil) { @@ -78166,14 +77929,14 @@ class SubscribeAttributeElectricalMeasurementReactivePowerPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementReactivePowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78206,14 +77969,14 @@ class ReadElectricalMeasurementApparentPowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementApparentPowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPowerPhaseB response %@", [value description]); if (error != nil) { @@ -78234,14 +77997,14 @@ class SubscribeAttributeElectricalMeasurementApparentPowerPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementApparentPowerPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78274,14 +78037,14 @@ class ReadElectricalMeasurementPowerFactorPhaseB : public ReadAttribute { ~ReadElectricalMeasurementPowerFactorPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000910) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactorPhaseB response %@", [value description]); if (error != nil) { @@ -78302,14 +78065,14 @@ class SubscribeAttributeElectricalMeasurementPowerFactorPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementPowerFactorPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000910) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78342,14 +78105,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB : public ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000911) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriodPhaseB response %@", [value description]); @@ -78371,14 +78134,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodP ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000911) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78412,14 +78175,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseB : public ReadA ~ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000912) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageCounterPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltageCounterPhaseB response %@", [value description]); @@ -78441,14 +78204,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseB ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000912) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78481,14 +78244,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB : public Read ~ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000913) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounterPhaseB response %@", [value description]); @@ -78510,14 +78273,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000913) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78550,14 +78313,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB : public ReadAt ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000914) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriodPhaseB response %@", [value description]); @@ -78579,14 +78342,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB : ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000914) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78619,14 +78382,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB : public ReadA ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000915) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriodPhaseB response %@", [value description]); @@ -78648,14 +78411,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000915) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78688,14 +78451,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriodPhaseB : public ReadAttribute ~ReadElectricalMeasurementRmsVoltageSagPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000916) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriodPhaseB response %@", [value description]); @@ -78717,14 +78480,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseB : public ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000916) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78757,14 +78520,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseB : public ReadAttribut ~ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000917) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriodPhaseB response %@", [value description]); @@ -78786,14 +78549,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseB : publi ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseB() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000917) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78826,14 +78589,14 @@ class ReadElectricalMeasurementLineCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementLineCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A01) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLineCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.LineCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78854,14 +78617,14 @@ class SubscribeAttributeElectricalMeasurementLineCurrentPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementLineCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A01) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78894,14 +78657,14 @@ class ReadElectricalMeasurementActiveCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A02) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActiveCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78922,14 +78685,14 @@ class SubscribeAttributeElectricalMeasurementActiveCurrentPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementActiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A02) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -78962,14 +78725,14 @@ class ReadElectricalMeasurementReactiveCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementReactiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A03) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactiveCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactiveCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78990,14 +78753,14 @@ class SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseC : public Subs ~SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A03) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79030,14 +78793,14 @@ class ReadElectricalMeasurementRmsVoltagePhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltagePhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A05) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltagePhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltagePhaseC response %@", [value description]); if (error != nil) { @@ -79058,14 +78821,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltagePhaseC : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsVoltagePhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A05) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79098,14 +78861,14 @@ class ReadElectricalMeasurementRmsVoltageMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A06) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMinPhaseC response %@", [value description]); if (error != nil) { @@ -79126,14 +78889,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A06) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79166,14 +78929,14 @@ class ReadElectricalMeasurementRmsVoltageMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A07) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMaxPhaseC response %@", [value description]); if (error != nil) { @@ -79194,14 +78957,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A07) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79234,14 +78997,14 @@ class ReadElectricalMeasurementRmsCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A08) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -79262,14 +79025,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentPhaseC : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsCurrentPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A08) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79302,14 +79065,14 @@ class ReadElectricalMeasurementRmsCurrentMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A09) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMinPhaseC response %@", [value description]); if (error != nil) { @@ -79330,14 +79093,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A09) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79370,14 +79133,14 @@ class ReadElectricalMeasurementRmsCurrentMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMaxPhaseC response %@", [value description]); if (error != nil) { @@ -79398,14 +79161,14 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79438,14 +79201,14 @@ class ReadElectricalMeasurementActivePowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerPhaseC response %@", [value description]); if (error != nil) { @@ -79466,14 +79229,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementActivePowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79506,14 +79269,14 @@ class ReadElectricalMeasurementActivePowerMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMinPhaseC response %@", [value description]); if (error != nil) { @@ -79534,14 +79297,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMinPhaseC : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMinPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79574,14 +79337,14 @@ class ReadElectricalMeasurementActivePowerMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMaxPhaseC response %@", [value description]); if (error != nil) { @@ -79602,14 +79365,14 @@ class SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseC : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79642,14 +79405,14 @@ class ReadElectricalMeasurementReactivePowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementReactivePowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePowerPhaseC response %@", [value description]); if (error != nil) { @@ -79670,14 +79433,14 @@ class SubscribeAttributeElectricalMeasurementReactivePowerPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementReactivePowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79710,14 +79473,14 @@ class ReadElectricalMeasurementApparentPowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementApparentPowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPowerPhaseC response %@", [value description]); if (error != nil) { @@ -79738,14 +79501,14 @@ class SubscribeAttributeElectricalMeasurementApparentPowerPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementApparentPowerPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79778,14 +79541,14 @@ class ReadElectricalMeasurementPowerFactorPhaseC : public ReadAttribute { ~ReadElectricalMeasurementPowerFactorPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A10) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactorPhaseC response %@", [value description]); if (error != nil) { @@ -79806,14 +79569,14 @@ class SubscribeAttributeElectricalMeasurementPowerFactorPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementPowerFactorPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A10) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79846,14 +79609,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC : public ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A11) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriodPhaseC response %@", [value description]); @@ -79875,14 +79638,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodP ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A11) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79916,14 +79679,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseC : public ReadA ~ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A12) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageCounterPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltageCounterPhaseC response %@", [value description]); @@ -79945,14 +79708,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseC ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A12) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -79985,14 +79748,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC : public Read ~ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A13) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounterPhaseC response %@", [value description]); @@ -80014,14 +79777,14 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A13) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80054,14 +79817,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC : public ReadAt ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A14) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriodPhaseC response %@", [value description]); @@ -80083,14 +79846,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC : ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A14) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80123,14 +79886,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC : public ReadA ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A15) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriodPhaseC response %@", [value description]); @@ -80152,14 +79915,14 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A15) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80192,14 +79955,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriodPhaseC : public ReadAttribute ~ReadElectricalMeasurementRmsVoltageSagPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A16) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriodPhaseC response %@", [value description]); @@ -80221,14 +79984,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseC : public ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A16) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80261,14 +80024,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseC : public ReadAttribut ~ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A17) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriodPhaseC response %@", [value description]); @@ -80290,14 +80053,14 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseC : publi ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseC() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A17) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80330,14 +80093,14 @@ class ReadElectricalMeasurementGeneratedCommandList : public ReadAttribute { ~ReadElectricalMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -80358,14 +80121,14 @@ class SubscribeAttributeElectricalMeasurementGeneratedCommandList : public Subsc ~SubscribeAttributeElectricalMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80398,14 +80161,14 @@ class ReadElectricalMeasurementAcceptedCommandList : public ReadAttribute { ~ReadElectricalMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -80426,14 +80189,14 @@ class SubscribeAttributeElectricalMeasurementAcceptedCommandList : public Subscr ~SubscribeAttributeElectricalMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80466,14 +80229,14 @@ class ReadElectricalMeasurementAttributeList : public ReadAttribute { ~ReadElectricalMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -80494,14 +80257,14 @@ class SubscribeAttributeElectricalMeasurementAttributeList : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80534,14 +80297,14 @@ class ReadElectricalMeasurementFeatureMap : public ReadAttribute { ~ReadElectricalMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -80562,14 +80325,14 @@ class SubscribeAttributeElectricalMeasurementFeatureMap : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80602,14 +80365,14 @@ class ReadElectricalMeasurementClusterRevision : public ReadAttribute { ~ReadElectricalMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -80630,14 +80393,14 @@ class SubscribeAttributeElectricalMeasurementClusterRevision : public SubscribeA ~SubscribeAttributeElectricalMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -80789,13 +80552,13 @@ class TestClusterTest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -80830,13 +80593,13 @@ class TestClusterTestNotHandled : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestNotHandledParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestNotHandledParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -80871,13 +80634,13 @@ class TestClusterTestSpecific : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestSpecificParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestSpecificParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -80885,7 +80648,7 @@ class TestClusterTestSpecific : public ClusterCommand { while (repeatCount--) { [cluster testSpecificWithParams:params completionHandler:^( - CHIPTestClusterClusterTestSpecificResponseParams * _Nullable values, NSError * _Nullable error) { + MTRTestClusterClusterTestSpecificResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -80914,13 +80677,13 @@ class TestClusterTestUnknownCommand : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestUnknownCommandParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestUnknownCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -80957,13 +80720,13 @@ class TestClusterTestAddArguments : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.arg1 = [NSNumber numberWithUnsignedChar:mRequest.arg1]; @@ -80972,7 +80735,7 @@ class TestClusterTestAddArguments : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testAddArgumentsWithParams:params - completionHandler:^(CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81004,33 +80767,32 @@ class TestClusterTestSimpleArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestSimpleArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestSimpleArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.arg1 = [NSNumber numberWithBool:mRequest.arg1]; uint16_t repeatCount = mRepeatCount.ValueOr(1); uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { - [cluster - testSimpleArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestSimpleArgumentResponseParams * _Nullable values, - NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; + [cluster testSimpleArgumentRequestWithParams:params + completionHandler:^(MTRTestClusterClusterTestSimpleArgumentResponseParams * _Nullable values, + NSError * _Nullable error) { + NSLog(@"Values: %@", values); + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; } return CHIP_NO_ERROR; } @@ -81060,23 +80822,23 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestStructArrayArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestStructArrayArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.arg1) { - CHIPTestClusterClusterNestedStructList * newElement_0; - newElement_0 = [CHIPTestClusterClusterNestedStructList new]; + MTRTestClusterClusterNestedStructList * newElement_0; + newElement_0 = [MTRTestClusterClusterNestedStructList new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; - newElement_0.c = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.c = [MTRTestClusterClusterSimpleStruct new]; newElement_0.c.a = [NSNumber numberWithUnsignedChar:entry_0.c.a]; newElement_0.c.b = [NSNumber numberWithBool:entry_0.c.b]; newElement_0.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c.c)]; @@ -81090,8 +80852,8 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; for (auto & entry_2 : entry_0.d) { - CHIPTestClusterClusterSimpleStruct * newElement_2; - newElement_2 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_2; + newElement_2 = [MTRTestClusterClusterSimpleStruct new]; newElement_2.a = [NSNumber numberWithUnsignedChar:entry_2.a]; newElement_2.b = [NSNumber numberWithBool:entry_2.b]; newElement_2.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.c)]; @@ -81140,8 +80902,8 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.arg2) { - CHIPTestClusterClusterSimpleStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterSimpleStruct new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; newElement_0.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c)]; @@ -81181,7 +80943,7 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { while (repeatCount--) { [cluster testStructArrayArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable values, + MTRTestClusterClusterTestStructArrayArgumentResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81220,16 +80982,16 @@ class TestClusterTestStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestStructArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.arg1 = [CHIPTestClusterClusterSimpleStruct new]; + params.arg1 = [MTRTestClusterClusterSimpleStruct new]; params.arg1.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.a]; params.arg1.b = [NSNumber numberWithBool:mRequest.arg1.b]; params.arg1.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.arg1.c)]; @@ -81244,7 +81006,7 @@ class TestClusterTestStructArgumentRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testStructArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81278,19 +81040,19 @@ class TestClusterTestNestedStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.arg1 = [CHIPTestClusterClusterNestedStruct new]; + params.arg1 = [MTRTestClusterClusterNestedStruct new]; params.arg1.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.a]; params.arg1.b = [NSNumber numberWithBool:mRequest.arg1.b]; - params.arg1.c = [CHIPTestClusterClusterSimpleStruct new]; + params.arg1.c = [MTRTestClusterClusterSimpleStruct new]; params.arg1.c.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.c.a]; params.arg1.c.b = [NSNumber numberWithBool:mRequest.arg1.c.b]; params.arg1.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.arg1.c.c)]; @@ -81305,7 +81067,7 @@ class TestClusterTestNestedStructArgumentRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testNestedStructArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81339,20 +81101,20 @@ class TestClusterTestListStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestListStructArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.arg1) { - CHIPTestClusterClusterSimpleStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterSimpleStruct new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; newElement_0.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c)]; @@ -81371,7 +81133,7 @@ class TestClusterTestListStructArgumentRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testListStructArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81406,13 +81168,13 @@ class TestClusterTestListInt8UArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables @@ -81428,7 +81190,7 @@ class TestClusterTestListInt8UArgumentRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testListInt8UArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81462,19 +81224,19 @@ class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.arg1 = [CHIPTestClusterClusterNestedStructList new]; + params.arg1 = [MTRTestClusterClusterNestedStructList new]; params.arg1.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.a]; params.arg1.b = [NSNumber numberWithBool:mRequest.arg1.b]; - params.arg1.c = [CHIPTestClusterClusterSimpleStruct new]; + params.arg1.c = [MTRTestClusterClusterSimpleStruct new]; params.arg1.c.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.c.a]; params.arg1.c.b = [NSNumber numberWithBool:mRequest.arg1.c.b]; params.arg1.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.arg1.c.c)]; @@ -81488,8 +81250,8 @@ class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; for (auto & entry_1 : mRequest.arg1.d) { - CHIPTestClusterClusterSimpleStruct * newElement_1; - newElement_1 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_1; + newElement_1 = [MTRTestClusterClusterSimpleStruct new]; newElement_1.a = [NSNumber numberWithUnsignedChar:entry_1.a]; newElement_1.b = [NSNumber numberWithBool:entry_1.b]; newElement_1.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_1.c)]; @@ -81535,7 +81297,7 @@ class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81569,23 +81331,23 @@ class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.arg1) { - CHIPTestClusterClusterNestedStructList * newElement_0; - newElement_0 = [CHIPTestClusterClusterNestedStructList new]; + MTRTestClusterClusterNestedStructList * newElement_0; + newElement_0 = [MTRTestClusterClusterNestedStructList new]; newElement_0.a = [NSNumber numberWithUnsignedChar:entry_0.a]; newElement_0.b = [NSNumber numberWithBool:entry_0.b]; - newElement_0.c = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.c = [MTRTestClusterClusterSimpleStruct new]; newElement_0.c.a = [NSNumber numberWithUnsignedChar:entry_0.c.a]; newElement_0.c.b = [NSNumber numberWithBool:entry_0.c.b]; newElement_0.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c.c)]; @@ -81599,8 +81361,8 @@ class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; for (auto & entry_2 : entry_0.d) { - CHIPTestClusterClusterSimpleStruct * newElement_2; - newElement_2 = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * newElement_2; + newElement_2 = [MTRTestClusterClusterSimpleStruct new]; newElement_2.a = [NSNumber numberWithUnsignedChar:entry_2.a]; newElement_2.b = [NSNumber numberWithBool:entry_2.b]; newElement_2.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.c)]; @@ -81651,7 +81413,7 @@ class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand while (repeatCount--) { [cluster testListNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81686,13 +81448,13 @@ class TestClusterTestListInt8UReverseRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; { // Scope for our temporary variables @@ -81709,7 +81471,7 @@ class TestClusterTestListInt8UReverseRequest : public ClusterCommand { while (repeatCount--) { [cluster testListInt8UReverseRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81743,13 +81505,13 @@ class TestClusterTestEnumsRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestEnumsRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestEnumsRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.arg1 = [NSNumber numberWithUnsignedShort:chip::to_underlying(mRequest.arg1)]; @@ -81759,7 +81521,7 @@ class TestClusterTestEnumsRequest : public ClusterCommand { while (repeatCount--) { [cluster testEnumsRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterTestEnumsResponseParams * _Nullable values, NSError * _Nullable error) { + MTRTestClusterClusterTestEnumsResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; if (error != nil) { @@ -81790,13 +81552,13 @@ class TestClusterTestNullableOptionalRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestNullableOptionalRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.arg1.HasValue()) { @@ -81813,7 +81575,7 @@ class TestClusterTestNullableOptionalRequest : public ClusterCommand { while (repeatCount--) { [cluster testNullableOptionalRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -81862,13 +81624,13 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestComplexNullableOptionalRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestComplexNullableOptionalRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.nullableInt.IsNull()) { @@ -81919,7 +81681,7 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { if (mRequest.nullableStruct.IsNull()) { params.nullableStruct = nil; } else { - params.nullableStruct = [CHIPTestClusterClusterSimpleStruct new]; + params.nullableStruct = [MTRTestClusterClusterSimpleStruct new]; params.nullableStruct.a = [NSNumber numberWithUnsignedChar:mRequest.nullableStruct.Value().a]; params.nullableStruct.b = [NSNumber numberWithBool:mRequest.nullableStruct.Value().b]; params.nullableStruct.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.nullableStruct.Value().c)]; @@ -81933,7 +81695,7 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { params.nullableStruct.h = [NSNumber numberWithDouble:mRequest.nullableStruct.Value().h]; } if (mRequest.optionalStruct.HasValue()) { - params.optionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + params.optionalStruct = [MTRTestClusterClusterSimpleStruct new]; params.optionalStruct.a = [NSNumber numberWithUnsignedChar:mRequest.optionalStruct.Value().a]; params.optionalStruct.b = [NSNumber numberWithBool:mRequest.optionalStruct.Value().b]; params.optionalStruct.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.optionalStruct.Value().c)]; @@ -81952,7 +81714,7 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { if (mRequest.nullableOptionalStruct.Value().IsNull()) { params.nullableOptionalStruct = nil; } else { - params.nullableOptionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + params.nullableOptionalStruct = [MTRTestClusterClusterSimpleStruct new]; params.nullableOptionalStruct.a = [NSNumber numberWithUnsignedChar:mRequest.nullableOptionalStruct.Value().Value().a]; params.nullableOptionalStruct.b = [NSNumber numberWithBool:mRequest.nullableOptionalStruct.Value().Value().b]; @@ -82021,7 +81783,7 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { [cluster testComplexNullableOptionalRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable values, + MTRTestClusterClusterTestComplexNullableOptionalResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -82068,16 +81830,16 @@ class TestClusterSimpleStructEchoRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterSimpleStructEchoRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterSimpleStructEchoRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.arg1 = [CHIPTestClusterClusterSimpleStruct new]; + params.arg1 = [MTRTestClusterClusterSimpleStruct new]; params.arg1.a = [NSNumber numberWithUnsignedChar:mRequest.arg1.a]; params.arg1.b = [NSNumber numberWithBool:mRequest.arg1.b]; params.arg1.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.arg1.c)]; @@ -82092,7 +81854,7 @@ class TestClusterSimpleStructEchoRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster simpleStructEchoRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterSimpleStructResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterSimpleStructResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -82124,13 +81886,13 @@ class TestClusterTimedInvokeRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTimedInvokeRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTimedInvokeRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; uint16_t repeatCount = mRepeatCount.ValueOr(1); @@ -82166,13 +81928,13 @@ class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; if (mRequest.arg1.HasValue()) { @@ -82216,13 +81978,13 @@ class TestClusterTestEmitTestEventRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestEmitTestEventRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestEmitTestEventRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.arg1 = [NSNumber numberWithUnsignedChar:mRequest.arg1]; @@ -82232,7 +81994,7 @@ class TestClusterTestEmitTestEventRequest : public ClusterCommand { uint16_t __block responsesNeeded = repeatCount; while (repeatCount--) { [cluster testEmitTestEventRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestEmitTestEventResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterTestEmitTestEventResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -82264,13 +82026,13 @@ class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + __auto_type * params = [[MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.arg1 = [NSNumber numberWithUnsignedChar:mRequest.arg1]; @@ -82280,7 +82042,7 @@ class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { [cluster testEmitTestFabricScopedEventRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable values, + MTRTestClusterClusterTestEmitTestFabricScopedEventResponseParams * _Nullable values, NSError * _Nullable error) { NSLog(@"Values: %@", values); responsesNeeded--; @@ -82312,12 +82074,12 @@ class ReadTestClusterBoolean : public ReadAttribute { ~ReadTestClusterBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Boolean response %@", [value description]); if (error != nil) { @@ -82341,12 +82103,12 @@ class WriteTestClusterBoolean : public WriteAttribute { ~WriteTestClusterBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82376,12 +82138,12 @@ class SubscribeAttributeTestClusterBoolean : public SubscribeAttribute { ~SubscribeAttributeTestClusterBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82414,12 +82176,12 @@ class ReadTestClusterBitmap8 : public ReadAttribute { ~ReadTestClusterBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap8 response %@", [value description]); if (error != nil) { @@ -82443,12 +82205,12 @@ class WriteTestClusterBitmap8 : public WriteAttribute { ~WriteTestClusterBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82478,12 +82240,12 @@ class SubscribeAttributeTestClusterBitmap8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82516,12 +82278,12 @@ class ReadTestClusterBitmap16 : public ReadAttribute { ~ReadTestClusterBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap16 response %@", [value description]); if (error != nil) { @@ -82545,12 +82307,12 @@ class WriteTestClusterBitmap16 : public WriteAttribute { ~WriteTestClusterBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82580,12 +82342,12 @@ class SubscribeAttributeTestClusterBitmap16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82618,12 +82380,12 @@ class ReadTestClusterBitmap32 : public ReadAttribute { ~ReadTestClusterBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap32 response %@", [value description]); if (error != nil) { @@ -82647,12 +82409,12 @@ class WriteTestClusterBitmap32 : public WriteAttribute { ~WriteTestClusterBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82682,12 +82444,12 @@ class SubscribeAttributeTestClusterBitmap32 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82720,12 +82482,12 @@ class ReadTestClusterBitmap64 : public ReadAttribute { ~ReadTestClusterBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap64 response %@", [value description]); if (error != nil) { @@ -82749,12 +82511,12 @@ class WriteTestClusterBitmap64 : public WriteAttribute { ~WriteTestClusterBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82784,12 +82546,12 @@ class SubscribeAttributeTestClusterBitmap64 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82822,12 +82584,12 @@ class ReadTestClusterInt8u : public ReadAttribute { ~ReadTestClusterInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int8u response %@", [value description]); if (error != nil) { @@ -82851,12 +82613,12 @@ class WriteTestClusterInt8u : public WriteAttribute { ~WriteTestClusterInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82886,12 +82648,12 @@ class SubscribeAttributeTestClusterInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -82924,12 +82686,12 @@ class ReadTestClusterInt16u : public ReadAttribute { ~ReadTestClusterInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int16u response %@", [value description]); if (error != nil) { @@ -82953,12 +82715,12 @@ class WriteTestClusterInt16u : public WriteAttribute { ~WriteTestClusterInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -82988,12 +82750,12 @@ class SubscribeAttributeTestClusterInt16u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83026,12 +82788,12 @@ class ReadTestClusterInt24u : public ReadAttribute { ~ReadTestClusterInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt24uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int24u response %@", [value description]); if (error != nil) { @@ -83055,12 +82817,12 @@ class WriteTestClusterInt24u : public WriteAttribute { ~WriteTestClusterInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83090,12 +82852,12 @@ class SubscribeAttributeTestClusterInt24u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83128,12 +82890,12 @@ class ReadTestClusterInt32u : public ReadAttribute { ~ReadTestClusterInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int32u response %@", [value description]); if (error != nil) { @@ -83157,12 +82919,12 @@ class WriteTestClusterInt32u : public WriteAttribute { ~WriteTestClusterInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83192,12 +82954,12 @@ class SubscribeAttributeTestClusterInt32u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83230,12 +82992,12 @@ class ReadTestClusterInt40u : public ReadAttribute { ~ReadTestClusterInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt40uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int40u response %@", [value description]); if (error != nil) { @@ -83259,12 +83021,12 @@ class WriteTestClusterInt40u : public WriteAttribute { ~WriteTestClusterInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83294,12 +83056,12 @@ class SubscribeAttributeTestClusterInt40u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83332,12 +83094,12 @@ class ReadTestClusterInt48u : public ReadAttribute { ~ReadTestClusterInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt48uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int48u response %@", [value description]); if (error != nil) { @@ -83361,12 +83123,12 @@ class WriteTestClusterInt48u : public WriteAttribute { ~WriteTestClusterInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83396,12 +83158,12 @@ class SubscribeAttributeTestClusterInt48u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83434,12 +83196,12 @@ class ReadTestClusterInt56u : public ReadAttribute { ~ReadTestClusterInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt56uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int56u response %@", [value description]); if (error != nil) { @@ -83463,12 +83225,12 @@ class WriteTestClusterInt56u : public WriteAttribute { ~WriteTestClusterInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83498,12 +83260,12 @@ class SubscribeAttributeTestClusterInt56u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83536,12 +83298,12 @@ class ReadTestClusterInt64u : public ReadAttribute { ~ReadTestClusterInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int64u response %@", [value description]); if (error != nil) { @@ -83565,12 +83327,12 @@ class WriteTestClusterInt64u : public WriteAttribute { ~WriteTestClusterInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83600,12 +83362,12 @@ class SubscribeAttributeTestClusterInt64u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83638,12 +83400,12 @@ class ReadTestClusterInt8s : public ReadAttribute { ~ReadTestClusterInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int8s response %@", [value description]); if (error != nil) { @@ -83667,12 +83429,12 @@ class WriteTestClusterInt8s : public WriteAttribute { ~WriteTestClusterInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83702,12 +83464,12 @@ class SubscribeAttributeTestClusterInt8s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83740,12 +83502,12 @@ class ReadTestClusterInt16s : public ReadAttribute { ~ReadTestClusterInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int16s response %@", [value description]); if (error != nil) { @@ -83769,12 +83531,12 @@ class WriteTestClusterInt16s : public WriteAttribute { ~WriteTestClusterInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83804,12 +83566,12 @@ class SubscribeAttributeTestClusterInt16s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83842,12 +83604,12 @@ class ReadTestClusterInt24s : public ReadAttribute { ~ReadTestClusterInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt24sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int24s response %@", [value description]); if (error != nil) { @@ -83871,12 +83633,12 @@ class WriteTestClusterInt24s : public WriteAttribute { ~WriteTestClusterInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -83906,12 +83668,12 @@ class SubscribeAttributeTestClusterInt24s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -83944,12 +83706,12 @@ class ReadTestClusterInt32s : public ReadAttribute { ~ReadTestClusterInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int32s response %@", [value description]); if (error != nil) { @@ -83973,12 +83735,12 @@ class WriteTestClusterInt32s : public WriteAttribute { ~WriteTestClusterInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84008,12 +83770,12 @@ class SubscribeAttributeTestClusterInt32s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84046,12 +83808,12 @@ class ReadTestClusterInt40s : public ReadAttribute { ~ReadTestClusterInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt40sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int40s response %@", [value description]); if (error != nil) { @@ -84075,12 +83837,12 @@ class WriteTestClusterInt40s : public WriteAttribute { ~WriteTestClusterInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84110,12 +83872,12 @@ class SubscribeAttributeTestClusterInt40s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84148,12 +83910,12 @@ class ReadTestClusterInt48s : public ReadAttribute { ~ReadTestClusterInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt48sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int48s response %@", [value description]); if (error != nil) { @@ -84177,12 +83939,12 @@ class WriteTestClusterInt48s : public WriteAttribute { ~WriteTestClusterInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84212,12 +83974,12 @@ class SubscribeAttributeTestClusterInt48s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84250,12 +84012,12 @@ class ReadTestClusterInt56s : public ReadAttribute { ~ReadTestClusterInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt56sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int56s response %@", [value description]); if (error != nil) { @@ -84279,12 +84041,12 @@ class WriteTestClusterInt56s : public WriteAttribute { ~WriteTestClusterInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84314,12 +84076,12 @@ class SubscribeAttributeTestClusterInt56s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84352,12 +84114,12 @@ class ReadTestClusterInt64s : public ReadAttribute { ~ReadTestClusterInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int64s response %@", [value description]); if (error != nil) { @@ -84381,12 +84143,12 @@ class WriteTestClusterInt64s : public WriteAttribute { ~WriteTestClusterInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84416,12 +84178,12 @@ class SubscribeAttributeTestClusterInt64s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84454,12 +84216,12 @@ class ReadTestClusterEnum8 : public ReadAttribute { ~ReadTestClusterEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Enum8 response %@", [value description]); if (error != nil) { @@ -84483,12 +84245,12 @@ class WriteTestClusterEnum8 : public WriteAttribute { ~WriteTestClusterEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84518,12 +84280,12 @@ class SubscribeAttributeTestClusterEnum8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84556,12 +84318,12 @@ class ReadTestClusterEnum16 : public ReadAttribute { ~ReadTestClusterEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Enum16 response %@", [value description]); if (error != nil) { @@ -84585,12 +84347,12 @@ class WriteTestClusterEnum16 : public WriteAttribute { ~WriteTestClusterEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84620,12 +84382,12 @@ class SubscribeAttributeTestClusterEnum16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84658,12 +84420,12 @@ class ReadTestClusterFloatSingle : public ReadAttribute { ~ReadTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FloatSingle response %@", [value description]); if (error != nil) { @@ -84687,12 +84449,12 @@ class WriteTestClusterFloatSingle : public WriteAttribute { ~WriteTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84722,12 +84484,12 @@ class SubscribeAttributeTestClusterFloatSingle : public SubscribeAttribute { ~SubscribeAttributeTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84760,12 +84522,12 @@ class ReadTestClusterFloatDouble : public ReadAttribute { ~ReadTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FloatDouble response %@", [value description]); if (error != nil) { @@ -84789,12 +84551,12 @@ class WriteTestClusterFloatDouble : public WriteAttribute { ~WriteTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84824,12 +84586,12 @@ class SubscribeAttributeTestClusterFloatDouble : public SubscribeAttribute { ~SubscribeAttributeTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84862,12 +84624,12 @@ class ReadTestClusterOctetString : public ReadAttribute { ~ReadTestClusterOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.OctetString response %@", [value description]); if (error != nil) { @@ -84891,12 +84653,12 @@ class WriteTestClusterOctetString : public WriteAttribute { ~WriteTestClusterOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -84926,12 +84688,12 @@ class SubscribeAttributeTestClusterOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -84964,12 +84726,12 @@ class ReadTestClusterListInt8u : public ReadAttribute { ~ReadTestClusterListInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListInt8u response %@", [value description]); if (error != nil) { @@ -84994,12 +84756,12 @@ class WriteTestClusterListInt8u : public WriteAttribute { ~WriteTestClusterListInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85039,12 +84801,12 @@ class SubscribeAttributeTestClusterListInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterListInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85077,12 +84839,12 @@ class ReadTestClusterListOctetString : public ReadAttribute { ~ReadTestClusterListOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeListOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListOctetString response %@", [value description]); if (error != nil) { @@ -85107,12 +84869,12 @@ class WriteTestClusterListOctetString : public WriteAttribute { ~WriteTestClusterListOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85152,12 +84914,12 @@ class SubscribeAttributeTestClusterListOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterListOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85190,12 +84952,12 @@ class ReadTestClusterListStructOctetString : public ReadAttribute { ~ReadTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeListStructOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListStructOctetString response %@", [value description]); if (error != nil) { @@ -85220,12 +84982,12 @@ class WriteTestClusterListStructOctetString : public WriteAttribute { ~WriteTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85233,8 +84995,8 @@ class WriteTestClusterListStructOctetString : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPTestClusterClusterTestListStructOctet * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestListStructOctet new]; + MTRTestClusterClusterTestListStructOctet * newElement_0; + newElement_0 = [MTRTestClusterClusterTestListStructOctet new]; newElement_0.member1 = [NSNumber numberWithUnsignedLongLong:entry_0.member1]; newElement_0.member2 = [NSData dataWithBytes:entry_0.member2.data() length:entry_0.member2.size()]; [array_0 addObject:newElement_0]; @@ -85268,12 +85030,12 @@ class SubscribeAttributeTestClusterListStructOctetString : public SubscribeAttri ~SubscribeAttributeTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85306,12 +85068,12 @@ class ReadTestClusterLongOctetString : public ReadAttribute { ~ReadTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.LongOctetString response %@", [value description]); if (error != nil) { @@ -85335,12 +85097,12 @@ class WriteTestClusterLongOctetString : public WriteAttribute { ~WriteTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85370,12 +85132,12 @@ class SubscribeAttributeTestClusterLongOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85408,12 +85170,12 @@ class ReadTestClusterCharString : public ReadAttribute { ~ReadTestClusterCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.CharString response %@", [value description]); if (error != nil) { @@ -85437,12 +85199,12 @@ class WriteTestClusterCharString : public WriteAttribute { ~WriteTestClusterCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85474,12 +85236,12 @@ class SubscribeAttributeTestClusterCharString : public SubscribeAttribute { ~SubscribeAttributeTestClusterCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85512,12 +85274,12 @@ class ReadTestClusterLongCharString : public ReadAttribute { ~ReadTestClusterLongCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.LongCharString response %@", [value description]); if (error != nil) { @@ -85541,12 +85303,12 @@ class WriteTestClusterLongCharString : public WriteAttribute { ~WriteTestClusterLongCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85578,12 +85340,12 @@ class SubscribeAttributeTestClusterLongCharString : public SubscribeAttribute { ~SubscribeAttributeTestClusterLongCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85616,12 +85378,12 @@ class ReadTestClusterEpochUs : public ReadAttribute { ~ReadTestClusterEpochUs() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EpochUs response %@", [value description]); if (error != nil) { @@ -85645,12 +85407,12 @@ class WriteTestClusterEpochUs : public WriteAttribute { ~WriteTestClusterEpochUs() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85680,12 +85442,12 @@ class SubscribeAttributeTestClusterEpochUs : public SubscribeAttribute { ~SubscribeAttributeTestClusterEpochUs() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85718,12 +85480,12 @@ class ReadTestClusterEpochS : public ReadAttribute { ~ReadTestClusterEpochS() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EpochS response %@", [value description]); if (error != nil) { @@ -85747,12 +85509,12 @@ class WriteTestClusterEpochS : public WriteAttribute { ~WriteTestClusterEpochS() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85782,12 +85544,12 @@ class SubscribeAttributeTestClusterEpochS : public SubscribeAttribute { ~SubscribeAttributeTestClusterEpochS() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85820,12 +85582,12 @@ class ReadTestClusterVendorId : public ReadAttribute { ~ReadTestClusterVendorId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.VendorId response %@", [value description]); if (error != nil) { @@ -85849,12 +85611,12 @@ class WriteTestClusterVendorId : public WriteAttribute { ~WriteTestClusterVendorId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85884,12 +85646,12 @@ class SubscribeAttributeTestClusterVendorId : public SubscribeAttribute { ~SubscribeAttributeTestClusterVendorId() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -85922,12 +85684,12 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ReadAttribute { ~ReadTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListNullablesAndOptionalsStruct response %@", [value description]); @@ -85953,12 +85715,12 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { ~WriteTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -85966,8 +85728,8 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPTestClusterClusterNullablesAndOptionalsStruct * newElement_0; - newElement_0 = [CHIPTestClusterClusterNullablesAndOptionalsStruct new]; + MTRTestClusterClusterNullablesAndOptionalsStruct * newElement_0; + newElement_0 = [MTRTestClusterClusterNullablesAndOptionalsStruct new]; if (entry_0.nullableInt.IsNull()) { newElement_0.nullableInt = nil; } else { @@ -86017,7 +85779,7 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { if (entry_0.nullableStruct.IsNull()) { newElement_0.nullableStruct = nil; } else { - newElement_0.nullableStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableStruct.Value().a]; newElement_0.nullableStruct.b = [NSNumber numberWithBool:entry_0.nullableStruct.Value().b]; newElement_0.nullableStruct.c = @@ -86032,7 +85794,7 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { newElement_0.nullableStruct.h = [NSNumber numberWithDouble:entry_0.nullableStruct.Value().h]; } if (entry_0.optionalStruct.HasValue()) { - newElement_0.optionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.optionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.optionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.optionalStruct.Value().a]; newElement_0.optionalStruct.b = [NSNumber numberWithBool:entry_0.optionalStruct.Value().b]; newElement_0.optionalStruct.c = @@ -86052,7 +85814,7 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { if (entry_0.nullableOptionalStruct.Value().IsNull()) { newElement_0.nullableOptionalStruct = nil; } else { - newElement_0.nullableOptionalStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.nullableOptionalStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.nullableOptionalStruct.a = [NSNumber numberWithUnsignedChar:entry_0.nullableOptionalStruct.Value().Value().a]; newElement_0.nullableOptionalStruct.b = @@ -86152,12 +85914,12 @@ class SubscribeAttributeTestClusterListNullablesAndOptionalsStruct : public Subs ~SubscribeAttributeTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86190,12 +85952,12 @@ class ReadTestClusterEnumAttr : public ReadAttribute { ~ReadTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EnumAttr response %@", [value description]); if (error != nil) { @@ -86219,12 +85981,12 @@ class WriteTestClusterEnumAttr : public WriteAttribute { ~WriteTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86254,12 +86016,12 @@ class SubscribeAttributeTestClusterEnumAttr : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86292,14 +86054,14 @@ class ReadTestClusterStructAttr : public ReadAttribute { ~ReadTestClusterStructAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStructAttrWithCompletionHandler:^( - CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { + MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.StructAttr response %@", [value description]); if (error != nil) { LogNSError("TestCluster StructAttr read Error", error); @@ -86323,17 +86085,17 @@ class WriteTestClusterStructAttr : public WriteAttribute { ~WriteTestClusterStructAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - CHIPTestClusterClusterSimpleStruct * _Nonnull value; - value = [CHIPTestClusterClusterSimpleStruct new]; + MTRTestClusterClusterSimpleStruct * _Nonnull value; + value = [MTRTestClusterClusterSimpleStruct new]; value.a = [NSNumber numberWithUnsignedChar:mValue.a]; value.b = [NSNumber numberWithBool:mValue.b]; value.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mValue.c)]; @@ -86368,12 +86130,12 @@ class SubscribeAttributeTestClusterStructAttr : public SubscribeAttribute { ~SubscribeAttributeTestClusterStructAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86383,7 +86145,7 @@ class SubscribeAttributeTestClusterStructAttr : public SubscribeAttribute { subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.StructAttr response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -86406,12 +86168,12 @@ class ReadTestClusterRangeRestrictedInt8u : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt8u response %@", [value description]); if (error != nil) { @@ -86435,12 +86197,12 @@ class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86470,12 +86232,12 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8u : public SubscribeAttrib ~SubscribeAttributeTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86508,12 +86270,12 @@ class ReadTestClusterRangeRestrictedInt8s : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt8s response %@", [value description]); if (error != nil) { @@ -86537,12 +86299,12 @@ class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86572,12 +86334,12 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8s : public SubscribeAttrib ~SubscribeAttributeTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86610,12 +86372,12 @@ class ReadTestClusterRangeRestrictedInt16u : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt16u response %@", [value description]); if (error != nil) { @@ -86639,12 +86401,12 @@ class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86674,12 +86436,12 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16u : public SubscribeAttri ~SubscribeAttributeTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86712,12 +86474,12 @@ class ReadTestClusterRangeRestrictedInt16s : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt16s response %@", [value description]); if (error != nil) { @@ -86741,12 +86503,12 @@ class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86776,12 +86538,12 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16s : public SubscribeAttri ~SubscribeAttributeTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86814,12 +86576,12 @@ class ReadTestClusterListLongOctetString : public ReadAttribute { ~ReadTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListLongOctetString response %@", [value description]); if (error != nil) { @@ -86844,12 +86606,12 @@ class WriteTestClusterListLongOctetString : public WriteAttribute { ~WriteTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86889,12 +86651,12 @@ class SubscribeAttributeTestClusterListLongOctetString : public SubscribeAttribu ~SubscribeAttributeTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -86927,13 +86689,13 @@ class ReadTestClusterListFabricScoped : public ReadAttribute { ~ReadTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeListFabricScopedWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { @@ -86960,12 +86722,12 @@ class WriteTestClusterListFabricScoped : public WriteAttribute { ~WriteTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -86973,8 +86735,8 @@ class WriteTestClusterListFabricScoped : public WriteAttribute { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mValue) { - CHIPTestClusterClusterTestFabricScoped * newElement_0; - newElement_0 = [CHIPTestClusterClusterTestFabricScoped new]; + MTRTestClusterClusterTestFabricScoped * newElement_0; + newElement_0 = [MTRTestClusterClusterTestFabricScoped new]; newElement_0.fabricSensitiveInt8u = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveInt8u]; if (entry_0.optionalFabricSensitiveInt8u.HasValue()) { newElement_0.optionalFabricSensitiveInt8u = @@ -87001,7 +86763,7 @@ class WriteTestClusterListFabricScoped : public WriteAttribute { newElement_0.fabricSensitiveCharString = [[NSString alloc] initWithBytes:entry_0.fabricSensitiveCharString.data() length:entry_0.fabricSensitiveCharString.size() encoding:NSUTF8StringEncoding]; - newElement_0.fabricSensitiveStruct = [CHIPTestClusterClusterSimpleStruct new]; + newElement_0.fabricSensitiveStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.fabricSensitiveStruct.a = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveStruct.a]; newElement_0.fabricSensitiveStruct.b = [NSNumber numberWithBool:entry_0.fabricSensitiveStruct.b]; newElement_0.fabricSensitiveStruct.c = @@ -87055,12 +86817,12 @@ class SubscribeAttributeTestClusterListFabricScoped : public SubscribeAttribute ~SubscribeAttributeTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87093,12 +86855,12 @@ class ReadTestClusterTimedWriteBoolean : public ReadAttribute { ~ReadTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTimedWriteBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.TimedWriteBoolean response %@", [value description]); if (error != nil) { @@ -87122,12 +86884,12 @@ class WriteTestClusterTimedWriteBoolean : public WriteAttribute { ~WriteTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87157,12 +86919,12 @@ class SubscribeAttributeTestClusterTimedWriteBoolean : public SubscribeAttribute ~SubscribeAttributeTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87195,12 +86957,12 @@ class ReadTestClusterGeneralErrorBoolean : public ReadAttribute { ~ReadTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneralErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.GeneralErrorBoolean response %@", [value description]); if (error != nil) { @@ -87224,12 +86986,12 @@ class WriteTestClusterGeneralErrorBoolean : public WriteAttribute { ~WriteTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87259,12 +87021,12 @@ class SubscribeAttributeTestClusterGeneralErrorBoolean : public SubscribeAttribu ~SubscribeAttributeTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87297,12 +87059,12 @@ class ReadTestClusterClusterErrorBoolean : public ReadAttribute { ~ReadTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ClusterErrorBoolean response %@", [value description]); if (error != nil) { @@ -87326,12 +87088,12 @@ class WriteTestClusterClusterErrorBoolean : public WriteAttribute { ~WriteTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87361,12 +87123,12 @@ class SubscribeAttributeTestClusterClusterErrorBoolean : public SubscribeAttribu ~SubscribeAttributeTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87399,12 +87161,12 @@ class ReadTestClusterUnsupported : public ReadAttribute { ~ReadTestClusterUnsupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUnsupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Unsupported response %@", [value description]); if (error != nil) { @@ -87428,12 +87190,12 @@ class WriteTestClusterUnsupported : public WriteAttribute { ~WriteTestClusterUnsupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87463,12 +87225,12 @@ class SubscribeAttributeTestClusterUnsupported : public SubscribeAttribute { ~SubscribeAttributeTestClusterUnsupported() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87501,12 +87263,12 @@ class ReadTestClusterNullableBoolean : public ReadAttribute { ~ReadTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBoolean response %@", [value description]); if (error != nil) { @@ -87530,12 +87292,12 @@ class WriteTestClusterNullableBoolean : public WriteAttribute { ~WriteTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87565,12 +87327,12 @@ class SubscribeAttributeTestClusterNullableBoolean : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87603,12 +87365,12 @@ class ReadTestClusterNullableBitmap8 : public ReadAttribute { ~ReadTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap8 response %@", [value description]); if (error != nil) { @@ -87632,12 +87394,12 @@ class WriteTestClusterNullableBitmap8 : public WriteAttribute { ~WriteTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87667,12 +87429,12 @@ class SubscribeAttributeTestClusterNullableBitmap8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87705,12 +87467,12 @@ class ReadTestClusterNullableBitmap16 : public ReadAttribute { ~ReadTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap16 response %@", [value description]); if (error != nil) { @@ -87734,12 +87496,12 @@ class WriteTestClusterNullableBitmap16 : public WriteAttribute { ~WriteTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87769,12 +87531,12 @@ class SubscribeAttributeTestClusterNullableBitmap16 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87807,12 +87569,12 @@ class ReadTestClusterNullableBitmap32 : public ReadAttribute { ~ReadTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap32 response %@", [value description]); if (error != nil) { @@ -87836,12 +87598,12 @@ class WriteTestClusterNullableBitmap32 : public WriteAttribute { ~WriteTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87871,12 +87633,12 @@ class SubscribeAttributeTestClusterNullableBitmap32 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -87909,12 +87671,12 @@ class ReadTestClusterNullableBitmap64 : public ReadAttribute { ~ReadTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap64 response %@", [value description]); if (error != nil) { @@ -87938,12 +87700,12 @@ class WriteTestClusterNullableBitmap64 : public WriteAttribute { ~WriteTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -87973,12 +87735,12 @@ class SubscribeAttributeTestClusterNullableBitmap64 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88011,12 +87773,12 @@ class ReadTestClusterNullableInt8u : public ReadAttribute { ~ReadTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt8u response %@", [value description]); if (error != nil) { @@ -88040,12 +87802,12 @@ class WriteTestClusterNullableInt8u : public WriteAttribute { ~WriteTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88075,12 +87837,12 @@ class SubscribeAttributeTestClusterNullableInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88113,12 +87875,12 @@ class ReadTestClusterNullableInt16u : public ReadAttribute { ~ReadTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt16u response %@", [value description]); if (error != nil) { @@ -88142,12 +87904,12 @@ class WriteTestClusterNullableInt16u : public WriteAttribute { ~WriteTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88177,12 +87939,12 @@ class SubscribeAttributeTestClusterNullableInt16u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88215,12 +87977,12 @@ class ReadTestClusterNullableInt24u : public ReadAttribute { ~ReadTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt24uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt24u response %@", [value description]); if (error != nil) { @@ -88244,12 +88006,12 @@ class WriteTestClusterNullableInt24u : public WriteAttribute { ~WriteTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88279,12 +88041,12 @@ class SubscribeAttributeTestClusterNullableInt24u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88317,12 +88079,12 @@ class ReadTestClusterNullableInt32u : public ReadAttribute { ~ReadTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt32u response %@", [value description]); if (error != nil) { @@ -88346,12 +88108,12 @@ class WriteTestClusterNullableInt32u : public WriteAttribute { ~WriteTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88381,12 +88143,12 @@ class SubscribeAttributeTestClusterNullableInt32u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88419,12 +88181,12 @@ class ReadTestClusterNullableInt40u : public ReadAttribute { ~ReadTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt40uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt40u response %@", [value description]); if (error != nil) { @@ -88448,12 +88210,12 @@ class WriteTestClusterNullableInt40u : public WriteAttribute { ~WriteTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88483,12 +88245,12 @@ class SubscribeAttributeTestClusterNullableInt40u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88521,12 +88283,12 @@ class ReadTestClusterNullableInt48u : public ReadAttribute { ~ReadTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt48uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt48u response %@", [value description]); if (error != nil) { @@ -88550,12 +88312,12 @@ class WriteTestClusterNullableInt48u : public WriteAttribute { ~WriteTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88585,12 +88347,12 @@ class SubscribeAttributeTestClusterNullableInt48u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88623,12 +88385,12 @@ class ReadTestClusterNullableInt56u : public ReadAttribute { ~ReadTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt56uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt56u response %@", [value description]); if (error != nil) { @@ -88652,12 +88414,12 @@ class WriteTestClusterNullableInt56u : public WriteAttribute { ~WriteTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88687,12 +88449,12 @@ class SubscribeAttributeTestClusterNullableInt56u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88725,12 +88487,12 @@ class ReadTestClusterNullableInt64u : public ReadAttribute { ~ReadTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt64u response %@", [value description]); if (error != nil) { @@ -88754,12 +88516,12 @@ class WriteTestClusterNullableInt64u : public WriteAttribute { ~WriteTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88789,12 +88551,12 @@ class SubscribeAttributeTestClusterNullableInt64u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88827,12 +88589,12 @@ class ReadTestClusterNullableInt8s : public ReadAttribute { ~ReadTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt8s response %@", [value description]); if (error != nil) { @@ -88856,12 +88618,12 @@ class WriteTestClusterNullableInt8s : public WriteAttribute { ~WriteTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88891,12 +88653,12 @@ class SubscribeAttributeTestClusterNullableInt8s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -88929,12 +88691,12 @@ class ReadTestClusterNullableInt16s : public ReadAttribute { ~ReadTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt16s response %@", [value description]); if (error != nil) { @@ -88958,12 +88720,12 @@ class WriteTestClusterNullableInt16s : public WriteAttribute { ~WriteTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -88993,12 +88755,12 @@ class SubscribeAttributeTestClusterNullableInt16s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89031,12 +88793,12 @@ class ReadTestClusterNullableInt24s : public ReadAttribute { ~ReadTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt24sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt24s response %@", [value description]); if (error != nil) { @@ -89060,12 +88822,12 @@ class WriteTestClusterNullableInt24s : public WriteAttribute { ~WriteTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89095,12 +88857,12 @@ class SubscribeAttributeTestClusterNullableInt24s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89133,12 +88895,12 @@ class ReadTestClusterNullableInt32s : public ReadAttribute { ~ReadTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt32s response %@", [value description]); if (error != nil) { @@ -89162,12 +88924,12 @@ class WriteTestClusterNullableInt32s : public WriteAttribute { ~WriteTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89197,12 +88959,12 @@ class SubscribeAttributeTestClusterNullableInt32s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89235,12 +88997,12 @@ class ReadTestClusterNullableInt40s : public ReadAttribute { ~ReadTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt40sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt40s response %@", [value description]); if (error != nil) { @@ -89264,12 +89026,12 @@ class WriteTestClusterNullableInt40s : public WriteAttribute { ~WriteTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89299,12 +89061,12 @@ class SubscribeAttributeTestClusterNullableInt40s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89337,12 +89099,12 @@ class ReadTestClusterNullableInt48s : public ReadAttribute { ~ReadTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt48sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt48s response %@", [value description]); if (error != nil) { @@ -89366,12 +89128,12 @@ class WriteTestClusterNullableInt48s : public WriteAttribute { ~WriteTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89401,12 +89163,12 @@ class SubscribeAttributeTestClusterNullableInt48s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89439,12 +89201,12 @@ class ReadTestClusterNullableInt56s : public ReadAttribute { ~ReadTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt56sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt56s response %@", [value description]); if (error != nil) { @@ -89468,12 +89230,12 @@ class WriteTestClusterNullableInt56s : public WriteAttribute { ~WriteTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89503,12 +89265,12 @@ class SubscribeAttributeTestClusterNullableInt56s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89541,12 +89303,12 @@ class ReadTestClusterNullableInt64s : public ReadAttribute { ~ReadTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt64s response %@", [value description]); if (error != nil) { @@ -89570,12 +89332,12 @@ class WriteTestClusterNullableInt64s : public WriteAttribute { ~WriteTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89605,12 +89367,12 @@ class SubscribeAttributeTestClusterNullableInt64s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89643,12 +89405,12 @@ class ReadTestClusterNullableEnum8 : public ReadAttribute { ~ReadTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnum8 response %@", [value description]); if (error != nil) { @@ -89672,12 +89434,12 @@ class WriteTestClusterNullableEnum8 : public WriteAttribute { ~WriteTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89707,12 +89469,12 @@ class SubscribeAttributeTestClusterNullableEnum8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89745,12 +89507,12 @@ class ReadTestClusterNullableEnum16 : public ReadAttribute { ~ReadTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnum16 response %@", [value description]); if (error != nil) { @@ -89774,12 +89536,12 @@ class WriteTestClusterNullableEnum16 : public WriteAttribute { ~WriteTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89809,12 +89571,12 @@ class SubscribeAttributeTestClusterNullableEnum16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89847,12 +89609,12 @@ class ReadTestClusterNullableFloatSingle : public ReadAttribute { ~ReadTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableFloatSingle response %@", [value description]); if (error != nil) { @@ -89876,12 +89638,12 @@ class WriteTestClusterNullableFloatSingle : public WriteAttribute { ~WriteTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -89911,12 +89673,12 @@ class SubscribeAttributeTestClusterNullableFloatSingle : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -89949,12 +89711,12 @@ class ReadTestClusterNullableFloatDouble : public ReadAttribute { ~ReadTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableFloatDouble response %@", [value description]); if (error != nil) { @@ -89978,12 +89740,12 @@ class WriteTestClusterNullableFloatDouble : public WriteAttribute { ~WriteTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90013,12 +89775,12 @@ class SubscribeAttributeTestClusterNullableFloatDouble : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90051,12 +89813,12 @@ class ReadTestClusterNullableOctetString : public ReadAttribute { ~ReadTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableOctetString response %@", [value description]); if (error != nil) { @@ -90080,12 +89842,12 @@ class WriteTestClusterNullableOctetString : public WriteAttribute { ~WriteTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90115,12 +89877,12 @@ class SubscribeAttributeTestClusterNullableOctetString : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90153,12 +89915,12 @@ class ReadTestClusterNullableCharString : public ReadAttribute { ~ReadTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableCharString response %@", [value description]); if (error != nil) { @@ -90182,12 +89944,12 @@ class WriteTestClusterNullableCharString : public WriteAttribute { ~WriteTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90219,12 +89981,12 @@ class SubscribeAttributeTestClusterNullableCharString : public SubscribeAttribut ~SubscribeAttributeTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90257,12 +90019,12 @@ class ReadTestClusterNullableEnumAttr : public ReadAttribute { ~ReadTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnumAttr response %@", [value description]); if (error != nil) { @@ -90286,12 +90048,12 @@ class WriteTestClusterNullableEnumAttr : public WriteAttribute { ~WriteTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90321,12 +90083,12 @@ class SubscribeAttributeTestClusterNullableEnumAttr : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90359,14 +90121,14 @@ class ReadTestClusterNullableStruct : public ReadAttribute { ~ReadTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableStructWithCompletionHandler:^( - CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { + MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableStruct response %@", [value description]); if (error != nil) { LogNSError("TestCluster NullableStruct read Error", error); @@ -90390,20 +90152,20 @@ class WriteTestClusterNullableStruct : public WriteAttribute { ~WriteTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - CHIPTestClusterClusterSimpleStruct * _Nullable value; + MTRTestClusterClusterSimpleStruct * _Nullable value; if (mValue.IsNull()) { value = nil; } else { - value = [CHIPTestClusterClusterSimpleStruct new]; + value = [MTRTestClusterClusterSimpleStruct new]; value.a = [NSNumber numberWithUnsignedChar:mValue.Value().a]; value.b = [NSNumber numberWithBool:mValue.Value().b]; value.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(mValue.Value().c)]; @@ -90441,12 +90203,12 @@ class SubscribeAttributeTestClusterNullableStruct : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90456,7 +90218,7 @@ class SubscribeAttributeTestClusterNullableStruct : public SubscribeAttribute { subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { + reportHandler:^(MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableStruct response %@", [value description]); if (error || !mWait) { SetCommandExitStatus(error); @@ -90479,12 +90241,12 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt8u response %@", [value description]); @@ -90509,12 +90271,12 @@ class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90545,12 +90307,12 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8u : public Subscri ~SubscribeAttributeTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90583,12 +90345,12 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt8s response %@", [value description]); @@ -90613,12 +90375,12 @@ class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90649,12 +90411,12 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8s : public Subscri ~SubscribeAttributeTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90687,12 +90449,12 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt16u response %@", [value description]); @@ -90717,12 +90479,12 @@ class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90753,12 +90515,12 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16u : public Subscr ~SubscribeAttributeTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90791,12 +90553,12 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt16s response %@", [value description]); @@ -90821,12 +90583,12 @@ class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRWriteParams * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; @@ -90857,12 +90619,12 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16s : public Subscr ~SubscribeAttributeTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90895,12 +90657,12 @@ class ReadTestClusterGeneratedCommandList : public ReadAttribute { ~ReadTestClusterGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -90921,12 +90683,12 @@ class SubscribeAttributeTestClusterGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeTestClusterGeneratedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -90959,12 +90721,12 @@ class ReadTestClusterAcceptedCommandList : public ReadAttribute { ~ReadTestClusterAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -90985,12 +90747,12 @@ class SubscribeAttributeTestClusterAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeTestClusterAcceptedCommandList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -91023,12 +90785,12 @@ class ReadTestClusterAttributeList : public ReadAttribute { ~ReadTestClusterAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.AttributeList response %@", [value description]); if (error != nil) { @@ -91049,12 +90811,12 @@ class SubscribeAttributeTestClusterAttributeList : public SubscribeAttribute { ~SubscribeAttributeTestClusterAttributeList() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -91087,12 +90849,12 @@ class ReadTestClusterFeatureMap : public ReadAttribute { ~ReadTestClusterFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FeatureMap response %@", [value description]); if (error != nil) { @@ -91113,12 +90875,12 @@ class SubscribeAttributeTestClusterFeatureMap : public SubscribeAttribute { ~SubscribeAttributeTestClusterFeatureMap() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -91151,12 +90913,12 @@ class ReadTestClusterClusterRevision : public ReadAttribute { ~ReadTestClusterClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ClusterRevision response %@", [value description]); if (error != nil) { @@ -91177,12 +90939,12 @@ class SubscribeAttributeTestClusterClusterRevision : public SubscribeAttribute { ~SubscribeAttributeTestClusterClusterRevision() {} - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h new file mode 100644 index 00000000000000..beba3f81f2e67a --- /dev/null +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h @@ -0,0 +1,1607 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// THIS FILE IS GENERATED BY ZAP + +#import + +@class MTRDevice; + +NS_ASSUME_NONNULL_BEGIN + +/** + * Cluster Identify + * + */ +@interface MTRTestIdentify : MTRIdentify + +- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Groups + * + */ +@interface MTRTestGroups : MTRGroups + +- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Scenes + * + */ +@interface MTRTestScenes : MTRScenes + +- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster On/Off + * + */ +@interface MTRTestOnOff : MTROnOff + +- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster On/off Switch Configuration + * + */ +@interface MTRTestOnOffSwitchConfiguration : MTROnOffSwitchConfiguration + +- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Level Control + * + */ +@interface MTRTestLevelControl : MTRLevelControl + +- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Binary Input (Basic) + * + */ +@interface MTRTestBinaryInputBasic : MTRBinaryInputBasic + +- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Descriptor + * + */ +@interface MTRTestDescriptor : MTRDescriptor + +- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Binding + * + */ +@interface MTRTestBinding : MTRBinding + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Access Control + * + */ +@interface MTRTestAccessControl : MTRAccessControl + +- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Bridged Actions + * + */ +@interface MTRTestBridgedActions : MTRBridgedActions + +- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Basic + * + */ +@interface MTRTestBasic : MTRBasic + +- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCapabilityMinimaWithValue:(MTRBasicClusterCapabilityMinimaStruct * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster OTA Software Update Provider + * + */ +@interface MTRTestOtaSoftwareUpdateProvider : MTROtaSoftwareUpdateProvider + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster OTA Software Update Requestor + * + */ +@interface MTRTestOtaSoftwareUpdateRequestor : MTROtaSoftwareUpdateRequestor + +- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Localization Configuration + * + */ +@interface MTRTestLocalizationConfiguration : MTRLocalizationConfiguration + +- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Time Format Localization + * + */ +@interface MTRTestTimeFormatLocalization : MTRTimeFormatLocalization + +- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Unit Localization + * + */ +@interface MTRTestUnitLocalization : MTRUnitLocalization + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Power Source Configuration + * + */ +@interface MTRTestPowerSourceConfiguration : MTRPowerSourceConfiguration + +- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Power Source + * + */ +@interface MTRTestPowerSource : MTRPowerSource + +- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster General Commissioning + * + */ +@interface MTRTestGeneralCommissioning : MTRGeneralCommissioning + +- (void)writeAttributeBasicCommissioningInfoWithValue:(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Network Commissioning + * + */ +@interface MTRTestNetworkCommissioning : MTRNetworkCommissioning + +- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Diagnostic Logs + * + */ +@interface MTRTestDiagnosticLogs : MTRDiagnosticLogs + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster General Diagnostics + * + */ +@interface MTRTestGeneralDiagnostics : MTRGeneralDiagnostics + +- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Software Diagnostics + * + */ +@interface MTRTestSoftwareDiagnostics : MTRSoftwareDiagnostics + +- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Thread Network Diagnostics + * + */ +@interface MTRTestThreadNetworkDiagnostics : MTRThreadNetworkDiagnostics + +- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSecurityPolicyWithValue:(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOperationalDatasetComponentsWithValue: + (MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster WiFi Network Diagnostics + * + */ +@interface MTRTestWiFiNetworkDiagnostics : MTRWiFiNetworkDiagnostics + +- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Ethernet Network Diagnostics + * + */ +@interface MTRTestEthernetNetworkDiagnostics : MTREthernetNetworkDiagnostics + +- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Bridged Device Basic + * + */ +@interface MTRTestBridgedDeviceBasic : MTRBridgedDeviceBasic + +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Switch + * + */ +@interface MTRTestSwitch : MTRSwitch + +- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster AdministratorCommissioning + * + */ +@interface MTRTestAdministratorCommissioning : MTRAdministratorCommissioning + +- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Operational Credentials + * + */ +@interface MTRTestOperationalCredentials : MTROperationalCredentials + +- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Group Key Management + * + */ +@interface MTRTestGroupKeyManagement : MTRGroupKeyManagement + +- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Fixed Label + * + */ +@interface MTRTestFixedLabel : MTRFixedLabel + +- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster User Label + * + */ +@interface MTRTestUserLabel : MTRUserLabel + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Boolean State + * + */ +@interface MTRTestBooleanState : MTRBooleanState + +- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Mode Select + * + */ +@interface MTRTestModeSelect : MTRModeSelect + +- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Door Lock + * + */ +@interface MTRTestDoorLock : MTRDoorLock + +- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Window Covering + * + */ +@interface MTRTestWindowCovering : MTRWindowCovering + +- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Barrier Control + * + */ +@interface MTRTestBarrierControl : MTRBarrierControl + +- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Pump Configuration and Control + * + */ +@interface MTRTestPumpConfigurationAndControl : MTRPumpConfigurationAndControl + +- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Thermostat + * + */ +@interface MTRTestThermostat : MTRThermostat + +- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Fan Control + * + */ +@interface MTRTestFanControl : MTRFanControl + +- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Thermostat User Interface Configuration + * + */ +@interface MTRTestThermostatUserInterfaceConfiguration : MTRThermostatUserInterfaceConfiguration + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Color Control + * + */ +@interface MTRTestColorControl : MTRColorControl + +- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Illuminance Measurement + * + */ +@interface MTRTestIlluminanceMeasurement : MTRIlluminanceMeasurement + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Temperature Measurement + * + */ +@interface MTRTestTemperatureMeasurement : MTRTemperatureMeasurement + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Pressure Measurement + * + */ +@interface MTRTestPressureMeasurement : MTRPressureMeasurement + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Flow Measurement + * + */ +@interface MTRTestFlowMeasurement : MTRFlowMeasurement + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Relative Humidity Measurement + * + */ +@interface MTRTestRelativeHumidityMeasurement : MTRRelativeHumidityMeasurement + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Occupancy Sensing + * + */ +@interface MTRTestOccupancySensing : MTROccupancySensing + +- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Wake on LAN + * + */ +@interface MTRTestWakeOnLan : MTRWakeOnLan + +- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Channel + * + */ +@interface MTRTestChannel : MTRChannel + +- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLineupWithValue:(MTRChannelClusterLineupInfo * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentChannelWithValue:(MTRChannelClusterChannelInfo * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Target Navigator + * + */ +@interface MTRTestTargetNavigator : MTRTargetNavigator + +- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Media Playback + * + */ +@interface MTRTestMediaPlayback : MTRMediaPlayback + +- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSampledPositionWithValue:(MTRMediaPlaybackClusterPlaybackPosition * _Nullable)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Media Input + * + */ +@interface MTRTestMediaInput : MTRMediaInput + +- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Low Power + * + */ +@interface MTRTestLowPower : MTRLowPower + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Keypad Input + * + */ +@interface MTRTestKeypadInput : MTRKeypadInput + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Content Launcher + * + */ +@interface MTRTestContentLauncher : MTRContentLauncher + +- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Audio Output + * + */ +@interface MTRTestAudioOutput : MTRAudioOutput + +- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Application Launcher + * + */ +@interface MTRTestApplicationLauncher : MTRApplicationLauncher + +- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Application Basic + * + */ +@interface MTRTestApplicationBasic : MTRApplicationBasic + +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApplicationWithValue:(MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Account Login + * + */ +@interface MTRTestAccountLogin : MTRAccountLogin + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Electrical Measurement + * + */ +@interface MTRTestElectricalMeasurement : MTRElectricalMeasurement + +- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +/** + * Cluster Test Cluster + * + */ +@interface MTRTestTestCluster : MTRTestCluster + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; + +@end + +NS_ASSUME_NONNULL_END diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm new file mode 100644 index 00000000000000..559116a179cee9 --- /dev/null +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm @@ -0,0 +1,21884 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// THIS FILE IS GENERATED BY ZAP +#import + +#import + +#import "MTRCallbackBridge_internal.h" +#import "MTRCluster_Externs.h" +#import "MTRDevice_Externs.h" +#import "zap-generated/CHIPClusters.h" +#import "zap-generated/cluster/MTRTestClustersObjc.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using chip::Callback::Callback; +using chip::Callback::Cancelable; +using namespace chip::app::Clusters; + +@interface MTRTestIdentify () +@property (readonly) chip::Controller::IdentifyCluster cppCluster; +@end + +@implementation MTRTestIdentify + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestGroups () +@property (readonly) chip::Controller::GroupsCluster cppCluster; +@end + +@implementation MTRTestGroups + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestScenes () +@property (readonly) chip::Controller::ScenesCluster cppCluster; +@end + +@implementation MTRTestScenes + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOnOff () +@property (readonly) chip::Controller::OnOffCluster cppCluster; +@end + +@implementation MTRTestOnOff + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOnOffSwitchConfiguration () +@property (readonly) chip::Controller::OnOffSwitchConfigurationCluster cppCluster; +@end + +@implementation MTRTestOnOffSwitchConfiguration + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestLevelControl () +@property (readonly) chip::Controller::LevelControlCluster cppCluster; +@end + +@implementation MTRTestLevelControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBinaryInputBasic () +@property (readonly) chip::Controller::BinaryInputBasicCluster cppCluster; +@end + +@implementation MTRTestBinaryInputBasic + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestDescriptor () +@property (readonly) chip::Controller::DescriptorCluster cppCluster; +@end + +@implementation MTRTestDescriptor + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRDescriptorClusterDeviceType class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRDescriptorClusterDeviceType *) value[i_0]; + listHolder_0->mList[i_0].type = element_0.type.unsignedIntValue; + listHolder_0->mList[i_0].revision = element_0.revision.unsignedShortValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedShortValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBinding () +@property (readonly) chip::Controller::BindingCluster cppCluster; +@end + +@implementation MTRTestBinding + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Binding::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Binding::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestAccessControl () +@property (readonly) chip::Controller::AccessControlCluster cppCluster; +@end + +@implementation MTRTestAccessControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBridgedActions () +@property (readonly) chip::Controller::BridgedActionsCluster cppCluster; +@end + +@implementation MTRTestBridgedActions + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::ActionList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRBridgedActionsClusterActionStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRBridgedActionsClusterActionStruct *) value[i_0]; + listHolder_0->mList[i_0].actionID = element_0.actionID.unsignedShortValue; + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + listHolder_0->mList[i_0].type + = static_castmList[i_0].type)>>( + element_0.type.unsignedCharValue); + listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; + listHolder_0->mList[i_0].supportedCommands = element_0.supportedCommands.unsignedShortValue; + listHolder_0->mList[i_0].status + = static_castmList[i_0].status)>>( + element_0.status.unsignedCharValue); + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::EndpointList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRBridgedActionsClusterEndpointListStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRBridgedActionsClusterEndpointListStruct *) value[i_0]; + listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + listHolder_0->mList[i_0].type + = static_castmList[i_0].type)>>( + element_0.type.unsignedCharValue); + { + using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.endpoints.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.endpoints.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { + if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (NSNumber *) element_0.endpoints[i_2]; + listHolder_2->mList[i_2] = element_2.unsignedShortValue; + } + listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); + } else { + listHolder_0->mList[i_0].endpoints = ListType_2(); + } + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBasic () +@property (readonly) chip::Controller::BasicCluster cppCluster; +@end + +@implementation MTRTestBasic + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::VendorName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::VendorID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ProductName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ProductID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::Reachable::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCapabilityMinimaWithValue:(MTRBasicClusterCapabilityMinimaStruct * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::CapabilityMinima::TypeInfo; + TypeInfo::Type cppValue; + cppValue.caseSessionsPerFabric = value.caseSessionsPerFabric.unsignedShortValue; + cppValue.subscriptionsPerFabric = value.subscriptionsPerFabric.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOtaSoftwareUpdateProvider () +@property (readonly) chip::Controller::OtaSoftwareUpdateProviderCluster cppCluster; +@end + +@implementation MTRTestOtaSoftwareUpdateProvider + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateProvider::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOtaSoftwareUpdateRequestor () +@property (readonly) chip::Controller::OtaSoftwareUpdateRequestorCluster cppCluster; +@end + +@implementation MTRTestOtaSoftwareUpdateRequestor + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateState::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestLocalizationConfiguration () +@property (readonly) chip::Controller::LocalizationConfigurationCluster cppCluster; +@end + +@implementation MTRTestLocalizationConfiguration + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::SupportedLocales::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSString class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSString *) value[i_0]; + listHolder_0->mList[i_0] = [self asCharSpan:element_0]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestTimeFormatLocalization () +@property (readonly) chip::Controller::TimeFormatLocalizationCluster cppCluster; +@end + +@implementation MTRTestTimeFormatLocalization + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::SupportedCalendarTypes::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] + = static_castmList[i_0])>>(element_0.unsignedCharValue); + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestUnitLocalization () +@property (readonly) chip::Controller::UnitLocalizationCluster cppCluster; +@end + +@implementation MTRTestUnitLocalization + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UnitLocalization::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UnitLocalization::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UnitLocalization::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestPowerSourceConfiguration () +@property (readonly) chip::Controller::PowerSourceConfigurationCluster cppCluster; +@end + +@implementation MTRTestPowerSourceConfiguration + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::Sources::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestPowerSource () +@property (readonly) chip::Controller::PowerSourceCluster cppCluster; +@end + +@implementation MTRTestPowerSource + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::Status::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::Order::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::Description::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::ActiveWiredFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::ActiveBatteryFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::ActiveBatteryChargeFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestGeneralCommissioning () +@property (readonly) chip::Controller::GeneralCommissioningCluster cppCluster; +@end + +@implementation MTRTestGeneralCommissioning + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeBasicCommissioningInfoWithValue:(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::BasicCommissioningInfo::TypeInfo; + TypeInfo::Type cppValue; + cppValue.failSafeExpiryLengthSeconds = value.failSafeExpiryLengthSeconds.unsignedShortValue; + cppValue.maxCumulativeFailsafeSeconds = value.maxCumulativeFailsafeSeconds.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::RegulatoryConfig::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::LocationCapability::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestNetworkCommissioning () +@property (readonly) chip::Controller::NetworkCommissioningCluster cppCluster; +@end + +@implementation MTRTestNetworkCommissioning + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::Networks::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRNetworkCommissioningClusterNetworkInfo class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRNetworkCommissioningClusterNetworkInfo *) value[i_0]; + listHolder_0->mList[i_0].networkID = [self asByteSpan:element_0.networkID]; + listHolder_0->mList[i_0].connected = element_0.connected.boolValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::LastNetworkingStatus::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = [self asByteSpan:value]; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.intValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestDiagnosticLogs () +@property (readonly) chip::Controller::DiagnosticLogsCluster cppCluster; +@end + +@implementation MTRTestDiagnosticLogs + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DiagnosticLogs::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DiagnosticLogs::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DiagnosticLogs::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestGeneralDiagnostics () +@property (readonly) chip::Controller::GeneralDiagnosticsCluster cppCluster; +@end + +@implementation MTRTestGeneralDiagnostics + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRGeneralDiagnosticsClusterNetworkInterfaceType class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRGeneralDiagnosticsClusterNetworkInterfaceType *) value[i_0]; + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + listHolder_0->mList[i_0].isOperational = element_0.isOperational.boolValue; + if (element_0.offPremiseServicesReachableIPv4 == nil) { + listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNonNull(); + nonNullValue_2 = element_0.offPremiseServicesReachableIPv4.boolValue; + } + if (element_0.offPremiseServicesReachableIPv6 == nil) { + listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNonNull(); + nonNullValue_2 = element_0.offPremiseServicesReachableIPv6.boolValue; + } + listHolder_0->mList[i_0].hardwareAddress = [self asByteSpan:element_0.hardwareAddress]; + { + using ListType_2 = std::remove_reference_tmList[i_0].IPv4Addresses)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.iPv4Addresses.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.iPv4Addresses.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.iPv4Addresses.count; ++i_2) { + if (![element_0.iPv4Addresses[i_2] isKindOfClass:[NSData class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (NSData *) element_0.iPv4Addresses[i_2]; + listHolder_2->mList[i_2] = [self asByteSpan:element_2]; + } + listHolder_0->mList[i_0].IPv4Addresses + = ListType_2(listHolder_2->mList, element_0.iPv4Addresses.count); + } else { + listHolder_0->mList[i_0].IPv4Addresses = ListType_2(); + } + } + { + using ListType_2 = std::remove_reference_tmList[i_0].IPv6Addresses)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.iPv6Addresses.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.iPv6Addresses.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.iPv6Addresses.count; ++i_2) { + if (![element_0.iPv6Addresses[i_2] isKindOfClass:[NSData class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (NSData *) element_0.iPv6Addresses[i_2]; + listHolder_2->mList[i_2] = [self asByteSpan:element_2]; + } + listHolder_0->mList[i_0].IPv6Addresses + = ListType_2(listHolder_2->mList, element_0.iPv6Addresses.count); + } else { + listHolder_0->mList[i_0].IPv6Addresses = ListType_2(); + } + } + listHolder_0->mList[i_0].type + = static_castmList[i_0].type)>>( + element_0.type.unsignedCharValue); + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::ActiveHardwareFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::ActiveRadioFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::ActiveNetworkFaults::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestSoftwareDiagnostics () +@property (readonly) chip::Controller::SoftwareDiagnosticsCluster cppCluster; +@end + +@implementation MTRTestSoftwareDiagnostics + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::ThreadMetrics::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRSoftwareDiagnosticsClusterThreadMetrics class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRSoftwareDiagnosticsClusterThreadMetrics *) value[i_0]; + listHolder_0->mList[i_0].id = element_0.id.unsignedLongLongValue; + if (element_0.name != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + definedValue_2 = [self asCharSpan:element_0.name]; + } + if (element_0.stackFreeCurrent != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeCurrent.Emplace(); + definedValue_2 = element_0.stackFreeCurrent.unsignedIntValue; + } + if (element_0.stackFreeMinimum != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeMinimum.Emplace(); + definedValue_2 = element_0.stackFreeMinimum.unsignedIntValue; + } + if (element_0.stackSize != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].stackSize.Emplace(); + definedValue_2 = element_0.stackSize.unsignedIntValue; + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestThreadNetworkDiagnostics () +@property (readonly) chip::Controller::ThreadNetworkDiagnosticsCluster cppCluster; +@end + +@implementation MTRTestThreadNetworkDiagnostics + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = [self asCharSpan:value]; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = [self asByteSpan:value]; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRThreadNetworkDiagnosticsClusterNeighborTable class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRThreadNetworkDiagnosticsClusterNeighborTable *) value[i_0]; + listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; + listHolder_0->mList[i_0].age = element_0.age.unsignedIntValue; + listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; + listHolder_0->mList[i_0].linkFrameCounter = element_0.linkFrameCounter.unsignedIntValue; + listHolder_0->mList[i_0].mleFrameCounter = element_0.mleFrameCounter.unsignedIntValue; + listHolder_0->mList[i_0].lqi = element_0.lqi.unsignedCharValue; + if (element_0.averageRssi == nil) { + listHolder_0->mList[i_0].averageRssi.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].averageRssi.SetNonNull(); + nonNullValue_2 = element_0.averageRssi.charValue; + } + if (element_0.lastRssi == nil) { + listHolder_0->mList[i_0].lastRssi.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].lastRssi.SetNonNull(); + nonNullValue_2 = element_0.lastRssi.charValue; + } + listHolder_0->mList[i_0].frameErrorRate = element_0.frameErrorRate.unsignedCharValue; + listHolder_0->mList[i_0].messageErrorRate = element_0.messageErrorRate.unsignedCharValue; + listHolder_0->mList[i_0].rxOnWhenIdle = element_0.rxOnWhenIdle.boolValue; + listHolder_0->mList[i_0].fullThreadDevice = element_0.fullThreadDevice.boolValue; + listHolder_0->mList[i_0].fullNetworkData = element_0.fullNetworkData.boolValue; + listHolder_0->mList[i_0].isChild = element_0.isChild.boolValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRThreadNetworkDiagnosticsClusterRouteTable class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRThreadNetworkDiagnosticsClusterRouteTable *) value[i_0]; + listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; + listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; + listHolder_0->mList[i_0].routerId = element_0.routerId.unsignedCharValue; + listHolder_0->mList[i_0].nextHop = element_0.nextHop.unsignedCharValue; + listHolder_0->mList[i_0].pathCost = element_0.pathCost.unsignedCharValue; + listHolder_0->mList[i_0].LQIIn = element_0.lqiIn.unsignedCharValue; + listHolder_0->mList[i_0].LQIOut = element_0.lqiOut.unsignedCharValue; + listHolder_0->mList[i_0].age = element_0.age.unsignedCharValue; + listHolder_0->mList[i_0].allocated = element_0.allocated.boolValue; + listHolder_0->mList[i_0].linkEstablished = element_0.linkEstablished.boolValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedIntValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedIntValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSecurityPolicyWithValue:(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0.rotationTime = value.rotationTime.unsignedShortValue; + nonNullValue_0.flags = value.flags.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = [self asByteSpan:value]; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOperationalDatasetComponentsWithValue: + (MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0.activeTimestampPresent = value.activeTimestampPresent.boolValue; + nonNullValue_0.pendingTimestampPresent = value.pendingTimestampPresent.boolValue; + nonNullValue_0.masterKeyPresent = value.masterKeyPresent.boolValue; + nonNullValue_0.networkNamePresent = value.networkNamePresent.boolValue; + nonNullValue_0.extendedPanIdPresent = value.extendedPanIdPresent.boolValue; + nonNullValue_0.meshLocalPrefixPresent = value.meshLocalPrefixPresent.boolValue; + nonNullValue_0.delayPresent = value.delayPresent.boolValue; + nonNullValue_0.panIdPresent = value.panIdPresent.boolValue; + nonNullValue_0.channelPresent = value.channelPresent.boolValue; + nonNullValue_0.pskcPresent = value.pskcPresent.boolValue; + nonNullValue_0.securityPolicyPresent = value.securityPolicyPresent.boolValue; + nonNullValue_0.channelMaskPresent = value.channelMaskPresent.boolValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] + = static_castmList[i_0])>>(element_0.unsignedCharValue); + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestWiFiNetworkDiagnostics () +@property (readonly) chip::Controller::WiFiNetworkDiagnosticsCluster cppCluster; +@end + +@implementation MTRTestWiFiNetworkDiagnostics + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = [self asByteSpan:value]; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.charValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestEthernetNetworkDiagnostics () +@property (readonly) chip::Controller::EthernetNetworkDiagnosticsCluster cppCluster; +@end + +@implementation MTRTestEthernetNetworkDiagnostics + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.boolValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.boolValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedLongLongValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBridgedDeviceBasic () +@property (readonly) chip::Controller::BridgedDeviceBasicCluster cppCluster; +@end + +@implementation MTRTestBridgedDeviceBasic + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestSwitch () +@property (readonly) chip::Controller::SwitchCluster cppCluster; +@end + +@implementation MTRTestSwitch + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestAdministratorCommissioning () +@property (readonly) chip::Controller::AdministratorCommissioningCluster cppCluster; +@end + +@implementation MTRTestAdministratorCommissioning + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOperationalCredentials () +@property (readonly) chip::Controller::OperationalCredentialsCluster cppCluster; +@end + +@implementation MTRTestOperationalCredentials + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::NOCs::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTROperationalCredentialsClusterNOCStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTROperationalCredentialsClusterNOCStruct *) value[i_0]; + listHolder_0->mList[i_0].noc = [self asByteSpan:element_0.noc]; + if (element_0.icac == nil) { + listHolder_0->mList[i_0].icac.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].icac.SetNonNull(); + nonNullValue_2 = [self asByteSpan:element_0.icac]; + } + listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::Fabrics::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTROperationalCredentialsClusterFabricDescriptor class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTROperationalCredentialsClusterFabricDescriptor *) value[i_0]; + listHolder_0->mList[i_0].rootPublicKey = [self asByteSpan:element_0.rootPublicKey]; + listHolder_0->mList[i_0].vendorId + = static_castmList[i_0].vendorId)>>( + element_0.vendorId.unsignedShortValue); + listHolder_0->mList[i_0].fabricId = element_0.fabricId.unsignedLongLongValue; + listHolder_0->mList[i_0].nodeId = element_0.nodeId.unsignedLongLongValue; + listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; + listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSData class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSData *) value[i_0]; + listHolder_0->mList[i_0] = [self asByteSpan:element_0]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestGroupKeyManagement () +@property (readonly) chip::Controller::GroupKeyManagementCluster cppCluster; +@end + +@implementation MTRTestGroupKeyManagement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::GroupTable::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRGroupKeyManagementClusterGroupInfoMapStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRGroupKeyManagementClusterGroupInfoMapStruct *) value[i_0]; + listHolder_0->mList[i_0].groupId = element_0.groupId.unsignedShortValue; + { + using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.endpoints.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.endpoints.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { + if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (NSNumber *) element_0.endpoints[i_2]; + listHolder_2->mList[i_2] = element_2.unsignedShortValue; + } + listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); + } else { + listHolder_0->mList[i_0].endpoints = ListType_2(); + } + } + if (element_0.groupName != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].groupName.Emplace(); + definedValue_2 = [self asCharSpan:element_0.groupName]; + } + listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestFixedLabel () +@property (readonly) chip::Controller::FixedLabelCluster cppCluster; +@end + +@implementation MTRTestFixedLabel + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRFixedLabelClusterLabelStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRFixedLabelClusterLabelStruct *) value[i_0]; + listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; + listHolder_0->mList[i_0].value = [self asCharSpan:element_0.value]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestUserLabel () +@property (readonly) chip::Controller::UserLabelCluster cppCluster; +@end + +@implementation MTRTestUserLabel + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UserLabel::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UserLabel::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UserLabel::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBooleanState () +@property (readonly) chip::Controller::BooleanStateCluster cppCluster; +@end + +@implementation MTRTestBooleanState + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestModeSelect () +@property (readonly) chip::Controller::ModeSelectCluster cppCluster; +@end + +@implementation MTRTestModeSelect + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::SupportedModes::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRModeSelectClusterModeOptionStruct class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRModeSelectClusterModeOptionStruct *) value[i_0]; + listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; + listHolder_0->mList[i_0].mode = element_0.mode.unsignedCharValue; + { + using ListType_2 = std::remove_reference_tmList[i_0].semanticTags)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.semanticTags.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.semanticTags.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.semanticTags.count; ++i_2) { + if (![element_0.semanticTags[i_2] isKindOfClass:[MTRModeSelectClusterSemanticTag class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (MTRModeSelectClusterSemanticTag *) element_0.semanticTags[i_2]; + listHolder_2->mList[i_2].mfgCode = element_2.mfgCode.unsignedShortValue; + listHolder_2->mList[i_2].value = element_2.value.unsignedShortValue; + } + listHolder_0->mList[i_0].semanticTags + = ListType_2(listHolder_2->mList, element_0.semanticTags.count); + } else { + listHolder_0->mList[i_0].semanticTags = ListType_2(); + } + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestDoorLock () +@property (readonly) chip::Controller::DoorLockCluster cppCluster; +@end + +@implementation MTRTestDoorLock + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::LockState::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::LockType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.boolValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::DoorState::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = static_cast>(value.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::CredentialRulesSupport::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::SupportedOperatingModes::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::DefaultConfigurationRegister::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestWindowCovering () +@property (readonly) chip::Controller::WindowCoveringCluster cppCluster; +@end + +@implementation MTRTestWindowCovering + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::Type::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::ConfigStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::OperationalStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::EndProductType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::SafetyStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestBarrierControl () +@property (readonly) chip::Controller::BarrierControlCluster cppCluster; +@end + +@implementation MTRTestBarrierControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestPumpConfigurationAndControl () +@property (readonly) chip::Controller::PumpConfigurationAndControlCluster cppCluster; +@end + +@implementation MTRTestPumpConfigurationAndControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedShortValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedIntValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestThermostat () +@property (readonly) chip::Controller::ThermostatCluster cppCluster; +@end + +@implementation MTRTestThermostat + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestFanControl () +@property (readonly) chip::Controller::FanControlCluster cppCluster; +@end + +@implementation MTRTestFanControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestThermostatUserInterfaceConfiguration () +@property (readonly) chip::Controller::ThermostatUserInterfaceConfigurationCluster cppCluster; +@end + +@implementation MTRTestThermostatUserInterfaceConfiguration + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestColorControl () +@property (readonly) chip::Controller::ColorControlCluster cppCluster; +@end + +@implementation MTRTestColorControl + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestIlluminanceMeasurement () +@property (readonly) chip::Controller::IlluminanceMeasurementCluster cppCluster; +@end + +@implementation MTRTestIlluminanceMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedCharValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestTemperatureMeasurement () +@property (readonly) chip::Controller::TemperatureMeasurementCluster cppCluster; +@end + +@implementation MTRTestTemperatureMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestPressureMeasurement () +@property (readonly) chip::Controller::PressureMeasurementCluster cppCluster; +@end + +@implementation MTRTestPressureMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.shortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestFlowMeasurement () +@property (readonly) chip::Controller::FlowMeasurementCluster cppCluster; +@end + +@implementation MTRTestFlowMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestRelativeHumidityMeasurement () +@property (readonly) chip::Controller::RelativeHumidityMeasurementCluster cppCluster; +@end + +@implementation MTRTestRelativeHumidityMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedShortValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestOccupancySensing () +@property (readonly) chip::Controller::OccupancySensingCluster cppCluster; +@end + +@implementation MTRTestOccupancySensing + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestWakeOnLan () +@property (readonly) chip::Controller::WakeOnLanCluster cppCluster; +@end + +@implementation MTRTestWakeOnLan + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestChannel () +@property (readonly) chip::Controller::ChannelCluster cppCluster; +@end + +@implementation MTRTestChannel + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRChannelClusterChannelInfo class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRChannelClusterChannelInfo *) value[i_0]; + listHolder_0->mList[i_0].majorNumber = element_0.majorNumber.unsignedShortValue; + listHolder_0->mList[i_0].minorNumber = element_0.minorNumber.unsignedShortValue; + if (element_0.name != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + definedValue_2 = [self asCharSpan:element_0.name]; + } + if (element_0.callSign != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].callSign.Emplace(); + definedValue_2 = [self asCharSpan:element_0.callSign]; + } + if (element_0.affiliateCallSign != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].affiliateCallSign.Emplace(); + definedValue_2 = [self asCharSpan:element_0.affiliateCallSign]; + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLineupWithValue:(MTRChannelClusterLineupInfo * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::Lineup::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0.operatorName = [self asCharSpan:value.operatorName]; + if (value.lineupName != nil) { + auto & definedValue_2 = nonNullValue_0.lineupName.Emplace(); + definedValue_2 = [self asCharSpan:value.lineupName]; + } + if (value.postalCode != nil) { + auto & definedValue_2 = nonNullValue_0.postalCode.Emplace(); + definedValue_2 = [self asCharSpan:value.postalCode]; + } + nonNullValue_0.lineupInfoType = static_cast>( + value.lineupInfoType.unsignedCharValue); + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentChannelWithValue:(MTRChannelClusterChannelInfo * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::CurrentChannel::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0.majorNumber = value.majorNumber.unsignedShortValue; + nonNullValue_0.minorNumber = value.minorNumber.unsignedShortValue; + if (value.name != nil) { + auto & definedValue_2 = nonNullValue_0.name.Emplace(); + definedValue_2 = [self asCharSpan:value.name]; + } + if (value.callSign != nil) { + auto & definedValue_2 = nonNullValue_0.callSign.Emplace(); + definedValue_2 = [self asCharSpan:value.callSign]; + } + if (value.affiliateCallSign != nil) { + auto & definedValue_2 = nonNullValue_0.affiliateCallSign.Emplace(); + definedValue_2 = [self asCharSpan:value.affiliateCallSign]; + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestTargetNavigator () +@property (readonly) chip::Controller::TargetNavigatorCluster cppCluster; +@end + +@implementation MTRTestTargetNavigator + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::TargetList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRTargetNavigatorClusterTargetInfo class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRTargetNavigatorClusterTargetInfo *) value[i_0]; + listHolder_0->mList[i_0].identifier = element_0.identifier.unsignedCharValue; + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestMediaPlayback () +@property (readonly) chip::Controller::MediaPlaybackCluster cppCluster; +@end + +@implementation MTRTestMediaPlayback + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::CurrentState::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSampledPositionWithValue:(MTRMediaPlaybackClusterPlaybackPosition * _Nullable)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::SampledPosition::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0.updatedAt = value.updatedAt.unsignedLongLongValue; + if (value.position == nil) { + nonNullValue_0.position.SetNull(); + } else { + auto & nonNullValue_2 = nonNullValue_0.position.SetNonNull(); + nonNullValue_2 = value.position.unsignedLongLongValue; + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.floatValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; + TypeInfo::Type cppValue; + if (value == nil) { + cppValue.SetNull(); + } else { + auto & nonNullValue_0 = cppValue.SetNonNull(); + nonNullValue_0 = value.unsignedLongLongValue; + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestMediaInput () +@property (readonly) chip::Controller::MediaInputCluster cppCluster; +@end + +@implementation MTRTestMediaInput + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRMediaInputClusterInputInfo class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRMediaInputClusterInputInfo *) value[i_0]; + listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; + listHolder_0->mList[i_0].inputType + = static_castmList[i_0].inputType)>>( + element_0.inputType.unsignedCharValue); + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + listHolder_0->mList[i_0].description = [self asCharSpan:element_0.descriptionString]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestLowPower () +@property (readonly) chip::Controller::LowPowerCluster cppCluster; +@end + +@implementation MTRTestLowPower + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LowPower::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LowPower::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LowPower::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestKeypadInput () +@property (readonly) chip::Controller::KeypadInputCluster cppCluster; +@end + +@implementation MTRTestKeypadInput + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = KeypadInput::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = KeypadInput::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = KeypadInput::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestContentLauncher () +@property (readonly) chip::Controller::ContentLauncherCluster cppCluster; +@end + +@implementation MTRTestContentLauncher + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::AcceptHeader::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSString class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSString *) value[i_0]; + listHolder_0->mList[i_0] = [self asCharSpan:element_0]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestAudioOutput () +@property (readonly) chip::Controller::AudioOutputCluster cppCluster; +@end + +@implementation MTRTestAudioOutput + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::OutputList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[MTRAudioOutputClusterOutputInfo class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRAudioOutputClusterOutputInfo *) value[i_0]; + listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; + listHolder_0->mList[i_0].outputType + = static_castmList[i_0].outputType)>>( + element_0.outputType.unsignedCharValue); + listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedCharValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestApplicationLauncher () +@property (readonly) chip::Controller::ApplicationLauncherCluster cppCluster; +@end + +@implementation MTRTestApplicationLauncher + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::CatalogList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedShortValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestApplicationBasic () +@property (readonly) chip::Controller::ApplicationBasicCluster cppCluster; +@end + +@implementation MTRTestApplicationBasic + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApplicationWithValue:(MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::Application::TypeInfo; + TypeInfo::Type cppValue; + cppValue.catalogVendorId = value.catalogVendorId.unsignedShortValue; + cppValue.applicationId = [self asCharSpan:value.applicationId]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::Status::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; + TypeInfo::Type cppValue; + cppValue = [self asCharSpan:value]; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::AllowedVendorList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = static_castmList[i_0])>>( + element_0.unsignedShortValue); + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestAccountLogin () +@property (readonly) chip::Controller::AccountLoginCluster cppCluster; +@end + +@implementation MTRTestAccountLogin + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccountLogin::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccountLogin::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccountLogin::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestElectricalMeasurement () +@property (readonly) chip::Controller::ElectricalMeasurementCluster cppCluster; +@end + +@implementation MTRTestElectricalMeasurement + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.intValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.intValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.shortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.charValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value + completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end + +@interface MTRTestTestCluster () +@property (readonly) chip::Controller::TestClusterCluster cppCluster; +@end + +@implementation MTRTestTestCluster + +- (chip::Controller::ClusterBase *)getCluster +{ + return &_cppCluster; +} + +- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TestCluster::Attributes::GeneratedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TestCluster::Attributes::AcceptedCommandList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TestCluster::Attributes::AttributeList::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if (![value[i_0] isKindOfClass:[NSNumber class]]) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (NSNumber *) value[i_0]; + listHolder_0->mList[i_0] = element_0.unsignedIntValue; + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedIntValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +{ + new MTRDefaultSuccessCallbackBridge( + self.callbackQueue, + ^(id _Nullable ignored, NSError * _Nullable error) { + completionHandler(error); + }, + ^(Cancelable * success, Cancelable * failure) { + ListFreer listFreer; + using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; + TypeInfo::Type cppValue; + cppValue = value.unsignedShortValue; + auto successFn = Callback::FromCancelable(success); + auto failureFn = Callback::FromCancelable(failure); + return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); + }); +} + +@end diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index d882221b974457..4c4e422c605aa0 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -471,101 +471,101 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntries_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:0U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:0U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:1UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:1UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:2UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:2UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:4ULL]; temp_3[1] = [NSNumber numberWithUnsignedLongLong:5ULL]; temp_3[2] = [NSNumber numberWithUnsignedLongLong:6ULL]; temp_3[3] = [NSNumber numberWithUnsignedLongLong:7ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:8U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:8U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:9UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:9UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:10UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:11U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:10UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:11U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[2] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).privilege = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).authMode = [NSNumber numberWithUnsignedChar:3U]; + temp_0[2] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).privilege = [NSNumber numberWithUnsignedChar:3U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).authMode = [NSNumber numberWithUnsignedChar:3U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:12ULL]; temp_3[1] = [NSNumber numberWithUnsignedLongLong:13ULL]; temp_3[2] = [NSNumber numberWithUnsignedLongLong:14ULL]; temp_3[3] = [NSNumber numberWithUnsignedLongLong:15ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:16U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:16U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:17UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:17UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:18UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:19U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:18UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:19U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -583,11 +583,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params @@ -600,234 +600,234 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(3))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .endpoint, 0U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .cluster, 1UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .cluster, 2UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .endpoint, 3U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); VerifyOrReturn(CheckValueNonNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); VerifyOrReturn(CheckValue("Subjects", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects count], static_cast(4))); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[0], 4ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[0], 4ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[1], 5ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[1], 5ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[2], 6ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[2], 6ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[3], 7ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[3], 7ULL)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .endpoint, 8U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .cluster, 9UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .cluster, 10UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .endpoint, 11U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).privilege, 3U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).privilege, 3U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).authMode, 3U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).authMode, 3U)); VerifyOrReturn(CheckValueNonNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects)); VerifyOrReturn(CheckValue("Subjects", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects count], static_cast(4))); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[0], 12ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[1], 13ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[2], 14ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[3], 15ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[0], 12ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[1], 13ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[2], 14ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[3], 15ULL)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .endpoint, 16U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .cluster, 17UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .cluster, 18UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .endpoint, 19U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).fabricIndex, 1U)); } NextTest(); @@ -838,32 +838,32 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntriesEmptyLists_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -881,71 +881,72 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; - [cluster readAttributeAclWithParams:params - completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Verify Error: %@", err); + [cluster + readAttributeAclWithParams:params + completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(2))); - VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); - VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); - VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); - VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); - VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); - VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); - VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); - VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); - VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); - VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); - } + { + id actualValue = value; + VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(2))); + VerifyOrReturn(CheckValue( + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + VerifyOrReturn(CheckValue( + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + VerifyOrReturn(CheckValueNull( + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + VerifyOrReturn( + CheckValueNull("Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + VerifyOrReturn(CheckValue( + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + VerifyOrReturn(CheckValue( + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); + VerifyOrReturn(CheckValue( + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); + VerifyOrReturn(CheckValueNull( + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); + VerifyOrReturn( + CheckValueNull("Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); + VerifyOrReturn(CheckValue( + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestWriteEntryInvalidPrivilege_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:3U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -962,11 +963,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -978,15 +979,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -997,26 +998,26 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidAuthMode_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1033,11 +1034,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1049,15 +1050,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1068,30 +1069,30 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidSubject_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:0ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1108,11 +1109,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1124,15 +1125,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1143,34 +1144,34 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidTarget_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1187,11 +1188,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1203,15 +1204,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1222,23 +1223,23 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryTooManySubjects_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:1ULL]; @@ -1261,10 +1262,10 @@ class TestAccessControlCluster : public TestCommandBridge { temp_3[17] = [NSNumber numberWithUnsignedLongLong:18ULL]; temp_3[18] = [NSNumber numberWithUnsignedLongLong:19ULL]; temp_3[19] = [NSNumber numberWithUnsignedLongLong:20ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1281,11 +1282,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1297,15 +1298,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1316,129 +1317,129 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryTooManyTargets_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = [NSNumber numberWithUnsignedShort:2U]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - - temp_3[3] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[3]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[3]).endpoint = [NSNumber numberWithUnsignedShort:4U]; - ((CHIPAccessControlClusterTarget *) temp_3[3]).deviceType = nil; - - temp_3[4] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[4]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[4]).endpoint = [NSNumber numberWithUnsignedShort:5U]; - ((CHIPAccessControlClusterTarget *) temp_3[4]).deviceType = nil; - - temp_3[5] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[5]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[5]).endpoint = [NSNumber numberWithUnsignedShort:6U]; - ((CHIPAccessControlClusterTarget *) temp_3[5]).deviceType = nil; - - temp_3[6] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[6]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[6]).endpoint = [NSNumber numberWithUnsignedShort:7U]; - ((CHIPAccessControlClusterTarget *) temp_3[6]).deviceType = nil; - - temp_3[7] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[7]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[7]).endpoint = [NSNumber numberWithUnsignedShort:8U]; - ((CHIPAccessControlClusterTarget *) temp_3[7]).deviceType = nil; - - temp_3[8] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[8]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[8]).endpoint = [NSNumber numberWithUnsignedShort:9U]; - ((CHIPAccessControlClusterTarget *) temp_3[8]).deviceType = nil; - - temp_3[9] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[9]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[9]).endpoint = [NSNumber numberWithUnsignedShort:10U]; - ((CHIPAccessControlClusterTarget *) temp_3[9]).deviceType = nil; - - temp_3[10] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[10]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[10]).endpoint = [NSNumber numberWithUnsignedShort:11U]; - ((CHIPAccessControlClusterTarget *) temp_3[10]).deviceType = nil; - - temp_3[11] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[11]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[11]).endpoint = [NSNumber numberWithUnsignedShort:12U]; - ((CHIPAccessControlClusterTarget *) temp_3[11]).deviceType = nil; - - temp_3[12] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[12]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[12]).endpoint = [NSNumber numberWithUnsignedShort:13U]; - ((CHIPAccessControlClusterTarget *) temp_3[12]).deviceType = nil; - - temp_3[13] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[13]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[13]).endpoint = [NSNumber numberWithUnsignedShort:14U]; - ((CHIPAccessControlClusterTarget *) temp_3[13]).deviceType = nil; - - temp_3[14] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[14]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[14]).endpoint = [NSNumber numberWithUnsignedShort:15U]; - ((CHIPAccessControlClusterTarget *) temp_3[14]).deviceType = nil; - - temp_3[15] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[15]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[15]).endpoint = [NSNumber numberWithUnsignedShort:16U]; - ((CHIPAccessControlClusterTarget *) temp_3[15]).deviceType = nil; - - temp_3[16] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[16]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[16]).endpoint = [NSNumber numberWithUnsignedShort:17U]; - ((CHIPAccessControlClusterTarget *) temp_3[16]).deviceType = nil; - - temp_3[17] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[17]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[17]).endpoint = [NSNumber numberWithUnsignedShort:18U]; - ((CHIPAccessControlClusterTarget *) temp_3[17]).deviceType = nil; - - temp_3[18] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[18]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[18]).endpoint = [NSNumber numberWithUnsignedShort:19U]; - ((CHIPAccessControlClusterTarget *) temp_3[18]).deviceType = nil; - - temp_3[19] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[19]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[19]).endpoint = [NSNumber numberWithUnsignedShort:20U]; - ((CHIPAccessControlClusterTarget *) temp_3[19]).deviceType = nil; - - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; - } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:1U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = [NSNumber numberWithUnsignedShort:2U]; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + + temp_3[3] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[3]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[3]).endpoint = [NSNumber numberWithUnsignedShort:4U]; + ((MTRAccessControlClusterTarget *) temp_3[3]).deviceType = nil; + + temp_3[4] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[4]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[4]).endpoint = [NSNumber numberWithUnsignedShort:5U]; + ((MTRAccessControlClusterTarget *) temp_3[4]).deviceType = nil; + + temp_3[5] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[5]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[5]).endpoint = [NSNumber numberWithUnsignedShort:6U]; + ((MTRAccessControlClusterTarget *) temp_3[5]).deviceType = nil; + + temp_3[6] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[6]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[6]).endpoint = [NSNumber numberWithUnsignedShort:7U]; + ((MTRAccessControlClusterTarget *) temp_3[6]).deviceType = nil; + + temp_3[7] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[7]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[7]).endpoint = [NSNumber numberWithUnsignedShort:8U]; + ((MTRAccessControlClusterTarget *) temp_3[7]).deviceType = nil; + + temp_3[8] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[8]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[8]).endpoint = [NSNumber numberWithUnsignedShort:9U]; + ((MTRAccessControlClusterTarget *) temp_3[8]).deviceType = nil; + + temp_3[9] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[9]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[9]).endpoint = [NSNumber numberWithUnsignedShort:10U]; + ((MTRAccessControlClusterTarget *) temp_3[9]).deviceType = nil; + + temp_3[10] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[10]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[10]).endpoint = [NSNumber numberWithUnsignedShort:11U]; + ((MTRAccessControlClusterTarget *) temp_3[10]).deviceType = nil; + + temp_3[11] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[11]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[11]).endpoint = [NSNumber numberWithUnsignedShort:12U]; + ((MTRAccessControlClusterTarget *) temp_3[11]).deviceType = nil; + + temp_3[12] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[12]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[12]).endpoint = [NSNumber numberWithUnsignedShort:13U]; + ((MTRAccessControlClusterTarget *) temp_3[12]).deviceType = nil; + + temp_3[13] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[13]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[13]).endpoint = [NSNumber numberWithUnsignedShort:14U]; + ((MTRAccessControlClusterTarget *) temp_3[13]).deviceType = nil; + + temp_3[14] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[14]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[14]).endpoint = [NSNumber numberWithUnsignedShort:15U]; + ((MTRAccessControlClusterTarget *) temp_3[14]).deviceType = nil; + + temp_3[15] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[15]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[15]).endpoint = [NSNumber numberWithUnsignedShort:16U]; + ((MTRAccessControlClusterTarget *) temp_3[15]).deviceType = nil; + + temp_3[16] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[16]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[16]).endpoint = [NSNumber numberWithUnsignedShort:17U]; + ((MTRAccessControlClusterTarget *) temp_3[16]).deviceType = nil; + + temp_3[17] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[17]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[17]).endpoint = [NSNumber numberWithUnsignedShort:18U]; + ((MTRAccessControlClusterTarget *) temp_3[17]).deviceType = nil; + + temp_3[18] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[18]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[18]).endpoint = [NSNumber numberWithUnsignedShort:19U]; + ((MTRAccessControlClusterTarget *) temp_3[18]).deviceType = nil; + + temp_3[19] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[19]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[19]).endpoint = [NSNumber numberWithUnsignedShort:20U]; + ((MTRAccessControlClusterTarget *) temp_3[19]).deviceType = nil; + + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + } + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1455,11 +1456,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1471,15 +1472,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1490,133 +1491,133 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteTooManyEntries_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:0U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:0U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:1UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:1UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:2UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:2UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:3U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:4ULL]; temp_3[1] = [NSNumber numberWithUnsignedLongLong:5ULL]; temp_3[2] = [NSNumber numberWithUnsignedLongLong:6ULL]; temp_3[3] = [NSNumber numberWithUnsignedLongLong:7ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:8U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:8U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:9UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:9UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:10UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:11U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:10UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:11U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[2] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).privilege = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).authMode = [NSNumber numberWithUnsignedChar:3U]; + temp_0[2] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).privilege = [NSNumber numberWithUnsignedChar:3U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).authMode = [NSNumber numberWithUnsignedChar:3U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:12ULL]; temp_3[1] = [NSNumber numberWithUnsignedLongLong:13ULL]; temp_3[2] = [NSNumber numberWithUnsignedLongLong:14ULL]; temp_3[3] = [NSNumber numberWithUnsignedLongLong:15ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:16U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:16U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:17UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:17UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:18UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:19U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:18UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:19U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[3] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[3]).privilege = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[3]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[3] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[3]).privilege = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[3]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:20ULL]; temp_3[1] = [NSNumber numberWithUnsignedLongLong:21ULL]; temp_3[2] = [NSNumber numberWithUnsignedLongLong:22ULL]; temp_3[3] = [NSNumber numberWithUnsignedLongLong:23ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[3]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[3]).subjects = temp_3; } { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:24U]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = [NSNumber numberWithUnsignedShort:24U]; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - temp_3[1] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:25UL]; - ((CHIPAccessControlClusterTarget *) temp_3[1]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[1]).deviceType = nil; + temp_3[1] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[1]).cluster = [NSNumber numberWithUnsignedInt:25UL]; + ((MTRAccessControlClusterTarget *) temp_3[1]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[1]).deviceType = nil; - temp_3[2] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:26UL]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:27U]; - ((CHIPAccessControlClusterTarget *) temp_3[2]).deviceType = nil; + temp_3[2] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[2]).cluster = [NSNumber numberWithUnsignedInt:26UL]; + ((MTRAccessControlClusterTarget *) temp_3[2]).endpoint = [NSNumber numberWithUnsignedShort:27U]; + ((MTRAccessControlClusterTarget *) temp_3[2]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[3]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[3]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[3]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[3]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1633,11 +1634,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params @@ -1650,234 +1651,234 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(3))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .endpoint, 0U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .cluster, 1UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .cluster, 2UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .endpoint, 3U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).privilege, 1U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).authMode, 2U)); VerifyOrReturn(CheckValueNonNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects)); VerifyOrReturn(CheckValue("Subjects", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects count], static_cast(4))); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[0], 4ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[0], 4ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[1], 5ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[1], 5ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[2], 6ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[2], 6ULL)); VerifyOrReturn( - CheckValue("", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[3], 7ULL)); + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).subjects[3], 7ULL)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .endpoint, 8U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .cluster, 9UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .cluster, 10UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .endpoint, 11U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[1]).fabricIndex, 1U)); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).privilege, 3U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).privilege, 3U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).authMode, 3U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).authMode, 3U)); VerifyOrReturn(CheckValueNonNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects)); VerifyOrReturn(CheckValue("Subjects", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects count], static_cast(4))); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[0], 12ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[1], 13ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[2], 14ULL)); - VerifyOrReturn(CheckValue( - "", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[3], 15ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[0], 12ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[1], 13ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[2], 14ULL)); + VerifyOrReturn( + CheckValue("", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).subjects[3], 15ULL)); VerifyOrReturn(CheckValueNonNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).targets)); VerifyOrReturn(CheckValue("Targets", - [((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).targets count], + [((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).targets count], static_cast(3))); VerifyOrReturn(CheckValueNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .cluster)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .endpoint, 16U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[0]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .cluster, 17UL)); VerifyOrReturn(CheckValueNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .endpoint)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[1]) .deviceType)); VerifyOrReturn(CheckValueNonNull("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .cluster)); VerifyOrReturn(CheckValue("Cluster", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .cluster, 18UL)); VerifyOrReturn(CheckValueNonNull("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .endpoint)); VerifyOrReturn(CheckValue("Endpoint", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .endpoint, 19U)); VerifyOrReturn(CheckValueNull("DeviceType", - ((CHIPAccessControlClusterTarget *) ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]) + ((MTRAccessControlClusterTarget *) ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]) .targets[2]) .deviceType)); VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[2]).fabricIndex, 1U)); + "FabricIndex", ((MTRAccessControlClusterAccessControlEntry *) actualValue[2]).fabricIndex, 1U)); } NextTest(); @@ -1888,19 +1889,19 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestRestoreAcl_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; aclArgument = temp_0; } @@ -1918,11 +1919,11 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeAclWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -1934,15 +1935,15 @@ class TestAccessControlCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("ACL", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue( - "Privilege", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); + "Privilege", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).privilege, 5U)); VerifyOrReturn(CheckValue( - "AuthMode", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); + "AuthMode", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).authMode, 2U)); VerifyOrReturn(CheckValueNull( - "Subjects", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); + "Subjects", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).subjects)); VerifyOrReturn(CheckValueNull( - "Targets", ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); + "Targets", ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).targets)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); + ((MTRAccessControlClusterAccessControlEntry *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -1953,8 +1954,8 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaSubjectsPerAccessControlEntry_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -1973,8 +1974,8 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaTargetsPerAccessControlEntry_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -1993,8 +1994,8 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaAccessControlEntriesPerFabric_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -2145,8 +2146,8 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2168,8 +2169,8 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2191,8 +2192,8 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2220,8 +2221,8 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2243,8 +2244,8 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2366,8 +2367,8 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadMandatoryNonGlobalAttributeStateValue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBooleanState * cluster = [[CHIPTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2514,8 +2515,8 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBridgedActions * cluster = [[CHIPTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2537,8 +2538,8 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBridgedActions * cluster = [[CHIPTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2558,8 +2559,8 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBridgedActions * cluster = [[CHIPTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2581,8 +2582,8 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBridgedActions * cluster = [[CHIPTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2749,8 +2750,8 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2772,8 +2773,8 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2795,8 +2796,8 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2834,8 +2835,8 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2852,8 +2853,8 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -3624,8 +3625,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentHue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3647,8 +3648,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3670,8 +3671,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3692,8 +3693,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3713,8 +3714,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3735,8 +3736,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3756,8 +3757,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorTemperatureMiredsAttributeFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3778,8 +3779,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3799,8 +3800,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorModeAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3821,8 +3822,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3842,8 +3843,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeOptions_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3865,8 +3866,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3888,8 +3889,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3911,8 +3912,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3934,8 +3935,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3957,8 +3958,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3980,8 +3981,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4004,8 +4005,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4029,8 +4030,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4050,8 +4051,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorCapabilitiesAttributeFromDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4072,8 +4073,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4093,8 +4094,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorTempPhysicalMinMiredsAttributeFromDut_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4116,8 +4117,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4138,8 +4139,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadColorTempPhysicalMaxMiredsAttributeFromDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4161,8 +4162,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4183,8 +4184,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( @@ -4206,8 +4207,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( @@ -4228,8 +4229,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4251,8 +4252,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4272,8 +4273,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeCompensationText_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -4291,8 +4292,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4315,8 +4316,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4336,8 +4337,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4357,8 +4358,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4379,8 +4380,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4400,8 +4401,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4421,8 +4422,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4443,8 +4444,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4464,8 +4465,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4485,8 +4486,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4507,8 +4508,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4528,8 +4529,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4549,8 +4550,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4571,8 +4572,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4592,8 +4593,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4613,8 +4614,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4635,8 +4636,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4656,8 +4657,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4677,8 +4678,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4699,8 +4700,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4720,8 +4721,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4741,8 +4742,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4762,8 +4763,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4783,8 +4784,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4805,8 +4806,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4826,8 +4827,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4847,8 +4848,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4869,8 +4870,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4890,8 +4891,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4911,8 +4912,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5328,8 +5329,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -5345,8 +5346,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5367,8 +5368,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5388,11 +5389,11 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueShortestDistanceCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.hue = [NSNumber numberWithUnsignedChar:150U]; params.direction = [NSNumber numberWithUnsignedChar:0U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -5419,8 +5420,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5447,8 +5448,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5475,8 +5476,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5496,11 +5497,11 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueLongestDistanceCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.hue = [NSNumber numberWithUnsignedChar:200U]; params.direction = [NSNumber numberWithUnsignedChar:1U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -5527,8 +5528,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5555,8 +5556,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5583,8 +5584,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5604,11 +5605,11 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueUpCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.hue = [NSNumber numberWithUnsignedChar:250U]; params.direction = [NSNumber numberWithUnsignedChar:2U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -5635,8 +5636,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5663,8 +5664,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5691,8 +5692,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5712,11 +5713,11 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueDownCommand_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.hue = [NSNumber numberWithUnsignedChar:225U]; params.direction = [NSNumber numberWithUnsignedChar:3U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -5743,8 +5744,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5771,8 +5772,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5799,8 +5800,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5820,8 +5821,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -5837,8 +5838,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6254,8 +6255,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -6271,8 +6272,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6293,8 +6294,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6314,11 +6315,11 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -6344,8 +6345,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6372,8 +6373,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6400,8 +6401,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6421,11 +6422,11 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueStopCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -6451,8 +6452,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6479,8 +6480,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6507,8 +6508,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6528,11 +6529,11 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueDownCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedChar:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -6558,8 +6559,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6586,8 +6587,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6614,8 +6615,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6635,11 +6636,11 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueStopCommand_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -6665,8 +6666,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6693,8 +6694,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6721,8 +6722,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6742,8 +6743,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -6759,8 +6760,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6962,8 +6963,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -6979,8 +6980,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7001,8 +7002,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7022,11 +7023,11 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestStepHueUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedChar:5U]; params.transitionTime = [NSNumber numberWithUnsignedChar:25U]; @@ -7053,8 +7054,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentHueAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7074,11 +7075,11 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestStepHueDownCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:3U]; params.stepSize = [NSNumber numberWithUnsignedChar:5U]; params.transitionTime = [NSNumber numberWithUnsignedChar:25U]; @@ -7105,8 +7106,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentHueAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7126,8 +7127,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -7143,8 +7144,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7356,8 +7357,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -7373,8 +7374,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7395,8 +7396,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedBeforeAnyChange_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7416,11 +7417,11 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestMoveToSaturationCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToSaturationParams alloc] init]; params.saturation = [NSNumber numberWithUnsignedChar:90U]; params.transitionTime = [NSNumber numberWithUnsignedShort:10U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -7446,8 +7447,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7474,8 +7475,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7502,8 +7503,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7523,8 +7524,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -7540,8 +7541,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8094,8 +8095,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -8111,8 +8112,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8133,8 +8134,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8154,11 +8155,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8184,8 +8185,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8212,8 +8213,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8240,8 +8241,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8261,11 +8262,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationDownCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8291,8 +8292,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8319,8 +8320,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8347,8 +8348,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8368,11 +8369,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8398,8 +8399,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8426,8 +8427,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8454,8 +8455,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8475,11 +8476,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationStopCommand_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8505,8 +8506,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8533,8 +8534,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8561,8 +8562,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8582,11 +8583,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationDownCommand_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8612,8 +8613,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8640,8 +8641,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8668,8 +8669,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8689,11 +8690,11 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationStopCommand_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -8719,8 +8720,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8747,8 +8748,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8775,8 +8776,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8796,8 +8797,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -8813,8 +8814,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9016,8 +9017,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9033,8 +9034,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9055,8 +9056,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentSaturationAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9076,11 +9077,11 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestStepSaturationUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedChar:15U]; params.transitionTime = [NSNumber numberWithUnsignedChar:10U]; @@ -9107,8 +9108,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentSaturationAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9128,11 +9129,11 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestStepSaturationDownCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:3U]; params.stepSize = [NSNumber numberWithUnsignedChar:20U]; params.transitionTime = [NSNumber numberWithUnsignedChar:10U]; @@ -9159,8 +9160,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadsCurrentSaturationAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9180,8 +9181,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9197,8 +9198,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9395,8 +9396,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9412,8 +9413,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9434,8 +9435,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedBeforeAnyChange_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9455,8 +9456,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedBeforeAnyChange_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9476,11 +9477,11 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestMoveToCurrentHueAndSaturationCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToHueAndSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToHueAndSaturationParams alloc] init]; params.hue = [NSNumber numberWithUnsignedChar:40U]; params.saturation = [NSNumber numberWithUnsignedChar:160U]; params.transitionTime = [NSNumber numberWithUnsignedShort:10U]; @@ -9507,8 +9508,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9528,8 +9529,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9549,8 +9550,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9566,8 +9567,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9764,8 +9765,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9781,8 +9782,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9803,8 +9804,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9824,8 +9825,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9845,11 +9846,11 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestMoveToColorCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToColorParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToColorParams alloc] init]; params.colorX = [NSNumber numberWithUnsignedShort:200U]; params.colorY = [NSNumber numberWithUnsignedShort:300U]; params.transitionTime = [NSNumber numberWithUnsignedShort:20U]; @@ -9876,8 +9877,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9897,8 +9898,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9918,8 +9919,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9935,8 +9936,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10168,8 +10169,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10185,8 +10186,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10207,8 +10208,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10228,8 +10229,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10249,11 +10250,11 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestMoveColorCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; params.rateX = [NSNumber numberWithShort:15]; params.rateY = [NSNumber numberWithShort:20]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -10279,8 +10280,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10300,8 +10301,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10321,11 +10322,11 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -10342,8 +10343,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10363,8 +10364,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10384,8 +10385,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -10401,8 +10402,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10599,8 +10600,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10616,8 +10617,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10638,8 +10639,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10659,8 +10660,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10680,11 +10681,11 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestStepColorCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepColorParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepColorParams alloc] init]; params.stepX = [NSNumber numberWithShort:15]; params.stepY = [NSNumber numberWithShort:20]; params.transitionTime = [NSNumber numberWithUnsignedShort:50U]; @@ -10711,8 +10712,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10732,8 +10733,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10753,8 +10754,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -10770,8 +10771,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10944,8 +10945,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10961,8 +10962,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10983,8 +10984,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11004,11 +11005,11 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestMoveToColorTemperatureCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveToColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveToColorTemperatureParams alloc] init]; params.colorTemperature = [NSNumber numberWithUnsignedShort:100U]; params.transitionTime = [NSNumber numberWithUnsignedShort:10U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -11034,8 +11035,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11055,8 +11056,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -11072,8 +11073,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11499,8 +11500,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -11516,8 +11517,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11538,8 +11539,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11559,11 +11560,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedShort:10U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11591,8 +11592,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11619,8 +11620,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11647,8 +11648,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11668,11 +11669,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveDownColorTemperatureCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedShort:20U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11700,8 +11701,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11728,8 +11729,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11756,8 +11757,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11777,11 +11778,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedShort:10U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11802,11 +11803,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestStopColorTemperatureCommand_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedShort:10U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11834,8 +11835,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11862,8 +11863,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11890,8 +11891,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11911,11 +11912,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveDownColorTemperatureCommand_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedShort:20U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11936,11 +11937,11 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestStopColorTemperatureCommand_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedShort:10U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -11968,8 +11969,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11996,8 +11997,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12024,8 +12025,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12045,8 +12046,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -12062,8 +12063,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12337,8 +12338,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -12354,8 +12355,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12376,8 +12377,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12397,11 +12398,11 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestStepUpColorTemperatureCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedShort:5U]; params.transitionTime = [NSNumber numberWithUnsignedShort:50U]; @@ -12430,8 +12431,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12458,8 +12459,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12486,8 +12487,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12507,11 +12508,11 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestStepDownColorTemperatureCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStepColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:3U]; params.stepSize = [NSNumber numberWithUnsignedShort:5U]; params.transitionTime = [NSNumber numberWithUnsignedShort:50U]; @@ -12540,8 +12541,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12568,8 +12569,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12596,8 +12597,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12617,8 +12618,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -12634,8 +12635,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13063,8 +13064,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -13080,8 +13081,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13102,11 +13103,11 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1025U]; params.direction = [NSNumber numberWithUnsignedChar:0U]; params.transitionTime = [NSNumber numberWithUnsignedShort:1U]; @@ -13126,8 +13127,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13147,11 +13148,11 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1100U]; params.direction = [NSNumber numberWithUnsignedChar:0U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -13178,8 +13179,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13206,8 +13207,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13234,8 +13235,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13255,11 +13256,11 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1150U]; params.direction = [NSNumber numberWithUnsignedChar:1U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -13286,8 +13287,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13314,8 +13315,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13342,8 +13343,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13363,11 +13364,11 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1200U]; params.direction = [NSNumber numberWithUnsignedChar:2U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -13394,8 +13395,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13422,8 +13423,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13450,8 +13451,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13471,11 +13472,11 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1300U]; params.direction = [NSNumber numberWithUnsignedChar:3U]; params.transitionTime = [NSNumber numberWithUnsignedShort:300U]; @@ -13502,8 +13503,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13530,8 +13531,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13558,8 +13559,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13579,8 +13580,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -13596,8 +13597,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13923,8 +13924,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -13940,8 +13941,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13962,8 +13963,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13983,11 +13984,11 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedShort:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -14013,8 +14014,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14041,8 +14042,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14069,8 +14070,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14090,11 +14091,11 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueStopCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedShort:0U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -14113,8 +14114,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14134,11 +14135,11 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueDownCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:3U]; params.rate = [NSNumber numberWithUnsignedShort:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -14164,8 +14165,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14192,8 +14193,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14220,8 +14221,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14241,11 +14242,11 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueStopCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedShort:0U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -14264,8 +14265,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14285,8 +14286,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14302,8 +14303,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14505,8 +14506,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -14522,8 +14523,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14544,8 +14545,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14565,11 +14566,11 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestEnhancedStepHueUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedStepHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:0U]; params.stepSize = [NSNumber numberWithUnsignedShort:50U]; params.transitionTime = [NSNumber numberWithUnsignedShort:1U]; @@ -14596,8 +14597,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadEnhancedCurrentHueAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14617,11 +14618,11 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestEnhancedStepHueDownCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedStepHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedShort:75U]; params.transitionTime = [NSNumber numberWithUnsignedShort:1U]; @@ -14648,8 +14649,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadEnhancedCurrentHueAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14669,8 +14670,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14686,8 +14687,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14861,8 +14862,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -14878,8 +14879,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14900,8 +14901,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14921,11 +14922,11 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueAndSaturationCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; params.enhancedHue = [NSNumber numberWithUnsignedShort:1200U]; params.saturation = [NSNumber numberWithUnsignedChar:90U]; params.transitionTime = [NSNumber numberWithUnsignedShort:10U]; @@ -14952,8 +14953,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14973,8 +14974,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14990,8 +14991,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15474,8 +15475,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -15491,8 +15492,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15513,11 +15514,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveHueUpCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -15536,8 +15537,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15557,11 +15558,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -15578,8 +15579,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15606,8 +15607,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15627,11 +15628,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveSaturationParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -15650,8 +15651,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15671,11 +15672,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -15692,8 +15693,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentSaturationAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15720,8 +15721,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastAttribute_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15741,11 +15742,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveColorCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; params.rateX = [NSNumber numberWithShort:15]; params.rateY = [NSNumber numberWithShort:20]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -15764,8 +15765,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15785,8 +15786,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15806,11 +15807,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -15827,8 +15828,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15848,8 +15849,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15876,8 +15877,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastAttribute_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15897,8 +15898,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastAttribute_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15918,11 +15919,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterMoveColorTemperatureParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedShort:10U]; params.colorTemperatureMinimumMireds = [NSNumber numberWithUnsignedShort:1U]; @@ -15943,8 +15944,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorTempratureFromDut_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15964,11 +15965,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -15985,8 +15986,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorTempratureFromDut_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16013,8 +16014,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorAttributeValueMatchedTheValueSentByTheLastAttribute_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16034,11 +16035,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueUpCommand_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterEnhancedMoveHueParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedShort:50U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; @@ -16057,8 +16058,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeValueFromDut_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16078,11 +16079,11 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPColorControlClusterStopMoveStepParams alloc] init]; + __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopMoveStepWithParams:params @@ -16099,8 +16100,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeValueFromDut_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16127,8 +16128,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastAttribute_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16148,8 +16149,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -16165,8 +16166,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16418,8 +16419,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryDataModelRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDataModelRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16436,8 +16437,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryVendorName_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16455,8 +16456,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryVendorID_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16473,8 +16474,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductName_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16492,8 +16493,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductID_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16510,8 +16511,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryNodeLabel_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16529,8 +16530,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryUserLocation_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16548,8 +16549,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryHardwareVersion_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16566,8 +16567,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryHardwareVersionString_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16604,14 +16605,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryPartNumber_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query PartNumber Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16637,14 +16638,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductLabel_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query ProductLabel Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16661,14 +16662,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQuerySerialNumber_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query SerialNumber Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16685,14 +16686,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryLocalConfigDisabled_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query LocalConfigDisabled Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16708,14 +16709,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryReachable_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Reachable Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16731,14 +16732,14 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryUniqueID_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query UniqueID Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -16887,8 +16888,8 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16910,8 +16911,8 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16933,8 +16934,8 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -16965,8 +16966,8 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -16988,8 +16989,8 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -17258,10 +17259,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPHYRateAttributeConstraints_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17284,10 +17285,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadFullDuplexAttributeConstraints_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17308,10 +17309,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPacketRxCountAttributeConstraints_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17337,10 +17338,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPacketTxCountAttributeConstraints_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17366,10 +17367,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTxErrCountAttributeConstraints_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17396,10 +17397,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCollisionCountAttributeConstraints_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17426,10 +17427,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOverrunCountAttributeConstraints_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17456,10 +17457,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCarrierDetectAttributeConstraints_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17490,10 +17491,10 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTimeSinceResetAttributeConstraints_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17669,10 +17670,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsResetCountsCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetCountsWithCompletionHandler:^(NSError * _Nullable err) { @@ -17688,10 +17689,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadThePacketRxCountAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17712,10 +17713,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadThePacketTxCountAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17736,10 +17737,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheTxErrCountAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17760,10 +17761,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheCollisionCountAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17784,10 +17785,10 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheOverrunCountAttribute_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestEthernetNetworkDiagnostics * cluster = [[CHIPTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17955,8 +17956,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17978,8 +17979,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18001,8 +18002,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18028,8 +18029,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18060,8 +18061,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18083,8 +18084,8 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18227,8 +18228,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18249,8 +18250,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18271,8 +18272,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18293,14 +18294,14 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: Tolerance Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -18451,10 +18452,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18476,10 +18477,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18501,10 +18502,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18532,10 +18533,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18560,10 +18561,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18768,10 +18769,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheBreadCrumbAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18788,10 +18789,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1WritesTheBreadCrumbAttributeAs1ToTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -18810,10 +18811,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheBreadCrumbAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18834,10 +18835,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheRegulatoryConfigAttributeFromTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRegulatoryConfigWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18856,10 +18857,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheLocationCapabilityAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationCapabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18879,14 +18880,14 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsBasicCommissioningInfoAttributeFromDutAndVerifyThatTheBasicCommissioningInfoAttributeHasTheFollowingFieldFailSafeExpiryLengthSecondsFieldValueIsWithinADurationRangeOf0To65535_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBasicCommissioningInfoWithCompletionHandler:^( - CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable err) { + MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable err) { NSLog( @"TH1 reads BasicCommissioningInfo attribute from DUT and Verify that the BasicCommissioningInfo attribute has the " @"following field: FailSafeExpiryLengthSeconds field value is within a duration range of 0 to 65535 Error: %@", @@ -18912,10 +18913,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsSupportsConcurrentConnectionAttributeFromTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -19052,10 +19053,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19077,10 +19078,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19102,10 +19103,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19130,10 +19131,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19156,10 +19157,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19370,10 +19371,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsNetworkInterfacesStructureAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19390,10 +19391,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsARebootCountAttributeValueFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRebootCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19429,10 +19430,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestDutRebootsAndThReadsAUpTimeAttributeValueOfDutSinceSomeArbitraryStartTimeOfDutRebooting_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUpTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19451,10 +19452,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsATotalOperationalHoursAttributeValueFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTotalOperationalHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19484,10 +19485,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsBootReasonAttributeValueFromDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBootReasonsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19665,8 +19666,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19688,8 +19689,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19711,8 +19712,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19741,8 +19742,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19766,8 +19767,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19896,8 +19897,8 @@ class Test_TC_I_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheIdentifyTimeAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19914,8 +19915,8 @@ class Test_TC_I_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheIdentifyTypeAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20137,11 +20138,11 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsIdentifyCommandToDutWithTheIdentifyTimeFieldSetTo0x003c60s_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterIdentifyParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; params.identifyTime = [NSNumber numberWithUnsignedShort:60U]; [cluster identifyWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -20157,8 +20158,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsImmediatelyIdentifyTimeAttributeFromDut1_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20184,8 +20185,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestAfter10SecondsTheThReadsIdentifyTimeAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20214,11 +20215,11 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsIdentifyCommandToDutWithTheIdentifyTimeFieldSetTo0x0000StopIdentifying_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterIdentifyParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; params.identifyTime = [NSNumber numberWithUnsignedShort:0U]; [cluster identifyWithParams:params @@ -20237,8 +20238,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsImmediatelyIdentifyTimeAttributeFromDut2_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20268,8 +20269,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf0x000f15sToIdentifyTimeAttributeOfDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id identifyTimeArgument; @@ -20295,8 +20296,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestAfter5SecondsTheThReadsIdentifyTimeAttributeFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20606,11 +20607,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x00BlinkAndTheEffectVariantFieldSetTo0x00Default_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:0U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20637,11 +20638,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:1U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20668,11 +20669,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x02OkayAndTheEffectVariantFieldSetTo0x00Default_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:2U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20699,11 +20700,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x0bChannelChangeAndTheEffectVariantFieldSetTo0x00Default_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:11U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20730,11 +20731,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:1U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20761,11 +20762,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xfeFinishEffectAndTheEffectVariantFieldSetTo0x00Default_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:254U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20793,11 +20794,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:1U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20824,11 +20825,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xffStopEffectAndTheEffectVariantFieldSetTo0x00Default_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:255U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -20856,11 +20857,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x00BlinkAndTheEffectVariantFieldSetTo0x42Unknown_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:0U]; params.effectVariant = [NSNumber numberWithUnsignedChar:66U]; [cluster triggerEffectWithParams:params @@ -20887,11 +20888,11 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xffStopEffectAndTheEffectVariantFieldSetTo0x00Default_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterTriggerEffectParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.effectIdentifier = [NSNumber numberWithUnsignedChar:255U]; params.effectVariant = [NSNumber numberWithUnsignedChar:0U]; [cluster triggerEffectWithParams:params @@ -21050,10 +21051,10 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21075,10 +21076,10 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21100,10 +21101,10 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21129,10 +21130,10 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21154,10 +21155,10 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21311,10 +21312,10 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMeasuredValueAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21337,10 +21338,10 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMinMeasuredValueAttributeFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21363,10 +21364,10 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMaxMeasuredValueAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21389,10 +21390,10 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsToleranceAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21412,10 +21413,10 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsLightSensorTypeAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIlluminanceMeasurement * cluster = [[CHIPTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21574,8 +21575,8 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21597,8 +21598,8 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21620,8 +21621,8 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21642,8 +21643,8 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21669,8 +21670,8 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21971,11 +21972,11 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:254U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -22002,8 +22003,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentLevelAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22029,8 +22030,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheRemainingTimeAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22053,8 +22054,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22083,8 +22084,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22108,8 +22109,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22138,8 +22139,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22162,8 +22163,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep4b4cReadsTheCurrentLevelAttribute_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22183,8 +22184,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep4b4cReadsTheCurrentLevelAttribute_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22204,8 +22205,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentFrequencyAttribute_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22223,8 +22224,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinFrequencyAttribute_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22246,8 +22247,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxFrequencyAttribute_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22268,8 +22269,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep7b7cReadsTheCurrentFrequencyAttribute_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22289,8 +22290,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttribute_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22312,8 +22313,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttribute_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22336,8 +22337,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttribute_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22360,8 +22361,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttribute_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22382,8 +22383,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttribute_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22404,8 +22405,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttribute_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22426,8 +22427,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOptionsAttribute_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22449,8 +22450,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttribute_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22688,8 +22689,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22711,8 +22712,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnOffTransitionTimeAttributeOnTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onOffTransitionTimeArgument; @@ -22731,8 +22732,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22755,8 +22756,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22780,8 +22781,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnLevelAttributeOnTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onLevelArgument; @@ -22800,8 +22801,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22829,8 +22830,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22854,8 +22855,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnTransitionTimeAttributeOnTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onTransitionTimeArgument; @@ -22874,8 +22875,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22903,8 +22904,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22928,8 +22929,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOffTransitionTimeAttributeOnTheDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id offTransitionTimeArgument; @@ -22948,8 +22949,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22976,8 +22977,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23003,8 +23004,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheDefaultMoveRateAttributeOnTheDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id defaultMoveRateArgument; @@ -23023,8 +23024,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23051,8 +23052,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23076,8 +23077,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheStartUpCurrentLevelAttributeOnTheDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpCurrentLevelArgument; @@ -23096,8 +23097,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23124,8 +23125,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesBackDefaultValueOfOnOffTransitionTimeAttribute_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onOffTransitionTimeArgument; @@ -23354,8 +23355,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23372,8 +23373,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23390,11 +23391,11 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:64U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23420,8 +23421,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23442,11 +23443,11 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:100U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23472,8 +23473,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23494,8 +23495,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsOnOffTransitionTimeAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23512,11 +23513,11 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:128U]; params.transitionTime = [NSNumber numberWithUnsignedShort:100U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23542,8 +23543,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23564,8 +23565,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23582,11 +23583,11 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:64U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23612,8 +23613,8 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23634,11 +23635,11 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:254U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23876,8 +23877,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23898,11 +23899,11 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:1U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23922,8 +23923,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsMaxLevelAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23944,11 +23945,11 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:32U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -23984,8 +23985,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24006,11 +24007,11 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveWithOnOffCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveWithOnOffParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveWithOnOffParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:1U]; params.rate = [NSNumber numberWithUnsignedChar:64U]; [cluster moveWithOnOffWithParams:params @@ -24044,8 +24045,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24070,8 +24071,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24095,11 +24096,11 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:255U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -24134,11 +24135,11 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:254U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -24326,8 +24327,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24348,11 +24349,11 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:1U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; [cluster moveToLevelWithOnOffWithParams:params @@ -24370,8 +24371,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24392,11 +24393,11 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsStepUpCommandToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterStepParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterStepParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:0U]; params.stepSize = [NSNumber numberWithUnsignedChar:64U]; params.transitionTime = [NSNumber numberWithUnsignedShort:20U]; @@ -24423,8 +24424,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24446,11 +24447,11 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsAStepWithOnOffCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterStepWithOnOffParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterStepWithOnOffParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedChar:64U]; params.transitionTime = [NSNumber numberWithUnsignedShort:20U]; @@ -24475,8 +24476,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24497,11 +24498,11 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:254U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -24717,8 +24718,8 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24739,11 +24740,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:1U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; [cluster moveToLevelWithOnOffWithParams:params @@ -24761,8 +24762,8 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24784,11 +24785,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -24814,11 +24815,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsStopCommandToDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterStopParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; params.optionMask = [NSNumber numberWithUnsignedChar:0U]; params.optionOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopWithParams:params @@ -24843,8 +24844,8 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24864,11 +24865,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.moveMode = [NSNumber numberWithUnsignedChar:0U]; params.rate = [NSNumber numberWithUnsignedChar:5U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -24894,11 +24895,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsStopCommandToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterStopParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; params.optionMask = [NSNumber numberWithUnsignedChar:0U]; params.optionOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stopWithParams:params @@ -24923,8 +24924,8 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24944,11 +24945,11 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPLevelControlClusterMoveToLevelParams alloc] init]; + __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.level = [NSNumber numberWithUnsignedChar:254U]; params.transitionTime = [NSNumber numberWithUnsignedShort:0U]; params.optionMask = [NSNumber numberWithUnsignedChar:1U]; @@ -25106,8 +25107,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25129,8 +25130,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25152,8 +25153,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25180,8 +25181,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25204,8 +25205,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25372,8 +25373,8 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25395,8 +25396,8 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25418,8 +25419,8 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25446,8 +25447,8 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25470,8 +25471,8 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25643,10 +25644,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25668,10 +25669,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25693,10 +25694,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25719,10 +25720,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25747,10 +25748,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25922,8 +25923,8 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25945,8 +25946,8 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25968,8 +25969,8 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25992,8 +25993,8 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26019,8 +26020,8 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26183,8 +26184,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26206,8 +26207,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26229,8 +26230,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26253,8 +26254,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26276,8 +26277,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26448,8 +26449,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26471,8 +26472,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26494,8 +26495,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26518,8 +26519,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26544,8 +26545,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26707,8 +26708,8 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26730,8 +26731,8 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26753,8 +26754,8 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26778,8 +26779,8 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26800,8 +26801,8 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26965,8 +26966,8 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26988,8 +26989,8 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27011,8 +27012,8 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27041,8 +27042,8 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27061,8 +27062,8 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27240,8 +27241,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27263,8 +27264,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27286,8 +27287,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27316,8 +27317,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27345,8 +27346,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27369,8 +27370,8 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27538,10 +27539,8 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27563,10 +27562,8 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27588,10 +27585,8 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27619,10 +27614,8 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27644,10 +27637,8 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27818,8 +27809,8 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27841,8 +27832,8 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27864,8 +27855,8 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27888,8 +27879,8 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27909,8 +27900,8 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28074,8 +28065,8 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28097,8 +28088,8 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28120,8 +28111,8 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28148,8 +28139,8 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28174,8 +28165,8 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28298,8 +28289,8 @@ class Test_TC_MC_2_1 : public TestCommandBridge { CHIP_ERROR TestThSendsSleepCommandToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { @@ -28413,14 +28404,14 @@ class Test_TC_MC_3_2 : public TestCommandBridge { CHIP_ERROR TestThSendsCecSettingsKeys0x0AToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:10U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends CEC Settings Keys(0x0A) to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28433,14 +28424,14 @@ class Test_TC_MC_3_2 : public TestCommandBridge { CHIP_ERROR TestThSendsCecHomeKeys0x09ToDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:9U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends CEC Home Keys(0x09) to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28600,14 +28591,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers1_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:33U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers1 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28620,14 +28611,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers2_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:34U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers2 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28640,14 +28631,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers3_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:35U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers3 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28660,14 +28651,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers4_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:36U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers4 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28680,14 +28671,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers5_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:37U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers5 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28700,14 +28691,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers6_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:38U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers6 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28720,14 +28711,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers7_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:39U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers7 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28740,14 +28731,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers8_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:40U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers8 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -28760,14 +28751,14 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers9_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:41U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers9 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -29219,11 +29210,11 @@ class Test_TC_MC_3_11 : public TestCommandBridge { CHIP_ERROR TestSelectInputCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaInputClusterSelectInputParams alloc] init]; + __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; [cluster selectInputWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -29239,8 +29230,8 @@ class Test_TC_MC_3_11 : public TestCommandBridge { CHIP_ERROR TestReadCurrentInputList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -29366,8 +29357,8 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -29384,8 +29375,8 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestHideInputStatusCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -29401,8 +29392,8 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestShowInputStatusCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -29542,11 +29533,11 @@ class Test_TC_MC_3_13 : public TestCommandBridge { CHIP_ERROR TestRenameInputCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaInputClusterRenameInputParams alloc] init]; + __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; params.name = @"A1"; [cluster renameInputWithParams:params @@ -29798,8 +29789,8 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheChannelListAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -29816,11 +29807,11 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestThSendsAChangeChannelByNumberCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPChannelClusterChangeChannelByNumberParams alloc] init]; + __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; params.majorNumber = mMajornumber.HasValue() ? [NSNumber numberWithUnsignedShort:mMajornumber.Value()] : [NSNumber numberWithUnsignedShort:9U]; params.minorNumber = mMinornumber.HasValue() ? [NSNumber numberWithUnsignedShort:mMinornumber.Value()] @@ -29849,12 +29840,12 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( - CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentChannel attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -29999,8 +29990,8 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -30017,12 +30008,12 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( - CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentChannel attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30040,11 +30031,11 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestSendsASkipChannelCommandToTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPChannelClusterSkipChannelParams alloc] init]; + __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; params.count = [NSNumber numberWithUnsignedShort:1U]; [cluster skipChannelWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -30070,12 +30061,12 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( - CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentChannel attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30271,12 +30262,12 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Precondition: Media content in a paused state at the beginning of the content Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30294,8 +30285,8 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30316,23 +30307,23 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster playWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Sends a Play command Error: %@", err); + [cluster + playWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Sends a Play command Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -30348,8 +30339,8 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30370,12 +30361,12 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAPauseCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"sends a Pause command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30402,8 +30393,8 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30424,12 +30415,12 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAStopCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopPlaybackWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Stop command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30456,8 +30447,8 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30706,12 +30697,12 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Precondition: Media content in a paused state at the beginning of the content Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30729,8 +30720,8 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30751,23 +30742,23 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommandToTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster playWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Sends a Play command to the DUT Error: %@", err); + [cluster + playWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Sends a Play command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -30783,8 +30774,8 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30805,12 +30796,12 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAStartOverCommandToTheDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster startOverWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a StartOver command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30837,23 +30828,23 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsANextCommandToTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster nextWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Sends a Next command to the DUT Error: %@", err); + [cluster + nextWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Sends a Next command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -30870,12 +30861,12 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAPreviousCommandToTheDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster previousWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Previous command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30903,15 +30894,15 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsASkipForwardCommandToTheDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSkipForwardParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:10000ULL]; [cluster skipForwardWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a SkipForward command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30939,12 +30930,12 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttributeFromTheDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the SampledPosition attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30962,15 +30953,15 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsASkipBackwardCommandToTheDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSkipBackwardParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:10000ULL]; [cluster skipBackwardWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a SkipBackward command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -30998,12 +30989,12 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttributeFromTheDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the SampledPosition attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31193,12 +31184,12 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Precondition: Media content in a paused state at the beginning of the content Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31216,14 +31207,14 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestSendsASeekCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSeekParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; params.position = [NSNumber numberWithUnsignedLongLong:10000ULL]; [cluster seekWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Seek command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31251,12 +31242,12 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the SampledPosition attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31310,15 +31301,15 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestSendsASeekCommandPositionValueBeyondTheFurthestValidPosition_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSeekParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; params.position = mSeekPosition.HasValue() ? [NSNumber numberWithUnsignedLongLong:mSeekPosition.Value()] : [NSNumber numberWithUnsignedLongLong:100000000ULL]; [cluster seekWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Seek command Position value beyond the furthest valid position Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31556,12 +31547,12 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Precondition: Media content in a paused state at the beginning of the content Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31579,8 +31570,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31601,8 +31592,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31623,12 +31614,12 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAFastForwardCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a FastForward command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31646,8 +31637,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31668,8 +31659,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31690,12 +31681,12 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAFastForwardCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a FastForward command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31713,8 +31704,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31735,12 +31726,12 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsARewindCommandToTheDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Rewind command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31758,8 +31749,8 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31790,12 +31781,12 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsARewindCommandToTheDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a Rewind command to the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -31823,31 +31814,31 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster playWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Sends a Play command Error: %@", err); + [cluster + playWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Sends a Play command Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31991,8 +31982,8 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOutputListAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32009,11 +32000,11 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestSendsASelectAudioOutputCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAudioOutputClusterSelectOutputParams alloc] init]; + __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; [cluster selectOutputWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -32029,8 +32020,8 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentOutputAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32163,8 +32154,8 @@ class Test_TC_MC_7_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOutputListAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32185,11 +32176,11 @@ class Test_TC_MC_7_2 : public TestCommandBridge { CHIP_ERROR TestSendsARenameOutputCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAudioOutputClusterRenameOutputParams alloc] init]; + __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; params.name = @"CertTest"; [cluster renameOutputWithParams:params @@ -32329,8 +32320,8 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentTargetAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32348,8 +32339,8 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheTargetListAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32370,16 +32361,16 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestSendsANavigateTargetCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTargetNavigatorClusterNavigateTargetParams alloc] init]; + __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; params.target = mTargetvalue.HasValue() ? [NSNumber numberWithUnsignedChar:mTargetvalue.Value()] : [NSNumber numberWithUnsignedChar:1U]; [cluster navigateTargetWithParams:params completionHandler:^( - CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Sends a NavigateTarget command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -32392,8 +32383,8 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentTargetAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32554,10 +32545,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheVendorNameAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -32575,10 +32564,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheVendorIDAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32595,10 +32582,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationNameAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -32616,10 +32601,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheProductIDAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32636,14 +32619,12 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationWithCompletionHandler:^( - CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { + MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the Application attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -32657,10 +32638,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheStatusAttribute_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32679,10 +32658,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationVersionAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -32700,10 +32677,8 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheAllowedVendorListAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32818,8 +32793,8 @@ class Test_TC_MC_10_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptHeaderAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32836,8 +32811,8 @@ class Test_TC_MC_10_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheSupportedStreamingProtocolsAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -32987,8 +32962,8 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33010,8 +32985,8 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33033,8 +33008,8 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33061,8 +33036,8 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33085,8 +33060,8 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33317,13 +33292,13 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1OpensACommissioningWindowOnDutCe_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; params.pakeVerifier = [[NSData alloc] initWithBytes:"\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" @@ -33349,8 +33324,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33371,8 +33346,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33410,13 +33385,13 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33428,7 +33403,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); } VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); @@ -33440,13 +33415,13 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_9() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:false]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33458,9 +33433,9 @@ class Test_TC_MF_1_3 : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(2))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[1]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[1]).label, @"")); } VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); @@ -33472,8 +33447,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33494,8 +33469,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33518,8 +33493,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr2WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_12() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33540,8 +33515,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr2ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_13() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33764,13 +33739,13 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1OpensACommissioningWindowOnDutCe_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; [cluster openBasicCommissioningWindowWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -33786,8 +33761,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33808,8 +33783,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33842,13 +33817,13 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33860,7 +33835,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); } VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); @@ -33872,13 +33847,13 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_9() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33890,7 +33865,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); } VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); @@ -33902,8 +33877,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33924,8 +33899,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33943,8 +33918,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_12() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -33965,8 +33940,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_13() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34192,38 +34167,38 @@ class OTA_SuccessfulTransfer : public TestCommandBridge { CHIP_ERROR TestInstallAclForQueryImage_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccessControl * cluster = [[CHIPTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; + temp_0[0] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).privilege = [NSNumber numberWithUnsignedChar:5U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).authMode = [NSNumber numberWithUnsignedChar:2U]; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedLongLong:112233ULL]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).subjects = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).targets = nil; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; - temp_0[1] = [[CHIPAccessControlClusterAccessControlEntry alloc] init]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; + temp_0[1] = [[MTRAccessControlClusterAccessControlEntry alloc] init]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).privilege = [NSNumber numberWithUnsignedChar:3U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).authMode = [NSNumber numberWithUnsignedChar:2U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).subjects = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; - temp_3[0] = [[CHIPAccessControlClusterTarget alloc] init]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).cluster = [NSNumber numberWithUnsignedInt:41UL]; - ((CHIPAccessControlClusterTarget *) temp_3[0]).endpoint = nil; - ((CHIPAccessControlClusterTarget *) temp_3[0]).deviceType = nil; + temp_3[0] = [[MTRAccessControlClusterTarget alloc] init]; + ((MTRAccessControlClusterTarget *) temp_3[0]).cluster = [NSNumber numberWithUnsignedInt:41UL]; + ((MTRAccessControlClusterTarget *) temp_3[0]).endpoint = nil; + ((MTRAccessControlClusterTarget *) temp_3[0]).deviceType = nil; - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).targets = temp_3; } - ((CHIPAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; + ((MTRAccessControlClusterAccessControlEntry *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; aclArgument = temp_0; } @@ -34263,13 +34238,13 @@ class OTA_SuccessfulTransfer : public TestCommandBridge { CHIP_ERROR TestSendAnAnnounceOtaProviderCommandToTheRequestor_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOtaSoftwareUpdateRequestor * cluster = [[CHIPTestOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOtaSoftwareUpdateRequestor * cluster = [[MTRTestOtaSoftwareUpdateRequestor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; + __auto_type * params = [[MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; params.providerNodeId = mProviderNodeId.HasValue() ? [NSNumber numberWithUnsignedLongLong:mProviderNodeId.Value()] : [NSNumber numberWithUnsignedLongLong:12648430ULL]; params.vendorId = [NSNumber numberWithUnsignedShort:0U]; @@ -34440,10 +34415,8 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -34465,10 +34438,8 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -34490,10 +34461,8 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -34518,10 +34487,8 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -34543,10 +34510,8 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -34797,10 +34762,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancy_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -34820,10 +34783,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorType_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -34843,10 +34804,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -34867,10 +34826,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributePIROccupiedToUnoccupiedDelay_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -34893,10 +34850,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPIRUnoccupiedToOccupiedDelay_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -34919,10 +34874,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPIRUnoccupiedToOccupiedThreshold_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePirUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -34948,10 +34901,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeUltrasonicOccupiedToUnoccupiedDelay_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicOccupiedToUnoccupiedDelayWithCompletionHandler:^( @@ -34974,10 +34925,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeUltrasonicUnoccupiedToOccupiedDelay_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicUnoccupiedToOccupiedDelayWithCompletionHandler:^( @@ -35000,10 +34949,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeUltrasonicUnoccupiedToOccupiedThreshold_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -35031,10 +34978,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactOccupiedToUnoccupiedDelay_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactOccupiedToUnoccupiedDelayWithCompletionHandler:^( @@ -35057,10 +35002,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactUnoccupiedToOccupiedDelay_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactUnoccupiedToOccupiedDelayWithCompletionHandler:^( @@ -35083,10 +35026,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactUnoccupiedToOccupiedThreshold_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -35254,8 +35195,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35277,8 +35218,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35300,8 +35241,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35333,8 +35274,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35362,8 +35303,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35513,8 +35454,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeOnOff_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35531,14 +35472,14 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeGlobalSceneControl_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LT attribute: GlobalSceneControl Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -35554,14 +35495,14 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeOnTime_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LT attribute: OnTime Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -35577,14 +35518,14 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeOffWaitTime_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LT attribute: OffWaitTime Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -35600,14 +35541,14 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeStartUpOnOff_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LT attribute: StartUpOnOff Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -35873,8 +35814,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -35890,8 +35831,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35912,8 +35853,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOnCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -35929,8 +35870,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35951,8 +35892,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOnCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -35968,8 +35909,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35990,8 +35931,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36007,8 +35948,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36029,8 +35970,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36046,8 +35987,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36068,8 +36009,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendToggleCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { @@ -36092,8 +36033,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36114,8 +36055,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendToggleCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { @@ -36138,8 +36079,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36168,8 +36109,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36198,8 +36139,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36220,8 +36161,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestResetOffCommand_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36237,8 +36178,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36511,8 +36452,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsOnCommandToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -36528,8 +36469,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf0ToStartUpOnOffAttributeOfDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -36561,8 +36502,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36583,8 +36524,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf1ToStartUpOnOffAttributeOfDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -36616,8 +36557,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36638,8 +36579,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf2ToStartUpOnOffAttributeOfDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -36671,8 +36612,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36706,8 +36647,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36728,8 +36669,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesNullToStartUpOnOffAttributeOfDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -36761,8 +36702,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36783,8 +36724,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsOffCommandToDut_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36813,8 +36754,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36967,8 +36908,8 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36990,8 +36931,8 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37013,8 +36954,8 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -37043,8 +36984,8 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -37066,8 +37007,8 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -37513,8 +37454,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsStatusAttributeFromServerDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37534,8 +37475,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsOrderAttributeFromServerDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37552,8 +37493,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsDescriptionAttributeFromServerDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -37570,8 +37511,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedInputVoltageAttribueFromServerDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -37589,8 +37530,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedInputFrequencyAttributeFromServerDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -37608,8 +37549,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredCurrentTypeAttributeFromServerDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredCurrentTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37629,8 +37570,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedCurrentAttributeFromServerDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredAssessedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37647,8 +37588,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredNominalVoltageFromServerDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredNominalVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37665,8 +37606,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredMaximumCurrentFromServerDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredMaximumCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37683,8 +37624,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredPresentFromServerDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37701,8 +37642,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveWiredFaultsFromServerDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveWiredFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -37719,8 +37660,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatVoltageFromServerDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37737,8 +37678,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatPercentRemainingFromServerDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryPercentRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37755,8 +37696,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatTimeRemainingFromServerDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryTimeRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37773,8 +37714,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargeLevelFromServerDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37794,8 +37735,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplacementNeededFromServerDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryReplacementNeededWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37812,8 +37753,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplaceabilityFromServerDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryReplaceabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37833,8 +37774,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatPresentFromServerDut_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37851,8 +37792,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveBatFaultsFromServerDut_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveBatteryFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -37869,8 +37810,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplacementDescriptionFromServerDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -37889,8 +37830,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatCommonDesignationFromServerDut_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryCommonDesignationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37910,8 +37851,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatANSIDesignationFromServerDut_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryANSIDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -37929,8 +37870,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatIECDesignationFromServerDut_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryIECDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -37948,8 +37889,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatApprovedChemistryFromServerDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryApprovedChemistryWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37969,8 +37910,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatCapacityFromServerDut_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37987,8 +37928,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatQuantityFromServerDut_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryQuantityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38005,8 +37946,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargeStateFromServerDut_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargeStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38026,8 +37967,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatTimeToFullChargeFromServerDut_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryTimeToFullChargeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38044,8 +37985,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatFunctionalWhileChargingFromServerDut_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryFunctionalWhileChargingWithCompletionHandler:^( @@ -38063,8 +38004,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargingCurrentFromServerDut_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargingCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38081,8 +38022,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveBatChargeFaultsFromServerDut_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSource * cluster = [[CHIPTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveBatteryChargeFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38235,10 +38176,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38260,10 +38201,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38285,10 +38226,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalMandatoryAttributeConstraintsAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38314,10 +38255,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38339,10 +38280,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38556,10 +38497,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMeasuredValue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38582,10 +38523,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38608,10 +38549,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38634,10 +38575,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38657,10 +38598,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScaledValue_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38683,10 +38624,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinScaledValue_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38709,10 +38650,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxScaledValue_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38735,10 +38676,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScaledTolerance_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaledToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38758,10 +38699,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScale_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38911,10 +38852,10 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38936,10 +38877,10 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38961,10 +38902,10 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38994,10 +38935,10 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptedCommandListAttributeFromTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39019,10 +38960,10 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheGeneratedCommandListAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39298,10 +39239,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39324,10 +39265,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxSpeed_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39350,10 +39291,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxFlow_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39376,16 +39317,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstPressure_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MinConstPressure Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39407,16 +39348,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstPressure_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MaxConstPressure Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39438,16 +39379,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinCompPressure_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MinCompPressure Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39469,16 +39410,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxCompPressure_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MaxCompPressure Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39500,16 +39441,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstSpeed_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MinConstSpeed Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39531,16 +39472,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstSpeed_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MaxConstSpeed Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39562,16 +39503,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstFlow_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MinConstFlow Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39593,16 +39534,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstFlow_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MaxConstFlow Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39624,16 +39565,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstTemp_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MinConstTemp Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39655,16 +39596,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstTemp_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: MaxConstTemp Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39686,16 +39627,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributePumpStatus_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePumpStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: PumpStatus Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39714,10 +39655,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeEffectiveOperationMode_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39737,10 +39678,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeEffectiveControlMode_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39760,10 +39701,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeCapacity_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39786,16 +39727,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeSpeed_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: Speed Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39817,16 +39758,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeLifetimeRunningHours_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: LifetimeRunningHours Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39848,16 +39789,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributePower_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: Power Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39879,16 +39820,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeLifetimeEnergyConsumed_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional attribute: LifetimeEnergyConsumed Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -39910,10 +39851,10 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeOperationMode_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39933,16 +39874,16 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeControlMode_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read optional attribute: ControlMode Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -40111,10 +40052,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheOperationModeAttributeToDutOperationMode_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -40133,10 +40074,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40157,10 +40098,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -40179,10 +40120,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40203,10 +40144,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -40225,10 +40166,10 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40487,10 +40428,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite0ToTheOperationModeAttributeToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -40509,10 +40450,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40533,10 +40474,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite0ToTheControlModeAttributeToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40555,10 +40496,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40579,10 +40520,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheControlModeAttributeToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40601,10 +40542,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40625,10 +40566,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheControlModeAttributeToDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40647,10 +40588,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40671,10 +40612,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheControlModeAttributeToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40693,10 +40634,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40717,10 +40658,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite5ToTheControlModeAttributeToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40739,10 +40680,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40763,10 +40704,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite7ToTheControlModeAttributeToDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -40785,10 +40726,10 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40977,10 +40918,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheLifetimeRunningHoursAttributeToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -40999,10 +40940,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41024,10 +40965,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheLifetimeRunningHoursAttributeToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -41046,10 +40987,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41071,10 +41012,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheLifetimeRunningHoursAttributeToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -41093,10 +41034,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41118,10 +41059,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheLifetimeEnergyConsumedAttributeToDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -41140,10 +41081,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41165,10 +41106,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheLifetimeEnergyConsumedAttributeToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -41187,10 +41128,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41212,10 +41153,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheLifetimeEnergyConsumedAttributeToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -41234,10 +41175,10 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41391,10 +41332,10 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSourceConfiguration * cluster = [[CHIPTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41416,10 +41357,10 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSourceConfiguration * cluster = [[CHIPTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41441,10 +41382,10 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSourceConfiguration * cluster = [[CHIPTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41468,10 +41409,10 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptedCommandListAttributeFromTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSourceConfiguration * cluster = [[CHIPTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41488,10 +41429,10 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheGeneratedCommandListAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestPowerSourceConfiguration * cluster = [[CHIPTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41654,10 +41595,10 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41679,10 +41620,10 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41708,10 +41649,10 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41733,10 +41674,10 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -41758,10 +41699,10 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDutAndVerifyThatTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41904,10 +41845,10 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMeasuredValue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41930,10 +41871,10 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMinMeasuredValue_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41956,10 +41897,10 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMaxMeasuredValue_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41982,16 +41923,16 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeTolerance_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of attribute: Tolerance Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -42119,8 +42060,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadNumberOfPositionsAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSwitch * cluster = [[CHIPTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42144,8 +42085,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentPositionAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSwitch * cluster = [[CHIPTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42169,8 +42110,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadMultiPressMaxAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSwitch * cluster = [[CHIPTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42330,10 +42271,10 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42355,10 +42296,10 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42380,10 +42321,10 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42409,10 +42350,10 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadAcceptedCommandListAttributeFromTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42429,10 +42370,10 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadGeneratedCommandListAttributeFromTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42575,10 +42516,10 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42599,10 +42540,10 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42625,10 +42566,10 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42651,16 +42592,16 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: Tolerance Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -42814,8 +42755,8 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42837,8 +42778,8 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeConstraintsFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42860,8 +42801,8 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42887,8 +42828,8 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42907,8 +42848,8 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -43579,8 +43520,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43601,8 +43542,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43622,8 +43563,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43643,14 +43584,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutAbsMinCoolSetpointLimit_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: AbsMinCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -43669,14 +43610,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutAbsMaxCoolSetpointLimit_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: AbsMaxCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -43715,14 +43656,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutOccupiedCoolingSetpoint_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: OccupiedCoolingSetpoint Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -43741,8 +43682,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43780,8 +43721,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43801,8 +43742,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43822,14 +43763,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinCoolSetpointLimit_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: MinCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -43848,14 +43789,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMaxCoolSetpointLimit_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: MaxCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -43874,8 +43815,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -43896,8 +43837,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSystemModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43955,14 +43896,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: MinSetpointDeadBand Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -44010,14 +43951,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartOfWeekWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: StartOfWeek Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -44036,15 +43977,15 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfWeeklyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: NumberOfWeeklyTransitions Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -44060,14 +44001,14 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfDailyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of optional attributes from DUT: NumberOfDailyTransitions Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45288,15 +45229,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OccupiedCoolingSetpoint attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45320,8 +45261,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -45332,7 +45273,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"OccupiedCoolingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45347,14 +45288,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of OccupiedCoolingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45374,8 +45315,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedCoolingSetpointToValueBelowTheMinCoolSetpointLimit_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -45386,7 +45327,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45401,8 +45342,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedCoolingSetpointToValueAboveTheMaxCoolSetpointLimit_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -45413,7 +45354,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45428,8 +45369,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -45440,7 +45381,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45455,15 +45396,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OccupiedHeatingSetpoint attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45487,8 +45428,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -45499,7 +45440,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"OccupiedHeatingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45514,14 +45455,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of OccupiedHeatingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45541,8 +45482,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedHeatingSetpointToValueBelowTheMinHeatSetpointLimit_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -45553,7 +45494,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45568,8 +45509,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedHeatingSetpointToValueAboveTheMaxHeatSetpointLimit_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -45580,7 +45521,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45595,8 +45536,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -45607,7 +45548,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45622,8 +45563,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsUnoccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:^( @@ -45632,7 +45573,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Reads UnoccupiedCoolingSetpoint attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45656,8 +45597,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForUnoccupiedCoolingSetpointAttribute_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -45668,7 +45609,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"UnoccupiedCoolingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45683,15 +45624,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfUnoccupiedCoolingSetpointAttribute_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of UnoccupiedCoolingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45711,8 +45652,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedCoolingSetpointToValueBelowTheMinHeatSetpointLimit_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -45723,7 +45664,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MinHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45738,8 +45679,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedCoolingSetpointToValueAboveTheMaxHeatSetpointLimit_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -45750,7 +45691,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MaxHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45765,8 +45706,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinCoolSetpointLimitToUnoccupiedCoolingSetpointAttribute_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -45777,7 +45718,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45792,8 +45733,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToUnoccupiedCoolingSetpointAttribute_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -45804,7 +45745,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45819,8 +45760,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsUnoccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:^( @@ -45829,7 +45770,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Reads UnoccupiedHeatingSetpoint attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45853,8 +45794,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForUnoccupiedHeatingSetpointAttribute_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -45865,7 +45806,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"UnoccupiedHeatingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45880,15 +45821,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfUnoccupiedHeatingSetpointAttribute_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of UnoccupiedHeatingSetpoint attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45908,8 +45849,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedHeatingSetpointToValueBelowTheMinHeatSetpointLimit_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -45920,7 +45861,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MinHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45935,8 +45876,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedHeatingSetpointToValueAboveTheMaxHeatSetpointLimit_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -45947,7 +45888,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MaxHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45962,8 +45903,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToUnoccupiedHeatingSetpointAttribute_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -45974,7 +45915,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -45989,8 +45930,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxHeatSetpointLimitToUnoccupiedHeatingSetpointAttribute_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -46001,7 +45942,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46016,15 +45957,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog( @"Reads MinHeatSetpointLimit attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46048,8 +45989,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinHeatSetpointLimitToValueBelowTheAbsMinHeatSetpointLimit_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -46061,7 +46002,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MinHeatSetpointLimit to value below the AbsMinHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46076,8 +46017,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinHeatSetpointLimitToValueAboveTheAbsMaxHeatSetpointLimit_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -46089,7 +46030,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MinHeatSetpointLimit to value above the AbsMaxHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46104,8 +46045,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -46116,7 +46057,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46131,8 +46072,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -46143,7 +46084,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46158,14 +46099,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of MaxHeatSetpointLimit attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46185,8 +46126,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxHeatSetpointLimitToValueBelowTheAbsMinHeatSetpointLimit_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -46198,7 +46139,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MaxHeatSetpointLimit to value below the AbsMinHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46213,8 +46154,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxHeatSetpointLimitToValueAboveTheAbsMaxHeatSetpointLimit_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -46226,7 +46167,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MaxHeatSetpointLimit to value above the AbsMaxHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46241,8 +46182,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -46253,7 +46194,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46268,15 +46209,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog( @"Reads MinCoolSetpointLimit attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46300,8 +46241,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46312,7 +46253,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46327,14 +46268,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of MinCoolSetpointLimit attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46354,8 +46295,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinCoolSetpointLimitToValueBelowTheAbsMinCoolSetpointLimit_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46367,7 +46308,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MinCoolSetpointLimit to value below the AbsMinCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46382,8 +46323,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinCoolSetpointLimitToValueAboveTheMaxCoolSetpointLimit_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46394,7 +46335,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { NSLog(@"Writes MinCoolSetpointLimit to value above the MaxCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46409,8 +46350,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46421,7 +46362,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46436,8 +46377,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46448,7 +46389,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46463,15 +46404,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog( @"Reads MaxCoolSetpointLimit attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46495,8 +46436,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxCoolSetpointLimitToValueBelowTheAbsMinCoolSetpointLimit_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -46508,7 +46449,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Writes MaxCoolSetpointLimit to value below the AbsMinCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46523,8 +46464,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxCoolSetpointLimitToValueAboveTheMaxCoolSetpointLimit_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -46535,7 +46476,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { NSLog(@"Writes MaxCoolSetpointLimit to value above the MaxCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46550,8 +46491,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -46562,7 +46503,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46577,8 +46518,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMinHeatSetpointLimit_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -46587,7 +46528,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes (sets back) default value of MinHeatSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46602,8 +46543,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMinCoolSetpointLimit_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -46612,7 +46553,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes (sets back) default value of MinCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46627,8 +46568,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMaxCoolSetpointLimit_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -46637,7 +46578,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes (sets back) default value of MaxCoolSetpointLimit Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46652,15 +46593,15 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinSetpointDeadBandAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog( @"Reads MinSetpointDeadBand attribute from Server DUT and verifies that the value is within range Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46684,8 +46625,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinSetpointDeadBandAttribute_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -46696,7 +46637,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46711,14 +46652,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinSetpointDeadBandAttribute_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of MinSetpointDeadBand attribute Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46738,8 +46679,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheValueBelowMinSetpointDeadBand_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -46748,7 +46689,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the value below MinSetpointDeadBand Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46763,8 +46704,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheValueAboveMinSetpointDeadBand_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -46773,7 +46714,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the value above MinSetpointDeadBand Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46788,8 +46729,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheMinLimitOfMinSetpointDeadBand_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -46798,7 +46739,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the min limit of MinSetpointDeadBand Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46813,8 +46754,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheMaxLimitOfMinSetpointDeadBand_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -46823,7 +46764,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the max limit of MinSetpointDeadBand Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46838,8 +46779,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -46865,8 +46806,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlSequenceOfOperationArgument; @@ -46887,8 +46828,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadItBackAgainToConfirmTheSuccessfulWrite_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -46910,11 +46851,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:0U]; params.amount = [NSNumber numberWithChar:-30]; [cluster setpointRaiseLowerWithParams:params @@ -46931,14 +46872,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_61() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedHeatingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -46958,11 +46899,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_62() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:0U]; params.amount = [NSNumber numberWithChar:30]; [cluster setpointRaiseLowerWithParams:params @@ -46979,14 +46920,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_63() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedHeatingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47006,8 +46947,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_64() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -47016,7 +46957,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedCoolingSetpoint to default value Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47031,11 +46972,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_65() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:1U]; params.amount = [NSNumber numberWithChar:-30]; [cluster setpointRaiseLowerWithParams:params @@ -47052,14 +46993,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_66() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedCoolingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47079,8 +47020,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_67() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -47089,7 +47030,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedCoolingSetpoint to default value Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47104,11 +47045,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_68() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:1U]; params.amount = [NSNumber numberWithChar:30]; [cluster setpointRaiseLowerWithParams:params @@ -47125,14 +47066,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_69() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedCoolingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47152,8 +47093,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_70() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -47162,7 +47103,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedCoolingSetpoint to default value Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47177,11 +47118,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_71() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:2U]; params.amount = [NSNumber numberWithChar:-30]; [cluster setpointRaiseLowerWithParams:params @@ -47198,14 +47139,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_72() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedCoolingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47225,14 +47166,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_73() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedHeatingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47252,8 +47193,8 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_74() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -47262,7 +47203,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedCoolingSetpoint to default value Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47277,11 +47218,11 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_75() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPThermostatClusterSetpointRaiseLowerParams alloc] init]; + __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.mode = [NSNumber numberWithUnsignedChar:2U]; params.amount = [NSNumber numberWithChar:30]; [cluster setpointRaiseLowerWithParams:params @@ -47298,14 +47239,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_76() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedCoolingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47325,14 +47266,14 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_77() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back OccupiedHeatingSetpoint to confirm the success of the write Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -47484,9 +47425,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadClusterRevisionAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47508,9 +47449,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47532,9 +47473,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -47560,9 +47501,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -47584,9 +47525,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -47722,9 +47663,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47744,9 +47685,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47766,9 +47707,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -48235,9 +48176,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -48264,9 +48205,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48282,9 +48223,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -48311,9 +48252,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48334,9 +48275,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -48357,9 +48298,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48380,9 +48321,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48409,9 +48350,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48432,9 +48373,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48461,9 +48402,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48484,9 +48425,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48513,9 +48454,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48536,9 +48477,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48565,9 +48506,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48588,9 +48529,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48617,9 +48558,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48640,9 +48581,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48669,9 +48610,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48692,9 +48633,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -48712,9 +48653,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48735,9 +48676,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -48766,9 +48707,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -48790,9 +48731,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -48821,9 +48762,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -48845,9 +48786,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -48868,9 +48809,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestThermostatUserInterfaceConfiguration * cluster = - [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestThermostatUserInterfaceConfiguration * cluster = + [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -49024,8 +48965,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49047,8 +48988,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49070,8 +49011,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49099,8 +49040,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49122,8 +49063,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49252,28 +49193,28 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeFromTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).label = @"roomName"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).value = @"master bedroom 1"; + temp_0[0] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).label = @"roomName"; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).value = @"master bedroom 1"; - temp_0[1] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).label = @"Orientation"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).value = @"east"; + temp_0[1] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).label = @"Orientation"; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).value = @"east"; - temp_0[2] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[2]).label = @"floor"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[2]).value = @"2"; + temp_0[2] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[2]).label = @"floor"; + ((MTRUserLabelClusterLabelStruct *) temp_0[2]).value = @"2"; - temp_0[3] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[3]).label = @"roomType"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[3]).value = @"bedroom"; + temp_0[3] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[3]).label = @"roomType"; + ((MTRUserLabelClusterLabelStruct *) temp_0[3]).value = @"bedroom"; labelListArgument = temp_0; } @@ -49291,8 +49232,8 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeFromTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49303,18 +49244,16 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("label list", [actualValue count], static_cast(4))); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).label, @"roomName")); VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).label, @"roomName")); + CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).value, @"master bedroom 1")); VerifyOrReturn( - CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).value, @"master bedroom 1")); - VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).label, @"Orientation")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).value, @"east")); - VerifyOrReturn(CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[2]).label, @"floor")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[2]).value, @"2")); - VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[3]).label, @"roomType")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[3]).value, @"bedroom")); + CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).label, @"Orientation")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).value, @"east")); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[2]).label, @"floor")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[2]).value, @"2")); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[3]).label, @"roomType")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[3]).value, @"bedroom")); } NextTest(); @@ -49423,16 +49362,16 @@ class Test_TC_ULABEL_2_3 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).value = @"17_bytesIsTooLongforuserlabelnotexpected"; + temp_0[0] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).value = @"17_bytesIsTooLongforuserlabelnotexpected"; labelListArgument = temp_0; } @@ -49449,16 +49388,16 @@ class Test_TC_ULABEL_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).label = @"17_bytesIsTooLongforuserlabelnotexpected"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).value = @"foobar"; + temp_0[0] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).label = @"17_bytesIsTooLongforuserlabelnotexpected"; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).value = @"foobar"; labelListArgument = temp_0; } @@ -49587,20 +49526,20 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).value = @"bedroom 1"; + temp_0[0] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).value = @"bedroom 1"; - temp_0[1] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).label = @"Orientation"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).value = @"east"; + temp_0[1] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).label = @"Orientation"; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).value = @"east"; labelListArgument = temp_0; } @@ -49618,8 +49557,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49630,12 +49569,12 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("label list", [actualValue count], static_cast(2))); - VerifyOrReturn(CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).label, @"room")); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).label, @"room")); VerifyOrReturn( - CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).value, @"bedroom 1")); + CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).value, @"bedroom 1")); VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).label, @"Orientation")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).value, @"east")); + CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).label, @"Orientation")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).value, @"east")); } NextTest(); @@ -49646,8 +49585,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -49669,8 +49608,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -49782,8 +49721,8 @@ class Test_TC_ULABEL_2_5 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50003,10 +49942,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsNetworkInterfaceStructureAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralDiagnostics * cluster = [[CHIPTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50023,10 +49962,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsSecurityTypeAttributeConstraints_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50047,10 +49986,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsWiFiVersionAttributeConstraints_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50073,10 +50012,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsChannelNumberAttributeConstraints_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50097,10 +50036,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsRssiAttributeConstraints_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50123,10 +50062,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconLostCountAttributeConstraints_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50143,10 +50082,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconRxCountAttributeConstraints_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50163,10 +50102,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastRxCountAttributeConstraints_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50183,10 +50122,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastTxCountAttributeConstraints_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50203,10 +50142,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastRxCountAttributeConstraints_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50223,10 +50162,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastTxCountAttributeConstraints_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50243,10 +50182,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentMaxRateAttributeConstraints_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentMaxRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50263,10 +50202,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOverrunCountAttributeConstraints_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50444,10 +50383,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsResetCountsCommandToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetCountsWithCompletionHandler:^(NSError * _Nullable err) { @@ -50463,10 +50402,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconLostCountAttributeFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50487,10 +50426,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconRxCountAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50511,10 +50450,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastRxCountAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50535,10 +50474,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastTxCountAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50559,10 +50498,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastRxCountAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50583,10 +50522,10 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastTxCountAttributeFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWiFiNetworkDiagnostics * cluster = [[CHIPTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50737,8 +50676,8 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFDClusterRevisionAttribute_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50763,8 +50702,8 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFCFeatureMapAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50784,8 +50723,8 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFBAttributeListAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50813,8 +50752,8 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFF9AcceptedCommandListAttribute_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50835,8 +50774,8 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFF8GeneratedCommandListAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -51214,8 +51153,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1aReadTheRoMandatoryAttributeDefaultType_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51235,8 +51174,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1bReadTheRoMandatoryAttributeDefaultConfigStatus_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51256,8 +51195,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1cReadTheRoMandatoryAttributeDefaultOperationalStatus_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51277,8 +51216,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1dReadTheRoMandatoryAttributeDefaultEndProductType_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51298,8 +51237,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1eReadTheRwMandatoryAttributeDefaultMode_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51319,8 +51258,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1fWriteAValueIntoTheRwMandatoryAttributeMode_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -51339,8 +51278,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2aReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -51366,8 +51305,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2bReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -51393,8 +51332,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2cReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -51420,8 +51359,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2dReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -51447,8 +51386,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2eReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51468,8 +51407,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2fReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51489,8 +51428,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2gReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51510,8 +51449,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2hReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51531,8 +51470,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3aReadTheRoMandatoryAttributeDefaultSafetyStatus_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51552,8 +51491,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3bReadTheRoOptionalAttributeDefaultPhysicalClosedLimitLift_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51573,8 +51512,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3cReadTheRoOptionalAttributeDefaultPhysicalClosedLimitTilt_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51594,8 +51533,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3dReadTheRoOptionalAttributeDefaultCurrentPositionLift_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51618,8 +51557,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3eReadTheRoOptionalAttributeDefaultCurrentPositionTilt_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51642,8 +51581,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3fReadTheRoOptionalAttributeDefaultNumberOfActuationsLift_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfActuationsLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51663,8 +51602,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3gReadTheRoOptionalAttributeDefaultNumberOfActuationsTilt_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfActuationsTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51684,8 +51623,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3hReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -51711,8 +51650,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3ireadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -52137,8 +52076,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1aThSetTheModeAttributeBit0OfTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52157,8 +52096,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1bThReadsConfigStatusAttributeFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52177,8 +52116,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1cThClearTheModeAttributeBit0OfTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52197,8 +52136,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1dThReadsConfigStatusAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52217,8 +52156,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2aThSetTheModeAttributeBit1OfTheDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52238,8 +52177,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2bThReadsConfigStatusAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52261,8 +52200,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2cIfConfigStatusBit00ThSendDownOrCloseCommandToTheDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -52277,8 +52216,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2dThClearTheModeAttributeBit1OfTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52297,8 +52236,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2eThReadsConfigStatusAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52317,8 +52256,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2fThReadsTheModeAttributeFromTheDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52337,8 +52276,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2gThSendDownOrCloseCommandToTheDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -52354,8 +52293,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3aThSetTheModeAttributeBit2OfTheDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52374,8 +52313,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3bThSendDownOrCloseCommandToTheDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -52391,8 +52330,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3cThReadsConfigStatusAttributeFromDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52414,8 +52353,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3dThClearTheModeAttributeBit2OfTheDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52434,8 +52373,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3eThSendDownOrCloseCommandToTheDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -52451,8 +52390,8 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3eThReadsConfigStatusAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52670,8 +52609,8 @@ class Test_TC_WNCV_2_5 : public TestCommandBridge { CHIP_ERROR TestThReadsEndProductTypeAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53014,8 +52953,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -53038,8 +52977,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -53065,8 +53004,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53092,8 +53031,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1eIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -53119,8 +53058,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1fIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53148,8 +53087,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53167,13 +53106,13 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; uint16_t maxIntervalArgument = 5U; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttributeOperationalStatusWithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -53198,8 +53137,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -53222,8 +53161,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -53246,8 +53185,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2dIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -53277,8 +53216,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3a1VerifyDutReportsOperationalStatusAttributeToThAfterAUpOrOpen_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53305,8 +53244,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -53332,8 +53271,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53359,8 +53298,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -53386,8 +53325,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3eIfPaLfThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53413,8 +53352,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test4aThSendsAStopMotionCommandToDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -53437,8 +53376,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test4cVerifyDutUpdateOperationalStatusAttributeToThAfterAStopMotion_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53466,8 +53405,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test5bIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -53493,8 +53432,8 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -53843,8 +53782,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1aThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -53867,8 +53806,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -53894,8 +53833,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53921,8 +53860,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1eIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -53948,8 +53887,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1fIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53977,8 +53916,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53996,13 +53935,13 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; uint16_t maxIntervalArgument = 5U; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttributeOperationalStatusWithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -54027,8 +53966,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -54051,8 +53990,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -54075,8 +54014,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2dIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -54106,8 +54045,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3aVerifyDutReportsOperationalStatusAttributeToThAfterADownOrClose_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54134,8 +54073,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -54161,8 +54100,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54188,8 +54127,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -54215,8 +54154,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3eIfPaLfThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54242,8 +54181,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test4aThSendsAStopMotionCommandToDut_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -54266,8 +54205,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test4cVerifyDutUpdateOperationalStatusAttributeToThAfterAStopMotion_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54295,8 +54234,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test5bIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -54322,8 +54261,8 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -54564,8 +54503,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -54588,8 +54527,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test1cThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -54614,8 +54553,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54633,13 +54572,13 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; uint16_t maxIntervalArgument = 5U; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttributeOperationalStatusWithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -54664,8 +54603,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2aThSendsAStopMotionCommandToDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -54688,8 +54627,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2cVerifyDutReportsOperationalStatusAttributeToThAfterAStopMotion_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54717,8 +54656,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2eThReadsOperationalStatusAttributeFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54740,8 +54679,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -54770,8 +54709,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsTargetPositionLiftPercent100thsAttribute3cItMustBeEqualWithCurrentPositionLiftPercent100thsFromDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -54801,8 +54740,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test4aIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -54831,8 +54770,8 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test4bIfPaTlThReadsTargetPositionTiltPercent100thsAttribute4cItMustBeEqualWithCurrentPositionTiltPercent100thsFromDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -55035,8 +54974,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -55059,8 +54998,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -55083,8 +55022,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test2cThReadsOperationalStatusAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55105,8 +55044,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55129,8 +55068,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55153,8 +55092,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -55177,8 +55116,8 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55375,8 +55314,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test1aThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -55399,8 +55338,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -55423,8 +55362,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test2cThReadsOperationalStatusAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55445,8 +55384,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55469,8 +55408,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55493,8 +55432,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -55517,8 +55456,8 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55790,8 +55729,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -55814,8 +55753,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55836,11 +55775,11 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test2aThSendsGoToLiftPercentageCommandWith25PercentToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:2500U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -55863,8 +55802,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -55894,8 +55833,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3bThReadsOperationalStatusAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55916,8 +55855,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55940,8 +55879,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55964,11 +55903,11 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToLiftPercentageCommandWith7520PercentToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:7520U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -55991,8 +55930,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test4cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -56022,8 +55961,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5bThReadsOperationalStatusAttributeFromDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56044,8 +55983,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -56068,8 +56007,8 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56341,8 +56280,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -56365,8 +56304,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test1cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56387,11 +56326,11 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test2aThSendsGoToTiltPercentageCommandWith30PercentToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:3000U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -56414,8 +56353,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test2cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -56445,8 +56384,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3bThReadsOperationalStatusAttributeFromDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56467,8 +56406,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56491,8 +56430,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56515,11 +56454,11 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToTiltPercentageCommandWith6020PercentToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:6005U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -56542,8 +56481,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test4cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -56573,8 +56512,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5bThReadsOperationalStatusAttributeFromDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56595,8 +56534,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56619,8 +56558,8 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56786,8 +56725,8 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test1aIfPaLfLfThReadsCurrentPositionLiftPercent100thsFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -56816,8 +56755,8 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test1b1cIfPaLfLfThReadsCurrentPositionLiftPercentageFromDutAssertCurrentPositionLiftPercent100ths100EqualsCurrentPositionLiftPercentage_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56850,11 +56789,11 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test2bThSendsGoToLiftPercentageCommandWithBadParamToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:12288U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -56869,11 +56808,11 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test3aThSendsGoToLiftPercentageCommandWith10001ToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:10001U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -56888,11 +56827,11 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToLiftPercentageCommandWith0xFFFFToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:65535U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57050,8 +56989,8 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test1aIfPaTlTlThReadsCurrentPositionTiltPercent100thsFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -57080,8 +57019,8 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test1b1cIfPaLfLfThReadsCurrentPositionTiltPercentageFromDutAssertCurrentPositionTiltPercent100ths100EqualsCurrentPositionTiltPercentage_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -57114,11 +57053,11 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test2bThSendsGoToTiltPercentageCommandWithBadParamToDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:12288U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57133,11 +57072,11 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test3aThSendsGoToTiltPercentageCommandWith10001ToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:10001U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57152,11 +57091,11 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToTiltPercentageCommandWith0xFFFFToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:65535U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57386,8 +57325,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test0bThSendsUpOrOpenCommandToPrepositionTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -57403,11 +57342,11 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test1aIfPaLfLfThSendsGoToLiftPercentageCommandWith90ToDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToLiftPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.liftPercent100thsValue = [NSNumber numberWithUnsignedShort:9000U]; [cluster goToLiftPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57430,8 +57369,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test1cThSendsStopMotionCommandToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -57454,11 +57393,11 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test2aIfPaTlTlThSendsGoToTiltPercentageCommandWith90ToDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPWindowCoveringClusterGoToTiltPercentageParams alloc] init]; + __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.tiltPercent100thsValue = [NSNumber numberWithUnsignedShort:9000U]; [cluster goToTiltPercentageWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -57481,8 +57420,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test2cThSendsStopMotionCommandToDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -57506,8 +57445,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3aThReadsCurrentPositionLiftPercent100thsFromDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -57532,8 +57471,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3bThReadsCurrentPositionTiltPercent100thsFromDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -57570,8 +57509,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3eThReadsCurrentPositionLiftPercent100thsFromDut_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -57599,8 +57538,8 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3fThReadsCurrentPositionTiltPercent100thsFromDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -57733,8 +57672,8 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeTargetNavigatorList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -57745,12 +57684,12 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("TargetList", [actualValue count], static_cast(2))); - VerifyOrReturn(CheckValue("identifier", ((CHIPTargetNavigatorClusterTargetInfo *) actualValue[0]).identifier, 1U)); + VerifyOrReturn(CheckValue("identifier", ((MTRTargetNavigatorClusterTargetInfo *) actualValue[0]).identifier, 1U)); VerifyOrReturn( - CheckValueAsString("name", ((CHIPTargetNavigatorClusterTargetInfo *) actualValue[0]).name, @"exampleName")); - VerifyOrReturn(CheckValue("identifier", ((CHIPTargetNavigatorClusterTargetInfo *) actualValue[1]).identifier, 2U)); + CheckValueAsString("name", ((MTRTargetNavigatorClusterTargetInfo *) actualValue[0]).name, @"exampleName")); + VerifyOrReturn(CheckValue("identifier", ((MTRTargetNavigatorClusterTargetInfo *) actualValue[1]).identifier, 2U)); VerifyOrReturn( - CheckValueAsString("name", ((CHIPTargetNavigatorClusterTargetInfo *) actualValue[1]).name, @"exampleName")); + CheckValueAsString("name", ((MTRTargetNavigatorClusterTargetInfo *) actualValue[1]).name, @"exampleName")); } NextTest(); @@ -57761,8 +57700,8 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentNavigatorTarget_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -57783,16 +57722,16 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestNavigateTargetRequestCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTargetNavigator * cluster = [[CHIPTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTargetNavigatorClusterNavigateTargetParams alloc] init]; + __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; params.target = [NSNumber numberWithUnsignedChar:1U]; params.data = @"1"; [cluster navigateTargetWithParams:params completionHandler:^( - CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Navigate Target Request Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -57934,8 +57873,8 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAudioOutputList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -57946,15 +57885,15 @@ class TV_AudioOutputCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("OutputList", [actualValue count], static_cast(3))); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).index, 1U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).outputType, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).name, @"HDMI")); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).index, 2U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).outputType, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).name, @"HDMI")); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).index, 3U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).outputType, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).name, @"HDMI")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).index, 1U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).name, @"HDMI")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).index, 2U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).name, @"HDMI")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).index, 3U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).name, @"HDMI")); } NextTest(); @@ -57965,8 +57904,8 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentAudioOutput_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -57987,11 +57926,11 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestSelectOutputCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAudioOutputClusterSelectOutputParams alloc] init]; + __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; [cluster selectOutputWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -58007,11 +57946,11 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestRenameOutputCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAudioOutputClusterRenameOutputParams alloc] init]; + __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; params.name = @"HDMI Test"; [cluster renameOutputWithParams:params @@ -58028,8 +57967,8 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAudioOutputList_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -58040,16 +57979,15 @@ class TV_AudioOutputCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("OutputList", [actualValue count], static_cast(3))); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).index, 1U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).outputType, 0U)); - VerifyOrReturn( - CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[0]).name, @"HDMI Test")); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).index, 2U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).outputType, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[1]).name, @"HDMI")); - VerifyOrReturn(CheckValue("index", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).index, 3U)); - VerifyOrReturn(CheckValue("outputType", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).outputType, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPAudioOutputClusterOutputInfo *) actualValue[2]).name, @"HDMI")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).index, 1U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[0]).name, @"HDMI Test")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).index, 2U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[1]).name, @"HDMI")); + VerifyOrReturn(CheckValue("index", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).index, 3U)); + VerifyOrReturn(CheckValue("outputType", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).outputType, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRAudioOutputClusterOutputInfo *) actualValue[2]).name, @"HDMI")); } NextTest(); @@ -58179,10 +58117,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationLauncherList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -58205,14 +58143,14 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationLauncherApp_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentAppWithCompletionHandler:^( - CHIPApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable err) { + MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application launcher app Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -58230,59 +58168,57 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchAppCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPApplicationLauncherClusterLaunchAppParams alloc] init]; - params.application = [[CHIPApplicationLauncherClusterApplication alloc] init]; - ((CHIPApplicationLauncherClusterApplication *) params.application).catalogVendorId = - [NSNumber numberWithUnsignedShort:123U]; - ((CHIPApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; + __auto_type * params = [[MTRApplicationLauncherClusterLaunchAppParams alloc] init]; + params.application = [[MTRApplicationLauncherClusterApplication alloc] init]; + ((MTRApplicationLauncherClusterApplication *) params.application).catalogVendorId = [NSNumber numberWithUnsignedShort:123U]; + ((MTRApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; params.data = [[NSData alloc] initWithBytes:"data" length:4]; - [cluster launchAppWithParams:params - completionHandler:^( - CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Launch App Command Error: %@", err); + [cluster + launchAppWithParams:params + completionHandler:^(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Launch App Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - { - id actualValue = values.data; - VerifyOrReturn(CheckValueAsString("data", actualValue, [[NSData alloc] initWithBytes:"data" length:4])); - } + { + id actualValue = values.data; + VerifyOrReturn(CheckValueAsString("data", actualValue, [[NSData alloc] initWithBytes:"data" length:4])); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestStopAppCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPApplicationLauncherClusterStopAppParams alloc] init]; - params.application = [[CHIPApplicationLauncherClusterApplication alloc] init]; - ((CHIPApplicationLauncherClusterApplication *) params.application).catalogVendorId = - [NSNumber numberWithUnsignedShort:123U]; - ((CHIPApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; + __auto_type * params = [[MTRApplicationLauncherClusterStopAppParams alloc] init]; + params.application = [[MTRApplicationLauncherClusterApplication alloc] init]; + ((MTRApplicationLauncherClusterApplication *) params.application).catalogVendorId = [NSNumber numberWithUnsignedShort:123U]; + ((MTRApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; [cluster stopAppWithParams:params - completionHandler:^(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Stop App Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -58305,21 +58241,20 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestHideAppCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationLauncher * cluster = [[CHIPTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPApplicationLauncherClusterHideAppParams alloc] init]; - params.application = [[CHIPApplicationLauncherClusterApplication alloc] init]; - ((CHIPApplicationLauncherClusterApplication *) params.application).catalogVendorId = - [NSNumber numberWithUnsignedShort:123U]; - ((CHIPApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; + __auto_type * params = [[MTRApplicationLauncherClusterHideAppParams alloc] init]; + params.application = [[MTRApplicationLauncherClusterApplication alloc] init]; + ((MTRApplicationLauncherClusterApplication *) params.application).catalogVendorId = [NSNumber numberWithUnsignedShort:123U]; + ((MTRApplicationLauncherClusterApplication *) params.application).applicationId = @"applicationId"; [cluster hideAppWithParams:params - completionHandler:^(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Hide App Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -58433,14 +58368,14 @@ class TV_KeypadInputCluster : public TestCommandBridge { CHIP_ERROR TestSendKeyCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; + __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.keyCode = [NSNumber numberWithUnsignedChar:3U]; [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Key Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -58563,15 +58498,15 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestGetSetupPinCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAccountLoginClusterGetSetupPINParams alloc] init]; + __auto_type * params = [[MTRAccountLoginClusterGetSetupPINParams alloc] init]; params.tempAccountIdentifier = @"asdf"; [cluster getSetupPINWithParams:params - completionHandler:^(CHIPAccountLoginClusterGetSetupPINResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Setup PIN Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -58589,11 +58524,11 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestLoginCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAccountLoginClusterLoginParams alloc] init]; + __auto_type * params = [[MTRAccountLoginClusterLoginParams alloc] init]; params.tempAccountIdentifier = @"asdf"; params.setupPIN = @"tempPin123"; [cluster loginWithParams:params @@ -58610,8 +58545,8 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestLogoutCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAccountLogin * cluster = [[CHIPTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster logoutWithCompletionHandler:^(NSError * _Nullable err) { @@ -58718,8 +58653,8 @@ class TV_WakeOnLanCluster : public TestCommandBridge { CHIP_ERROR TestReadMacAddress_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestWakeOnLan * cluster = [[CHIPTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMACAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -58880,10 +58815,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorName_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -58904,10 +58837,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorId_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -58928,10 +58859,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationName_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -58952,10 +58881,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeProductId_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -58976,10 +58903,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationStatus_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59000,14 +58925,12 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationStatus_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationWithCompletionHandler:^( - CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { + MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application status Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59015,9 +58938,9 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("catalogVendorId", - ((CHIPApplicationBasicClusterApplicationBasicApplication *) actualValue).catalogVendorId, 123U)); + ((MTRApplicationBasicClusterApplicationBasicApplication *) actualValue).catalogVendorId, 123U)); VerifyOrReturn(CheckValueAsString("applicationId", - ((CHIPApplicationBasicClusterApplicationBasicApplication *) actualValue).applicationId, @"applicationId")); + ((MTRApplicationBasicClusterApplicationBasicApplication *) actualValue).applicationId, @"applicationId")); } NextTest(); @@ -59028,10 +58951,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationVersion_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -59052,10 +58973,8 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationAllowedVendorList_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device - endpoint:3 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -59309,8 +59228,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePlaybackState_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59331,8 +59250,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeStartTime_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59354,8 +59273,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDuration_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59377,12 +59296,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePosition_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59390,9 +59309,9 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("SampledPosition", actualValue)); - VerifyOrReturn(CheckValue("updatedAt", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); - VerifyOrReturn(CheckValueNonNull("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position)); - VerifyOrReturn(CheckValue("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position, 0ULL)); + VerifyOrReturn(CheckValue("updatedAt", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); + VerifyOrReturn(CheckValueNonNull("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position)); + VerifyOrReturn(CheckValue("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position, 0ULL)); } NextTest(); @@ -59403,8 +59322,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePlaybackSpeed_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59425,8 +59344,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSeekRangeEnd_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59448,8 +59367,8 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSeekRangeStart_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59471,40 +59390,40 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackPlayCommand_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster playWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Media Playback Play Command Error: %@", err); + [cluster + playWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Media Playback Play Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - { - id actualValue = values.data; - VerifyOrReturn(CheckValueAsString("data", actualValue, @"data response")); - } + { + id actualValue = values.data; + VerifyOrReturn(CheckValueAsString("data", actualValue, @"data response")); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestMediaPlaybackPauseCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Pause Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59527,12 +59446,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackStopCommand_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopPlaybackWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Stop Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59555,12 +59474,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackStartOverCommand_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster startOverWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Start Over Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59583,12 +59502,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackPreviousCommand_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster previousWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Previous Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59611,40 +59530,40 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackNextCommand_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster nextWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Media Playback Next Command Error: %@", err); + [cluster + nextWithCompletionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Media Playback Next Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.status; - VerifyOrReturn(CheckValue("status", actualValue, 0U)); - } + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } - { - id actualValue = values.data; - VerifyOrReturn(CheckValueAsString("data", actualValue, @"data response")); - } + { + id actualValue = values.data; + VerifyOrReturn(CheckValueAsString("data", actualValue, @"data response")); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestMediaPlaybackRewindCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Rewind Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59667,12 +59586,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackFastForwardCommand_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Fast Forward Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59695,15 +59614,15 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSkipForwardCommand_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSkipForwardParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:500ULL]; [cluster skipForwardWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Skip Forward Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59726,12 +59645,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSkipForward_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after skip forward Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59739,9 +59658,9 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("SampledPosition", actualValue)); - VerifyOrReturn(CheckValue("updatedAt", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); - VerifyOrReturn(CheckValueNonNull("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position)); - VerifyOrReturn(CheckValue("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position, 500ULL)); + VerifyOrReturn(CheckValue("updatedAt", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); + VerifyOrReturn(CheckValueNonNull("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position)); + VerifyOrReturn(CheckValue("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position, 500ULL)); } NextTest(); @@ -59752,15 +59671,15 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSkipBackwardCommand_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSkipBackwardParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; params.deltaPositionMilliseconds = [NSNumber numberWithUnsignedLongLong:100ULL]; [cluster skipBackwardWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Skip Backward Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59783,12 +59702,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSkipBackward_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after skip backward Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59796,9 +59715,9 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("SampledPosition", actualValue)); - VerifyOrReturn(CheckValue("updatedAt", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); - VerifyOrReturn(CheckValueNonNull("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position)); - VerifyOrReturn(CheckValue("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position, 400ULL)); + VerifyOrReturn(CheckValue("updatedAt", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); + VerifyOrReturn(CheckValueNonNull("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position)); + VerifyOrReturn(CheckValue("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position, 400ULL)); } NextTest(); @@ -59809,14 +59728,14 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSeekCommand_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaPlaybackClusterSeekParams alloc] init]; + __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; params.position = [NSNumber numberWithUnsignedLongLong:1000ULL]; [cluster seekWithParams:params - completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Seek Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59839,12 +59758,12 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSeek_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( - CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { + MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after seek Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -59852,10 +59771,9 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("SampledPosition", actualValue)); - VerifyOrReturn(CheckValue("updatedAt", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); - VerifyOrReturn(CheckValueNonNull("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position)); - VerifyOrReturn( - CheckValue("position", ((CHIPMediaPlaybackClusterPlaybackPosition *) actualValue).position, 1000ULL)); + VerifyOrReturn(CheckValue("updatedAt", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).updatedAt, 0ULL)); + VerifyOrReturn(CheckValueNonNull("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position)); + VerifyOrReturn(CheckValue("position", ((MTRMediaPlaybackClusterPlaybackPosition *) actualValue).position, 1000ULL)); } NextTest(); @@ -59992,8 +59910,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeChannelList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -60004,35 +59922,35 @@ class TV_ChannelCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("ChannelList", [actualValue count], static_cast(4))); - VerifyOrReturn(CheckValue("majorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[0]).majorNumber, 6U)); - VerifyOrReturn(CheckValue("minorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[0]).minorNumber, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPChannelClusterChannelInfo *) actualValue[0]).name, @"ABC")); + VerifyOrReturn(CheckValue("majorNumber", ((MTRChannelClusterChannelInfo *) actualValue[0]).majorNumber, 6U)); + VerifyOrReturn(CheckValue("minorNumber", ((MTRChannelClusterChannelInfo *) actualValue[0]).minorNumber, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRChannelClusterChannelInfo *) actualValue[0]).name, @"ABC")); VerifyOrReturn( - CheckValueAsString("callSign", ((CHIPChannelClusterChannelInfo *) actualValue[0]).callSign, @"KAAL-TV")); + CheckValueAsString("callSign", ((MTRChannelClusterChannelInfo *) actualValue[0]).callSign, @"KAAL-TV")); VerifyOrReturn(CheckValueAsString( - "affiliateCallSign", ((CHIPChannelClusterChannelInfo *) actualValue[0]).affiliateCallSign, @"KAAL")); - VerifyOrReturn(CheckValue("majorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[1]).majorNumber, 9U)); - VerifyOrReturn(CheckValue("minorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[1]).minorNumber, 1U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPChannelClusterChannelInfo *) actualValue[1]).name, @"PBS")); + "affiliateCallSign", ((MTRChannelClusterChannelInfo *) actualValue[0]).affiliateCallSign, @"KAAL")); + VerifyOrReturn(CheckValue("majorNumber", ((MTRChannelClusterChannelInfo *) actualValue[1]).majorNumber, 9U)); + VerifyOrReturn(CheckValue("minorNumber", ((MTRChannelClusterChannelInfo *) actualValue[1]).minorNumber, 1U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRChannelClusterChannelInfo *) actualValue[1]).name, @"PBS")); VerifyOrReturn( - CheckValueAsString("callSign", ((CHIPChannelClusterChannelInfo *) actualValue[1]).callSign, @"KCTS-TV")); + CheckValueAsString("callSign", ((MTRChannelClusterChannelInfo *) actualValue[1]).callSign, @"KCTS-TV")); VerifyOrReturn(CheckValueAsString( - "affiliateCallSign", ((CHIPChannelClusterChannelInfo *) actualValue[1]).affiliateCallSign, @"KCTS")); - VerifyOrReturn(CheckValue("majorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[2]).majorNumber, 9U)); - VerifyOrReturn(CheckValue("minorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[2]).minorNumber, 2U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPChannelClusterChannelInfo *) actualValue[2]).name, @"PBS Kids")); + "affiliateCallSign", ((MTRChannelClusterChannelInfo *) actualValue[1]).affiliateCallSign, @"KCTS")); + VerifyOrReturn(CheckValue("majorNumber", ((MTRChannelClusterChannelInfo *) actualValue[2]).majorNumber, 9U)); + VerifyOrReturn(CheckValue("minorNumber", ((MTRChannelClusterChannelInfo *) actualValue[2]).minorNumber, 2U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRChannelClusterChannelInfo *) actualValue[2]).name, @"PBS Kids")); VerifyOrReturn( - CheckValueAsString("callSign", ((CHIPChannelClusterChannelInfo *) actualValue[2]).callSign, @"KCTS-TV")); + CheckValueAsString("callSign", ((MTRChannelClusterChannelInfo *) actualValue[2]).callSign, @"KCTS-TV")); VerifyOrReturn(CheckValueAsString( - "affiliateCallSign", ((CHIPChannelClusterChannelInfo *) actualValue[2]).affiliateCallSign, @"KCTS")); - VerifyOrReturn(CheckValue("majorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[3]).majorNumber, 9U)); - VerifyOrReturn(CheckValue("minorNumber", ((CHIPChannelClusterChannelInfo *) actualValue[3]).minorNumber, 3U)); + "affiliateCallSign", ((MTRChannelClusterChannelInfo *) actualValue[2]).affiliateCallSign, @"KCTS")); + VerifyOrReturn(CheckValue("majorNumber", ((MTRChannelClusterChannelInfo *) actualValue[3]).majorNumber, 9U)); + VerifyOrReturn(CheckValue("minorNumber", ((MTRChannelClusterChannelInfo *) actualValue[3]).minorNumber, 3U)); VerifyOrReturn( - CheckValueAsString("name", ((CHIPChannelClusterChannelInfo *) actualValue[3]).name, @"World Channel")); + CheckValueAsString("name", ((MTRChannelClusterChannelInfo *) actualValue[3]).name, @"World Channel")); VerifyOrReturn( - CheckValueAsString("callSign", ((CHIPChannelClusterChannelInfo *) actualValue[3]).callSign, @"KCTS-TV")); + CheckValueAsString("callSign", ((MTRChannelClusterChannelInfo *) actualValue[3]).callSign, @"KCTS-TV")); VerifyOrReturn(CheckValueAsString( - "affiliateCallSign", ((CHIPChannelClusterChannelInfo *) actualValue[3]).affiliateCallSign, @"KCTS")); + "affiliateCallSign", ((MTRChannelClusterChannelInfo *) actualValue[3]).affiliateCallSign, @"KCTS")); } NextTest(); @@ -60043,12 +59961,12 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeChannelLineup_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster - readAttributeLineupWithCompletionHandler:^(CHIPChannelClusterLineupInfo * _Nullable value, NSError * _Nullable err) { + readAttributeLineupWithCompletionHandler:^(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute channel lineup Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -60056,13 +59974,13 @@ class TV_ChannelCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("Lineup", actualValue)); + VerifyOrReturn( + CheckValueAsString("operatorName", ((MTRChannelClusterLineupInfo *) actualValue).operatorName, @"Comcast")); VerifyOrReturn(CheckValueAsString( - "operatorName", ((CHIPChannelClusterLineupInfo *) actualValue).operatorName, @"Comcast")); - VerifyOrReturn(CheckValueAsString( - "lineupName", ((CHIPChannelClusterLineupInfo *) actualValue).lineupName, @"Comcast King County")); + "lineupName", ((MTRChannelClusterLineupInfo *) actualValue).lineupName, @"Comcast King County")); VerifyOrReturn( - CheckValueAsString("postalCode", ((CHIPChannelClusterLineupInfo *) actualValue).postalCode, @"98052")); - VerifyOrReturn(CheckValue("lineupInfoType", ((CHIPChannelClusterLineupInfo *) actualValue).lineupInfoType, 0U)); + CheckValueAsString("postalCode", ((MTRChannelClusterLineupInfo *) actualValue).postalCode, @"98052")); + VerifyOrReturn(CheckValue("lineupInfoType", ((MTRChannelClusterLineupInfo *) actualValue).lineupInfoType, 0U)); } NextTest(); @@ -60073,12 +59991,12 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentChannel_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( - CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute current channel Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -60086,13 +60004,12 @@ class TV_ChannelCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("CurrentChannel", actualValue)); - VerifyOrReturn(CheckValue("majorNumber", ((CHIPChannelClusterChannelInfo *) actualValue).majorNumber, 6U)); - VerifyOrReturn(CheckValue("minorNumber", ((CHIPChannelClusterChannelInfo *) actualValue).minorNumber, 0U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPChannelClusterChannelInfo *) actualValue).name, @"ABC")); - VerifyOrReturn( - CheckValueAsString("callSign", ((CHIPChannelClusterChannelInfo *) actualValue).callSign, @"KAAL-TV")); + VerifyOrReturn(CheckValue("majorNumber", ((MTRChannelClusterChannelInfo *) actualValue).majorNumber, 6U)); + VerifyOrReturn(CheckValue("minorNumber", ((MTRChannelClusterChannelInfo *) actualValue).minorNumber, 0U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRChannelClusterChannelInfo *) actualValue).name, @"ABC")); + VerifyOrReturn(CheckValueAsString("callSign", ((MTRChannelClusterChannelInfo *) actualValue).callSign, @"KAAL-TV")); VerifyOrReturn(CheckValueAsString( - "affiliateCallSign", ((CHIPChannelClusterChannelInfo *) actualValue).affiliateCallSign, @"KAAL")); + "affiliateCallSign", ((MTRChannelClusterChannelInfo *) actualValue).affiliateCallSign, @"KAAL")); } NextTest(); @@ -60103,15 +60020,15 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestChangeChannelCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPChannelClusterChangeChannelParams alloc] init]; + __auto_type * params = [[MTRChannelClusterChangeChannelParams alloc] init]; params.match = @"PBS"; [cluster changeChannelWithParams:params - completionHandler:^(CHIPChannelClusterChangeChannelResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRChannelClusterChangeChannelResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Change Channel Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -60134,11 +60051,11 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestChangeChannelByNumberCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPChannelClusterChangeChannelByNumberParams alloc] init]; + __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; params.majorNumber = [NSNumber numberWithUnsignedShort:6U]; params.minorNumber = [NSNumber numberWithUnsignedShort:0U]; [cluster changeChannelByNumberWithParams:params @@ -60155,11 +60072,11 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestSkipChannelCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPChannelClusterSkipChannelParams alloc] init]; + __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; params.count = [NSNumber numberWithUnsignedShort:1U]; [cluster skipChannelWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -60266,8 +60183,8 @@ class TV_LowPowerCluster : public TestCommandBridge { CHIP_ERROR TestSleepInputStatusCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestLowPower * cluster = [[CHIPTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { @@ -60395,8 +60312,8 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAcceptHeaderList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -60419,8 +60336,8 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSupportedStreamingProtocols_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -60442,34 +60359,34 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchContentCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPContentLauncherClusterLaunchContentParams alloc] init]; - params.search = [[CHIPContentLauncherClusterContentSearch alloc] init]; + __auto_type * params = [[MTRContentLauncherClusterLaunchContentParams alloc] init]; + params.search = [[MTRContentLauncherClusterContentSearch alloc] init]; { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; - temp_1[0] = [[CHIPContentLauncherClusterParameter alloc] init]; - ((CHIPContentLauncherClusterParameter *) temp_1[0]).type = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPContentLauncherClusterParameter *) temp_1[0]).value = @"exampleValue"; + temp_1[0] = [[MTRContentLauncherClusterParameter alloc] init]; + ((MTRContentLauncherClusterParameter *) temp_1[0]).type = [NSNumber numberWithUnsignedChar:1U]; + ((MTRContentLauncherClusterParameter *) temp_1[0]).value = @"exampleValue"; { NSMutableArray * temp_4 = [[NSMutableArray alloc] init]; - temp_4[0] = [[CHIPContentLauncherClusterAdditionalInfo alloc] init]; - ((CHIPContentLauncherClusterAdditionalInfo *) temp_4[0]).name = @"name"; - ((CHIPContentLauncherClusterAdditionalInfo *) temp_4[0]).value = @"value"; + temp_4[0] = [[MTRContentLauncherClusterAdditionalInfo alloc] init]; + ((MTRContentLauncherClusterAdditionalInfo *) temp_4[0]).name = @"name"; + ((MTRContentLauncherClusterAdditionalInfo *) temp_4[0]).value = @"value"; - ((CHIPContentLauncherClusterParameter *) temp_1[0]).externalIDList = temp_4; + ((MTRContentLauncherClusterParameter *) temp_1[0]).externalIDList = temp_4; } - ((CHIPContentLauncherClusterContentSearch *) params.search).parameterList = temp_1; + ((MTRContentLauncherClusterContentSearch *) params.search).parameterList = temp_1; } params.autoPlay = [NSNumber numberWithBool:true]; params.data = @"exampleData"; [cluster launchContentWithParams:params - completionHandler:^(CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Launch Content Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -60492,197 +60409,182 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchUrlCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestContentLauncher * cluster = [[CHIPTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPContentLauncherClusterLaunchURLParams alloc] init]; + __auto_type * params = [[MTRContentLauncherClusterLaunchURLParams alloc] init]; params.contentURL = @"exampleUrl"; params.displayString = @"exampleDisplayString"; - params.brandingInformation = [[CHIPContentLauncherClusterBrandingInformation alloc] init]; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).providerName = @"exampleName"; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).background = - [[CHIPContentLauncherClusterStyleInformation alloc] init]; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + params.brandingInformation = [[MTRContentLauncherClusterBrandingInformation alloc] init]; + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).providerName = @"exampleName"; + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).background = + [[MTRContentLauncherClusterStyleInformation alloc] init]; + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .background) .imageUrl = @"exampleUrl"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .background) .color = @"exampleColor"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .background) .size - = [[CHIPContentLauncherClusterDimension alloc] init]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .background) + = [[MTRContentLauncherClusterDimension alloc] init]; + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .background) .size) .width = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .background) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .background) .size) .height = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .background) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .background) .size) .metric = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).logo = - [[CHIPContentLauncherClusterStyleInformation alloc] init]; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).logo = + [[MTRContentLauncherClusterStyleInformation alloc] init]; + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .logo) .imageUrl = @"exampleUrl"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .logo) .color = @"exampleColor"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .logo) .size - = [[CHIPContentLauncherClusterDimension alloc] init]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .logo) + = [[MTRContentLauncherClusterDimension alloc] init]; + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .logo) .size) .width = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .logo) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .logo) .size) .height = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .logo) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .logo) .size) .metric = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).progressBar = - [[CHIPContentLauncherClusterStyleInformation alloc] init]; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).progressBar = + [[MTRContentLauncherClusterStyleInformation alloc] init]; + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .progressBar) .imageUrl = @"exampleUrl"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .progressBar) .color = @"exampleColor"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .progressBar) .size - = [[CHIPContentLauncherClusterDimension alloc] init]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .progressBar) + = [[MTRContentLauncherClusterDimension alloc] init]; + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .progressBar) .size) .width = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .progressBar) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .progressBar) .size) .height = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .progressBar) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .progressBar) .size) .metric = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).splash = - [[CHIPContentLauncherClusterStyleInformation alloc] init]; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).splash = + [[MTRContentLauncherClusterStyleInformation alloc] init]; + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .splash) .imageUrl = @"exampleUrl"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .splash) .color = @"exampleColor"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .splash) .size - = [[CHIPContentLauncherClusterDimension alloc] init]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .splash) + = [[MTRContentLauncherClusterDimension alloc] init]; + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .splash) .size) .width = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .splash) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .splash) .size) .height = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .splash) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .splash) .size) .metric = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPContentLauncherClusterBrandingInformation *) params.brandingInformation).waterMark = - [[CHIPContentLauncherClusterStyleInformation alloc] init]; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation).waterMark = + [[MTRContentLauncherClusterStyleInformation alloc] init]; + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .waterMark) .imageUrl = @"exampleUrl"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .waterMark) .color = @"exampleColor"; - ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) + ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) params.brandingInformation) .waterMark) .size - = [[CHIPContentLauncherClusterDimension alloc] init]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .waterMark) + = [[MTRContentLauncherClusterDimension alloc] init]; + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .waterMark) .size) .width = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .waterMark) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .waterMark) .size) .height = [NSNumber numberWithDouble:0]; - ((CHIPContentLauncherClusterDimension *) ((CHIPContentLauncherClusterStyleInformation *) ((CHIPContentLauncherClusterBrandingInformation *) - params.brandingInformation) - .waterMark) + ((MTRContentLauncherClusterDimension *) ((MTRContentLauncherClusterStyleInformation *) ((MTRContentLauncherClusterBrandingInformation *) + params.brandingInformation) + .waterMark) .size) .metric = [NSNumber numberWithUnsignedChar:0U]; [cluster launchURLWithParams:params - completionHandler:^(CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Launch URL Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -60838,8 +60740,8 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -60850,18 +60752,16 @@ class TV_MediaInputCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("InputList", [actualValue count], static_cast(2))); - VerifyOrReturn(CheckValue("index", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).index, 1U)); - VerifyOrReturn(CheckValue("inputType", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).inputType, 4U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).name, @"HDMI")); - VerifyOrReturn( - CheckValueAsString("description", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).descriptionString, - @"High-Definition Multimedia Interface")); - VerifyOrReturn(CheckValue("index", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).index, 2U)); - VerifyOrReturn(CheckValue("inputType", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).inputType, 4U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).name, @"HDMI")); - VerifyOrReturn( - CheckValueAsString("description", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).descriptionString, - @"High-Definition Multimedia Interface")); + VerifyOrReturn(CheckValue("index", ((MTRMediaInputClusterInputInfo *) actualValue[0]).index, 1U)); + VerifyOrReturn(CheckValue("inputType", ((MTRMediaInputClusterInputInfo *) actualValue[0]).inputType, 4U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRMediaInputClusterInputInfo *) actualValue[0]).name, @"HDMI")); + VerifyOrReturn(CheckValueAsString("description", + ((MTRMediaInputClusterInputInfo *) actualValue[0]).descriptionString, @"High-Definition Multimedia Interface")); + VerifyOrReturn(CheckValue("index", ((MTRMediaInputClusterInputInfo *) actualValue[1]).index, 2U)); + VerifyOrReturn(CheckValue("inputType", ((MTRMediaInputClusterInputInfo *) actualValue[1]).inputType, 4U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRMediaInputClusterInputInfo *) actualValue[1]).name, @"HDMI")); + VerifyOrReturn(CheckValueAsString("description", + ((MTRMediaInputClusterInputInfo *) actualValue[1]).descriptionString, @"High-Definition Multimedia Interface")); } NextTest(); @@ -60872,8 +60772,8 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentMediaInput_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60894,11 +60794,11 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestSelectInputCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaInputClusterSelectInputParams alloc] init]; + __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; [cluster selectInputWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -60914,8 +60814,8 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestHideInputStatusCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -60931,8 +60831,8 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestShowInputStatusCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -60948,11 +60848,11 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestRenameInputCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPMediaInputClusterRenameInputParams alloc] init]; + __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; params.index = [NSNumber numberWithUnsignedChar:1U]; params.name = @"HDMI Test"; [cluster renameInputWithParams:params @@ -60969,8 +60869,8 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -60981,18 +60881,16 @@ class TV_MediaInputCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("InputList", [actualValue count], static_cast(2))); - VerifyOrReturn(CheckValue("index", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).index, 1U)); - VerifyOrReturn(CheckValue("inputType", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).inputType, 4U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).name, @"HDMI Test")); - VerifyOrReturn( - CheckValueAsString("description", ((CHIPMediaInputClusterInputInfo *) actualValue[0]).descriptionString, - @"High-Definition Multimedia Interface")); - VerifyOrReturn(CheckValue("index", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).index, 2U)); - VerifyOrReturn(CheckValue("inputType", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).inputType, 4U)); - VerifyOrReturn(CheckValueAsString("name", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).name, @"HDMI")); - VerifyOrReturn( - CheckValueAsString("description", ((CHIPMediaInputClusterInputInfo *) actualValue[1]).descriptionString, - @"High-Definition Multimedia Interface")); + VerifyOrReturn(CheckValue("index", ((MTRMediaInputClusterInputInfo *) actualValue[0]).index, 1U)); + VerifyOrReturn(CheckValue("inputType", ((MTRMediaInputClusterInputInfo *) actualValue[0]).inputType, 4U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRMediaInputClusterInputInfo *) actualValue[0]).name, @"HDMI Test")); + VerifyOrReturn(CheckValueAsString("description", + ((MTRMediaInputClusterInputInfo *) actualValue[0]).descriptionString, @"High-Definition Multimedia Interface")); + VerifyOrReturn(CheckValue("index", ((MTRMediaInputClusterInputInfo *) actualValue[1]).index, 2U)); + VerifyOrReturn(CheckValue("inputType", ((MTRMediaInputClusterInputInfo *) actualValue[1]).inputType, 4U)); + VerifyOrReturn(CheckValueAsString("name", ((MTRMediaInputClusterInputInfo *) actualValue[1]).name, @"HDMI")); + VerifyOrReturn(CheckValueAsString("description", + ((MTRMediaInputClusterInputInfo *) actualValue[1]).descriptionString, @"High-Definition Multimedia Interface")); } NextTest(); @@ -64609,8 +64507,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -64626,8 +64524,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestNotHandledCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testNotHandledWithCompletionHandler:^(NSError * _Nullable err) { @@ -64642,12 +64540,12 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestSpecificCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testSpecificWithCompletionHandler:^( - CHIPTestClusterClusterTestSpecificResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestSpecificResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Specific Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -64665,16 +64563,16 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:3U]; params.arg2 = [NSNumber numberWithUnsignedChar:17U]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -64692,16 +64590,16 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendFailingTestAddArgumentsCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:250U]; params.arg2 = [NSNumber numberWithUnsignedChar:6U]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send failing Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -64713,8 +64611,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanDefaultValue_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64735,8 +64633,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanTrue_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -64755,8 +64653,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanTrue_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64777,8 +64675,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanFalse_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -64797,8 +64695,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanFalse_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64819,8 +64717,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64841,8 +64739,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8MaxValue_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -64861,8 +64759,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8MaxValue_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64883,8 +64781,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8MinValue_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -64903,8 +64801,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8MinValue_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64925,8 +64823,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64947,8 +64845,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16MaxValue_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -64967,8 +64865,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16MaxValue_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -64989,8 +64887,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16MinValue_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -65009,8 +64907,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16MinValue_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65031,8 +64929,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65053,8 +64951,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32MaxValue_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -65073,8 +64971,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32MaxValue_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65095,8 +64993,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32MinValue_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -65115,8 +65013,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32MinValue_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65137,8 +65035,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65159,8 +65057,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64MaxValue_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -65179,8 +65077,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64MaxValue_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65201,8 +65099,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64MinValue_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -65221,8 +65119,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64MinValue_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65243,8 +65141,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65265,8 +65163,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uMaxValue_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -65285,8 +65183,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uMaxValue_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65307,8 +65205,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uMinValue_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -65327,8 +65225,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uMinValue_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65349,8 +65247,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65371,8 +65269,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uMaxValue_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -65391,8 +65289,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uMaxValue_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65413,8 +65311,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uMinValue_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -65433,8 +65331,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uMinValue_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65455,8 +65353,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65477,8 +65375,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uMaxValue_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -65497,8 +65395,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uMaxValue_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65519,8 +65417,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uMinValue_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -65539,8 +65437,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uMinValue_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65561,8 +65459,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65583,8 +65481,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uMaxValue_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -65603,8 +65501,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uMaxValue_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65625,8 +65523,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uMinValue_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -65645,8 +65543,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uMinValue_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65667,8 +65565,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65689,8 +65587,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sMaxValue_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -65709,8 +65607,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sMaxValue_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65731,8 +65629,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sMinValue_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -65751,8 +65649,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sMinValue_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65773,8 +65671,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sDefaultValue_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -65793,8 +65691,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65815,8 +65713,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65837,8 +65735,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sMaxValue_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -65857,8 +65755,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sMaxValue_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65879,8 +65777,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sMinValue_61() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -65899,8 +65797,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sMinValue_62() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65921,8 +65819,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sDefaultValue_63() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -65941,8 +65839,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_64() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65963,8 +65861,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_65() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -65985,8 +65883,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sMaxValue_66() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -66005,8 +65903,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sMaxValue_67() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66027,8 +65925,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sMinValue_68() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -66047,8 +65945,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sMinValue_69() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66069,8 +65967,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sDefaultValue_70() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -66089,8 +65987,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_71() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66111,8 +66009,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_72() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66133,8 +66031,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sMaxValue_73() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -66153,8 +66051,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sMaxValue_74() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66175,8 +66073,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sMinValue_75() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -66195,8 +66093,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sMinValue_76() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66217,8 +66115,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sDefaultValue_77() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -66237,8 +66135,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_78() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66259,8 +66157,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleDefaultValue_79() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66281,8 +66179,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleMediumValue_80() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -66301,8 +66199,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleMediumValue_81() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66323,8 +66221,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleLargeValue_82() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -66343,8 +66241,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleLargeValue_83() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66365,8 +66263,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleSmallValue_84() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -66385,8 +66283,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleSmallValue_85() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66407,8 +66305,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleDefaultValue_86() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -66427,8 +66325,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleDefaultValue_87() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66449,8 +66347,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleDefaultValue_88() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66471,8 +66369,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleMediumValue_89() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -66491,8 +66389,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleMediumValue_90() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66513,8 +66411,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleLargeValue_91() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -66533,8 +66431,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleLargeValue_92() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66555,8 +66453,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleSmallValue_93() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -66575,8 +66473,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleSmallValue_94() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66597,8 +66495,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleDefaultValue_95() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -66617,8 +66515,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleDefaultValue_96() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66639,8 +66537,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_97() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66661,8 +66559,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8MaxValue_98() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -66681,8 +66579,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8MaxValue_99() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66703,8 +66601,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8MinValue_100() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -66723,8 +66621,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8MinValue_101() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66745,8 +66643,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_102() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66767,8 +66665,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16MaxValue_103() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -66787,8 +66685,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16MaxValue_104() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66809,8 +66707,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16MinValue_105() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -66829,8 +66727,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16MinValue_106() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66851,8 +66749,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValue_107() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -66873,8 +66771,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithEmbeddedNull_108() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -66893,8 +66791,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithEmbeddedNull_109() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -66916,8 +66814,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithHexFormat_110() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -66936,8 +66834,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithHexFormat_111() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -66959,8 +66857,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithWeirdChars_112() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -66979,8 +66877,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithWeirdChars_113() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -67002,8 +66900,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_114() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -67022,8 +66920,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetString_115() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -67045,8 +66943,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_116() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -67064,8 +66962,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetString_117() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -67087,8 +66985,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_118() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -67107,8 +67005,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_119() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -67129,8 +67027,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongOctetString_120() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longOctetStringArgument; @@ -67153,8 +67051,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongOctetString_121() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -67181,8 +67079,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongOctetString_122() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longOctetStringArgument; @@ -67201,8 +67099,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValue_123() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -67223,8 +67121,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharString_124() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -67243,8 +67141,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharString_125() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -67265,8 +67163,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValueTooLong_126() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -67284,8 +67182,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharString_127() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -67306,8 +67204,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringEmpty_128() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -67326,8 +67224,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_129() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -67348,8 +67246,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongCharString_130() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longCharStringArgument; @@ -67371,8 +67269,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongCharString_131() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -67396,8 +67294,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongCharString_132() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longCharStringArgument; @@ -67416,8 +67314,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListLongOctetStringForChunkedRead_133() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -67474,8 +67372,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListLongOctetStringForChunkedWrite_134() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listLongOctetStringArgument; @@ -67537,8 +67435,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListLongOctetStringForChunkedRead_135() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -67604,8 +67502,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_136() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67626,8 +67524,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsMaxValue_137() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -67646,8 +67544,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsMaxValue_138() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67668,8 +67566,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsMinValue_139() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -67688,8 +67586,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsMinValue_140() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67710,8 +67608,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_141() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67732,8 +67630,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSMaxValue_142() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -67752,8 +67650,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSMaxValue_143() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67774,8 +67672,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSMinValue_144() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -67794,8 +67692,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSMinValue_145() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67816,14 +67714,14 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeUnsupported_146() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnsupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute UNSUPPORTED Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -67843,8 +67741,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteattributeUnsupported_147() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unsupportedArgument; @@ -67853,7 +67751,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writeattribute UNSUPPORTED Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { NextTest(); return; } @@ -67868,8 +67766,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_148() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -67884,8 +67782,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandToUnsupportedCluster_149() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -67900,8 +67798,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_150() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67922,8 +67820,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorId_151() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -67942,8 +67840,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorId_152() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67964,8 +67862,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestRestoreAttributeVendorId_153() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -67984,56 +67882,56 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_154() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestEnumsRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestEnumsRequestParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedShort:20003U]; params.arg2 = [NSNumber numberWithUnsignedChar:101U]; - [cluster testEnumsRequestWithParams:params - completionHandler:^( - CHIPTestClusterClusterTestEnumsResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send a command with a vendor_id and enum Error: %@", err); + [cluster + testEnumsRequestWithParams:params + completionHandler:^(MTRTestClusterClusterTestEnumsResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Send a command with a vendor_id and enum Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.arg1; - VerifyOrReturn(CheckValue("arg1", actualValue, 20003U)); - } + { + id actualValue = values.arg1; + VerifyOrReturn(CheckValue("arg1", actualValue, 20003U)); + } - { - id actualValue = values.arg2; - VerifyOrReturn(CheckValue("arg2", actualValue, 101U)); - } + { + id actualValue = values.arg2; + VerifyOrReturn(CheckValue("arg2", actualValue, 101U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsTrue_155() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestStructArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0]; + __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0]; [cluster testStructArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and arg1.b is true Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68051,24 +67949,24 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsFalse_156() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestStructArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0]; + __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:false]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0]; [cluster testStructArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and arg1.b is false Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68086,35 +67984,35 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_157() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterNestedStruct alloc] init]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).a = + __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterNestedStruct alloc] init]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).h = [NSNumber numberWithDouble:0]; [cluster testNestedStructArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct Argument and arg1.c.b is true Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68132,35 +68030,35 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_158() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterNestedStruct alloc] init]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStruct *) params.arg1).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).a = + __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterNestedStruct alloc] init]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStruct *) params.arg1).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStruct *) params.arg1).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStruct *) params.arg1).c).h = [NSNumber numberWithDouble:0]; [cluster testNestedStructArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct Argument arg1.c.b is false Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68178,78 +68076,78 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_159() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterNestedStructList alloc] init]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).a = + __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterNestedStructList alloc] init]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).h = [NSNumber numberWithDouble:0]; { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; - temp_1[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).h = [NSNumber numberWithDouble:0]; - - temp_1[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).a = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).h = [NSNumber numberWithDouble:0]; - - ((CHIPTestClusterClusterNestedStructList *) params.arg1).d = temp_1; + temp_1[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).h = [NSNumber numberWithDouble:0]; + + temp_1[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).a = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).h = [NSNumber numberWithDouble:0]; + + ((MTRTestClusterClusterNestedStructList *) params.arg1).d = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [NSNumber numberWithUnsignedInt:1UL]; temp_1[1] = [NSNumber numberWithUnsignedInt:2UL]; temp_1[2] = [NSNumber numberWithUnsignedInt:3UL]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).e = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).e = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [[NSData alloc] initWithBytes:"octet_string_1" length:14]; temp_1[1] = [[NSData alloc] initWithBytes:"octect_string_2" length:15]; temp_1[2] = [[NSData alloc] initWithBytes:"octet_string_3" length:14]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).f = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).f = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [NSNumber numberWithUnsignedChar:0U]; temp_1[1] = [NSNumber numberWithUnsignedChar:255U]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).g = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).g = temp_1; } [cluster testNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct List Argument and all fields b of " @"arg1.d are true Error: %@", @@ -68270,78 +68168,78 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_160() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterNestedStructList alloc] init]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).a = + __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterNestedStructList alloc] init]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStructList *) params.arg1).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) params.arg1).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) params.arg1).c).h = [NSNumber numberWithDouble:0]; { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; - temp_1[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[0]).h = [NSNumber numberWithDouble:0]; - - temp_1[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).a = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_1[1]).h = [NSNumber numberWithDouble:0]; - - ((CHIPTestClusterClusterNestedStructList *) params.arg1).d = temp_1; + temp_1[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[0]).h = [NSNumber numberWithDouble:0]; + + temp_1[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).a = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).b = [NSNumber numberWithBool:false]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_1[1]).h = [NSNumber numberWithDouble:0]; + + ((MTRTestClusterClusterNestedStructList *) params.arg1).d = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [NSNumber numberWithUnsignedInt:1UL]; temp_1[1] = [NSNumber numberWithUnsignedInt:2UL]; temp_1[2] = [NSNumber numberWithUnsignedInt:3UL]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).e = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).e = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [[NSData alloc] initWithBytes:"octet_string_1" length:14]; temp_1[1] = [[NSData alloc] initWithBytes:"octect_string_2" length:15]; temp_1[2] = [[NSData alloc] initWithBytes:"octet_string_3" length:14]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).f = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).f = temp_1; } { NSMutableArray * temp_1 = [[NSMutableArray alloc] init]; temp_1[0] = [NSNumber numberWithUnsignedChar:0U]; temp_1[1] = [NSNumber numberWithUnsignedChar:255U]; - ((CHIPTestClusterClusterNestedStructList *) params.arg1).g = temp_1; + ((MTRTestClusterClusterNestedStructList *) params.arg1).g = temp_1; } [cluster testNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct List Argument and some fields b of " @"arg1.d are false Error: %@", @@ -68362,41 +68260,41 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_161() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterSimpleStructEchoRequestParams alloc] init]; - params.arg1 = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:17U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.1f]; - ((CHIPTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0.1]; + __auto_type * params = [[MTRTestClusterClusterSimpleStructEchoRequestParams alloc] init]; + params.arg1 = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).a = [NSNumber numberWithUnsignedChar:17U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).b = [NSNumber numberWithBool:false]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).g = [NSNumber numberWithFloat:0.1f]; + ((MTRTestClusterClusterSimpleStruct *) params.arg1).h = [NSNumber numberWithDouble:0.1]; [cluster simpleStructEchoRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterSimpleStructResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterSimpleStructResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and see what we get back Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.arg1; - VerifyOrReturn(CheckValue("a", ((CHIPTestClusterClusterSimpleStruct *) actualValue).a, 17U)); - VerifyOrReturn(CheckValue("b", ((CHIPTestClusterClusterSimpleStruct *) actualValue).b, false)); - VerifyOrReturn(CheckValue("c", ((CHIPTestClusterClusterSimpleStruct *) actualValue).c, 2U)); - VerifyOrReturn(CheckValueAsString("d", ((CHIPTestClusterClusterSimpleStruct *) actualValue).d, + VerifyOrReturn(CheckValue("a", ((MTRTestClusterClusterSimpleStruct *) actualValue).a, 17U)); + VerifyOrReturn(CheckValue("b", ((MTRTestClusterClusterSimpleStruct *) actualValue).b, false)); + VerifyOrReturn(CheckValue("c", ((MTRTestClusterClusterSimpleStruct *) actualValue).c, 2U)); + VerifyOrReturn(CheckValueAsString("d", ((MTRTestClusterClusterSimpleStruct *) actualValue).d, [[NSData alloc] initWithBytes:"octet_string" length:12])); VerifyOrReturn(CheckValueAsString( - "e", ((CHIPTestClusterClusterSimpleStruct *) actualValue).e, @"char_string")); - VerifyOrReturn(CheckValue("f", ((CHIPTestClusterClusterSimpleStruct *) actualValue).f, 1U)); - VerifyOrReturn(CheckValue("g", ((CHIPTestClusterClusterSimpleStruct *) actualValue).g, 0.1f)); - VerifyOrReturn(CheckValue("h", ((CHIPTestClusterClusterSimpleStruct *) actualValue).h, 0.1)); + "e", ((MTRTestClusterClusterSimpleStruct *) actualValue).e, @"char_string")); + VerifyOrReturn(CheckValue("f", ((MTRTestClusterClusterSimpleStruct *) actualValue).f, 1U)); + VerifyOrReturn(CheckValue("g", ((MTRTestClusterClusterSimpleStruct *) actualValue).g, 0.1f)); + VerifyOrReturn(CheckValue("h", ((MTRTestClusterClusterSimpleStruct *) actualValue).h, 0.1)); } NextTest(); @@ -68407,11 +68305,11 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_162() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; temp_0[0] = [NSNumber numberWithUnsignedChar:1U]; @@ -68428,7 +68326,7 @@ class TestCluster : public TestCommandBridge { [cluster testListInt8UArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of INT8U and none of them is set to 0 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68446,11 +68344,11 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_163() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; temp_0[0] = [NSNumber numberWithUnsignedChar:1U]; @@ -68467,7 +68365,7 @@ class TestCluster : public TestCommandBridge { } [cluster testListInt8UArgumentRequestWithParams:params completionHandler:^( - CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of INT8U and one of them is set to 0 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -68485,11 +68383,11 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndGetItReversed_164() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; temp_0[0] = [NSNumber numberWithUnsignedChar:1U]; @@ -68503,48 +68401,47 @@ class TestCluster : public TestCommandBridge { temp_0[8] = [NSNumber numberWithUnsignedChar:9U]; params.arg1 = temp_0; } - [cluster - testListInt8UReverseRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, - NSError * _Nullable err) { - NSLog(@"Send Test Command With List of INT8U and get it reversed Error: %@", err); + [cluster testListInt8UReverseRequestWithParams:params + completionHandler:^(MTRTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, + NSError * _Nullable err) { + NSLog(@"Send Test Command With List of INT8U and get it reversed Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.arg1; - VerifyOrReturn(CheckValue("arg1", [actualValue count], static_cast(9))); - VerifyOrReturn(CheckValue("", actualValue[0], 9U)); - VerifyOrReturn(CheckValue("", actualValue[1], 8U)); - VerifyOrReturn(CheckValue("", actualValue[2], 7U)); - VerifyOrReturn(CheckValue("", actualValue[3], 6U)); - VerifyOrReturn(CheckValue("", actualValue[4], 5U)); - VerifyOrReturn(CheckValue("", actualValue[5], 4U)); - VerifyOrReturn(CheckValue("", actualValue[6], 3U)); - VerifyOrReturn(CheckValue("", actualValue[7], 2U)); - VerifyOrReturn(CheckValue("", actualValue[8], 1U)); - } + { + id actualValue = values.arg1; + VerifyOrReturn(CheckValue("arg1", [actualValue count], static_cast(9))); + VerifyOrReturn(CheckValue("", actualValue[0], 9U)); + VerifyOrReturn(CheckValue("", actualValue[1], 8U)); + VerifyOrReturn(CheckValue("", actualValue[2], 7U)); + VerifyOrReturn(CheckValue("", actualValue[3], 6U)); + VerifyOrReturn(CheckValue("", actualValue[4], 5U)); + VerifyOrReturn(CheckValue("", actualValue[5], 4U)); + VerifyOrReturn(CheckValue("", actualValue[6], 3U)); + VerifyOrReturn(CheckValue("", actualValue[7], 2U)); + VerifyOrReturn(CheckValue("", actualValue[8], 1U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_165() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; params.arg1 = temp_0; } [cluster testListInt8UReverseRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterTestListInt8UReverseResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With empty List of INT8U and get an empty list back Error: %@", err); @@ -68563,38 +68460,38 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_166() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListStructArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).d = [[NSData alloc] initWithBytes:"first_octet_string" length:18]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).e = @"first_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).h = [NSNumber numberWithDouble:0]; - - temp_0[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).d = [[NSData alloc] initWithBytes:"second_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).e = @"second_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).h = [NSNumber numberWithDouble:0]; + temp_0[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).d = [[NSData alloc] initWithBytes:"first_octet_string" length:18]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).e = @"first_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).h = [NSNumber numberWithDouble:0]; + + temp_0[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).d = [[NSData alloc] initWithBytes:"second_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).e = @"second_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).h = [NSNumber numberWithDouble:0]; params.arg1 = temp_0; } [cluster testListStructArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, - NSError * _Nullable err) { + completionHandler:^( + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of Struct Argument and arg1.b of first item is true " @"Error: %@", err); @@ -68614,38 +68511,38 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_167() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListStructArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).d = [[NSData alloc] initWithBytes:"second_octet_string" length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).e = @"second_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[0]).h = [NSNumber numberWithDouble:0]; - - temp_0[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).d = [[NSData alloc] initWithBytes:"first_octet_string" length:18]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).e = @"first_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_0[1]).h = [NSNumber numberWithDouble:0]; + temp_0[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).d = [[NSData alloc] initWithBytes:"second_octet_string" length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).e = @"second_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[0]).h = [NSNumber numberWithDouble:0]; + + temp_0[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).b = [NSNumber numberWithBool:false]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).d = [[NSData alloc] initWithBytes:"first_octet_string" length:18]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).e = @"first_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_0[1]).h = [NSNumber numberWithDouble:0]; params.arg1 = temp_0; } [cluster testListStructArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, - NSError * _Nullable err) { + completionHandler:^( + MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of Struct Argument and arg1.b of first item is " @"false Error: %@", err); @@ -68665,84 +68562,84 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_168() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterNestedStructList alloc] init]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).a = + temp_0[0] = [[MTRTestClusterClusterNestedStructList alloc] init]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).h = [NSNumber numberWithDouble:0]; { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; - temp_2[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" - length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).h = [NSNumber numberWithDouble:0]; - - temp_2[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).a = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" - length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).h = [NSNumber numberWithDouble:0]; - - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).d = temp_2; + temp_2[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" + length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).h = [NSNumber numberWithDouble:0]; + + temp_2[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).a = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" + length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).h = [NSNumber numberWithDouble:0]; + + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).d = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [NSNumber numberWithUnsignedInt:1UL]; temp_2[1] = [NSNumber numberWithUnsignedInt:2UL]; temp_2[2] = [NSNumber numberWithUnsignedInt:3UL]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).e = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).e = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [[NSData alloc] initWithBytes:"octet_string_1" length:14]; temp_2[1] = [[NSData alloc] initWithBytes:"octect_string_2" length:15]; temp_2[2] = [[NSData alloc] initWithBytes:"octet_string_3" length:14]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).f = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).f = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [NSNumber numberWithUnsignedChar:0U]; temp_2[1] = [NSNumber numberWithUnsignedChar:255U]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).g = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).g = temp_2; } params.arg1 = temp_0; } [cluster testListNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of Nested Struct List Argument and all " @"fields b of elements of arg1.d are true Error: %@", @@ -68763,84 +68660,84 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_169() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterNestedStructList alloc] init]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).a = + temp_0[0] = [[MTRTestClusterClusterNestedStructList alloc] init]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).a = [NSNumber numberWithUnsignedChar:0U]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).a = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).b = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).c = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).d = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).d = [[NSData alloc] initWithBytes:"octet_string" length:12]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).e = @"char_string"; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).f = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).e = @"char_string"; + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).g = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).c).h = + ((MTRTestClusterClusterSimpleStruct *) ((MTRTestClusterClusterNestedStructList *) temp_0[0]).c).h = [NSNumber numberWithDouble:0]; { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; - temp_2[0] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).a = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" - length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[0]).h = [NSNumber numberWithDouble:0]; - - temp_2[1] = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).a = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).b = [NSNumber numberWithBool:false]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).c = [NSNumber numberWithUnsignedChar:3U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" - length:19]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).e = @"nested_char_string"; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).f = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).g = [NSNumber numberWithFloat:0.0f]; - ((CHIPTestClusterClusterSimpleStruct *) temp_2[1]).h = [NSNumber numberWithDouble:0]; - - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).d = temp_2; + temp_2[0] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).a = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).d = [[NSData alloc] initWithBytes:"nested_octet_string" + length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[0]).h = [NSNumber numberWithDouble:0]; + + temp_2[1] = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).a = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).b = [NSNumber numberWithBool:false]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).c = [NSNumber numberWithUnsignedChar:3U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).d = [[NSData alloc] initWithBytes:"nested_octet_string" + length:19]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).e = @"nested_char_string"; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).f = [NSNumber numberWithUnsignedChar:1U]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).g = [NSNumber numberWithFloat:0.0f]; + ((MTRTestClusterClusterSimpleStruct *) temp_2[1]).h = [NSNumber numberWithDouble:0]; + + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).d = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [NSNumber numberWithUnsignedInt:1UL]; temp_2[1] = [NSNumber numberWithUnsignedInt:2UL]; temp_2[2] = [NSNumber numberWithUnsignedInt:3UL]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).e = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).e = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [[NSData alloc] initWithBytes:"octet_string_1" length:14]; temp_2[1] = [[NSData alloc] initWithBytes:"octect_string_2" length:15]; temp_2[2] = [[NSData alloc] initWithBytes:"octet_string_3" length:14]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).f = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).f = temp_2; } { NSMutableArray * temp_2 = [[NSMutableArray alloc] init]; temp_2[0] = [NSNumber numberWithUnsignedChar:0U]; temp_2[1] = [NSNumber numberWithUnsignedChar:255U]; - ((CHIPTestClusterClusterNestedStructList *) temp_0[0]).g = temp_2; + ((MTRTestClusterClusterNestedStructList *) temp_0[0]).g = temp_2; } params.arg1 = temp_0; } [cluster testListNestedStructListArgumentRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterBooleanResponseParams * _Nullable values, + completionHandler:^(MTRTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct List Argument and some fields b " @"of elements of arg1.d are false Error: %@", @@ -68861,8 +68758,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_170() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -68888,8 +68785,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfInt8u_171() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -68914,8 +68811,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfOctetString_172() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listOctetStringArgument; @@ -68941,8 +68838,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfOctetString_173() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -68967,28 +68864,28 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfListStructOctetString_174() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listStructOctetStringArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterTestListStructOctet alloc] init]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).member1 = [NSNumber numberWithUnsignedLongLong:0ULL]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[0]).member2 = [[NSData alloc] initWithBytes:"Test0" length:5]; + temp_0[0] = [[MTRTestClusterClusterTestListStructOctet alloc] init]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[0]).member1 = [NSNumber numberWithUnsignedLongLong:0ULL]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[0]).member2 = [[NSData alloc] initWithBytes:"Test0" length:5]; - temp_0[1] = [[CHIPTestClusterClusterTestListStructOctet alloc] init]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).member1 = [NSNumber numberWithUnsignedLongLong:1ULL]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[1]).member2 = [[NSData alloc] initWithBytes:"Test1" length:5]; + temp_0[1] = [[MTRTestClusterClusterTestListStructOctet alloc] init]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[1]).member1 = [NSNumber numberWithUnsignedLongLong:1ULL]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[1]).member2 = [[NSData alloc] initWithBytes:"Test1" length:5]; - temp_0[2] = [[CHIPTestClusterClusterTestListStructOctet alloc] init]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).member1 = [NSNumber numberWithUnsignedLongLong:2ULL]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[2]).member2 = [[NSData alloc] initWithBytes:"Test2" length:5]; + temp_0[2] = [[MTRTestClusterClusterTestListStructOctet alloc] init]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[2]).member1 = [NSNumber numberWithUnsignedLongLong:2ULL]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[2]).member2 = [[NSData alloc] initWithBytes:"Test2" length:5]; - temp_0[3] = [[CHIPTestClusterClusterTestListStructOctet alloc] init]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).member1 = [NSNumber numberWithUnsignedLongLong:3ULL]; - ((CHIPTestClusterClusterTestListStructOctet *) temp_0[3]).member2 = [[NSData alloc] initWithBytes:"Test3" length:5]; + temp_0[3] = [[MTRTestClusterClusterTestListStructOctet alloc] init]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[3]).member1 = [NSNumber numberWithUnsignedLongLong:3ULL]; + ((MTRTestClusterClusterTestListStructOctet *) temp_0[3]).member2 = [[NSData alloc] initWithBytes:"Test3" length:5]; listStructOctetStringArgument = temp_0; } @@ -69006,8 +68903,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfListStructOctetString_175() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListStructOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -69018,17 +68915,17 @@ class TestCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("list_struct_octet_string", [actualValue count], static_cast(4))); - VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).member1, 0ULL)); - VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[0]).member2, + VerifyOrReturn(CheckValue("member1", ((MTRTestClusterClusterTestListStructOctet *) actualValue[0]).member1, 0ULL)); + VerifyOrReturn(CheckValueAsString("member2", ((MTRTestClusterClusterTestListStructOctet *) actualValue[0]).member2, [[NSData alloc] initWithBytes:"Test0" length:5])); - VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).member1, 1ULL)); - VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[1]).member2, + VerifyOrReturn(CheckValue("member1", ((MTRTestClusterClusterTestListStructOctet *) actualValue[1]).member1, 1ULL)); + VerifyOrReturn(CheckValueAsString("member2", ((MTRTestClusterClusterTestListStructOctet *) actualValue[1]).member2, [[NSData alloc] initWithBytes:"Test1" length:5])); - VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).member1, 2ULL)); - VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[2]).member2, + VerifyOrReturn(CheckValue("member1", ((MTRTestClusterClusterTestListStructOctet *) actualValue[2]).member1, 2ULL)); + VerifyOrReturn(CheckValueAsString("member2", ((MTRTestClusterClusterTestListStructOctet *) actualValue[2]).member2, [[NSData alloc] initWithBytes:"Test2" length:5])); - VerifyOrReturn(CheckValue("member1", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).member1, 3ULL)); - VerifyOrReturn(CheckValueAsString("member2", ((CHIPTestClusterClusterTestListStructOctet *) actualValue[3]).member2, + VerifyOrReturn(CheckValue("member1", ((MTRTestClusterClusterTestListStructOctet *) actualValue[3]).member1, 3ULL)); + VerifyOrReturn(CheckValueAsString("member2", ((MTRTestClusterClusterTestListStructOctet *) actualValue[3]).member2, [[NSData alloc] initWithBytes:"Test3" length:5])); } @@ -69040,77 +68937,75 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithOptionalArgSet_176() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNullableOptionalRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:5U]; - [cluster - testNullableOptionalRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, - NSError * _Nullable err) { - NSLog(@"Send Test Command with optional arg set. Error: %@", err); + [cluster testNullableOptionalRequestWithParams:params + completionHandler:^(MTRTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, + NSError * _Nullable err) { + NSLog(@"Send Test Command with optional arg set. Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.wasPresent; - VerifyOrReturn(CheckValue("wasPresent", actualValue, true)); - } + { + id actualValue = values.wasPresent; + VerifyOrReturn(CheckValue("wasPresent", actualValue, true)); + } - { - id actualValue = values.wasNull; - VerifyOrReturn(CheckValue("wasNull", actualValue, false)); - } + { + id actualValue = values.wasNull; + VerifyOrReturn(CheckValue("wasNull", actualValue, false)); + } - { - id actualValue = values.value; - VerifyOrReturn(CheckValue("value", actualValue, 5U)); - } + { + id actualValue = values.value; + VerifyOrReturn(CheckValue("value", actualValue, 5U)); + } - { - id actualValue = values.originalValue; - VerifyOrReturn(CheckValueNonNull("originalValue", actualValue)); - VerifyOrReturn(CheckValue("originalValue", actualValue, 5U)); - } + { + id actualValue = values.originalValue; + VerifyOrReturn(CheckValueNonNull("originalValue", actualValue)); + VerifyOrReturn(CheckValue("originalValue", actualValue, 5U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestSendTestCommandWithoutItsOptionalArg_177() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestNullableOptionalRequestParams alloc] init]; - [cluster - testNullableOptionalRequestWithParams:params - completionHandler:^(CHIPTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, - NSError * _Nullable err) { - NSLog(@"Send Test Command without its optional arg. Error: %@", err); + __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; + [cluster testNullableOptionalRequestWithParams:params + completionHandler:^(MTRTestClusterClusterTestNullableOptionalResponseParams * _Nullable values, + NSError * _Nullable err) { + NSLog(@"Send Test Command without its optional arg. Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = values.wasPresent; - VerifyOrReturn(CheckValue("wasPresent", actualValue, false)); - } + { + id actualValue = values.wasPresent; + VerifyOrReturn(CheckValue("wasPresent", actualValue, false)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestReadListOfStructsContainingNullablesAndOptionals_178() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( @@ -69123,13 +69018,13 @@ class TestCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("list_nullables_and_optionals_struct", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueNull( - "NullableInt", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableInt)); + "NullableInt", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableInt)); VerifyOrReturn(CheckValueNull( - "NullableString", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableString)); + "NullableString", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableString)); VerifyOrReturn(CheckValueNull( - "NullableStruct", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableStruct)); + "NullableStruct", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableStruct)); VerifyOrReturn(CheckValueNull( - "NullableList", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList)); + "NullableList", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList)); } NextTest(); @@ -69140,22 +69035,22 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteListOfStructsContainingNullablesAndOptionals_179() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listNullablesAndOptionalsStructArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPTestClusterClusterNullablesAndOptionalsStruct alloc] init]; - ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableInt = nil; - ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableString = nil; - ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableStruct = nil; + temp_0[0] = [[MTRTestClusterClusterNullablesAndOptionalsStruct alloc] init]; + ((MTRTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableInt = nil; + ((MTRTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableString = nil; + ((MTRTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableStruct = nil; { NSMutableArray * temp_3 = [[NSMutableArray alloc] init]; temp_3[0] = [NSNumber numberWithUnsignedChar:1U]; temp_3[1] = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableList = temp_3; + ((MTRTestClusterClusterNullablesAndOptionalsStruct *) temp_0[0]).nullableList = temp_3; } listNullablesAndOptionalsStructArgument = temp_0; @@ -69176,8 +69071,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadListOfStructsContainingNullablesAndOptionalsAfterWriting_180() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( @@ -69190,20 +69085,20 @@ class TestCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("list_nullables_and_optionals_struct", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueNull( - "NullableInt", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableInt)); + "NullableInt", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableInt)); VerifyOrReturn(CheckValueNull( - "NullableString", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableString)); + "NullableString", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableString)); VerifyOrReturn(CheckValueNull( - "NullableStruct", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableStruct)); + "NullableStruct", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableStruct)); VerifyOrReturn(CheckValueNonNull( - "NullableList", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList)); + "NullableList", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList)); VerifyOrReturn(CheckValue("NullableList", - [((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList count], + [((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList count], static_cast(2))); VerifyOrReturn( - CheckValue("", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList[0], 1U)); + CheckValue("", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList[0], 1U)); VerifyOrReturn( - CheckValue("", ((CHIPTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList[1], 2U)); + CheckValue("", ((MTRTestClusterClusterNullablesAndOptionalsStruct *) actualValue[0]).nullableList[1], 2U)); } NextTest(); @@ -69214,8 +69109,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBooleanNull_181() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBooleanArgument; @@ -69235,8 +69130,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanNull_182() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69260,8 +69155,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBooleanTrue_183() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBooleanArgument; @@ -69280,8 +69175,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanTrue_184() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69303,8 +69198,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanNotNull_185() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69324,8 +69219,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_186() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -69344,8 +69239,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_187() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69367,8 +69262,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_188() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -69388,8 +69283,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_189() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69414,8 +69309,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_190() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -69434,8 +69329,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_191() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69456,8 +69351,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8Not254Value_192() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69477,8 +69372,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_193() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -69497,8 +69392,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_194() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69520,8 +69415,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_195() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -69540,8 +69435,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_196() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69563,8 +69458,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_197() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -69583,8 +69478,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_198() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69605,8 +69500,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_199() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -69625,8 +69520,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_200() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69648,8 +69543,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_201() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -69668,8 +69563,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_202() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69691,8 +69586,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_203() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -69711,8 +69606,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_204() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69733,8 +69628,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_205() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -69753,8 +69648,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_206() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69776,8 +69671,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_207() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -69796,8 +69691,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_208() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69819,8 +69714,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_209() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -69839,8 +69734,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_210() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69861,8 +69756,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uMinValue_211() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -69881,8 +69776,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uMinValue_212() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69904,8 +69799,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_213() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -69924,8 +69819,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_214() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69947,8 +69842,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_215() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -69966,8 +69861,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_216() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69989,8 +69884,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValueWithConstraint_217() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70010,8 +69905,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_218() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -70030,8 +69925,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValue_219() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70052,8 +69947,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValueRange_220() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70075,8 +69970,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValueNot_221() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70096,8 +69991,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uValue_222() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -70116,8 +70011,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uValueInRange_223() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70139,8 +70034,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNotValueOk_224() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70160,8 +70055,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uMinValue_225() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -70180,8 +70075,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uMinValue_226() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70203,8 +70098,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_227() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -70223,8 +70118,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_228() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70246,8 +70141,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_229() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -70266,8 +70161,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_230() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70289,8 +70184,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_231() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -70309,8 +70204,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValue_232() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70331,8 +70226,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValueRange_233() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70354,8 +70249,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValueNot_234() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70375,8 +70270,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uValue_235() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -70395,8 +70290,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uValueInRange_236() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70418,8 +70313,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNotValueOk_237() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70439,8 +70334,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uMinValue_238() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -70459,8 +70354,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uMinValue_239() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70482,8 +70377,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_240() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -70502,8 +70397,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_241() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70525,8 +70420,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_242() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -70545,8 +70440,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_243() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70568,8 +70463,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_244() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -70588,8 +70483,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValue_245() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70610,8 +70505,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValueRange_246() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70633,8 +70528,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValueNot_247() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70654,8 +70549,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uValue_248() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -70674,8 +70569,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uValueInRange_249() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70697,8 +70592,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNotValueOk_250() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70718,8 +70613,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uMinValue_251() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -70738,8 +70633,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uMinValue_252() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70761,8 +70656,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_253() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -70781,8 +70676,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_254() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70804,8 +70699,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_255() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -70824,8 +70719,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_256() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70847,8 +70742,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_257() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -70867,8 +70762,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValue_258() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70889,8 +70784,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValueRange_259() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70913,8 +70808,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValueNot_260() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70934,8 +70829,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uValue_261() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -70954,8 +70849,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uValueInRange_262() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70978,8 +70873,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNotValueOk_263() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70999,8 +70894,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_264() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -71019,8 +70914,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sMinValue_265() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71042,8 +70937,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_266() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -71061,8 +70956,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_267() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71084,8 +70979,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_268() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -71104,8 +70999,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValue_269() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71126,8 +71021,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValueRange_270() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71149,8 +71044,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValueNot_271() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71170,8 +71065,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sValue_272() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -71190,8 +71085,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sValueInRange_273() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71213,8 +71108,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNotValueOk_274() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71234,8 +71129,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_275() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -71254,8 +71149,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sMinValue_276() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71277,8 +71172,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_277() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -71297,8 +71192,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_278() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71320,8 +71215,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_279() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -71340,8 +71235,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValue_280() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71362,8 +71257,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValueRange_281() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71385,8 +71280,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValueNot_282() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71406,8 +71301,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sValue_283() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -71426,8 +71321,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sValueInRange_284() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71449,8 +71344,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNotValueOk_285() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71470,8 +71365,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_286() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -71490,8 +71385,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sMinValue_287() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71513,8 +71408,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_288() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -71533,8 +71428,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_289() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71556,8 +71451,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_290() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -71576,8 +71471,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValue_291() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71598,8 +71493,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValueRange_292() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71621,8 +71516,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValueNot_293() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71642,8 +71537,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sValue_294() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -71662,8 +71557,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sValueInRange_295() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71685,8 +71580,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNotValueOk_296() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71706,8 +71601,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_297() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -71726,8 +71621,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sMinValue_298() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71749,8 +71644,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_299() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -71769,8 +71664,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_300() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71792,8 +71687,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_301() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -71812,8 +71707,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValue_302() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71834,8 +71729,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValueRange_303() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71857,8 +71752,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValueNot_304() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71878,8 +71773,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sValue_305() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -71898,8 +71793,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sValueInRange_306() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71921,8 +71816,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNotValueOk_307() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71942,8 +71837,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleMediumValue_308() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -71962,8 +71857,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleMediumValue_309() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71985,8 +71880,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleLargestValue_310() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -72005,8 +71900,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleLargestValue_311() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72028,8 +71923,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleSmallestValue_312() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -72048,8 +71943,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleSmallestValue_313() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72071,8 +71966,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleNullValue_314() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -72091,8 +71986,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleNullValue_315() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72113,8 +72008,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingle0Value_316() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -72133,8 +72028,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingle0Value_317() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72156,8 +72051,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleMediumValue_318() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -72176,8 +72071,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleMediumValue_319() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72199,8 +72094,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleLargestValue_320() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -72219,8 +72114,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleLargestValue_321() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72242,8 +72137,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleSmallestValue_322() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -72262,8 +72157,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleSmallestValue_323() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72285,8 +72180,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleNullValue_324() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -72305,8 +72200,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleNullValue_325() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72327,8 +72222,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDouble0Value_326() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -72347,8 +72242,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDouble0Value_327() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72370,8 +72265,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8MinValue_328() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -72390,8 +72285,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8MinValue_329() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72413,8 +72308,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_330() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -72433,8 +72328,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_331() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72456,8 +72351,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_332() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -72475,8 +72370,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_333() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72498,8 +72393,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_334() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -72518,8 +72413,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8NullValue_335() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72540,8 +72435,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16MinValue_336() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -72560,8 +72455,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16MinValue_337() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72583,8 +72478,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_338() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -72603,8 +72498,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_339() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72626,8 +72521,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_340() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -72646,8 +72541,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_341() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72669,8 +72564,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_342() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -72689,8 +72584,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16NullValue_343() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72711,8 +72606,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumMinValue_344() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -72731,8 +72626,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumMinValue_345() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72754,8 +72649,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumMaxValue_346() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -72774,8 +72669,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumMaxValue_347() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72797,8 +72692,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumInvalidValue_348() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -72818,8 +72713,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumUnchangedValue_349() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72844,8 +72739,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumNullValue_350() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -72864,8 +72759,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumNullValue_351() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72886,8 +72781,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumNot254Value_352() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72907,8 +72802,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_353() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -72931,8 +72826,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_354() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -72952,8 +72847,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_355() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -72979,8 +72874,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_356() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -72999,8 +72894,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_357() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -73021,8 +72916,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_358() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -73041,8 +72936,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_359() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -73065,8 +72960,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetStringNotTestValue_360() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -73086,8 +72981,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_361() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73109,8 +73004,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharString_362() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -73130,8 +73025,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_363() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73156,8 +73051,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_364() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73183,8 +73078,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_365() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -73203,8 +73098,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_366() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73225,8 +73120,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_367() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -73245,8 +73140,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_368() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73268,8 +73163,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharStringNott_369() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -73289,8 +73184,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_370() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -73305,8 +73200,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeFromNonexistentCluster_371() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -73321,11 +73216,11 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_372() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; [cluster testSimpleOptionalArgumentRequestWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -73341,11 +73236,11 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_373() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; params.arg1 = [NSNumber numberWithBool:1]; [cluster testSimpleOptionalArgumentRequestWithParams:params @@ -73365,8 +73260,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReportSubscribeToListAttribute_374() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -73392,13 +73287,13 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSubscribeToListAttribute_375() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 2U; uint16_t maxIntervalArgument = 5U; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttributeListInt8uWithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -73423,8 +73318,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteSubscribedToListAttribute_376() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -73450,8 +73345,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestCheckForListAttributeReport_377() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -73476,8 +73371,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedUnsigned8BitInteger_378() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73498,8 +73393,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_379() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73519,8 +73414,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_380() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73541,8 +73436,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_381() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73563,8 +73458,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_382() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73584,8 +73479,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_383() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73606,8 +73501,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_384() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73628,8 +73523,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_385() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73650,8 +73545,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_386() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73672,8 +73567,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_387() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73694,8 +73589,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_388() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -73716,8 +73611,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_389() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73738,8 +73633,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedUnsigned16BitInteger_390() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73760,8 +73655,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_391() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73781,8 +73676,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_392() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73803,8 +73698,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_393() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73825,8 +73720,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_394() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73846,8 +73741,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_395() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73868,8 +73763,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_396() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73890,8 +73785,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_397() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73912,8 +73807,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_398() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73934,8 +73829,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_399() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73956,8 +73851,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_400() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -73979,8 +73874,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_401() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74001,8 +73896,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedSigned8BitInteger_402() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74023,8 +73918,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned8BitInteger_403() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74043,8 +73938,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_404() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74066,8 +73961,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_405() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74089,8 +73984,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned8BitInteger_406() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74109,8 +74004,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_407() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74131,8 +74026,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_408() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74152,8 +74047,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_409() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74174,8 +74069,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_410() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74195,8 +74090,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_411() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74217,8 +74112,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_412() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -74239,8 +74134,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_413() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74261,8 +74156,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedSigned16BitInteger_414() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74283,8 +74178,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned16BitInteger_415() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74304,8 +74199,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_416() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74326,8 +74221,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_417() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74348,8 +74243,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned16BitInteger_418() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74369,8 +74264,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_419() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74391,8 +74286,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_420() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74413,8 +74308,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_421() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74435,8 +74330,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_422() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74457,8 +74352,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_423() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74479,8 +74374,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_424() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -74501,8 +74396,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_425() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74523,8 +74418,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedUnsigned8BitInteger_426() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74547,8 +74442,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_427() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74569,8 +74464,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_428() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74591,8 +74486,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_429() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74613,8 +74508,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_430() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74635,8 +74530,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_431() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74659,8 +74554,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_432() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74681,8 +74576,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_433() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74705,8 +74600,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_434() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74727,8 +74622,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_435() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74751,8 +74646,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_436() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74773,8 +74668,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_437() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74797,8 +74692,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_438() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -74819,8 +74714,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_439() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74842,8 +74737,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedUnsigned16BitInteger_440() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74866,8 +74761,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_441() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -74888,8 +74783,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_442() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -74910,8 +74805,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_443() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -74932,8 +74827,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_444() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -74954,8 +74849,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_445() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -74978,8 +74873,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_446() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -75000,8 +74895,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_447() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75024,8 +74919,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_448() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -75046,8 +74941,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_449() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75070,8 +74965,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_450() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -75092,8 +74987,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_451() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75116,8 +75011,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_452() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -75138,8 +75033,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_453() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75161,8 +75056,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedSigned8BitInteger_454() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75185,8 +75080,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_455() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75207,8 +75102,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_456() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75229,8 +75124,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_457() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75251,8 +75146,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_458() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75273,8 +75168,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_459() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75297,8 +75192,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_460() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75319,8 +75214,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_461() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75343,8 +75238,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_462() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75365,8 +75260,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_463() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75389,8 +75284,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_464() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75411,8 +75306,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_465() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75435,8 +75330,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_466() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -75457,8 +75352,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_467() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75480,8 +75375,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedSigned16BitInteger_468() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75504,8 +75399,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_469() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75526,8 +75421,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_470() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75548,8 +75443,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_471() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75570,8 +75465,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_472() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75592,8 +75487,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_473() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75616,8 +75511,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_474() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75638,8 +75533,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_475() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75662,8 +75557,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_476() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75684,8 +75579,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_477() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75708,8 +75603,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_478() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75730,8 +75625,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_479() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75754,8 +75649,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_480() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -75776,8 +75671,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_481() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75799,8 +75694,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeThatReturnsGeneralStatusOnWrite_482() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id generalErrorBooleanArgument; @@ -75819,8 +75714,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_483() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id clusterErrorBooleanArgument; @@ -75839,8 +75734,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeThatReturnsGeneralStatusOnRead_484() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneralErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75855,8 +75750,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeThatReturnsClusterSpecificStatusOnRead_485() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75871,8 +75766,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAcceptedCommandListAttribute_486() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -75911,8 +75806,8 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadGeneratedCommandListAttribute_487() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -75942,20 +75837,20 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteStructTypedAttribute_488() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id structAttrArgument; - structAttrArgument = [[CHIPTestClusterClusterSimpleStruct alloc] init]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).a = [NSNumber numberWithUnsignedChar:5U]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).b = [NSNumber numberWithBool:true]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).c = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).d = [[NSData alloc] initWithBytes:"abc" length:3]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).e = @""; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).f = [NSNumber numberWithUnsignedChar:17U]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).g = [NSNumber numberWithFloat:1.5f]; - ((CHIPTestClusterClusterSimpleStruct *) structAttrArgument).h = [NSNumber numberWithDouble:3.14159265358979]; + structAttrArgument = [[MTRTestClusterClusterSimpleStruct alloc] init]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).a = [NSNumber numberWithUnsignedChar:5U]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).b = [NSNumber numberWithBool:true]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).c = [NSNumber numberWithUnsignedChar:2U]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).d = [[NSData alloc] initWithBytes:"abc" length:3]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).e = @""; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).f = [NSNumber numberWithUnsignedChar:17U]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).g = [NSNumber numberWithFloat:1.5f]; + ((MTRTestClusterClusterSimpleStruct *) structAttrArgument).h = [NSNumber numberWithDouble:3.14159265358979]; [cluster writeAttributeStructAttrWithValue:structAttrArgument completionHandler:^(NSError * _Nullable err) { @@ -75971,27 +75866,27 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadStructTypedAttribute_489() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStructAttrWithCompletionHandler:^( - CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable err) { + MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable err) { NSLog(@"Read struct-typed attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; - VerifyOrReturn(CheckValue("a", ((CHIPTestClusterClusterSimpleStruct *) actualValue).a, 5U)); - VerifyOrReturn(CheckValue("b", ((CHIPTestClusterClusterSimpleStruct *) actualValue).b, true)); - VerifyOrReturn(CheckValue("c", ((CHIPTestClusterClusterSimpleStruct *) actualValue).c, 2U)); + VerifyOrReturn(CheckValue("a", ((MTRTestClusterClusterSimpleStruct *) actualValue).a, 5U)); + VerifyOrReturn(CheckValue("b", ((MTRTestClusterClusterSimpleStruct *) actualValue).b, true)); + VerifyOrReturn(CheckValue("c", ((MTRTestClusterClusterSimpleStruct *) actualValue).c, 2U)); VerifyOrReturn(CheckValueAsString( - "d", ((CHIPTestClusterClusterSimpleStruct *) actualValue).d, [[NSData alloc] initWithBytes:"abc" length:3])); - VerifyOrReturn(CheckValueAsString("e", ((CHIPTestClusterClusterSimpleStruct *) actualValue).e, @"")); - VerifyOrReturn(CheckValue("f", ((CHIPTestClusterClusterSimpleStruct *) actualValue).f, 17U)); - VerifyOrReturn(CheckValue("g", ((CHIPTestClusterClusterSimpleStruct *) actualValue).g, 1.5f)); - VerifyOrReturn(CheckValue("h", ((CHIPTestClusterClusterSimpleStruct *) actualValue).h, 3.14159265358979)); + "d", ((MTRTestClusterClusterSimpleStruct *) actualValue).d, [[NSData alloc] initWithBytes:"abc" length:3])); + VerifyOrReturn(CheckValueAsString("e", ((MTRTestClusterClusterSimpleStruct *) actualValue).e, @"")); + VerifyOrReturn(CheckValue("f", ((MTRTestClusterClusterSimpleStruct *) actualValue).f, 17U)); + VerifyOrReturn(CheckValue("g", ((MTRTestClusterClusterSimpleStruct *) actualValue).g, 1.5f)); + VerifyOrReturn(CheckValue("h", ((MTRTestClusterClusterSimpleStruct *) actualValue).h, 3.14159265358979)); } NextTest(); @@ -76265,8 +76160,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfInt8u_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -76292,8 +76187,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithPartialListOfInt8uThatShouldBeInIt_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -76313,8 +76208,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithPartialListOfInt8uThatShouldNotBeIncluded_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -76333,8 +76228,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListBackToDefaultValue_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -76356,8 +76251,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uValue_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -76376,8 +76271,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -76395,8 +76290,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueMaxValueConstraints_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -76414,8 +76309,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueNotValueConstraints_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -76433,8 +76328,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uValueBackToDefaultValue_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -76453,8 +76348,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76473,8 +76368,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueMinLengthConstraints_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76491,8 +76386,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueMaxLengthConstraints_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76509,8 +76404,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueStartsWithConstraints_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76527,8 +76422,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueEndsWithConstraints_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76545,8 +76440,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76565,8 +76460,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76584,8 +76479,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76604,8 +76499,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76623,8 +76518,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76643,8 +76538,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76662,8 +76557,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76682,8 +76577,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsHexStringConstraints_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76700,8 +76595,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -76720,8 +76615,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsHexStringConstraints_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -76738,8 +76633,8 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValueBackToDefaultValue_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -77822,16 +77717,16 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:3U]; params.arg2 = [NSNumber numberWithUnsignedChar:17U]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -77852,16 +77747,16 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:3U]; params.arg2 = [NSNumber numberWithUnsignedChar:17U]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -77879,17 +77774,17 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:3U]; params.arg2 = [TestAddArgumentDefaultValue copy]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -77905,8 +77800,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanDefaultValue_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77930,8 +77825,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanNotDefaultValue_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -77950,8 +77845,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanNotDefaultValue_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77969,8 +77864,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanDefaultValue_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -77989,8 +77884,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanFalse_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78012,8 +77907,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78037,8 +77932,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8NotDefaultValue_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -78057,8 +77952,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8NotDefaultValue_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78076,8 +77971,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8DefaultValue_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -78096,8 +77991,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78119,8 +78014,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78144,8 +78039,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16NotDefaultValue_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -78164,8 +78059,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16NotDefaultValue_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78183,8 +78078,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16DefaultValue_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -78203,8 +78098,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78226,8 +78121,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78251,8 +78146,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32NotDefaultValue_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -78271,8 +78166,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32NotDefaultValue_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78290,8 +78185,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32DefaultValue_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -78310,8 +78205,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78333,8 +78228,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78358,8 +78253,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64NotDefaultValue_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -78378,8 +78273,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78397,8 +78292,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64DefaultValue_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -78417,8 +78312,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78440,8 +78335,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78465,8 +78360,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uNotDefaultValue_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -78485,8 +78380,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uNotDefaultValue_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78504,8 +78399,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uDefaultValue_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -78524,8 +78419,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78547,8 +78442,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78572,8 +78467,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uNotDefaultValue_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -78592,8 +78487,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uNotDefaultValue_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78611,8 +78506,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uDefaultValue_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -78631,8 +78526,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78654,8 +78549,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78679,8 +78574,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uNotDefaultValue_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -78699,8 +78594,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uNotDefaultValue_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78718,8 +78613,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uDefaultValue_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -78738,8 +78633,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78761,8 +78656,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78786,8 +78681,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uNotDefaultValue_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -78806,8 +78701,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uNotDefaultValue_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78825,8 +78720,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uDefaultValue_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -78845,8 +78740,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78868,8 +78763,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78893,8 +78788,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sNotDefaultValue_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -78913,8 +78808,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sNotDefaultValue_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78932,8 +78827,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sDefaultValue_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -78952,8 +78847,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -78975,8 +78870,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79000,8 +78895,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sNotDefaultValue_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -79020,8 +78915,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sNotDefaultValue_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79039,8 +78934,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sDefaultValue_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -79059,8 +78954,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79082,8 +78977,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79107,8 +79002,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sNotDefaultValue_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -79127,8 +79022,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sNotDefaultValue_61() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79146,8 +79041,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sDefaultValue_62() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -79166,8 +79061,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_63() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79189,8 +79084,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_64() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79214,8 +79109,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeIntsNotDefaultValue_65() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -79234,8 +79129,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sNotDefaultValue_66() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79253,8 +79148,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sDefaultValue_67() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -79273,8 +79168,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_68() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79296,8 +79191,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_69() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79321,8 +79216,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8NotDefaultValue_70() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -79341,8 +79236,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8NotDefaultValue_71() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79360,8 +79255,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8DefaultValue_72() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -79380,8 +79275,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_73() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79403,8 +79298,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_74() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79428,8 +79323,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16NotDefaultValue_75() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -79448,8 +79343,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16NotDefaultValue_76() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79467,8 +79362,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16DefaultValue_77() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -79487,8 +79382,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_78() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79510,8 +79405,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_79() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79535,8 +79430,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsNotDefaultValue_80() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -79555,8 +79450,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsNotDefaultValue_81() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79574,8 +79469,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsDefaultValue_82() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -79594,8 +79489,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_83() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79617,8 +79512,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_84() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79642,8 +79537,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSNotDefaultValue_85() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -79662,8 +79557,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSNotDefaultValue_86() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79681,8 +79576,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSDefaultValue_87() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -79701,8 +79596,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_88() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79724,8 +79619,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_89() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79749,8 +79644,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorIdNotDefaultValue_90() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -79769,8 +79664,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdNotDefaultValue_91() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79788,8 +79683,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorIdDefaultValue_92() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -79808,8 +79703,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_93() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79831,8 +79726,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValue_94() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -79856,8 +79751,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValueAndCompareToSavedValue_95() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -79878,8 +79773,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringNotDefaultValue_96() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -79899,8 +79794,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValue_97() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -79926,8 +79821,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToSavedValue_98() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -79950,8 +79845,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringNotDefaultValueFromSavedValue_99() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -79970,8 +79865,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToExpectedValue_100() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -79992,8 +79887,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringDefaultValue_101() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -80013,8 +79908,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValue_102() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -80038,8 +79933,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValueAndCompareToSavedValue_103() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -80060,8 +79955,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValue_104() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -80081,8 +79976,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValue_105() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -80109,8 +80004,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToSavedValue_106() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -80133,8 +80028,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValueFromSavedValue_107() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -80153,8 +80048,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToExpectedValue_108() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -80176,8 +80071,8 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringDefaultValue_109() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -80299,16 +80194,16 @@ class TestConfigVariables : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = [NSNumber numberWithUnsignedChar:3U]; params.arg2 = [NSNumber numberWithUnsignedChar:17U]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -80329,16 +80224,16 @@ class TestConfigVariables : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPTestClusterClusterTestAddArgumentsParams alloc] init]; + __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.arg1 = mArg1.HasValue() ? [NSNumber numberWithUnsignedChar:mArg1.Value()] : [NSNumber numberWithUnsignedChar:5U]; params.arg2 = [TestAddArgumentDefaultValue copy]; [cluster testAddArgumentsWithParams:params completionHandler:^( - CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { + MTRTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -80469,8 +80364,8 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDeviceList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -80481,8 +80376,8 @@ class TestDescriptorCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("device list", [actualValue count], static_cast(1))); - VerifyOrReturn(CheckValue("type", ((CHIPDescriptorClusterDeviceType *) actualValue[0]).type, 22UL)); - VerifyOrReturn(CheckValue("revision", ((CHIPDescriptorClusterDeviceType *) actualValue[0]).revision, 1U)); + VerifyOrReturn(CheckValue("type", ((MTRDescriptorClusterDeviceType *) actualValue[0]).type, 22UL)); + VerifyOrReturn(CheckValue("revision", ((MTRDescriptorClusterDeviceType *) actualValue[0]).revision, 1U)); } NextTest(); @@ -80493,8 +80388,8 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeServerList_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -80541,8 +80436,8 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeClientList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -80564,8 +80459,8 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePartsList_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDescriptor * cluster = [[CHIPTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -80791,8 +80686,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadLocation_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -80813,8 +80708,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteLocation_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id locationArgument; @@ -80833,8 +80728,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocation_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -80855,8 +80750,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialLocationValue_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id locationArgument; @@ -80875,8 +80770,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadAttributeListValue_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -80922,8 +80817,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadNodeLabel_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -80944,8 +80839,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteNodeLabel_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -80964,8 +80859,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackNodeLabel_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -80986,8 +80881,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadLocalConfigDisabled_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81008,8 +80903,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteLocalConfigDisabled_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id localConfigDisabledArgument; @@ -81028,8 +80923,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocalConfigDisabled_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81063,8 +80958,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackNodeLabelAfterReboot_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81085,8 +80980,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialNodeLabelValue_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -81105,8 +81000,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocalConfigDisabledAfterReboot_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81127,8 +81022,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialLocalConfigDisabledValue_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id localConfigDisabledArgument; @@ -81448,10 +81343,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestWriteBreadcrumb12_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -81470,10 +81365,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumb12_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81494,10 +81389,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestWriteBreadcrumb22_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -81516,10 +81411,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumb22_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81553,10 +81448,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumbAfterRebootAndEnsureItWasNotPersisted_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81577,10 +81472,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSetBreadcrumbToNonzeroValue_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -81599,10 +81494,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbSetWorked_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81623,14 +81518,14 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSendCommissioningCompleteWithoutArmedFailSafe_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( - CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send CommissioningComplete without armed fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81648,10 +81543,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByInvalidCommissioningComplete_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81672,13 +81567,13 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlpha_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; [cluster openBasicCommissioningWindowWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -81694,18 +81589,18 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestTryToArmFailSafe_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:10U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:5000ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Try to arm fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81723,10 +81618,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByArmFailSafeWithCommissioningWindowOpen_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81747,10 +81642,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestResetBreadcrumbTo0SoWeCanCommission_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -81784,18 +81679,18 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestArmFailSafe_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:500U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:2ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Arm fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81813,10 +81708,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasProperlySetByArmFailSafe_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81837,18 +81732,18 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestTryToArmFailSafeFromWrongFabric_20() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:10U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:5000ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Try to arm fail-safe from wrong fabric Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81866,10 +81761,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByArmFailSafeWithExistingFailSafeArmed_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81890,14 +81785,14 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSendCommissioningCompleteFromWrongFabric_22() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( - CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send CommissioningComplete from wrong fabric Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81915,10 +81810,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByCommissioningCompleteFromWrongFabric_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81939,14 +81834,14 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCloseOutTheFailSafeGracefully_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( - CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Close out the fail-safe gracefully Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -81964,10 +81859,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasResetTo0ByCommissioningComplete_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81988,18 +81883,18 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestArmFailSafeAgain_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:500U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:3ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Arm fail-safe again Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -82017,10 +81912,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasSetByArmingFailSafeAgain_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82041,18 +81936,18 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestForceExpireTheFailSafe_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:0U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:4ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Force-expire the fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -82070,10 +81965,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasResetByExpiringTheFailSafe_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82094,10 +81989,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestValidatePresenceOfSupportsConcurrentConnection_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -82206,11 +82101,11 @@ class TestIdentifyCluster : public TestCommandBridge { CHIP_ERROR TestSendIdentifyCommandAndExpectSuccessResponse_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestIdentify * cluster = [[CHIPTestIdentify alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPIdentifyClusterIdentifyParams alloc] init]; + __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; params.identifyTime = [NSNumber numberWithUnsignedShort:0U]; [cluster identifyWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -82359,10 +82254,10 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadNumberOfSupportedFabrics_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82381,10 +82276,10 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadNumberOfCommissionedFabrics_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82404,10 +82299,10 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentFabricIndex_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82429,17 +82324,17 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveNonexistentFabric_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterRemoveFabricParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; params.fabricIndex = [NSNumber numberWithUnsignedChar:243U]; [cluster removeFabricWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove nonexistent fabric Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -82457,13 +82352,13 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadFabricListBeforeSettingLabel_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -82475,9 +82370,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).fabricIndex, + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).fabricIndex, ourFabricIndex)); } @@ -82489,17 +82384,17 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestSetTheFabricLabel_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; params.label = @"Batcave"; [cluster updateFabricLabelWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Set the fabric label Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -82522,33 +82417,32 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadFabricListAfterSettingLabel_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; - [cluster - readAttributeFabricsWithParams:params - completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read fabric list after setting label Error: %@", err); + [cluster readAttributeFabricsWithParams:params + completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read fabric list after setting label Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); - VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"Batcave")); - VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).fabricIndex, - ourFabricIndex)); - } + { + id actualValue = value; + VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); + VerifyOrReturn(CheckValueAsString("Label", + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"Batcave")); + VerifyOrReturn(CheckValue("FabricIndex", + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).fabricIndex, + ourFabricIndex)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -82857,8 +82751,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadDescription_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82879,8 +82773,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadStandardNamespace_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStandardNamespaceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82902,8 +82796,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadSupportedModes_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -82915,20 +82809,20 @@ class TestModeSelectCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("SupportedModes", [actualValue count], static_cast(3))); VerifyOrReturn( - CheckValueAsString("Label", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[0]).label, @"Black")); - VerifyOrReturn(CheckValue("Mode", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[0]).mode, 0U)); + CheckValueAsString("Label", ((MTRModeSelectClusterModeOptionStruct *) actualValue[0]).label, @"Black")); + VerifyOrReturn(CheckValue("Mode", ((MTRModeSelectClusterModeOptionStruct *) actualValue[0]).mode, 0U)); VerifyOrReturn(CheckValue("SemanticTags", - [((CHIPModeSelectClusterModeOptionStruct *) actualValue[0]).semanticTags count], static_cast(1))); + [((MTRModeSelectClusterModeOptionStruct *) actualValue[0]).semanticTags count], static_cast(1))); VerifyOrReturn( - CheckValueAsString("Label", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[1]).label, @"Cappuccino")); - VerifyOrReturn(CheckValue("Mode", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[1]).mode, 4U)); + CheckValueAsString("Label", ((MTRModeSelectClusterModeOptionStruct *) actualValue[1]).label, @"Cappuccino")); + VerifyOrReturn(CheckValue("Mode", ((MTRModeSelectClusterModeOptionStruct *) actualValue[1]).mode, 4U)); VerifyOrReturn(CheckValue("SemanticTags", - [((CHIPModeSelectClusterModeOptionStruct *) actualValue[1]).semanticTags count], static_cast(1))); + [((MTRModeSelectClusterModeOptionStruct *) actualValue[1]).semanticTags count], static_cast(1))); VerifyOrReturn( - CheckValueAsString("Label", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[2]).label, @"Espresso")); - VerifyOrReturn(CheckValue("Mode", ((CHIPModeSelectClusterModeOptionStruct *) actualValue[2]).mode, 7U)); + CheckValueAsString("Label", ((MTRModeSelectClusterModeOptionStruct *) actualValue[2]).label, @"Espresso")); + VerifyOrReturn(CheckValue("Mode", ((MTRModeSelectClusterModeOptionStruct *) actualValue[2]).mode, 7U)); VerifyOrReturn(CheckValue("SemanticTags", - [((CHIPModeSelectClusterModeOptionStruct *) actualValue[2]).semanticTags count], static_cast(1))); + [((MTRModeSelectClusterModeOptionStruct *) actualValue[2]).semanticTags count], static_cast(1))); } NextTest(); @@ -82939,8 +82833,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentMode_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82961,8 +82855,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadStartUpMode_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82984,8 +82878,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadOnMode_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83006,11 +82900,11 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToSupportedMode_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPModeSelectClusterChangeToModeParams alloc] init]; + __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; params.newMode = [NSNumber numberWithUnsignedChar:4U]; [cluster changeToModeWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -83027,8 +82921,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChange_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83052,11 +82946,11 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedMode_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPModeSelectClusterChangeToModeParams alloc] init]; + __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; params.newMode = [NSNumber numberWithUnsignedChar:2U]; [cluster changeToModeWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -83071,8 +82965,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -83088,8 +82982,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -83105,8 +82999,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeDoesNotChangeWhenOnModeIsNull_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83127,8 +83021,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedOnMode_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -83146,8 +83040,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnMode_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -83167,8 +83061,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyOnMode_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83193,8 +83087,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -83210,8 +83104,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -83227,8 +83121,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangesIfOnModeIsNotNull_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83249,8 +83143,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedStartUpMode_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpModeArgument; @@ -83268,8 +83162,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToSupportedStartUpMode_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpModeArgument; @@ -83288,8 +83182,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyStartUpModeChange_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83311,11 +83205,11 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeCurrentModeToAnotherValue_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPModeSelectClusterChangeToModeParams alloc] init]; + __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; params.newMode = [NSNumber numberWithUnsignedChar:0U]; [cluster changeToModeWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -83331,8 +83225,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnMode_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -83351,8 +83245,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestSetStartUpOnOff_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -83384,8 +83278,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangeBasedOnOnModeAsItOverwritesStartUpMode_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83406,8 +83300,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnModeToNull_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -83439,8 +83333,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangeBasedOnNewStartUpMode_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestModeSelect * cluster = [[CHIPTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83566,10 +83460,10 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestReadNumberOfCommissionedFabrics_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83592,10 +83486,10 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestReadCurrentFabricIndex_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83617,17 +83511,17 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestRemoveSingleOwnFabric_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterRemoveFabricParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; params.fabricIndex = [ourFabricIndex copy]; [cluster removeFabricWithParams:params completionHandler:^( - CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { + MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove single own fabric Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -84189,8 +84083,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteEmptyBindingTable_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; @@ -84212,11 +84106,11 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadEmptyBindingTable_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeBindingWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -84237,22 +84131,22 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteInvalidBindingTable_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).node = [NSNumber numberWithUnsignedLongLong:1ULL]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).group = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).endpoint = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).cluster = [NSNumber numberWithUnsignedInt:6UL]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[1] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).node = [NSNumber numberWithUnsignedLongLong:1ULL]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).group = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).endpoint = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).cluster = [NSNumber numberWithUnsignedInt:6UL]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; bindingArgument = temp_0; } @@ -84269,27 +84163,27 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteBindingTableEndpoint1_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).group = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).group = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[1] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).node = [NSNumber numberWithUnsignedLongLong:1ULL]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).endpoint = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).cluster = [NSNumber numberWithUnsignedInt:6UL]; - ((CHIPBindingClusterTargetStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[1] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).node = [NSNumber numberWithUnsignedLongLong:1ULL]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).endpoint = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).cluster = [NSNumber numberWithUnsignedInt:6UL]; + ((MTRBindingClusterTargetStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; - temp_0[2] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[2]).node = [NSNumber numberWithUnsignedLongLong:2ULL]; - ((CHIPBindingClusterTargetStruct *) temp_0[2]).endpoint = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[2] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[2]).node = [NSNumber numberWithUnsignedLongLong:2ULL]; + ((MTRBindingClusterTargetStruct *) temp_0[2]).endpoint = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[2]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; bindingArgument = temp_0; } @@ -84307,11 +84201,11 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadBindingTableEndpoint1_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeBindingWithParams:params @@ -84323,21 +84217,21 @@ class TestBinding : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("Binding", [actualValue count], static_cast(3))); - VerifyOrReturn(CheckValue("Group", ((CHIPBindingClusterTargetStruct *) actualValue[0]).group, 1U)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); - VerifyOrReturn(CheckValue("Node", ((CHIPBindingClusterTargetStruct *) actualValue[1]).node, 1ULL)); + VerifyOrReturn(CheckValue("Group", ((MTRBindingClusterTargetStruct *) actualValue[0]).group, 1U)); + VerifyOrReturn( + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); + VerifyOrReturn(CheckValue("Node", ((MTRBindingClusterTargetStruct *) actualValue[1]).node, 1ULL)); + VerifyOrReturn( + CheckValue("Endpoint", ((MTRBindingClusterTargetStruct *) actualValue[1]).endpoint, 1U)); VerifyOrReturn( - CheckValue("Endpoint", ((CHIPBindingClusterTargetStruct *) actualValue[1]).endpoint, 1U)); + CheckValue("Cluster", ((MTRBindingClusterTargetStruct *) actualValue[1]).cluster, 6UL)); VerifyOrReturn( - CheckValue("Cluster", ((CHIPBindingClusterTargetStruct *) actualValue[1]).cluster, 6UL)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[1]).fabricIndex, 1U)); - VerifyOrReturn(CheckValue("Node", ((CHIPBindingClusterTargetStruct *) actualValue[2]).node, 2ULL)); + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[1]).fabricIndex, 1U)); + VerifyOrReturn(CheckValue("Node", ((MTRBindingClusterTargetStruct *) actualValue[2]).node, 2ULL)); VerifyOrReturn( - CheckValue("Endpoint", ((CHIPBindingClusterTargetStruct *) actualValue[2]).endpoint, 1U)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[2]).fabricIndex, 1U)); + CheckValue("Endpoint", ((MTRBindingClusterTargetStruct *) actualValue[2]).endpoint, 1U)); + VerifyOrReturn( + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[2]).fabricIndex, 1U)); } NextTest(); @@ -84348,17 +84242,17 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteBindingTableEndpoint0_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPBindingClusterTargetStruct alloc] init]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).node = [NSNumber numberWithUnsignedLongLong:3ULL]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).endpoint = [NSNumber numberWithUnsignedShort:1U]; - ((CHIPBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; + temp_0[0] = [[MTRBindingClusterTargetStruct alloc] init]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).node = [NSNumber numberWithUnsignedLongLong:3ULL]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).endpoint = [NSNumber numberWithUnsignedShort:1U]; + ((MTRBindingClusterTargetStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:0U]; bindingArgument = temp_0; } @@ -84376,11 +84270,11 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadBindingTableEndpoint0_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeBindingWithParams:params @@ -84392,11 +84286,11 @@ class TestBinding : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("Binding", [actualValue count], static_cast(1))); - VerifyOrReturn(CheckValue("Node", ((CHIPBindingClusterTargetStruct *) actualValue[0]).node, 3ULL)); + VerifyOrReturn(CheckValue("Node", ((MTRBindingClusterTargetStruct *) actualValue[0]).node, 3ULL)); + VerifyOrReturn( + CheckValue("Endpoint", ((MTRBindingClusterTargetStruct *) actualValue[0]).endpoint, 1U)); VerifyOrReturn( - CheckValue("Endpoint", ((CHIPBindingClusterTargetStruct *) actualValue[0]).endpoint, 1U)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -84407,11 +84301,11 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestVerifyEndpoint1NotChanged_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBinding * cluster = [[CHIPTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeBindingWithParams:params @@ -84423,21 +84317,21 @@ class TestBinding : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("Binding", [actualValue count], static_cast(3))); - VerifyOrReturn(CheckValue("Group", ((CHIPBindingClusterTargetStruct *) actualValue[0]).group, 1U)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); - VerifyOrReturn(CheckValue("Node", ((CHIPBindingClusterTargetStruct *) actualValue[1]).node, 1ULL)); + VerifyOrReturn(CheckValue("Group", ((MTRBindingClusterTargetStruct *) actualValue[0]).group, 1U)); + VerifyOrReturn( + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[0]).fabricIndex, 1U)); + VerifyOrReturn(CheckValue("Node", ((MTRBindingClusterTargetStruct *) actualValue[1]).node, 1ULL)); + VerifyOrReturn( + CheckValue("Endpoint", ((MTRBindingClusterTargetStruct *) actualValue[1]).endpoint, 1U)); + VerifyOrReturn( + CheckValue("Cluster", ((MTRBindingClusterTargetStruct *) actualValue[1]).cluster, 6UL)); VerifyOrReturn( - CheckValue("Endpoint", ((CHIPBindingClusterTargetStruct *) actualValue[1]).endpoint, 1U)); + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[1]).fabricIndex, 1U)); + VerifyOrReturn(CheckValue("Node", ((MTRBindingClusterTargetStruct *) actualValue[2]).node, 2ULL)); VerifyOrReturn( - CheckValue("Cluster", ((CHIPBindingClusterTargetStruct *) actualValue[1]).cluster, 6UL)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[1]).fabricIndex, 1U)); - VerifyOrReturn(CheckValue("Node", ((CHIPBindingClusterTargetStruct *) actualValue[2]).node, 2ULL)); + CheckValue("Endpoint", ((MTRBindingClusterTargetStruct *) actualValue[2]).endpoint, 1U)); VerifyOrReturn( - CheckValue("Endpoint", ((CHIPBindingClusterTargetStruct *) actualValue[2]).endpoint, 1U)); - VerifyOrReturn(CheckValue( - "FabricIndex", ((CHIPBindingClusterTargetStruct *) actualValue[2]).fabricIndex, 1U)); + CheckValue("FabricIndex", ((MTRBindingClusterTargetStruct *) actualValue[2]).fabricIndex, 1U)); } NextTest(); @@ -84574,8 +84468,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestClearUserLabelList_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -84597,8 +84491,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestReadUserLabelList_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -84619,28 +84513,28 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestWriteUserLabelList_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[0]).value = @"bedroom 2"; + temp_0[0] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).label = @"room"; + ((MTRUserLabelClusterLabelStruct *) temp_0[0]).value = @"bedroom 2"; - temp_0[1] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).label = @"orientation"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[1]).value = @"North"; + temp_0[1] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).label = @"orientation"; + ((MTRUserLabelClusterLabelStruct *) temp_0[1]).value = @"North"; - temp_0[2] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[2]).label = @"floor"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[2]).value = @"5"; + temp_0[2] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[2]).label = @"floor"; + ((MTRUserLabelClusterLabelStruct *) temp_0[2]).value = @"5"; - temp_0[3] = [[CHIPUserLabelClusterLabelStruct alloc] init]; - ((CHIPUserLabelClusterLabelStruct *) temp_0[3]).label = @"direction"; - ((CHIPUserLabelClusterLabelStruct *) temp_0[3]).value = @"up"; + temp_0[3] = [[MTRUserLabelClusterLabelStruct alloc] init]; + ((MTRUserLabelClusterLabelStruct *) temp_0[3]).label = @"direction"; + ((MTRUserLabelClusterLabelStruct *) temp_0[3]).value = @"up"; labelListArgument = temp_0; } @@ -84671,8 +84565,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestVerify_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestUserLabel * cluster = [[CHIPTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -84683,17 +84577,17 @@ class TestUserLabelCluster : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValue("label list", [actualValue count], static_cast(4))); - VerifyOrReturn(CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).label, @"room")); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).label, @"room")); VerifyOrReturn( - CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[0]).value, @"bedroom 2")); + CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[0]).value, @"bedroom 2")); VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).label, @"orientation")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[1]).value, @"North")); - VerifyOrReturn(CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[2]).label, @"floor")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[2]).value, @"5")); + CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).label, @"orientation")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[1]).value, @"North")); + VerifyOrReturn(CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[2]).label, @"floor")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[2]).value, @"5")); VerifyOrReturn( - CheckValueAsString("label", ((CHIPUserLabelClusterLabelStruct *) actualValue[3]).label, @"direction")); - VerifyOrReturn(CheckValueAsString("value", ((CHIPUserLabelClusterLabelStruct *) actualValue[3]).value, @"up")); + CheckValueAsString("label", ((MTRUserLabelClusterLabelStruct *) actualValue[3]).label, @"direction")); + VerifyOrReturn(CheckValueAsString("value", ((MTRUserLabelClusterLabelStruct *) actualValue[3]).value, @"up")); } NextTest(); @@ -84848,13 +84742,13 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -84866,7 +84760,7 @@ class TestArmFailSafe : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("Fabrics", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValueAsString("Label", - ((CHIPOperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); + ((MTROperationalCredentialsClusterFabricDescriptor *) actualValue[0]).label, @"")); } VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); @@ -84878,18 +84772,18 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestArmFailSafeOnTargetDeviceWithTimeout0_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGeneralCommissioning * cluster = [[CHIPTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGeneralCommissioningClusterArmFailSafeParams alloc] init]; + __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.expiryLengthSeconds = [NSNumber numberWithUnsignedShort:0U]; params.breadcrumb = [NSNumber numberWithUnsignedLongLong:0ULL]; [cluster armFailSafeWithParams:params completionHandler:^( - CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"ArmFailSafe on target device with timeout 0 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -84907,8 +84801,8 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestReadsNodeLabelMandatoryAttributeOfTargetDevice_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -84929,13 +84823,13 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeAddTrustedRootCertificateWithoutFailSafe_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; params.rootCertificate = [[NSData alloc] initWithBytes:"00000000" length:8]; [cluster addTrustedRootCertificateWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -84950,43 +84844,42 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeAddNOCWithoutFailSafe_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterAddNOCParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterAddNOCParams alloc] init]; params.nocValue = [[NSData alloc] initWithBytes:"00112233" length:8]; params.ipkValue = [[NSData alloc] initWithBytes:"\000\001\002\003\004\005\006\007\000\001\002\003\004\005\006\007" length:16]; params.caseAdminSubject = [NSNumber numberWithUnsignedLongLong:1234ULL]; params.adminVendorId = [NSNumber numberWithUnsignedShort:65521U]; - [cluster - addNOCWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Invoke AddNOC without fail-safe Error: %@", err); + [cluster addNOCWithParams:params + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { + NSLog(@"Invoke AddNOC without fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILSAFE_REQUIRED)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILSAFE_REQUIRED)); + NextTest(); + }]; return CHIP_NO_ERROR; } CHIP_ERROR TestInvokeUpdateNOCWithoutFailSafe_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterUpdateNOCParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterUpdateNOCParams alloc] init]; params.nocValue = [[NSData alloc] initWithBytes:"00112233" length:8]; [cluster updateNOCWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Invoke UpdateNOC without fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILSAFE_REQUIRED)); @@ -84998,19 +84891,19 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeCSRRequestWithoutFailSafe_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPOperationalCredentialsClusterCSRRequestParams alloc] init]; + __auto_type * params = [[MTROperationalCredentialsClusterCSRRequestParams alloc] init]; params.csrNonce = [[NSData alloc] initWithBytes:"\000\001\002\003\004\005\006\007\000\001\002\003\004\005\006\007\000\001" "\002\003\004\005\006\007\000\001\002\003\004\005\006\007" length:32]; [cluster CSRRequestWithParams:params - completionHandler:^(CHIPOperationalCredentialsClusterCSRResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTROperationalCredentialsClusterCSRResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Invoke CSRRequest without fail-safe Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILSAFE_REQUIRED)); @@ -85274,8 +85167,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -85294,8 +85187,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackFanMode_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFanModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85316,8 +85209,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanModeSequence_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeSequenceArgument; @@ -85336,8 +85229,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackFanModeSequence_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFanModeSequenceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85358,8 +85251,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWritePercentSetting_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id percentSettingArgument; @@ -85378,8 +85271,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85401,8 +85294,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85424,8 +85317,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedCurrent_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85446,8 +85339,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWritePercentSetting_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id percentSettingArgument; @@ -85466,8 +85359,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85489,8 +85382,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteSpeedSetting_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id speedSettingArgument; @@ -85509,8 +85402,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85532,8 +85425,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85555,8 +85448,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentCurrent_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85577,8 +85470,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteSpeedSetting_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id speedSettingArgument; @@ -85597,8 +85490,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85620,8 +85513,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -85640,8 +85533,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85663,8 +85556,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentCurrent_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85685,8 +85578,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85708,8 +85601,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedCurrent_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85730,8 +85623,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -85750,8 +85643,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85772,8 +85665,8 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestFanControl * cluster = [[CHIPTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86030,13 +85923,13 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlpha_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; [cluster openBasicCommissioningWindowWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -86060,13 +85953,13 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestCheckThatWeJustHaveTheOneFabricAndDidNotAddANewOne_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:false]; [cluster readAttributeFabricsWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -86087,10 +85980,10 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestCloseCommissioningWindowAfterFailedCommissioning_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { @@ -86106,13 +85999,13 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlphaAgain_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; [cluster openBasicCommissioningWindowWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -86143,13 +86036,13 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromBeta_11() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestAdministratorCommissioning * cluster = [[CHIPTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; [cluster openBasicCommissioningWindowWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -86181,8 +86074,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNodeLabelFromAlpha_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -86206,8 +86099,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestWriteTheMandatoryAttributeNodeLabelFromBeta_15() { - CHIPDevice * device = GetDevice("beta"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("beta"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -86226,8 +86119,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNodeLabelFromGamma_16() { - CHIPDevice * device = GetDevice("gamma"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("gamma"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -86245,8 +86138,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestWriteTheMandatoryAttributeNodeLabelBackToDefault_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -86393,10 +86286,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsAListOfThreadMetricsStructNonGlobalAttributeFromDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -86413,10 +86306,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapFreeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86433,10 +86326,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86453,10 +86346,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86693,10 +86586,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestSendsResetWatermarksToDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetWatermarksWithCompletionHandler:^(NSError * _Nullable err) { @@ -86712,10 +86605,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsAListOfThreadMetricsStructAttributeFromDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -86732,10 +86625,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapUsedAttributeValueFromDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86752,10 +86645,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapHighWaterMarkAttributeValueFromDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestSoftwareDiagnostics * cluster = [[CHIPTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86905,8 +86798,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestSetOnOffAttributeToFalse_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -86924,8 +86817,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestReportSubscribeOnOffAttribute_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86947,13 +86840,13 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestSubscribeOnOffAttribute_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 2U; uint16_t maxIntervalArgument = 5U; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; + MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttributeOnOffWithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params @@ -86978,8 +86871,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestTurnOnTheLightToSeeAttributeChange_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -86995,8 +86888,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestCheckForAttributeReport_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87017,8 +86910,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestTurnOffTheLightToSeeAttributeChange_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -87034,8 +86927,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestCheckForAttributeReport_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87940,14 +87833,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadAvailableUserSlotAndVerifyResponseFields_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read available user slot and verify response fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88011,8 +87904,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsersAndVerifyDefaultValue_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -88037,14 +87930,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFailsForUserWithIndex0_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read fails for user with index 0 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -88056,14 +87949,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFailsForUserWithIndexGreaterThanNumberOfUsersSupported_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read fails for user with index greater than Number Of Users Supported Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -88075,11 +87968,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewUserWithDefaultParameters_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88101,14 +87994,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndVerifyItsFields_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88177,11 +88070,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestSetUserAtTheOccupiedIndexFailsWithAppropriateResponse_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88202,11 +88095,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserNameForExistingUser_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = @"new_user"; @@ -88228,14 +88121,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88304,11 +88197,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserUniqueIdForExistingUser_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88330,14 +88223,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88407,11 +88300,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserStatusForExistingUser_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88433,14 +88326,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88510,11 +88403,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserTypeForExistingUser_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88536,14 +88429,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88613,11 +88506,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyCredentialRuleForExistingUser_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -88639,14 +88532,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88716,11 +88609,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyAllFieldsForExistingUser_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = @"test_user"; @@ -88742,14 +88635,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88819,11 +88712,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestAddAnotherUserWithNonDefaultFields_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.userName = @"test_user2"; @@ -88845,14 +88738,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheNewUserBackAndVerifyItsFields_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the new user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -88922,11 +88815,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateUserInTheLastSlot_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NumberOfTotalUsersSupported copy]; params.userName = @"last_user"; @@ -88948,14 +88841,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheLastUserBackAndVerifyItsFields_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NumberOfTotalUsersSupported copy]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the last user back and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89024,11 +88917,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestUserCreationInThe0SlotFails_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; params.userName = nil; @@ -89049,11 +88942,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestUserCreationInTheOutOfBoundsSlotFails_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; params.userName = nil; @@ -89074,11 +88967,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearFirstUser_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -89094,14 +88987,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadClearedUserAndVerifyItIsAvailable_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read cleared user and verify it is available Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89165,11 +89058,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewUserInTheClearedSlot_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.userName = nil; @@ -89191,14 +89084,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserInThePreviouslyClearedSlotAndVerifyItsFields_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user in the previously cleared slot and verify its fields Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89268,11 +89161,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearUserWithIndex0Fails_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -89287,11 +89180,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearUserWithOutOfBoundsIndexFails_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -89306,11 +89199,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllUsers_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -89326,14 +89219,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFirstClearedUserAndVerifyItIsAvailable_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read first cleared user and verify it is available Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89396,14 +89289,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadLastClearedUserAndVerifyItIsAvailable_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NumberOfTotalUsersSupported copy]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read last cleared user and verify it is available Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89467,8 +89360,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedPinCredentialsAndVerifyDefaultValue_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -89493,18 +89386,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCheckThatPinCredentialDoesNotExist_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Check that PIN credential does not exist Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89542,18 +89435,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingPinCredentialWithIndex0Fails_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading PIN credential with index 0 fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -89565,19 +89458,19 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingPinCredentialWithOutOfBoundsIndexFails_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfPINUsersSupported unsignedShortValue] + 1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading PIN credential with out-of-bounds index fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -89589,15 +89482,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUser_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"000000" length:6]; params.userIndex = nil; @@ -89605,7 +89498,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89635,14 +89528,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedUser_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89686,9 +89579,9 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(1))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); VerifyOrReturn(CheckValue( - "CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); + "CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); } { @@ -89716,18 +89609,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedPinCredential_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created PIN credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89768,15 +89661,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUserWithIndex0Fails_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -89784,7 +89677,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user with index 0 fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89813,15 +89706,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUserWithOutOfBoundsIndexFails_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfPINUsersSupported unsignedShortValue] + 1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; @@ -89830,7 +89723,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user with out-of-bounds index fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89859,8 +89752,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedRfidCredentialsAndVerifyDefaultValue_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -89885,18 +89778,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingRfidCredentialWithIndex0Fails_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading RFID credential with index 0 fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -89908,19 +89801,19 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingRfidCredentialWithOutOfBoundsIndexFails_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfRFIDUsersSupported unsignedShortValue] + 1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading RFID credential with out-of-bounds index fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); @@ -89932,18 +89825,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCheckThatRfidCredentialDoesNotExist_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Check that RFID credential does not exist Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -89981,15 +89874,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_123456" length:16]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -89997,7 +89890,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90026,14 +89919,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify modified user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90077,13 +89970,13 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(2))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); VerifyOrReturn(CheckValue( - "CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); + "CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); VerifyOrReturn(CheckValue( - "CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); + "CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); } { @@ -90111,18 +90004,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedCredential_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90163,15 +90056,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndUserWithIndex0Fails_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; params.credentialData = [[NSData alloc] initWithBytes:"new_rfid_data_field" length:19]; params.userIndex = nil; @@ -90179,7 +90072,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and user with index 0 fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90208,15 +90101,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndUserWithOutOfBoundsIndexFails_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfRFIDUsersSupported unsignedShortValue] + 1U]; params.credentialData = [[NSData alloc] initWithBytes:"new_rfid_data_field" length:19]; @@ -90225,7 +90118,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and user with out-of-bounds index fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90253,15 +90146,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewCredentialAndTryToAddItTo0User_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"123465" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90269,7 +90162,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new credential and try to add it to 0 user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90298,15 +90191,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewCredentialAndTryToAddItToOutOfBoundsUser_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"123465" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; @@ -90314,7 +90207,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new credential and try to add it to out-of-bounds user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90343,15 +90236,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithTooShortData_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"12345" length:5]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90359,7 +90252,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with too short data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90388,15 +90281,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithTooLongData_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"123456789" length:9]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90404,7 +90297,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with too long data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90433,15 +90326,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidWithTooShortData_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data" length:9]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90449,7 +90342,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID with too short data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90478,15 +90371,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithProgrammingUserTypeFails_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90494,7 +90387,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:3U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with Programming user type fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90523,15 +90416,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidWithTooShortData_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"very_long_rfid_data_to_test_boundaries" length:38]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; @@ -90539,7 +90432,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID with too short data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90568,15 +90461,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialWithDataTheWouldCauseDuplicate_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; params.credentialData = [[NSData alloc] initWithBytes:"000000" length:6]; params.userIndex = nil; @@ -90584,7 +90477,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential with data the would cause duplicate Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90613,15 +90506,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithDataTheWouldCauseDuplicate_61() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_123456" length:16]; params.userIndex = nil; @@ -90629,7 +90522,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with data the would cause duplicate Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90658,15 +90551,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyCredentialDataOfExistingPinCredential_62() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -90674,7 +90567,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Modify credentialData of existing PIN credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90703,15 +90596,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyThatCredentialWasChangedByCreatingNewCredentialWithOldData_63() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"000000" length:6]; params.userIndex = nil; @@ -90719,7 +90612,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that credential was changed by creating new credential with old data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90749,15 +90642,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyThatCredentialWasChangedByCreatingNewCredentialWithNewData_64() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -90765,7 +90658,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that credential was changed by creating new credential with new data Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90794,15 +90687,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_65() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_7890" length:14]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -90810,7 +90703,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90839,15 +90732,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_66() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify modified user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90891,17 +90784,17 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(3))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 4U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 4U)); } { @@ -90930,15 +90823,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_67() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:5U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:5U]; params.credentialData = [[NSData alloc] initWithBytes:"789012" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -90946,7 +90839,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -90975,15 +90868,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_68() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify modified user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91027,21 +90920,21 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(4))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 1U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 2U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 4U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 4U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[3]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[3]).credentialType, 1U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[3]).credentialIndex, 5U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[3]).credentialIndex, 5U)); } { @@ -91070,14 +90963,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearFirstPinCredential_69() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -91093,18 +90986,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheCredentialAndMakeSureItIsDeleted_70() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91143,15 +91036,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndMakeSurePinCredentialIsDeleted_71() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and make sure PIN credential is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91195,17 +91088,17 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(3))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 2U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 2U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialType, 2U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 4U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[1]).credentialIndex, 4U)); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialType, 1U)); VerifyOrReturn( - CheckValue("CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 5U)); + CheckValue("CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[2]).credentialIndex, 5U)); } { @@ -91234,14 +91127,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearTheSecondPinCredential_72() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -91257,18 +91150,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheCredentialAndMakeSureItIsDeleted_73() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91307,14 +91200,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndMakeSureRelatedUserIsDeleted_74() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and make sure related user is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91377,15 +91270,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithUser_75() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_12345" length:15]; params.userIndex = nil; @@ -91393,7 +91286,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91423,14 +91316,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllTheRfidCredentials_76() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -91446,18 +91339,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFistRfidCredentialAndMakeSureItIsDeleted_77() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the fist RFID credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91496,18 +91389,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheSecondRfidCredentialAndMakeSureItIsDeleted_78() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the second RFID credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91546,18 +91439,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheThirdRfidCredentialAndMakeSureItIsDeleted_79() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the third RFID credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91596,14 +91489,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstRfidBackAndMakeSureItHasOnlyPinCredential_80() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first RFID back and make sure it has only PIN credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91647,9 +91540,9 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(1))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 1U)); VerifyOrReturn(CheckValue( - "CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 5U)); + "CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 5U)); } { @@ -91677,14 +91570,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithSecondRfidBackAndMakeSureItIsDeleted_81() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with second RFID back and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91747,15 +91640,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialWithUser_82() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -91763,7 +91656,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential with user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91793,15 +91686,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithUser_83() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_1234" length:14]; params.userIndex = nil; @@ -91809,7 +91702,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91839,15 +91732,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateAnotherRfidCredentialWithUser_84() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; params.credentialData = [[NSData alloc] initWithBytes:"rfid_data_9876" length:14]; params.userIndex = nil; @@ -91855,7 +91748,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create another RFID credential with user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91885,11 +91778,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllTheCredentials_85() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; params.credential = nil; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -91905,18 +91798,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFirstPinCredentialAndMakeSureItIsDeleted_86() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the first PIN credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -91954,18 +91847,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFirstRfidCredentialAndMakeSureItIsDeleted_87() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the first RFID credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92003,18 +91896,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheSecondPinCredentialAndMakeSureItIsDeleted_88() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the second PIN credential and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92052,14 +91945,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstPinBackAndMakeSureItIsDeleted_89() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first PIN back and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92122,14 +92015,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstRfidBackAndMakeSureItIsDeleted_90() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first RFID back and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92192,14 +92085,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithSecondPinBackAndMakeSureItIsDeleted_91() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:3U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with second PIN back and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92262,14 +92155,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithLastRfidBackAndMakeSureItIsDeleted_92() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:4U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with last RFID back and make sure it is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92332,15 +92225,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewProgrammingPinCredentialWithInvalidIndex_93() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -92348,7 +92241,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new Programming PIN credential with invalid index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92376,15 +92269,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewProgrammingPinCredentialWithValidIndex_94() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -92392,7 +92285,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new Programming PIN credential with valid index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92421,14 +92314,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedUser_95() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92472,9 +92365,9 @@ class DL_UsersAndCredentials : public TestCommandBridge { VerifyOrReturn(CheckValueNonNull("credentials", actualValue)); VerifyOrReturn(CheckValue("credentials", [actualValue count], static_cast(1))); VerifyOrReturn( - CheckValue("CredentialType", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialType, 0U)); + CheckValue("CredentialType", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialType, 0U)); VerifyOrReturn(CheckValue( - "CredentialIndex", ((CHIPDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 0U)); + "CredentialIndex", ((MTRDoorLockClusterDlCredential *) actualValue[0]).credentialIndex, 0U)); } { @@ -92502,18 +92395,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedProgrammingPinCredential_96() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created programming PIN credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92554,15 +92447,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyTheProgrammingPinCredential_97() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; params.credentialData = [[NSData alloc] initWithBytes:"654321" length:6]; params.userIndex = nil; @@ -92570,7 +92463,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Modify the Programming PIN credential Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92598,14 +92491,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingProgrammingPinFails_98() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -92620,14 +92513,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingProgrammingPinWithInvalidIndexFails_99() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -92642,14 +92535,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingPinCredentialWithZeroIndexFails_100() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -92664,14 +92557,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingPinCredentialWithOutOfBoundIndexFails_101() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfPINUsersSupported unsignedShortValue] + 1U]; [cluster clearCredentialWithParams:params @@ -92687,14 +92580,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingRfidCredentialWithZeroIndexFails_102() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -92709,14 +92602,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingRfidCredentialWithOutOfBoundIndexFails_103() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:2U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:[NumberOfRFIDUsersSupported unsignedShortValue] + 1U]; [cluster clearCredentialWithParams:params @@ -92732,11 +92625,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearTheProgrammingPinUser_104() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -92752,14 +92645,14 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestMakeSureProgrammingPinUserIsDeleted_105() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getUserWithParams:params - completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure Programming PIN user is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92822,18 +92715,18 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestMakeSureProgrammingPinCredentialIsDeleted_106() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:0U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure programming PIN credential is deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92871,15 +92764,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUser_107() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"000000" length:6]; params.userIndex = nil; @@ -92887,7 +92780,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92917,15 +92810,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateSecondPinCredentialAndAddItToExistingUser_108() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; params.credentialData = [[NSData alloc] initWithBytes:"000001" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -92933,7 +92826,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create second PIN credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92962,15 +92855,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateThirdPinCredentialAndAddItToExistingUser_109() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"000002" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -92978,7 +92871,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create third PIN credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93007,15 +92900,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateFourthPinCredentialAndAddItToExistingUser_110() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:4U]; params.credentialData = [[NSData alloc] initWithBytes:"000003" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -93023,7 +92916,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create fourth PIN credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93052,15 +92945,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateFifthPinCredentialAndAddItToExistingUser_111() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:5U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:5U]; params.credentialData = [[NSData alloc] initWithBytes:"000004" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -93068,7 +92961,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create fifth PIN credential and add it to existing user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93097,15 +92990,15 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestTryToCreateSixthPinCredentialAndMakeSureItFails_112() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:6U]; params.credentialData = [[NSData alloc] initWithBytes:"000005" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -93113,7 +93006,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Try to create sixth PIN credential and make sure it fails Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93142,11 +93035,11 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestFinalCleanUp_113() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -93365,11 +93258,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithoutPin_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterUnlockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; [cluster unlockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door without PIN Error: %@", err); @@ -93384,8 +93277,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93407,11 +93300,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithoutAPin_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door without a PIN Error: %@", err); @@ -93426,8 +93319,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93449,15 +93342,15 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -93465,7 +93358,7 @@ class DL_LockUnlock : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93495,11 +93388,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithInvalidPin_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterUnlockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"000000" length:6]; [cluster unlockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -93514,8 +93407,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93537,11 +93430,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithValidPin_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterUnlockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster unlockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -93557,8 +93450,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93580,11 +93473,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToLockTheDoorWithInvalidPin_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"000000" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -93599,8 +93492,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93622,11 +93515,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToLockTheDoorWithValidPin_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -93642,8 +93535,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -93665,8 +93558,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestSetOperatingModeToNoRemoteLockUnlock_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operatingModeArgument; @@ -93685,11 +93578,11 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWhenOperatingModeIsNoRemoteLockUnlock_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door when OperatingMode is NoRemoteLockUnlock Error: %@", err); @@ -93703,8 +93596,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestSetOperatingModeToNormal_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operatingModeArgument; @@ -93723,14 +93616,14 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -94720,15 +94613,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndScheduleUser_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -94736,7 +94629,7 @@ class DL_Schedules : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and schedule user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -94767,8 +94660,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -94794,8 +94687,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfWeekDaySchedulesForUserAndVerifyDefaultValue_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -94821,8 +94714,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfYearDaySchedulesForUserAndVerifyDefaultValue_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -94848,8 +94741,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfHolidaySchedulesAndVerifyDefaultValue_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfHolidaySchedulesSupportedWithCompletionHandler:^( @@ -94874,11 +94767,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0Index_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -94899,11 +94792,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithOutOfBoundsIndex_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfWeekDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -94924,11 +94817,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0UserIndex_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -94949,11 +94842,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithOutOfBoundsUserIndex_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -94974,11 +94867,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForNonExistingUser_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -94999,11 +94892,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0DaysMask_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:0U]; @@ -95024,11 +94917,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForSundayAndMonday_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:3U]; @@ -95049,11 +94942,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForSundayWednesdayAndSaturday_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:73U]; @@ -95074,11 +94967,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidStartHour_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95099,11 +94992,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidStartMinute_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95124,11 +95017,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidEndHour_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95149,11 +95042,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidEndMinute_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95174,11 +95067,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithStartHourLaterThatEndHour_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95199,11 +95092,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithStartMinuteLaterThatEndMinuteWhenHoursAreEqual_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -95226,16 +95119,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that previous operations did not create a schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95263,16 +95156,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWith0Index_21() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with 0 index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95300,16 +95193,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithOutOfBoundsIndex_22() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfWeekDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with out-of-bounds index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95338,16 +95231,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWith0UserIndex_23() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with 0 user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95375,16 +95268,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithOutOfBoundsUserIndex_24() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with out-of-bounds user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95413,16 +95306,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithNonExistingUserIndex_25() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with non-existing user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95450,11 +95343,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWith0Index_26() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -95472,11 +95365,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithOutOfBoundsIndex_27() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfYearDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -95494,11 +95387,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWith0UserIndex_28() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -95516,11 +95409,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithOutOfBoundsUserIndex_29() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -95538,11 +95431,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForNonExistingUser_30() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -95560,11 +95453,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithStartHourLaterThatEndHour_31() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345689UL]; @@ -95582,16 +95475,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_32() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that previous operations did not create a schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95619,16 +95512,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWith0Index_33() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with 0 index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95656,16 +95549,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithOutOfBoundsIndex_34() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfYearDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with out-of-bounds index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95694,16 +95587,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWith0UserIndex_35() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with 0 user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95731,16 +95624,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithOutOfBoundsUserIndex_36() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with out-of-bounds user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95769,16 +95662,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithNonExistingUserIndex_37() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with non-existing user index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95806,11 +95699,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWith0Index_38() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:0U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:12345689UL]; @@ -95828,11 +95721,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithOutOfBoundsIndex_39() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:[NumberOfHolidaySchedulesSupported unsignedCharValue] + 1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:12345689UL]; @@ -95850,11 +95743,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithStartHourLaterThatEndHour_40() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345689UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:12345688UL]; @@ -95872,11 +95765,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithInvalidOperatingMode_41() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:12345689UL]; @@ -95894,15 +95787,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_42() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that previous operations did not create a schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95925,15 +95818,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetHolidayScheduleWith0Index_43() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:0U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Holiday schedule with 0 index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95956,15 +95849,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetHolidayScheduleWithOutOfBoundsIndex_44() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:[NumberOfHolidaySchedulesSupported unsignedCharValue] + 1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Holiday schedule with out-of-bounds index Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -95988,11 +95881,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithValidParameters_45() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:12345689UL]; @@ -96011,15 +95904,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_46() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96057,11 +95950,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParameters_47() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -96083,16 +95976,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_48() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96145,11 +96038,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithValidParameters_49() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:12345UL]; @@ -96168,16 +96061,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_50() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96215,11 +96108,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWith0Index_51() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -96235,11 +96128,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithOutOfBoundsIndex_52() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfWeekDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -96255,11 +96148,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWith0UserIndex_53() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearWeekDayScheduleWithParams:params @@ -96275,11 +96168,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithOutOfBoundsUserIndex_54() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster clearWeekDayScheduleWithParams:params @@ -96295,11 +96188,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithNonExistingUser_55() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster clearWeekDayScheduleWithParams:params @@ -96315,16 +96208,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_56() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that week day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96377,16 +96270,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_57() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that year day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96424,15 +96317,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_58() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96470,11 +96363,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWith0Index_59() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearYearDayScheduleWithParams:params @@ -96490,11 +96383,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithOutOfBoundsIndex_60() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:[NumberOfYearDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearYearDayScheduleWithParams:params @@ -96510,11 +96403,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWith0UserIndex_61() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:0U]; [cluster clearYearDayScheduleWithParams:params @@ -96530,11 +96423,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithOutOfBoundsUserIndex_62() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:[NumberOfTotalUsersSupported unsignedShortValue] + 1U]; [cluster clearYearDayScheduleWithParams:params @@ -96550,11 +96443,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithNonExistingUser_63() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster clearYearDayScheduleWithParams:params @@ -96570,16 +96463,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_64() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that week day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96632,16 +96525,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_65() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that year day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96679,15 +96572,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_66() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96725,11 +96618,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearHolidayScheduleWith0Index_67() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:0U]; [cluster clearHolidayScheduleWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -96744,11 +96637,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearHolidayScheduleWithOutOfBoundsIndex_68() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:[NumberOfYearDaySchedulesSupportedPerUser unsignedCharValue] + 1U]; [cluster clearHolidayScheduleWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -96763,16 +96656,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_69() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that week day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96825,16 +96718,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_70() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that year day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96872,15 +96765,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_71() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96918,11 +96811,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherWeekDayScheduleWithValidParameters_72() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:2U]; @@ -96944,16 +96837,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDaySchedule_73() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97006,11 +96899,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherYearDayScheduleWithValidParameters_74() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:9000UL]; @@ -97029,16 +96922,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDaySchedule_75() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97076,11 +96969,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherHolidayScheduleWithValidParameters_76() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; params.localStartTime = [NSNumber numberWithUnsignedInt:123456UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:1234567UL]; @@ -97099,15 +96992,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedHolidaySchedule_77() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created holiday schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97145,11 +97038,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleWeekDayScheduleForTheFirstUser_78() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -97166,16 +97059,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedWeekDaySchedule_79() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared week day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97203,11 +97096,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingWeekDaySchedulesForTheFirstUser_80() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:254U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -97224,16 +97117,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedWeekSchedule_81() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared week schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97261,16 +97154,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstYearDayScheduleWasNotDeleted_82() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first year day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97308,16 +97201,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondYearDayScheduleWasNotDeleted_83() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second year day schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97355,15 +97248,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_84() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97401,15 +97294,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasNotDeleted_85() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97447,11 +97340,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherWeekDayScheduleWithValidParameters_86() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:2U]; @@ -97473,11 +97366,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleYearDayScheduleForTheFirstUser_87() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearYearDayScheduleWithParams:params @@ -97494,16 +97387,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedYearDaySchedule_88() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared year day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97531,11 +97424,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingYearSchedulesForTheFirstUser_89() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:254U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearYearDayScheduleWithParams:params @@ -97552,16 +97445,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyThatSecondYearDayScheduleWasCleared_90() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that second year day schedule was cleared Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97589,16 +97482,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDaySchedule_91() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97651,11 +97544,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingWeekDaySchedulesForTheFirstUser_92() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:254U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -97672,11 +97565,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewUserWithoutCredentialSoWeCanAddMoreSchedulesToIt_93() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.userName = nil; @@ -97698,11 +97591,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParametersForFirstUser_94() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -97724,16 +97617,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDayScheduleForFirstUser_95() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule for first user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97786,11 +97679,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForFirstUser_96() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:9000UL]; @@ -97809,16 +97702,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDayScheduleForFirst_97() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule for first Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97856,11 +97749,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParametersForSecondUser_98() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.daysMask = [NSNumber numberWithUnsignedChar:64U]; @@ -97882,16 +97775,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDayScheduleForFirstUser_99() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule for first user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -97944,11 +97837,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForSecondUser_100() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:55555UL]; @@ -97967,16 +97860,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDayScheduleForFirst_101() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule for first Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98014,11 +97907,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCleanupTheUser_102() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -98034,16 +97927,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingFirstUserAlsoClearedWeekDaySchedules_103() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing first user also cleared week day schedules Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98071,16 +97964,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingFirstUserAlsoClearedYearDaySchedules_104() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing first user also cleared year day schedules Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98108,16 +98001,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingSecondUserAlsoClearedWeekDaySchedules_105() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:4U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing second user also cleared week day schedules Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98145,16 +98038,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingSecondUserAlsoClearedYearDaySchedules_106() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing second user also cleared year day schedules Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98182,15 +98075,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_107() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98228,15 +98121,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasNotDeleted_108() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98274,11 +98167,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherHolidayScheduleAtTheLastSlot_109() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.holidayIndex = [NumberOfHolidaySchedulesSupported copy]; params.localStartTime = [NSNumber numberWithUnsignedInt:1UL]; params.localEndTime = [NSNumber numberWithUnsignedInt:100UL]; @@ -98297,15 +98190,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedHolidaySchedule_110() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NumberOfHolidaySchedulesSupported copy]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify Created Holiday Schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98343,15 +98236,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndScheduleUser_111() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -98359,7 +98252,7 @@ class DL_Schedules : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and schedule user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98389,11 +98282,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForFirstUser_112() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:1U]; @@ -98415,11 +98308,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForFirstUser_113() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:9000UL]; @@ -98438,11 +98331,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleHolidaySchedule_114() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster clearHolidayScheduleWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -98458,15 +98351,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_115() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98504,15 +98397,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasDeleted_116() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second holiday schedule was deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98535,15 +98428,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatThirdHolidayScheduleWasNotDeleted_117() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NumberOfHolidaySchedulesSupported copy]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that third holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98581,16 +98474,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearWeekDaySchedule_118() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing holiday schedule did not clear week day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98643,16 +98536,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearYearDaySchedule_119() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing holiday schedule did not clear year day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98690,11 +98583,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingHolidaySchedules_120() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:254U]; [cluster clearHolidayScheduleWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -98710,15 +98603,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayIsStillDeleted_121() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:1U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first holiday is still deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98741,15 +98634,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasDeleted_122() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NSNumber numberWithUnsignedChar:2U]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second holiday schedule was deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98772,15 +98665,15 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatThirdHolidayScheduleWasNotDeleted_123() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetHolidayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.holidayIndex = [NumberOfHolidaySchedulesSupported copy]; [cluster getHolidayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetHolidayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that third holiday schedule was not deleted Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98803,16 +98696,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearWeekDaySchedule_124() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing holiday schedule did not clear week day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98865,16 +98758,16 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearYearDaySchedule_125() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing holiday schedule did not clear year day schedule Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -98912,11 +98805,11 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestFinalCleanup_126() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearUserParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.userIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearUserWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99124,8 +99017,8 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesTheRequirePINforRemoteOperationAttributeValueAsFalseOnTheDut_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id requirePINforRemoteOperationArgument; @@ -99146,11 +99039,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithoutPINCode_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"" length:0]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99165,8 +99058,8 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesTheRequirePINforRemoteOperationAttributeValueAsTrueOnTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id requirePINforRemoteOperationArgument; @@ -99187,15 +99080,15 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -99203,7 +99096,7 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -99233,11 +99126,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithValidPINCode_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99253,11 +99146,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithoutAnyArgumentPINCode_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"" length:0]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99272,8 +99165,8 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesWrongCodeEntryLimitAttributeValueAs3OnTheDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id wrongCodeEntryLimitArgument; @@ -99293,8 +99186,8 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesUserCodeTemporaryDisableTimeAttributeValueAs5SecondsOnTheDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id userCodeTemporaryDisableTimeArgument; @@ -99315,11 +99208,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"12345" length:5]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99334,11 +99227,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"54321" length:5]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99353,11 +99246,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"987623" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99372,11 +99265,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"67890" length:5]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99391,8 +99284,8 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsUserCodeTemporaryDisableTimeAttributeFromDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -99414,11 +99307,11 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithValidPINCode_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99434,14 +99327,14 @@ class Test_TC_DLRK_2_2 : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99597,15 +99490,15 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -99613,7 +99506,7 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -99643,11 +99536,11 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestPreconditionDoorIsInLockedState_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99663,8 +99556,8 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestThWritesAutoRelockTimeAttributeValueAs10SecondsOnTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id autoRelockTimeArgument; @@ -99683,11 +99576,11 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTheUnlockDoorCommandToTheDutWithValidPINCode_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterUnlockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster unlockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99703,8 +99596,8 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsAutoRelockTimeAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -99732,8 +99625,8 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsLockStateAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -99755,14 +99648,14 @@ class Test_TC_DLRK_2_3 : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99911,15 +99804,15 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -99927,7 +99820,7 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -99957,11 +99850,11 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestPreconditionDoorIsInLockedState_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterLockDoorParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster lockDoorWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -99977,8 +99870,8 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAutoRelockTimeAttributeValueAs10SecondsOnTheDut_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id autoRelockTimeArgument; @@ -99997,11 +99890,11 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsTheUnlockWithTimeoutCommandToTheDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterUnlockWithTimeoutParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterUnlockWithTimeoutParams alloc] init]; params.timeout = [NSNumber numberWithUnsignedShort:5U]; params.pinCode = [[NSData alloc] initWithBytes:"123456" length:6]; [cluster unlockWithTimeoutWithParams:params @@ -100018,8 +99911,8 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsAutoRelockTimeAttributeFromDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -100047,8 +99940,8 @@ class Test_TC_DLRK_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLockStateAttribute_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -100219,15 +100112,15 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -100235,7 +100128,7 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100266,8 +100159,8 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfWeekDaySchedulesForUser_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -100293,8 +100186,8 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -100319,11 +100212,11 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendSetWeekDayScheduleCommandToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:2U]; @@ -100345,17 +100238,17 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommand_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send GetWeekDay Schedule Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100422,11 +100315,11 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendSetWeekDayScheduleCommandToDutAndVerifyInvalidCommandResponse_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.daysMask = [NSNumber numberWithUnsignedChar:7U]; @@ -100448,17 +100341,17 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommandToDutAndVerifyInvalidCommandResponse_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send GetWeekDay Schedule Command to DUT and verify INVALID_COMMAND response Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100506,11 +100399,11 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestClearAllWeekDaySchedulesForTheFirstUser_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:254U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearWeekDayScheduleWithParams:params @@ -100527,16 +100420,16 @@ class Test_TC_DLRK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommand_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetWeekDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.weekDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getWeekDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send GetWeekDay Schedule Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100756,15 +100649,15 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = nil; @@ -100772,7 +100665,7 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100802,15 +100695,15 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockForSecondUser_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; params.credentialData = [[NSData alloc] initWithBytes:"123457" length:6]; params.userIndex = nil; @@ -100818,7 +100711,7 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { params.userType = nil; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock for second user Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100849,8 +100742,8 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfYearDaySchedulesForUser_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -100876,8 +100769,8 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -100902,11 +100795,11 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; params.localStartTime = [NSNumber numberWithUnsignedInt:10UL]; @@ -100925,16 +100818,16 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommand_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:1U]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send Get Year Day Schedule Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -100970,11 +100863,11 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDutAndVerifyInvalidCommandResponse_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:0U]; params.userIndex = [NSNumber numberWithUnsignedShort:10U]; params.localStartTime = [NSNumber numberWithUnsignedInt:30UL]; @@ -100993,17 +100886,17 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyInvalidFieldResponse_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:21U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send Get Year Day Schedule Command to DUT and Verify INVALID_FIELD response Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101039,16 +100932,16 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyNotFoundResponse_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:10U]; params.userIndex = [NSNumber numberWithUnsignedShort:5U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send Get Year Day Schedule Command to DUT and verify NOT_FOUND response Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101084,16 +100977,16 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyNotFoundResponse_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send Get Year Day Schedule Command to DUT and verify NOT_FOUND response Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101129,11 +101022,11 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; params.localStartTime = [NSNumber numberWithUnsignedInt:10UL]; @@ -101152,16 +101045,16 @@ class Test_TC_DLRK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommand_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetYearDayScheduleParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.yearDayIndex = [NSNumber numberWithUnsignedChar:2U]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster getYearDayScheduleWithParams:params completionHandler:^( - CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"send Get Year Day Schedule Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101397,8 +101290,8 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThReadsNumberOfTotalUsersSupportedAttributeAndSavesForFutureUse_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -101423,15 +101316,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:1U]; @@ -101439,7 +101332,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101452,18 +101345,18 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsGetCredentialStatusCommand_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Get Credential Status Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101483,15 +101376,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"1234" length:4]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101499,7 +101392,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:10U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101512,15 +101405,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101528,7 +101421,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101541,15 +101434,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101557,7 +101450,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101570,15 +101463,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:3U]; @@ -101586,7 +101479,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101599,15 +101492,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:2U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:3U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:3U]; @@ -101615,7 +101508,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101628,14 +101521,14 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -101651,15 +101544,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101667,7 +101560,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101680,14 +101573,14 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -101703,15 +101596,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101719,7 +101612,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101732,14 +101625,14 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:65534U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -101755,18 +101648,18 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsGetCredentialStatusCommand_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterGetCredentialStatusParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; [cluster getCredentialStatusWithParams:params completionHandler:^( - CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { + MTRDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Get Credential Status Command Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101784,15 +101677,15 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterSetCredentialParams alloc] init]; + __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.operationType = [NSNumber numberWithUnsignedChar:0U]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:1U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:1U]; params.credentialData = [[NSData alloc] initWithBytes:"123456" length:6]; params.userIndex = [NSNumber numberWithUnsignedShort:2U]; @@ -101800,7 +101693,7 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { params.userType = [NSNumber numberWithUnsignedChar:0U]; [cluster setCredentialWithParams:params - completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"TH sends Set Credential Command to DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -101813,14 +101706,14 @@ class Test_TC_DLRK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestDoorLock * cluster = [[CHIPTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPDoorLockClusterClearCredentialParams alloc] init]; - params.credential = [[CHIPDoorLockClusterDlCredential alloc] init]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:8U]; - ((CHIPDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; + __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; + params.credential = [[MTRDoorLockClusterDlCredential alloc] init]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialType = [NSNumber numberWithUnsignedChar:8U]; + ((MTRDoorLockClusterDlCredential *) params.credential).credentialIndex = [NSNumber numberWithUnsignedShort:2U]; [cluster clearCredentialWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -102045,14 +101938,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup0Invalid_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:0U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 0 (invalid) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102075,14 +101968,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNotFound_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View First Group (not found) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102105,15 +101998,15 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestAddFirstGroupNew_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterAddGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; params.groupName = @"Group #1"; [cluster addGroupWithParams:params - completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add First Group (new) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102136,14 +102029,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNew_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View First Group (new) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102171,14 +102064,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupNotFound_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:4369U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Second Group (not found) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102201,18 +102094,18 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership1All_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterGetGroupMembershipParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; params.groupList = temp_0; } [cluster getGroupMembershipWithParams:params completionHandler:^( - CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 1 (all) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102236,14 +102129,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup3NotFound_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:32767U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 3 (not found) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102266,14 +102159,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupExisting_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View First Group (existing) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102301,14 +102194,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup0Invalid_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterRemoveGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:0U]; [cluster removeGroupWithParams:params - completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove Group 0 (invalid) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102331,14 +102224,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup4NotFound_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterRemoveGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:4U]; [cluster removeGroupWithParams:params - completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove Group 4 (not found) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102361,14 +102254,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNotRemoved_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View First Group (not removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102396,14 +102289,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupRemoved_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:4369U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Second Group (removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102426,11 +102319,11 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership3_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterGetGroupMembershipParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; temp_0[0] = [NSNumber numberWithUnsignedShort:1U]; @@ -102441,7 +102334,7 @@ class TestGroupsCluster : public TestCommandBridge { } [cluster getGroupMembershipWithParams:params completionHandler:^( - CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 3 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102465,8 +102358,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveAll_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { @@ -102482,14 +102375,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupRemoved_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:1U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View First Group (removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102512,14 +102405,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupStillRemoved_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:4369U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Second Group (still removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102542,14 +102435,14 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup3Removed_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterViewGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:32767U]; [cluster viewGroupWithParams:params - completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 3 (removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102572,11 +102465,11 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership4_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterGetGroupMembershipParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; temp_0[0] = [NSNumber numberWithUnsignedShort:1U]; @@ -102588,7 +102481,7 @@ class TestGroupsCluster : public TestCommandBridge { } [cluster getGroupMembershipWithParams:params completionHandler:^( - CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 4 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102835,10 +102728,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadMaxGroupsPerFabric_1() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxGroupsPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -102856,10 +102749,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadMaxGroupKeysPerFabric_2() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxGroupKeysPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -102880,15 +102773,15 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestAddGroup1_3() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterAddGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:257U]; params.groupName = @"Group #1"; [cluster addGroupWithParams:params - completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add Group 1 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102911,15 +102804,15 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestAddGroup2_4() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterAddGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:258U]; params.groupName = @"Group #2"; [cluster addGroupWithParams:params - completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add Group 2 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -102942,29 +102835,29 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetWrite1_5() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetWriteParams alloc] init]; - params.groupKeySet = [[CHIPGroupKeyManagementClusterGroupKeySetStruct alloc] init]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySetID = + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; + params.groupKeySet = [[MTRGroupKeyManagementClusterGroupKeySetStruct alloc] init]; + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySecurityPolicy = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySecurityPolicy = [NSNumber numberWithUnsignedChar:0U]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey0 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey0 = [[NSData alloc] initWithBytes:"\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime0 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime0 = [NSNumber numberWithUnsignedLongLong:1110000ULL]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey1 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey1 = [[NSData alloc] initWithBytes:"\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime1 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime1 = [NSNumber numberWithUnsignedLongLong:1110001ULL]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey2 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey2 = [[NSData alloc] initWithBytes:"\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime2 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime2 = [NSNumber numberWithUnsignedLongLong:1110002ULL]; [cluster keySetWriteWithParams:params @@ -102981,29 +102874,29 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetWrite2_6() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetWriteParams alloc] init]; - params.groupKeySet = [[CHIPGroupKeyManagementClusterGroupKeySetStruct alloc] init]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySetID = + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; + params.groupKeySet = [[MTRGroupKeyManagementClusterGroupKeySetStruct alloc] init]; + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySecurityPolicy = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).groupKeySecurityPolicy = [NSNumber numberWithUnsignedChar:1U]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey0 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey0 = [[NSData alloc] initWithBytes:"\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime0 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime0 = [NSNumber numberWithUnsignedLongLong:2110000ULL]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey1 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey1 = [[NSData alloc] initWithBytes:"\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime1 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime1 = [NSNumber numberWithUnsignedLongLong:2110001ULL]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey2 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochKey2 = [[NSData alloc] initWithBytes:"\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377" length:16]; - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime2 = + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) params.groupKeySet).epochStartTime2 = [NSNumber numberWithUnsignedLongLong:2110002ULL]; [cluster keySetWriteWithParams:params @@ -103020,18 +102913,18 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRead_7() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; [cluster keySetReadWithParams:params completionHandler:^( - CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -103039,27 +102932,27 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { { id actualValue = values.groupKeySet; VerifyOrReturn(CheckValue( - "GroupKeySetID", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySetID, 417U)); + "GroupKeySetID", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySetID, 417U)); VerifyOrReturn(CheckValue("GroupKeySecurityPolicy", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySecurityPolicy, 0U)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySecurityPolicy, 0U)); VerifyOrReturn( - CheckValueNull("EpochKey0", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey0)); + CheckValueNull("EpochKey0", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey0)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime0", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0)); + "EpochStartTime0", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0)); VerifyOrReturn(CheckValue("EpochStartTime0", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0, 1110000ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0, 1110000ULL)); VerifyOrReturn( - CheckValueNull("EpochKey1", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey1)); + CheckValueNull("EpochKey1", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey1)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime1", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1)); + "EpochStartTime1", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1)); VerifyOrReturn(CheckValue("EpochStartTime1", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1, 1110001ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1, 1110001ULL)); VerifyOrReturn( - CheckValueNull("EpochKey2", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey2)); + CheckValueNull("EpochKey2", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey2)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime2", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2)); + "EpochStartTime2", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2)); VerifyOrReturn(CheckValue("EpochStartTime2", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2, 1110002ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2, 1110002ULL)); } NextTest(); @@ -103070,19 +102963,19 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestWriteGroupKeysInvalid_8() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id groupKeyMapArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupId = [NSNumber numberWithUnsignedShort:258U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupKeySetID = [NSNumber numberWithUnsignedShort:0U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; + temp_0[0] = [[MTRGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupId = [NSNumber numberWithUnsignedShort:258U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupKeySetID = [NSNumber numberWithUnsignedShort:0U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; groupKeyMapArgument = temp_0; } @@ -103099,24 +102992,24 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestWriteGroupKeys_9() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id groupKeyMapArgument; { NSMutableArray * temp_0 = [[NSMutableArray alloc] init]; - temp_0[0] = [[CHIPGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupId = [NSNumber numberWithUnsignedShort:257U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; + temp_0[0] = [[MTRGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupId = [NSNumber numberWithUnsignedShort:257U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[0]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; - temp_0[1] = [[CHIPGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).groupId = [NSNumber numberWithUnsignedShort:258U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; + temp_0[1] = [[MTRGroupKeyManagementClusterGroupKeyMapStruct alloc] init]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).groupId = [NSNumber numberWithUnsignedShort:258U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) temp_0[1]).fabricIndex = [NSNumber numberWithUnsignedChar:1U]; groupKeyMapArgument = temp_0; } @@ -103134,13 +103027,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupKeys_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeGroupKeyMapWithParams:params @@ -103153,17 +103046,17 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("GroupKeyMap", [actualValue count], static_cast(2))); VerifyOrReturn(CheckValue("GroupId", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).groupId, 257U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).groupId, 257U)); VerifyOrReturn(CheckValue("GroupKeySetID", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).groupKeySetID, 417U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).groupKeySetID, 417U)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).fabricIndex, 1U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[0]).fabricIndex, 1U)); VerifyOrReturn(CheckValue("GroupId", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).groupId, 258U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).groupId, 258U)); VerifyOrReturn(CheckValue("GroupKeySetID", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).groupKeySetID, 418U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).groupKeySetID, 418U)); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).fabricIndex, 1U)); + ((MTRGroupKeyManagementClusterGroupKeyMapStruct *) actualValue[1]).fabricIndex, 1U)); } NextTest(); @@ -103174,13 +103067,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeGroupTableWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -103192,19 +103085,19 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("GroupTable", [actualValue count], static_cast(2))); VerifyOrReturn(CheckValue("GroupId", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupId, 257U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupId, 257U)); VerifyOrReturn(CheckValueAsString("GroupName", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupName, + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupName, @"Group #1")); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).fabricIndex, 1U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).fabricIndex, 1U)); VerifyOrReturn(CheckValue("GroupId", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).groupId, 258U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).groupId, 258U)); VerifyOrReturn(CheckValueAsString("GroupName", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).groupName, + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).groupName, @"Group #2")); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).fabricIndex, 1U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[1]).fabricIndex, 1U)); } NextTest(); @@ -103215,13 +103108,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRemove1_12() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetRemoveParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; [cluster keySetRemoveWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -103237,17 +103130,17 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadRemoved_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:417U]; [cluster keySetReadWithParams:params completionHandler:^( - CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); @@ -103259,18 +103152,18 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadNotRemoved_14() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; [cluster keySetReadWithParams:params completionHandler:^( - CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (not removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -103278,27 +103171,27 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { { id actualValue = values.groupKeySet; VerifyOrReturn(CheckValue( - "GroupKeySetID", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySetID, 418U)); + "GroupKeySetID", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySetID, 418U)); VerifyOrReturn(CheckValue("GroupKeySecurityPolicy", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySecurityPolicy, 1U)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).groupKeySecurityPolicy, 1U)); VerifyOrReturn( - CheckValueNull("EpochKey0", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey0)); + CheckValueNull("EpochKey0", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey0)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime0", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0)); + "EpochStartTime0", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0)); VerifyOrReturn(CheckValue("EpochStartTime0", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0, 2110000ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime0, 2110000ULL)); VerifyOrReturn( - CheckValueNull("EpochKey1", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey1)); + CheckValueNull("EpochKey1", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey1)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime1", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1)); + "EpochStartTime1", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1)); VerifyOrReturn(CheckValue("EpochStartTime1", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1, 2110001ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime1, 2110001ULL)); VerifyOrReturn( - CheckValueNull("EpochKey2", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey2)); + CheckValueNull("EpochKey2", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochKey2)); VerifyOrReturn(CheckValueNonNull( - "EpochStartTime2", ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2)); + "EpochStartTime2", ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2)); VerifyOrReturn(CheckValue("EpochStartTime2", - ((CHIPGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2, 2110002ULL)); + ((MTRGroupKeyManagementClusterGroupKeySetStruct *) actualValue).epochStartTime2, 2110002ULL)); } NextTest(); @@ -103309,14 +103202,14 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup1_15() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupsClusterRemoveGroupParams alloc] init]; + __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; params.groupId = [NSNumber numberWithUnsignedShort:257U]; [cluster removeGroupWithParams:params - completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { + completionHandler:^(MTRGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove Group 1 Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -103339,13 +103232,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable2_16() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeGroupTableWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -103357,12 +103250,12 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { id actualValue = value; VerifyOrReturn(CheckValue("GroupTable", [actualValue count], static_cast(1))); VerifyOrReturn(CheckValue("GroupId", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupId, 258U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupId, 258U)); VerifyOrReturn(CheckValueAsString("GroupName", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupName, + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).groupName, @"Group #2")); VerifyOrReturn(CheckValue("FabricIndex", - ((CHIPGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).fabricIndex, 1U)); + ((MTRGroupKeyManagementClusterGroupInfoMapStruct *) actualValue[0]).fabricIndex, 1U)); } NextTest(); @@ -103373,8 +103266,8 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestRemoveAll_17() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroups * cluster = [[CHIPTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { @@ -103390,13 +103283,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable3_18() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIPReadParams * params = [[CHIPReadParams alloc] init]; + MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = [NSNumber numberWithBool:true]; [cluster readAttributeGroupTableWithParams:params completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -103417,13 +103310,13 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRemove2_19() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetRemoveParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; [cluster keySetRemoveWithParams:params completionHandler:^(NSError * _Nullable err) { @@ -103439,17 +103332,17 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadAlsoRemoved_20() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestGroupKeyManagement * cluster = [[CHIPTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRDevice * device = GetDevice("alpha"); + MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - __auto_type * params = [[CHIPGroupKeyManagementClusterKeySetReadParams alloc] init]; + __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.groupKeySetID = [NSNumber numberWithUnsignedShort:418U]; [cluster keySetReadWithParams:params completionHandler:^( - CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { + MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (also removed) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND));